diff --git a/README.md b/README.md index 806c0281..e4ed52cf 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,10 @@ This repository contains definitions for the following CloudEvent data payloads: |Cloud Deploy|[Proto](proto/google/events/cloud/deploy/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/cloud/deploy/v1/TargetEventData.json)|
Data Type:
`google.events.cloud.deploy.v1.TargetEventData`
CloudEvent Type(s):
`google.cloud.deploy.target.v1.created`
`google.cloud.deploy.target.v1.updated`
`google.cloud.deploy.target.v1.deleted`| |Eventarc|[Proto](proto/google/events/cloud/eventarc/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/cloud/eventarc/v1/ChannelConnectionEventData.json)|
Data Type:
`google.events.cloud.eventarc.v1.ChannelConnectionEventData`
CloudEvent Type(s):
`google.cloud.eventarc.channelConnection.v1.created`
`google.cloud.eventarc.channelConnection.v1.deleted`| |Eventarc|[Proto](proto/google/events/cloud/eventarc/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/cloud/eventarc/v1/ChannelEventData.json)|
Data Type:
`google.events.cloud.eventarc.v1.ChannelEventData`
CloudEvent Type(s):
`google.cloud.eventarc.channel.v1.created`
`google.cloud.eventarc.channel.v1.updated`
`google.cloud.eventarc.channel.v1.deleted`| +|Eventarc|[Proto](proto/google/events/cloud/eventarc/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/cloud/eventarc/v1/EnrollmentEventData.json)|
Data Type:
`google.events.cloud.eventarc.v1.EnrollmentEventData`
CloudEvent Type(s):
`google.cloud.eventarc.enrollment.v1.created`
`google.cloud.eventarc.enrollment.v1.updated`
`google.cloud.eventarc.enrollment.v1.deleted`| +|Eventarc|[Proto](proto/google/events/cloud/eventarc/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/cloud/eventarc/v1/GoogleApiSourceEventData.json)|
Data Type:
`google.events.cloud.eventarc.v1.GoogleApiSourceEventData`
CloudEvent Type(s):
`google.cloud.eventarc.googleApiSource.v1.created`
`google.cloud.eventarc.googleApiSource.v1.updated`
`google.cloud.eventarc.googleApiSource.v1.deleted`| +|Eventarc|[Proto](proto/google/events/cloud/eventarc/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/cloud/eventarc/v1/MessageBusEventData.json)|
Data Type:
`google.events.cloud.eventarc.v1.MessageBusEventData`
CloudEvent Type(s):
`google.cloud.eventarc.messageBus.v1.created`
`google.cloud.eventarc.messageBus.v1.updated`
`google.cloud.eventarc.messageBus.v1.deleted`| +|Eventarc|[Proto](proto/google/events/cloud/eventarc/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/cloud/eventarc/v1/PipelineEventData.json)|
Data Type:
`google.events.cloud.eventarc.v1.PipelineEventData`
CloudEvent Type(s):
`google.cloud.eventarc.pipeline.v1.created`
`google.cloud.eventarc.pipeline.v1.updated`
`google.cloud.eventarc.pipeline.v1.deleted`| |Eventarc|[Proto](proto/google/events/cloud/eventarc/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/cloud/eventarc/v1/TriggerEventData.json)|
Data Type:
`google.events.cloud.eventarc.v1.TriggerEventData`
CloudEvent Type(s):
`google.cloud.eventarc.trigger.v1.created`
`google.cloud.eventarc.trigger.v1.updated`
`google.cloud.eventarc.trigger.v1.deleted`| |Cloud Firestore|[Proto](proto/google/events/cloud/firestore/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/cloud/firestore/v1/DocumentEventData.json)|
Data Type:
`google.events.cloud.firestore.v1.DocumentEventData`
CloudEvent Type(s):
`google.cloud.firestore.document.v1.created`
`google.cloud.firestore.document.v1.updated`
`google.cloud.firestore.document.v1.deleted`
`google.cloud.firestore.document.v1.written`
`google.cloud.firestore.document.v1.created.withAuthContext`
`google.cloud.firestore.document.v1.updated.withAuthContext`
`google.cloud.firestore.document.v1.deleted.withAuthContext`
`google.cloud.firestore.document.v1.written.withAuthContext`| |Cloud Functions|[Proto](proto/google/events/cloud/functions/v2/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/cloud/functions/v2/FunctionEventData.json)|
Data Type:
`google.events.cloud.functions.v2.FunctionEventData`
CloudEvent Type(s):
`google.cloud.functions.function.v2.created`
`google.cloud.functions.function.v2.updated`
`google.cloud.functions.function.v2.deleted`| @@ -153,7 +157,12 @@ This repository contains definitions for the following CloudEvent data payloads: |Workflows|[Proto](proto/google/events/cloud/workflows/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/cloud/workflows/v1/WorkflowEventData.json)|
Data Type:
`google.events.cloud.workflows.v1.WorkflowEventData`
CloudEvent Type(s):
`google.cloud.workflows.workflow.v1.created`
`google.cloud.workflows.workflow.v1.deleted`
`google.cloud.workflows.workflow.v1.updated`| |Google Analytics for Firebase|[Proto](proto/google/events/firebase/analytics/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/analytics/v1/AnalyticsLogData.json)|
Data Type:
`google.events.firebase.analytics.v1.AnalyticsLogData`
CloudEvent Type(s):
`google.firebase.analytics.log.v1.written`| |Firebase Authentication|[Proto](proto/google/events/firebase/auth/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/auth/v1/AuthEventData.json)|
Data Type:
`google.events.firebase.auth.v1.AuthEventData`
CloudEvent Type(s):
`google.firebase.auth.user.v1.created`
`google.firebase.auth.user.v1.deleted`| +|Firebase Authentication|[Proto](proto/google/events/firebase/auth/v2/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/auth/v2/AuthEventData.json)|
Data Type:
`google.events.firebase.auth.v2.AuthEventData`
CloudEvent Type(s):
`google.firebase.auth.user.v2.created`
`google.firebase.auth.user.v2.updated`
`google.firebase.auth.user.v2.deleted`| |Firebase Realtime Database|[Proto](proto/google/events/firebase/database/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/database/v1/ReferenceEventData.json)|
Data Type:
`google.events.firebase.database.v1.ReferenceEventData`
CloudEvent Type(s):
`google.firebase.database.ref.v1.created`
`google.firebase.database.ref.v1.updated`
`google.firebase.database.ref.v1.deleted`
`google.firebase.database.ref.v1.written`| +|Firebase Data Connect|[Proto](proto/google/events/firebase/dataconnect/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/dataconnect/v1/ConnectorEventData.json)|
Data Type:
`google.events.firebase.dataconnect.v1.ConnectorEventData`
CloudEvent Type(s):
`google.firebase.dataconnect.connector.v1.created`
`google.firebase.dataconnect.connector.v1.updated`
`google.firebase.dataconnect.connector.v1.deleted`| +|Firebase Data Connect|[Proto](proto/google/events/firebase/dataconnect/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/dataconnect/v1/MutationEventData.json)|
Data Type:
`google.events.firebase.dataconnect.v1.MutationEventData`
CloudEvent Type(s):
`google.firebase.dataconnect.connector.v1.mutationExecuted`| +|Firebase Data Connect|[Proto](proto/google/events/firebase/dataconnect/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/dataconnect/v1/SchemaEventData.json)|
Data Type:
`google.events.firebase.dataconnect.v1.SchemaEventData`
CloudEvent Type(s):
`google.firebase.dataconnect.schema.v1.created`
`google.firebase.dataconnect.schema.v1.updated`
`google.firebase.dataconnect.schema.v1.deleted`| +|Firebase Data Connect|[Proto](proto/google/events/firebase/dataconnect/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/dataconnect/v1/ServiceEventData.json)|
Data Type:
`google.events.firebase.dataconnect.v1.ServiceEventData`
CloudEvent Type(s):
`google.firebase.dataconnect.service.v1.created`
`google.firebase.dataconnect.service.v1.updated`
`google.firebase.dataconnect.service.v1.deleted`| |Firebase Alerts|[Proto](proto/google/events/firebase/firebasealerts/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/firebasealerts/v1/AlertData.json)|
Data Type:
`google.events.firebase.firebasealerts.v1.AlertData`
CloudEvent Type(s):
`google.firebase.firebasealerts.alerts.v1.published`| |Firebase Remote Config|[Proto](proto/google/events/firebase/remoteconfig/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/remoteconfig/v1/RemoteConfigEventData.json)|
Data Type:
`google.events.firebase.remoteconfig.v1.RemoteConfigEventData`
CloudEvent Type(s):
`google.firebase.remoteconfig.remoteConfig.v1.updated`| |Firebase Test Lab|[Proto](proto/google/events/firebase/testlab/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/testlab/v1/TestMatrixEventData.json)|
Data Type:
`google.events.firebase.testlab.v1.TestMatrixEventData`
CloudEvent Type(s):
`google.firebase.testlab.testMatrix.v1.completed`| diff --git a/jsonschema/catalog.json b/jsonschema/catalog.json index 91f94e90..38850c38 100644 --- a/jsonschema/catalog.json +++ b/jsonschema/catalog.json @@ -721,6 +721,54 @@ "google.cloud.eventarc.channel.v1.deleted" ] }, + { + "url": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/cloud/eventarc/v1/EnrollmentEventData.json", + "product": "Eventarc", + "name": "EnrollmentEventData", + "description": "The data within all Enrollment events.", + "datatype": "google.events.cloud.eventarc.v1.EnrollmentEventData", + "cloudeventTypes": [ + "google.cloud.eventarc.enrollment.v1.created", + "google.cloud.eventarc.enrollment.v1.updated", + "google.cloud.eventarc.enrollment.v1.deleted" + ] + }, + { + "url": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/cloud/eventarc/v1/GoogleApiSourceEventData.json", + "product": "Eventarc", + "name": "GoogleApiSourceEventData", + "description": "The data within all GoogleApiSource events.", + "datatype": "google.events.cloud.eventarc.v1.GoogleApiSourceEventData", + "cloudeventTypes": [ + "google.cloud.eventarc.googleApiSource.v1.created", + "google.cloud.eventarc.googleApiSource.v1.updated", + "google.cloud.eventarc.googleApiSource.v1.deleted" + ] + }, + { + "url": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/cloud/eventarc/v1/MessageBusEventData.json", + "product": "Eventarc", + "name": "MessageBusEventData", + "description": "The data within all MessageBus events.", + "datatype": "google.events.cloud.eventarc.v1.MessageBusEventData", + "cloudeventTypes": [ + "google.cloud.eventarc.messageBus.v1.created", + "google.cloud.eventarc.messageBus.v1.updated", + "google.cloud.eventarc.messageBus.v1.deleted" + ] + }, + { + "url": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/cloud/eventarc/v1/PipelineEventData.json", + "product": "Eventarc", + "name": "PipelineEventData", + "description": "The data within all Pipeline events.", + "datatype": "google.events.cloud.eventarc.v1.PipelineEventData", + "cloudeventTypes": [ + "google.cloud.eventarc.pipeline.v1.created", + "google.cloud.eventarc.pipeline.v1.updated", + "google.cloud.eventarc.pipeline.v1.deleted" + ] + }, { "url": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/cloud/eventarc/v1/TriggerEventData.json", "product": "Eventarc", @@ -1506,6 +1554,18 @@ "google.firebase.auth.user.v1.deleted" ] }, + { + "url": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/auth/v2/AuthEventData.json", + "product": "Firebase Authentication", + "name": "AuthEventData", + "description": "The data within all Firebase Auth events.", + "datatype": "google.events.firebase.auth.v2.AuthEventData", + "cloudeventTypes": [ + "google.firebase.auth.user.v2.created", + "google.firebase.auth.user.v2.updated", + "google.firebase.auth.user.v2.deleted" + ] + }, { "url": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/database/v1/ReferenceEventData.json", "product": "Firebase Realtime Database", @@ -1519,6 +1579,52 @@ "google.firebase.database.ref.v1.written" ] }, + { + "url": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/dataconnect/v1/ConnectorEventData.json", + "product": "Firebase Data Connect", + "name": "ConnectorEventData", + "description": "The data within all Connector events.", + "datatype": "google.events.firebase.dataconnect.v1.ConnectorEventData", + "cloudeventTypes": [ + "google.firebase.dataconnect.connector.v1.created", + "google.firebase.dataconnect.connector.v1.updated", + "google.firebase.dataconnect.connector.v1.deleted" + ] + }, + { + "url": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/dataconnect/v1/MutationEventData.json", + "product": "Firebase Data Connect", + "name": "MutationEventData", + "description": "The data within all Mutation events.", + "datatype": "google.events.firebase.dataconnect.v1.MutationEventData", + "cloudeventTypes": [ + "google.firebase.dataconnect.connector.v1.mutationExecuted" + ] + }, + { + "url": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/dataconnect/v1/SchemaEventData.json", + "product": "Firebase Data Connect", + "name": "SchemaEventData", + "description": "The data within all Schema events.", + "datatype": "google.events.firebase.dataconnect.v1.SchemaEventData", + "cloudeventTypes": [ + "google.firebase.dataconnect.schema.v1.created", + "google.firebase.dataconnect.schema.v1.updated", + "google.firebase.dataconnect.schema.v1.deleted" + ] + }, + { + "url": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/dataconnect/v1/ServiceEventData.json", + "product": "Firebase Data Connect", + "name": "ServiceEventData", + "description": "The data within all Service events.", + "datatype": "google.events.firebase.dataconnect.v1.ServiceEventData", + "cloudeventTypes": [ + "google.firebase.dataconnect.service.v1.created", + "google.firebase.dataconnect.service.v1.updated", + "google.firebase.dataconnect.service.v1.deleted" + ] + }, { "url": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/firebasealerts/v1/AlertData.json", "product": "Firebase Alerts", diff --git a/jsonschema/google/events/cloud/eventarc/v1/ChannelConnectionEventData.json b/jsonschema/google/events/cloud/eventarc/v1/ChannelConnectionEventData.json index e21577fa..6e3013c9 100644 --- a/jsonschema/google/events/cloud/eventarc/v1/ChannelConnectionEventData.json +++ b/jsonschema/google/events/cloud/eventarc/v1/ChannelConnectionEventData.json @@ -48,6 +48,13 @@ "type": "string", "description": "Output only. The last-modified time.", "format": "date-time" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Optional. Resource labels." } }, "additionalProperties": true, diff --git a/jsonschema/google/events/cloud/eventarc/v1/ChannelEventData.json b/jsonschema/google/events/cloud/eventarc/v1/ChannelEventData.json index 915fb870..632fd9d0 100644 --- a/jsonschema/google/events/cloud/eventarc/v1/ChannelEventData.json +++ b/jsonschema/google/events/cloud/eventarc/v1/ChannelEventData.json @@ -82,7 +82,18 @@ }, "cryptoKeyName": { "type": "string", - "description": "Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data. It must match the pattern `projects/*/locations/*/keyRings/*/cryptoKeys/*`." + "description": "Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data. It must match the pattern `projects/*/locations/*/keyRings/*/cryptoKeys/*`." + }, + "satisfiesPzs": { + "type": "boolean", + "description": "Output only. Whether or not this Channel satisfies the requirements of physical zone separation" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Optional. Resource labels." } }, "additionalProperties": true, diff --git a/jsonschema/google/events/cloud/eventarc/v1/EnrollmentEventData.json b/jsonschema/google/events/cloud/eventarc/v1/EnrollmentEventData.json new file mode 100644 index 00000000..0b9b3a87 --- /dev/null +++ b/jsonschema/google/events/cloud/eventarc/v1/EnrollmentEventData.json @@ -0,0 +1,90 @@ +{ + "$id": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/cloud/eventarc/v1/EnrollmentEventData.json", + "name": "EnrollmentEventData", + "examples": [], + "package": "google.events.cloud.eventarc.v1", + "datatype": "google.events.cloud.eventarc.v1.EnrollmentEventData", + "cloudeventTypes": [ + "google.cloud.eventarc.enrollment.v1.created", + "google.cloud.eventarc.enrollment.v1.updated", + "google.cloud.eventarc.enrollment.v1.deleted" + ], + "product": "Eventarc", + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/EnrollmentEventData", + "definitions": { + "EnrollmentEventData": { + "properties": { + "payload": { + "$ref": "#/definitions/Enrollment", + "additionalProperties": true, + "description": "The Enrollment event payload." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Enrollment Event Data", + "description": "The data within all Enrollment events." + }, + "Enrollment": { + "properties": { + "name": { + "type": "string", + "description": "Identifier. Resource name of the form projects/{project}/locations/{location}/enrollments/{enrollment}" + }, + "uid": { + "type": "string", + "description": "Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted." + }, + "etag": { + "type": "string", + "description": "Output only. This checksum is computed by the server based on the value of other fields, and might be sent only on update and delete requests to ensure that the client has an up-to-date value before proceeding." + }, + "createTime": { + "type": "string", + "description": "Output only. The creation time.", + "format": "date-time" + }, + "updateTime": { + "type": "string", + "description": "Output only. The last-modified time.", + "format": "date-time" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Optional. Resource labels." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Optional. Resource annotations." + }, + "displayName": { + "type": "string", + "description": "Optional. Resource display name." + }, + "celMatch": { + "type": "string", + "description": "Required. A CEL expression identifying which messages this enrollment applies to." + }, + "messageBus": { + "type": "string", + "description": "Required. Immutable. Resource name of the message bus identifying the source of the messages. It matches the form projects/{project}/locations/{location}/messageBuses/{messageBus}." + }, + "destination": { + "type": "string", + "description": "Required. Destination is the Pipeline that the Enrollment is delivering to. It must point to the full resource name of a Pipeline. Format: \"projects/{PROJECT_ID}/locations/{region}/pipelines/{PIPELINE_ID)\"" + } + }, + "additionalProperties": true, + "type": "object", + "title": "Enrollment", + "description": "An enrollment represents a subscription for messages on a particular message bus. It defines a matching criteria for messages on the bus and the subscriber endpoint where matched messages should be delivered." + } + } +} \ No newline at end of file diff --git a/jsonschema/google/events/cloud/eventarc/v1/GoogleApiSourceEventData.json b/jsonschema/google/events/cloud/eventarc/v1/GoogleApiSourceEventData.json new file mode 100644 index 00000000..075a41b6 --- /dev/null +++ b/jsonschema/google/events/cloud/eventarc/v1/GoogleApiSourceEventData.json @@ -0,0 +1,170 @@ +{ + "$id": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/cloud/eventarc/v1/GoogleApiSourceEventData.json", + "name": "GoogleApiSourceEventData", + "examples": [], + "package": "google.events.cloud.eventarc.v1", + "datatype": "google.events.cloud.eventarc.v1.GoogleApiSourceEventData", + "cloudeventTypes": [ + "google.cloud.eventarc.googleApiSource.v1.created", + "google.cloud.eventarc.googleApiSource.v1.updated", + "google.cloud.eventarc.googleApiSource.v1.deleted" + ], + "product": "Eventarc", + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/GoogleApiSourceEventData", + "definitions": { + "GoogleApiSourceEventData": { + "properties": { + "payload": { + "$ref": "#/definitions/GoogleApiSource", + "additionalProperties": true, + "description": "The GoogleApiSource event payload." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Google Api Source Event Data", + "description": "The data within all GoogleApiSource events." + }, + "GoogleApiSource": { + "properties": { + "name": { + "type": "string", + "description": "Identifier. Resource name of the form projects/{project}/locations/{location}/googleApiSources/{google_api_source}" + }, + "uid": { + "type": "string", + "description": "Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted." + }, + "etag": { + "type": "string", + "description": "Output only. This checksum is computed by the server based on the value of other fields, and might be sent only on update and delete requests to ensure that the client has an up-to-date value before proceeding." + }, + "createTime": { + "type": "string", + "description": "Output only. The creation time.", + "format": "date-time" + }, + "updateTime": { + "type": "string", + "description": "Output only. The last-modified time.", + "format": "date-time" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Optional. Resource labels." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Optional. Resource annotations." + }, + "displayName": { + "type": "string", + "description": "Optional. Resource display name." + }, + "destination": { + "type": "string", + "description": "Required. Destination is the message bus that the GoogleApiSource is delivering to. It must be point to the full resource name of a MessageBus. Format: \"projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)" + }, + "cryptoKeyName": { + "type": "string", + "description": "Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data. It must match the pattern `projects/*/locations/*/keyRings/*/cryptoKeys/*`." + }, + "loggingConfig": { + "$ref": "#/definitions/LoggingConfig", + "additionalProperties": true, + "description": "Optional. Config to control Platform logging for the GoogleApiSource." + }, + "organizationSubscription": { + "$ref": "#/definitions/OrganizationSubscription", + "additionalProperties": true, + "description": "Optional. Config to enable subscribing to events from all projects in the GoogleApiSource's org." + }, + "projectSubscriptions": { + "$ref": "#/definitions/ProjectSubscriptions", + "additionalProperties": true, + "description": "Optional. Config to enable subscribing to all events from a list of projects. All the projects must be in the same org as the GoogleApiSource." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Google Api Source", + "description": "A GoogleApiSource represents a subscription of 1P events from a MessageBus." + }, + "OrganizationSubscription": { + "properties": { + "enabled": { + "type": "boolean", + "description": "Required. Enable org level subscription." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Organization Subscription", + "description": "Config to enabled subscribing to events from other projects in the org." + }, + "ProjectSubscriptions": { + "properties": { + "list": { + "items": { + "type": "string" + }, + "type": "array", + "description": "Required. A list of projects to receive events from. All the projects must be in the same org. The listed projects should have the format project/{identifier} where identifier can be either the project id for project number. A single list may contain both formats. At most 100 projects can be listed." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Project Subscriptions", + "description": "Config to enable subscribing to all events from a list of projects." + }, + "LoggingConfig": { + "properties": { + "logSeverity": { + "enum": [ + "LOG_SEVERITY_UNSPECIFIED", + 0, + "NONE", + 1, + "DEBUG", + 2, + "INFO", + 3, + "NOTICE", + 4, + "WARNING", + 5, + "ERROR", + 6, + "CRITICAL", + 7, + "ALERT", + 8, + "EMERGENCY", + 9 + ], + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + } + ], + "title": "Log Severity", + "description": "The different severities for logging supported by Eventarc Advanced resources. This enum is an exhaustive list of log severities and is FROZEN. Do not expect new values to be added." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Logging Config", + "description": "The configuration for Platform Telemetry logging for Eventarc Advanced resources." + } + } +} \ No newline at end of file diff --git a/jsonschema/google/events/cloud/eventarc/v1/MessageBusEventData.json b/jsonschema/google/events/cloud/eventarc/v1/MessageBusEventData.json new file mode 100644 index 00000000..92bd27aa --- /dev/null +++ b/jsonschema/google/events/cloud/eventarc/v1/MessageBusEventData.json @@ -0,0 +1,129 @@ +{ + "$id": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/cloud/eventarc/v1/MessageBusEventData.json", + "name": "MessageBusEventData", + "examples": [], + "package": "google.events.cloud.eventarc.v1", + "datatype": "google.events.cloud.eventarc.v1.MessageBusEventData", + "cloudeventTypes": [ + "google.cloud.eventarc.messageBus.v1.created", + "google.cloud.eventarc.messageBus.v1.updated", + "google.cloud.eventarc.messageBus.v1.deleted" + ], + "product": "Eventarc", + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/MessageBusEventData", + "definitions": { + "MessageBusEventData": { + "properties": { + "payload": { + "$ref": "#/definitions/MessageBus", + "additionalProperties": true, + "description": "The MessageBus event payload." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Message Bus Event Data", + "description": "The data within all MessageBus events." + }, + "LoggingConfig": { + "properties": { + "logSeverity": { + "enum": [ + "LOG_SEVERITY_UNSPECIFIED", + 0, + "NONE", + 1, + "DEBUG", + 2, + "INFO", + 3, + "NOTICE", + 4, + "WARNING", + 5, + "ERROR", + 6, + "CRITICAL", + 7, + "ALERT", + 8, + "EMERGENCY", + 9 + ], + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + } + ], + "title": "Log Severity", + "description": "The different severities for logging supported by Eventarc Advanced resources. This enum is an exhaustive list of log severities and is FROZEN. Do not expect new values to be added." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Logging Config", + "description": "The configuration for Platform Telemetry logging for Eventarc Advanced resources." + }, + "MessageBus": { + "properties": { + "name": { + "type": "string", + "description": "Identifier. Resource name of the form projects/{project}/locations/{location}/messageBuses/{message_bus}" + }, + "uid": { + "type": "string", + "description": "Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted." + }, + "etag": { + "type": "string", + "description": "Output only. This checksum is computed by the server based on the value of other fields, and might be sent only on update and delete requests to ensure that the client has an up-to-date value before proceeding." + }, + "createTime": { + "type": "string", + "description": "Output only. The creation time.", + "format": "date-time" + }, + "updateTime": { + "type": "string", + "description": "Output only. The last-modified time.", + "format": "date-time" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Optional. Resource labels." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Optional. Resource annotations." + }, + "displayName": { + "type": "string", + "description": "Optional. Resource display name." + }, + "cryptoKeyName": { + "type": "string", + "description": "Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data. It must match the pattern `projects/*/locations/*/keyRings/*/cryptoKeys/*`." + }, + "loggingConfig": { + "$ref": "#/definitions/LoggingConfig", + "additionalProperties": true, + "description": "Optional. Config to control Platform logging for the Message Bus. This log configuration is applied to the Message Bus itself, and all the Enrollments attached to it." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Message Bus", + "description": "MessageBus for the messages flowing through the system. The admin has visibility and control over the messages being published and consumed and can restrict publishers and subscribers to only a subset of data available in the system by defining authorization policies." + } + } +} \ No newline at end of file diff --git a/jsonschema/google/events/cloud/eventarc/v1/PipelineEventData.json b/jsonschema/google/events/cloud/eventarc/v1/PipelineEventData.json new file mode 100644 index 00000000..1a3864a2 --- /dev/null +++ b/jsonschema/google/events/cloud/eventarc/v1/PipelineEventData.json @@ -0,0 +1,377 @@ +{ + "$id": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/cloud/eventarc/v1/PipelineEventData.json", + "name": "PipelineEventData", + "examples": [], + "package": "google.events.cloud.eventarc.v1", + "datatype": "google.events.cloud.eventarc.v1.PipelineEventData", + "cloudeventTypes": [ + "google.cloud.eventarc.pipeline.v1.created", + "google.cloud.eventarc.pipeline.v1.updated", + "google.cloud.eventarc.pipeline.v1.deleted" + ], + "product": "Eventarc", + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PipelineEventData", + "definitions": { + "PipelineEventData": { + "properties": { + "payload": { + "$ref": "#/definitions/Pipeline", + "additionalProperties": true, + "description": "The Pipeline event payload." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Pipeline Event Data", + "description": "The data within all Pipeline events." + }, + "LoggingConfig": { + "properties": { + "logSeverity": { + "enum": [ + "LOG_SEVERITY_UNSPECIFIED", + 0, + "NONE", + 1, + "DEBUG", + 2, + "INFO", + 3, + "NOTICE", + 4, + "WARNING", + 5, + "ERROR", + 6, + "CRITICAL", + 7, + "ALERT", + 8, + "EMERGENCY", + 9 + ], + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + } + ], + "title": "Log Severity", + "description": "The different severities for logging supported by Eventarc Advanced resources. This enum is an exhaustive list of log severities and is FROZEN. Do not expect new values to be added." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Logging Config", + "description": "The configuration for Platform Telemetry logging for Eventarc Advanced resources." + }, + "Pipeline": { + "properties": { + "name": { + "type": "string", + "description": "Identifier. The resource name of the Pipeline. Must be unique within the location of the project and must be in `projects/{project}/locations/{location}/pipelines/{pipeline}` format." + }, + "createTime": { + "type": "string", + "description": "Output only. The creation time. A timestamp in RFC3339 UTC \"Zulu\" format, with nanosecond resolution and up to nine fractional digits. Examples: \"2014-10-02T15:01:23Z\" and \"2014-10-02T15:01:23.045123456Z\".", + "format": "date-time" + }, + "updateTime": { + "type": "string", + "description": "Output only. The last-modified time. A timestamp in RFC3339 UTC \"Zulu\" format, with nanosecond resolution and up to nine fractional digits. Examples: \"2014-10-02T15:01:23Z\" and \"2014-10-02T15:01:23.045123456Z\".", + "format": "date-time" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Optional. User labels attached to the Pipeline that can be used to group resources. An object containing a list of \"key\": value pairs. Example: { \"name\": \"wrench\", \"mass\": \"1.3kg\", \"count\": \"3\" }." + }, + "uid": { + "type": "string", + "description": "Output only. Server-assigned unique identifier for the Pipeline. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Optional. User-defined annotations. See https://google.aip.dev/128#annotations." + }, + "displayName": { + "type": "string", + "description": "Optional. Display name of resource." + }, + "destinations": { + "items": { + "$ref": "#/definitions/Destination" + }, + "type": "array", + "description": "Required. List of destinations to which messages will be forwarded. Currently, exactly one destination is supported per Pipeline." + }, + "mediations": { + "items": { + "$ref": "#/definitions/Mediation" + }, + "type": "array", + "description": "Optional. List of mediation operations to be performed on the message. Currently, only one Transformation operation is allowed in each Pipeline." + }, + "cryptoKeyName": { + "type": "string", + "description": "Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt the event data. If not set, an internal Google-owned key will be used to encrypt messages. It must match the pattern \"projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}\"." + }, + "inputPayloadFormat": { + "$ref": "#/definitions/MessagePayloadFormat", + "additionalProperties": true, + "description": "Optional. The payload format expected for the messages received by the Pipeline. If input_payload_format is set then any messages not matching this format will be treated as persistent errors. If input_payload_format is not set, then the message data will be treated as an opaque binary and no output format can be set on the Pipeline through the Pipeline.Destination.output_payload_format field. Any Mediations on the Pipeline that involve access to the data field will fail as persistent errors." + }, + "loggingConfig": { + "$ref": "#/definitions/LoggingConfig", + "additionalProperties": true, + "description": "Optional. Config to control Platform Logging for Pipelines." + }, + "retryPolicy": { + "$ref": "#/definitions/RetryPolicy", + "additionalProperties": true, + "description": "Optional. The retry policy to use in the pipeline." + }, + "etag": { + "type": "string", + "description": "Output only. This checksum is computed by the server based on the value of other fields, and might be sent only on create requests to ensure that the client has an up-to-date value before proceeding." + }, + "satisfiesPzs": { + "type": "boolean", + "description": "Output only. Whether or not this Pipeline satisfies the requirements of physical zone separation" + } + }, + "additionalProperties": true, + "type": "object", + "title": "Pipeline", + "description": "A representation of the Pipeline resource." + }, + "Destination": { + "properties": { + "networkConfig": { + "$ref": "#/definitions/NetworkConfig", + "additionalProperties": true, + "description": "Optional. Network config is used to configure how Pipeline resolves and connects to a destination." + }, + "httpEndpoint": { + "$ref": "#/definitions/HttpEndpoint", + "additionalProperties": true, + "description": "Optional. An HTTP endpoint destination described by an URI. If a DNS FQDN is provided as the endpoint, Pipeline will create a peering zone to the consumer VPC and forward DNS requests to the VPC specified by network config to resolve the service endpoint. See: https://cloud.google.com/dns/docs/zones/zones-overview#peering_zones" + }, + "workflow": { + "type": "string", + "description": "Optional. The resource name of the Workflow whose Executions are triggered by the events. The Workflow resource should be deployed in the same project as the Pipeline. Format: `projects/{project}/locations/{location}/workflows/{workflow}`" + }, + "messageBus": { + "type": "string", + "description": "Optional. The resource name of the Message Bus to which events should be published. The Message Bus resource should exist in the same project as the Pipeline. Format: `projects/{project}/locations/{location}/messageBuses/{message_bus}`" + }, + "topic": { + "type": "string", + "description": "Optional. The resource name of the Pub/Sub topic to which events should be published. Format: `projects/{project}/locations/{location}/topics/{topic}`" + }, + "authenticationConfig": { + "$ref": "#/definitions/AuthenticationConfig", + "additionalProperties": true, + "description": "Optional. An authentication config used to authenticate message requests, such that destinations can verify the source. For example, this can be used with private Google Cloud destinations that require Google Cloud credentials for access like Cloud Run. This field is optional and should be set only by users interested in authenticated push." + }, + "outputPayloadFormat": { + "$ref": "#/definitions/MessagePayloadFormat", + "additionalProperties": true, + "description": "Optional. The message format before it is delivered to the destination. If not set, the message will be delivered in the format it was originally delivered to the Pipeline. This field can only be set if Pipeline.input_payload_format is also set." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Destination", + "description": "Represents a target of an invocation over HTTP." + }, + "AuthenticationConfig": { + "properties": { + "googleOidc": { + "$ref": "#/definitions/OidcToken", + "additionalProperties": true, + "description": "Optional. This authenticate method will apply Google OIDC tokens signed by a Google Cloud service account to the requests." + }, + "oauthToken": { + "$ref": "#/definitions/OAuthToken", + "additionalProperties": true, + "description": "Optional. If specified, an [OAuth token](https://developers.google.com/identity/protocols/OAuth2) will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Authentication Config", + "description": "Represents a config used to authenticate message requests." + }, + "OAuthToken": { + "properties": { + "serviceAccount": { + "type": "string", + "description": "Required. Service account email used to generate the [OAuth token](https://developers.google.com/identity/protocols/OAuth2). The principal who calls this API must have iam.serviceAccounts.actAs permission in the service account. See https://cloud.google.com/iam/docs/understanding-service-accounts for more information. Eventarc service agents must have roles/roles/iam.serviceAccountTokenCreator role to allow Pipeline to create OAuth2 tokens for authenticated requests." + }, + "scope": { + "type": "string", + "description": "Optional. OAuth scope to be used for generating OAuth access token. If not specified, \"https://www.googleapis.com/auth/cloud-platform\" will be used." + } + }, + "additionalProperties": true, + "type": "object", + "title": "O Auth Token", + "description": "Contains information needed for generating an [OAuth token](https://developers.google.com/identity/protocols/OAuth2). This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com." + }, + "OidcToken": { + "properties": { + "serviceAccount": { + "type": "string", + "description": "Required. Service account email used to generate the OIDC Token. The principal who calls this API must have iam.serviceAccounts.actAs permission in the service account. See https://cloud.google.com/iam/docs/understanding-service-accounts for more information. Eventarc service agents must have roles/roles/iam.serviceAccountTokenCreator role to allow the Pipeline to create OpenID tokens for authenticated requests." + }, + "audience": { + "type": "string", + "description": "Optional. Audience to be used to generate the OIDC Token. The audience claim identifies the recipient that the JWT is intended for. If unspecified, the destination URI will be used." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Oidc Token", + "description": "Represents a config used to authenticate with a Google OIDC token using a Google Cloud service account. Use this authentication method to invoke your Cloud Run and Cloud Functions destinations or HTTP endpoints that support Google OIDC." + }, + "HttpEndpoint": { + "properties": { + "uri": { + "type": "string", + "description": "Required. The URI of the HTTP endpoint. The value must be a RFC2396 URI string. Examples: `https://svc.us-central1.p.local:8080/route`. Only the HTTPS protocol is supported." + }, + "messageBindingTemplate": { + "type": "string", + "description": "Optional. The CEL expression used to modify how the destination-bound HTTP request is constructed. If a binding expression is not specified here, the message is treated as a CloudEvent and is mapped to the HTTP request according to the CloudEvent HTTP Protocol Binding Binary Content Mode (https://github.com/cloudevents/spec/blob/main/cloudevents/bindings/http-protocol-binding.md#31-binary-content-mode). In this representation, all fields except the `data` and `datacontenttype` field on the message are mapped to HTTP request headers with a prefix of `ce-`. To construct the HTTP request payload and the value of the content-type HTTP header, the payload format is defined as follows: 1) Use the output_payload_format_type on the Pipeline.Destination if it is set, else: 2) Use the input_payload_format_type on the Pipeline if it is set, else: 3) Treat the payload as opaque binary data. The `data` field of the message is converted to the payload format or left as-is for case 3) and then attached as the payload of the HTTP request. The `content-type` header on the HTTP request is set to the payload format type or left empty for case 3). However, if a mediation has updated the `datacontenttype` field on the message so that it is not the same as the payload format type but it is still a prefix of the payload format type, then the `content-type` header on the HTTP request is set to this `datacontenttype` value. For example, if the `datacontenttype` is \"application/json\" and the payload format type is \"application/json; charset=utf-8\", then the `content-type` header on the HTTP request is set to \"application/json; charset=utf-8\". If a non-empty binding expression is specified then this expression is used to modify the default CloudEvent HTTP Protocol Binding Binary Content representation. The result of the CEL expression must be a map of key/value pairs which is used as follows: - If a map named `headers` exists on the result of the expression, then its key/value pairs are directly mapped to the HTTP request headers. The headers values are constructed from the corresponding value type's canonical representation. If the `headers` field doesn't exist then the resulting HTTP request will be the headers of the CloudEvent HTTP Binding Binary Content Mode representation of the final message. Note: If the specified binding expression, has updated the `datacontenttype` field on the message so that it is not the same as the payload format type but it is still a prefix of the payload format type, then the `content-type` header in the `headers` map is set to this `datacontenttype` value. - If a field named `body` exists on the result of the expression then its value is directly mapped to the body of the request. If the value of the `body` field is of type bytes or string then it is used for the HTTP request body as-is, with no conversion. If the body field is of any other type then it is converted to a JSON string. If the body field does not exist then the resulting payload of the HTTP request will be data value of the CloudEvent HTTP Binding Binary Content Mode representation of the final message as described earlier. - Any other fields in the resulting expression will be ignored. The CEL expression may access the incoming CloudEvent message in its definition, as follows: - The `data` field of the incoming CloudEvent message can be accessed using the `message.data` value. Subfields of `message.data` may also be accessed if an input_payload_format has been specified on the Pipeline. - Each attribute of the incoming CloudEvent message can be accessed using the `message.` value, where is replaced with the name of the attribute. - Existing headers can be accessed in the CEL expression using the `headers` variable. The `headers` variable defines a map of key/value pairs corresponding to the HTTP headers of the CloudEvent HTTP Binding Binary Content Mode representation of the final message as described earlier. For example, the following CEL expression can be used to construct an HTTP request by adding an additional header to the HTTP headers of the CloudEvent HTTP Binding Binary Content Mode representation of the final message and by overwriting the body of the request: ``` { \"headers\": headers.merge({\"new-header-key\": \"new-header-value\"}), \"body\": \"new-body\" } ``` - The default binding for the message payload can be accessed using the `body` variable. It conatins a string representation of the message payload in the format specified by the `output_payload_format` field. If the `input_payload_format` field is not set, the `body` variable contains the same message payload bytes that were published. Additionally, the following CEL extension functions are provided for use in this CEL expression: - toBase64Url: map.toBase64Url() -> string - Converts a CelValue to a base64url encoded string - toJsonString: map.toJsonString() -> string - Converts a CelValue to a JSON string - merge: map1.merge(map2) -> map3 - Merges the passed CEL map with the existing CEL map the function is applied to. - If the same key exists in both maps, if the key's value is type map both maps are merged else the value from the passed map is used. - denormalize: map.denormalize() -> map - Denormalizes a CEL map such that every value of type map or key in the map is expanded to return a single level map. - The resulting keys are \".\" separated indices of the map keys. - For example: { \"a\": 1, \"b\": { \"c\": 2, \"d\": 3 } \"e\": [4, 5] } .denormalize() -> { \"a\": 1, \"b.c\": 2, \"b.d\": 3, \"e.0\": 4, \"e.1\": 5 } - setField: map.setField(key, value) -> message - Sets the field of the message with the given key to the given value. - If the field is not present it will be added. - If the field is present it will be overwritten. - The key can be a dot separated path to set a field in a nested message. - Key must be of type string. - Value may be any valid type. - removeFields: map.removeFields([key1, key2, ...]) -> message - Removes the fields of the map with the given keys. - The keys can be a dot separated path to remove a field in a nested message. - If a key is not found it will be ignored. - Keys must be of type string. - toMap: [map1, map2, ...].toMap() -> map - Converts a CEL list of CEL maps to a single CEL map - toCloudEventJsonWithPayloadFormat: message.toCloudEventJsonWithPayloadFormat() -> map - Converts a message to the corresponding structure of JSON format for CloudEvents. - It converts `data` to destination payload format specified in `output_payload_format`. If `output_payload_format` is not set, the data will remain unchanged. - It also sets the corresponding datacontenttype of the CloudEvent, as indicated by `output_payload_format`. If no `output_payload_format` is set it will use the value of the \"datacontenttype\" attribute on the CloudEvent if present, else remove \"datacontenttype\" attribute. - This function expects that the content of the message will adhere to the standard CloudEvent format. If it doesn't then this function will fail. - The result is a CEL map that corresponds to the JSON representation of the CloudEvent. To convert that data to a JSON string it can be chained with the toJsonString function. The Pipeline expects that the message it receives adheres to the standard CloudEvent format. If it doesn't then the outgoing message request may fail with a persistent error." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Http Endpoint", + "description": "Represents a HTTP endpoint destination." + }, + "NetworkConfig": { + "properties": { + "networkAttachment": { + "type": "string", + "description": "Required. Name of the NetworkAttachment that allows access to the consumer VPC. Format: `projects/{PROJECT_ID}/regions/{REGION}/networkAttachments/{NETWORK_ATTACHMENT_NAME}`" + } + }, + "additionalProperties": true, + "type": "object", + "title": "Network Config", + "description": "Represents a network config to be used for destination resolution and connectivity." + }, + "Mediation": { + "properties": { + "transformation": { + "$ref": "#/definitions/Transformation", + "additionalProperties": true, + "description": "Optional. How the Pipeline is to transform messages" + } + }, + "additionalProperties": true, + "type": "object", + "title": "Mediation", + "description": "Mediation defines different ways to modify the Pipeline." + }, + "Transformation": { + "properties": { + "transformationTemplate": { + "type": "string", + "description": "Optional. The CEL expression template to apply to transform messages. The following CEL extension functions are provided for use in this CEL expression: - merge: map1.merge(map2) -> map3 - Merges the passed CEL map with the existing CEL map the function is applied to. - If the same key exists in both maps, if the key's value is type map both maps are merged else the value from the passed map is used. - denormalize: map.denormalize() -> map - Denormalizes a CEL map such that every value of type map or key in the map is expanded to return a single level map. - The resulting keys are \".\" separated indices of the map keys. - For example: { \"a\": 1, \"b\": { \"c\": 2, \"d\": 3 } \"e\": [4, 5] } .denormalize() -> { \"a\": 1, \"b.c\": 2, \"b.d\": 3, \"e.0\": 4, \"e.1\": 5 } - setField: map.setField(key, value) -> message - Sets the field of the message with the given key to the given value. - If the field is not present it will be added. - If the field is present it will be overwritten. - The key can be a dot separated path to set a field in a nested message. - Key must be of type string. - Value may be any valid type. - removeFields: map.removeFields([key1, key2, ...]) -> message - Removes the fields of the map with the given keys. - The keys can be a dot separated path to remove a field in a nested message. - If a key is not found it will be ignored. - Keys must be of type string. - toMap: [map1, map2, ...].toMap() -> map - Converts a CEL list of CEL maps to a single CEL map - toDestinationPayloadFormat(): message.data.toDestinationPayloadFormat() -> string or bytes - Converts the message data to the destination payload format specified in Pipeline.Destination.output_payload_format - This function is meant to be applied to the message.data field. - If the destination payload format is not set, the function will return the message data unchanged. - toCloudEventJsonWithPayloadFormat: message.toCloudEventJsonWithPayloadFormat() -> map - Converts a message to the corresponding structure of JSON format for CloudEvents - This function applies toDestinationPayloadFormat() to the message data. It also sets the corresponding datacontenttype of the CloudEvent, as indicated by Pipeline.Destination.output_payload_format. If no output_payload_format is set it will use the existing datacontenttype on the CloudEvent if present, else leave datacontenttype absent. - This function expects that the content of the message will adhere to the standard CloudEvent format. If it doesn't then this function will fail. - The result is a CEL map that corresponds to the JSON representation of the CloudEvent. To convert that data to a JSON string it can be chained with the toJsonString function." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Transformation", + "description": "Transformation defines the way to transform an incoming message." + }, + "MessagePayloadFormat": { + "properties": { + "protobuf": { + "$ref": "#/definitions/ProtobufFormat", + "additionalProperties": true, + "description": "Optional. Protobuf format." + }, + "avro": { + "$ref": "#/definitions/AvroFormat", + "additionalProperties": true, + "description": "Optional. Avro format." + }, + "json": { + "$ref": "#/definitions/JsonFormat", + "additionalProperties": true, + "description": "Optional. JSON format." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Message Payload Format", + "description": "Represents the format of message data." + }, + "AvroFormat": { + "properties": { + "schemaDefinition": { + "type": "string", + "description": "Optional. The entire schema definition is stored in this field." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Avro Format", + "description": "The format of an AVRO message payload." + }, + "JsonFormat": { + "additionalProperties": true, + "type": "object", + "title": "Json Format", + "description": "The format of a JSON message payload." + }, + "ProtobufFormat": { + "properties": { + "schemaDefinition": { + "type": "string", + "description": "Optional. The entire schema definition is stored in this field." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Protobuf Format", + "description": "The format of a Protobuf message payload." + }, + "RetryPolicy": { + "properties": { + "maxAttempts": { + "type": "integer", + "description": "Optional. The maximum number of delivery attempts for any message. The value must be between 1 and 100. The default value for this field is 5." + }, + "minRetryDelay": { + "pattern": "^([0-9]+\\.?[0-9]*|\\.[0-9]+)s$", + "type": "string", + "description": "Optional. The minimum amount of seconds to wait between retry attempts. The value must be between 1 and 600. The default value for this field is 5.", + "format": "regex" + }, + "maxRetryDelay": { + "pattern": "^([0-9]+\\.?[0-9]*|\\.[0-9]+)s$", + "type": "string", + "description": "Optional. The maximum amount of seconds to wait between retry attempts. The value must be between 1 and 600. The default value for this field is 60.", + "format": "regex" + } + }, + "additionalProperties": true, + "type": "object", + "title": "Retry Policy", + "description": "The retry policy configuration for the Pipeline. The pipeline exponentially backs off in case the destination is non responsive or returns a retryable error code. The default semantics are as follows: The backoff starts with a 5 second delay and doubles the delay after each failed attempt (10 seconds, 20 seconds, 40 seconds, etc.). The delay is capped at 60 seconds by default. Please note that if you set the min_retry_delay and max_retry_delay fields to the same value this will make the duration between retries constant." + } + } +} \ No newline at end of file diff --git a/jsonschema/google/events/cloud/eventarc/v1/TriggerEventData.json b/jsonschema/google/events/cloud/eventarc/v1/TriggerEventData.json index 361895d0..2d6a2a47 100644 --- a/jsonschema/google/events/cloud/eventarc/v1/TriggerEventData.json +++ b/jsonschema/google/events/cloud/eventarc/v1/TriggerEventData.json @@ -55,7 +55,7 @@ }, "cloudFunction": { "type": "string", - "description": "The Cloud Function resource name. Only Cloud Functions V2 is supported. Format: `projects/{project}/locations/{location}/functions/{function}` This is a read-only field. Creating Cloud Functions V2 triggers is only supported via the Cloud Functions product. An error will be returned if the user sets this value." + "description": "The Cloud Function resource name. Cloud Functions V1 and V2 are supported. Format: `projects/{project}/locations/{location}/functions/{function}` This is a read-only field. Creating Cloud Functions V1/V2 triggers is only supported via the Cloud Functions product. An error will be returned if the user sets this value." }, "gke": { "$ref": "#/definitions/GKE", @@ -65,6 +65,16 @@ "workflow": { "type": "string", "description": "The resource name of the Workflow whose Executions are triggered by the events. The Workflow resource should be deployed in the same project as the trigger. Format: `projects/{project}/locations/{location}/workflows/{workflow}`" + }, + "httpEndpoint": { + "$ref": "#/definitions/HttpEndpoint", + "additionalProperties": true, + "description": "An HTTP endpoint destination described by an URI." + }, + "networkConfig": { + "$ref": "#/definitions/NetworkConfig", + "additionalProperties": true, + "description": "Optional. Network config is used to configure how Eventarc resolves and connect to a destination. This should only be used with HttpEndpoint destination type." } }, "additionalProperties": true, @@ -76,7 +86,7 @@ "properties": { "attribute": { "type": "string", - "description": "Required. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. All triggers MUST provide a filter for the 'type' attribute." + "description": "Required. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. You can [retrieve a specific provider's supported event types](/eventarc/docs/list-providers#describe-provider). All triggers MUST provide a filter for the 'type' attribute." }, "value": { "type": "string", @@ -84,7 +94,7 @@ }, "operator": { "type": "string", - "description": "Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is `match-path-pattern`." + "description": "Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The allowed values are `path_pattern` and `match-path-pattern`. `path_pattern` is only allowed for GCFv1 triggers." } }, "additionalProperties": true, @@ -120,6 +130,30 @@ "title": "GKE", "description": "Represents a GKE destination." }, + "HttpEndpoint": { + "properties": { + "uri": { + "type": "string", + "description": "Required. The URI of the HTTP endpoint. The value must be a RFC2396 URI string. Examples: `http://10.10.10.8:80/route`, `http://svc.us-central1.p.local:8080/`. Only HTTP and HTTPS protocols are supported. The host can be either a static IP addressable from the VPC specified by the network config, or an internal DNS hostname of the service resolvable via Cloud DNS." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Http Endpoint", + "description": "Represents a HTTP endpoint destination." + }, + "NetworkConfig": { + "properties": { + "networkAttachment": { + "type": "string", + "description": "Required. Name of the NetworkAttachment that allows access to the customer's VPC. Format: `projects/{PROJECT_ID}/regions/{REGION}/networkAttachments/{NETWORK_ATTACHMENT_NAME}`" + } + }, + "additionalProperties": true, + "type": "object", + "title": "Network Config", + "description": "Network Configuration that can be inherited by other protos." + }, "Pubsub": { "properties": { "topic": { @@ -238,7 +272,7 @@ }, "serviceAccount": { "type": "string", - "description": "Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger. The principal who calls this API must have the `iam.serviceAccounts.actAs` permission in the service account. See https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common for more information. For Cloud Run destinations, this service account is used to generate identity tokens when invoking the service. See https://cloud.google.com/run/docs/triggering/pubsub-push#create-service-account for information on how to invoke authenticated Cloud Run services. To create Audit Log triggers, the service account should also have the `roles/eventarc.eventReceiver` IAM role." + "description": "Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger. The `iam.serviceAccounts.actAs` permission must be granted on the service account to allow a principal to impersonate the service account. For more information, see the [Roles and permissions](/eventarc/docs/all-roles-permissions) page specific to the trigger destination." }, "destination": { "$ref": "#/definitions/Destination", @@ -273,6 +307,15 @@ "type": "string", "description": "Optional. EventDataContentType specifies the type of payload in MIME format that is expected from the CloudEvent data field. This is set to `application/json` if the value is not defined." }, + "satisfiesPzs": { + "type": "boolean", + "description": "Output only. Whether or not this Trigger satisfies the requirements of physical zone separation" + }, + "retryPolicy": { + "$ref": "#/definitions/RetryPolicy", + "additionalProperties": true, + "description": "Optional. The retry policy to use in the Trigger. If unset, event delivery will be retried for up to 24 hours by default: https://cloud.google.com/eventarc/docs/retry-events" + }, "etag": { "type": "string", "description": "Output only. This checksum is computed by the server based on the value of other fields, and might be sent only on create requests to ensure that the client has an up-to-date value before proceeding." @@ -282,6 +325,18 @@ "type": "object", "title": "Trigger", "description": "A representation of the trigger resource." + }, + "RetryPolicy": { + "properties": { + "maxAttempts": { + "type": "integer", + "description": "Optional. The maximum number of delivery attempts for any message. The only valid value is 1." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Retry Policy", + "description": "The retry policy configuration for the Trigger. Can only be set with Cloud Run destinations." } } } \ No newline at end of file diff --git a/jsonschema/google/events/firebase/auth/v2/AuthEventData.json b/jsonschema/google/events/firebase/auth/v2/AuthEventData.json new file mode 100644 index 00000000..357d1bea --- /dev/null +++ b/jsonschema/google/events/firebase/auth/v2/AuthEventData.json @@ -0,0 +1,134 @@ +{ + "$id": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/auth/v2/AuthEventData.json", + "name": "AuthEventData", + "examples": [], + "package": "google.events.firebase.auth.v2", + "datatype": "google.events.firebase.auth.v2.AuthEventData", + "cloudeventTypes": [ + "google.firebase.auth.user.v2.created", + "google.firebase.auth.user.v2.updated", + "google.firebase.auth.user.v2.deleted" + ], + "product": "Firebase Authentication", + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/AuthEventData", + "definitions": { + "AuthEventData": { + "properties": { + "value": { + "$ref": "#/definitions/User", + "additionalProperties": true, + "description": "This is not populated for delete events." + }, + "oldValue": { + "$ref": "#/definitions/User", + "additionalProperties": true, + "description": "This is only populated for update and delete events." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Auth Event Data", + "description": "The data within all Firebase Auth events." + }, + "User": { + "properties": { + "uid": { + "type": "string", + "description": "The user identifier in the Firebase app." + }, + "email": { + "type": "string", + "description": "The user's primary email, if set." + }, + "emailVerified": { + "type": "boolean", + "description": "Whether or not the user's primary email is verified." + }, + "displayName": { + "type": "string", + "description": "The user's display name." + }, + "photoURL": { + "type": "string", + "description": "The user's photo URL." + }, + "disabled": { + "type": "boolean", + "description": "Whether the user is disabled." + }, + "metadata": { + "$ref": "#/definitions/UserMetadata", + "additionalProperties": true, + "description": "Additional metadata about the user." + }, + "providerData": { + "items": { + "$ref": "#/definitions/UserInfo" + }, + "type": "array", + "description": "User's info at the providers" + }, + "phoneNumber": { + "type": "string", + "description": "The user's phone number." + }, + "customClaims": { + "additionalProperties": true, + "type": "object", + "description": "User's custom claims, typically used to define user roles and propagated to an authenticated user's ID token." + } + }, + "additionalProperties": true, + "type": "object", + "title": "User", + "description": "The user for this Firebase Auth event." + }, + "UserInfo": { + "properties": { + "uid": { + "type": "string", + "description": "The user identifier for the linked provider." + }, + "email": { + "type": "string", + "description": "The email for the linked provider." + }, + "displayName": { + "type": "string", + "description": "The display name for the linked provider." + }, + "photoURL": { + "type": "string", + "description": "The photo URL for the linked provider." + }, + "providerId": { + "type": "string", + "description": "The linked provider ID (e.g. \"google.com\" for the Google provider)." + } + }, + "additionalProperties": true, + "type": "object", + "title": "User Info", + "description": "User's info at the identity provider" + }, + "UserMetadata": { + "properties": { + "createTime": { + "type": "string", + "description": "The date the user was created.", + "format": "date-time" + }, + "lastSignInTime": { + "type": "string", + "description": "The date the user last signed in.", + "format": "date-time" + } + }, + "additionalProperties": true, + "type": "object", + "title": "User Metadata", + "description": "Additional metadata about the user." + } + } +} \ No newline at end of file diff --git a/jsonschema/google/events/firebase/dataconnect/v1/ConnectorEventData.json b/jsonschema/google/events/firebase/dataconnect/v1/ConnectorEventData.json new file mode 100644 index 00000000..38856ae4 --- /dev/null +++ b/jsonschema/google/events/firebase/dataconnect/v1/ConnectorEventData.json @@ -0,0 +1,118 @@ +{ + "$id": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/dataconnect/v1/ConnectorEventData.json", + "name": "ConnectorEventData", + "examples": [], + "package": "google.events.firebase.dataconnect.v1", + "datatype": "google.events.firebase.dataconnect.v1.ConnectorEventData", + "cloudeventTypes": [ + "google.firebase.dataconnect.connector.v1.created", + "google.firebase.dataconnect.connector.v1.updated", + "google.firebase.dataconnect.connector.v1.deleted" + ], + "product": "Firebase Data Connect", + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ConnectorEventData", + "definitions": { + "ConnectorEventData": { + "properties": { + "payload": { + "$ref": "#/definitions/Connector", + "additionalProperties": true, + "description": "Optional. The Connector event payload. Unset for deletion events." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Connector Event Data", + "description": "The data within all Connector events." + }, + "Connector": { + "properties": { + "name": { + "type": "string", + "description": "Identifier. The relative resource name of the connector, in the format: ``` projects/{project}/locations/{location}/services/{service}/connectors/{connector} ```" + }, + "createTime": { + "type": "string", + "description": "Output only. [Output only] Create time stamp.", + "format": "date-time" + }, + "updateTime": { + "type": "string", + "description": "Output only. [Output only] Update time stamp.", + "format": "date-time" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Optional. Labels as key value pairs." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Optional. Stores small amounts of arbitrary data." + }, + "source": { + "$ref": "#/definitions/Source", + "additionalProperties": true, + "description": "Required. The source files that comprise the connector." + }, + "uid": { + "type": "string", + "description": "Output only. System-assigned, unique identifier." + }, + "reconciling": { + "type": "boolean", + "description": "Output only. A field that if true, indicates that the system is working to compile and deploy the connector." + }, + "displayName": { + "type": "string", + "description": "Optional. Mutable human-readable name. 63 character limit." + }, + "etag": { + "type": "string", + "description": "Output only. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. [AIP-154](https://google.aip.dev/154)" + } + }, + "additionalProperties": true, + "type": "object", + "title": "Connector", + "description": "Connector consists of a set of operations, i.e. queries and mutations." + }, + "File": { + "properties": { + "path": { + "type": "string", + "description": "Required. The file name including folder path, if applicable. The path should be relative to a local workspace (e.g. dataconnect/(schema|connector)/*.gql) and not an absolute path (e.g. /absolute/path/(schema|connector)/*.gql)." + }, + "content": { + "type": "string", + "description": "Required. The file's textual content." + } + }, + "additionalProperties": true, + "type": "object", + "title": "File", + "description": "Individual files." + }, + "Source": { + "properties": { + "files": { + "items": { + "$ref": "#/definitions/File" + }, + "type": "array", + "description": "Required. The files that comprise the source set." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Source", + "description": "Used to represent a set of source files." + } + } +} \ No newline at end of file diff --git a/jsonschema/google/events/firebase/dataconnect/v1/MutationEventData.json b/jsonschema/google/events/firebase/dataconnect/v1/MutationEventData.json new file mode 100644 index 00000000..ac6fd24d --- /dev/null +++ b/jsonschema/google/events/firebase/dataconnect/v1/MutationEventData.json @@ -0,0 +1,187 @@ +{ + "$id": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/dataconnect/v1/MutationEventData.json", + "name": "MutationEventData", + "examples": [], + "package": "google.events.firebase.dataconnect.v1", + "datatype": "google.events.firebase.dataconnect.v1.MutationEventData", + "cloudeventTypes": [ + "google.firebase.dataconnect.connector.v1.mutationExecuted" + ], + "product": "Firebase Data Connect", + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/MutationEventData", + "definitions": { + "MutationEventData": { + "properties": { + "payload": { + "$ref": "#/definitions/Mutation", + "additionalProperties": true + } + }, + "additionalProperties": true, + "type": "object", + "title": "Mutation Event Data", + "description": "The data within all Mutation events." + }, + "GraphqlError": { + "properties": { + "message": { + "type": "string", + "description": "The detailed error message. The message should help developer understand the underlying problem without leaking internal data." + }, + "locations": { + "items": { + "$ref": "#/definitions/SourceLocation" + }, + "type": "array", + "description": "The source locations where the error occurred. Locations should help developers and toolings identify the source of error quickly. Included in admin endpoints (`ExecuteGraphql`, `ExecuteGraphqlRead`, `IntrospectGraphql`, `ImpersonateQuery` and `ImpersonateMutation`, `UpdateSchema` and `UpdateConnector`) to reference the provided GraphQL GQL document. Omitted in `ExecuteMutation` and `ExecuteQuery` since the caller shouldn't have access access the underlying GQL source." + }, + "path": { + "properties": { + "values": { + "items": { + "oneOf": [ + { + "type": "array" + }, + { + "type": "boolean" + }, + { + "type": "number" + }, + { + "type": "object" + }, + { + "type": "string" + } + ], + "title": "Value", + "description": "`Value` represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values. A producer of value is expected to set one of that variants, absence of any variant indicates an error. The JSON representation for `Value` is JSON value." + }, + "type": "array", + "description": "Repeated field of dynamically typed values." + } + }, + "additionalProperties": true, + "type": "object", + "description": "The result field which could not be populated due to error. Clients can use path to identify whether a null result is intentional or caused by a runtime error. It should be a list of string or index from the root of GraphQL query document." + }, + "extensions": { + "$ref": "#/definitions/GraphqlErrorExtensions", + "additionalProperties": true, + "description": "Additional error information." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Graphql Error", + "description": "GraphqlError contains the error information of a GraphQL query or mutation." + }, + "GraphqlErrorExtensions": { + "properties": { + "file": { + "type": "string", + "description": "The source file name where the error occurred. Included only for `UpdateSchema` and `UpdateConnector`, it corresponds to `File.path` of the provided `Source`." + }, + "code": { + "enum": [ + "OK", + 0, + "CANCELLED", + 1, + "UNKNOWN", + 2, + "INVALID_ARGUMENT", + 3, + "DEADLINE_EXCEEDED", + 4, + "NOT_FOUND", + 5, + "ALREADY_EXISTS", + 6, + "PERMISSION_DENIED", + 7, + "UNAUTHENTICATED", + 16, + "RESOURCE_EXHAUSTED", + 8, + "FAILED_PRECONDITION", + 9, + "ABORTED", + 10, + "OUT_OF_RANGE", + 11, + "UNIMPLEMENTED", + 12, + "INTERNAL", + 13, + "UNAVAILABLE", + 14, + "DATA_LOSS", + 15 + ], + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + } + ], + "title": "Code", + "description": "The canonical error codes for gRPC APIs. Sometimes multiple error codes may apply. Services should return the most specific error code that applies. For example, prefer `OUT_OF_RANGE` over `FAILED_PRECONDITION` if both codes apply. Similarly prefer `NOT_FOUND` or `ALREADY_EXISTS` over `FAILED_PRECONDITION`." + }, + "debugDetails": { + "type": "string", + "description": "More detailed error message to assist debugging. It contains application business logic that are inappropriate to leak publicly. In the emulator, Data Connect API always includes it to assist local development and debugging. In the backend, ConnectorService always hides it. GraphqlService without impersonation always include it. GraphqlService with impersonation includes it only if explicitly opted-in with `include_debug_details` in `GraphqlRequestExtensions`." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Graphql Error Extensions", + "description": "GraphqlErrorExtensions contains additional information of `GraphqlError`." + }, + "Mutation": { + "properties": { + "data": { + "additionalProperties": true, + "type": "object", + "description": "The result of the execution of the requested operation. If an error was raised before execution begins, the data entry should not be present in the result. (a request error: https://spec.graphql.org/draft/#sec-Errors.Request-Errors) If an error was raised during the execution that prevented a valid response, the data entry in the response should be null. (a field error: https://spec.graphql.org/draft/#sec-Errors.Error-Result-Format)" + }, + "variables": { + "additionalProperties": true, + "type": "object", + "description": "Values for GraphQL variables provided in this request." + }, + "errors": { + "items": { + "$ref": "#/definitions/GraphqlError" + }, + "type": "array", + "description": "Errors of this response. If the data entry in the response is not present, the errors entry must be present. It conforms to https://spec.graphql.org/draft/#sec-Errors." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Mutation" + }, + "SourceLocation": { + "properties": { + "line": { + "type": "integer", + "description": "Line number starting at 1." + }, + "column": { + "type": "integer", + "description": "Column number starting at 1." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Source Location", + "description": "SourceLocation references a location in a GraphQL source." + } + } +} \ No newline at end of file diff --git a/jsonschema/google/events/firebase/dataconnect/v1/SchemaEventData.json b/jsonschema/google/events/firebase/dataconnect/v1/SchemaEventData.json new file mode 100644 index 00000000..e55013ce --- /dev/null +++ b/jsonschema/google/events/firebase/dataconnect/v1/SchemaEventData.json @@ -0,0 +1,211 @@ +{ + "$id": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/dataconnect/v1/SchemaEventData.json", + "name": "SchemaEventData", + "examples": [], + "package": "google.events.firebase.dataconnect.v1", + "datatype": "google.events.firebase.dataconnect.v1.SchemaEventData", + "cloudeventTypes": [ + "google.firebase.dataconnect.schema.v1.created", + "google.firebase.dataconnect.schema.v1.updated", + "google.firebase.dataconnect.schema.v1.deleted" + ], + "product": "Firebase Data Connect", + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/SchemaEventData", + "definitions": { + "SchemaEventData": { + "properties": { + "payload": { + "$ref": "#/definitions/Schema", + "additionalProperties": true, + "description": "Optional. The Schema event payload. Unset for deletion events." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Schema Event Data", + "description": "The data within all Schema events." + }, + "CloudSqlInstance": { + "properties": { + "instance": { + "type": "string", + "description": "Required. Name of the CloudSQL instance, in the format: ``` projects/{project}/locations/{location}/instances/{instance} ```" + } + }, + "additionalProperties": true, + "type": "object", + "title": "Cloud Sql Instance", + "description": "Settings for CloudSQL instance configuration." + }, + "Datasource": { + "properties": { + "postgresql": { + "$ref": "#/definitions/PostgreSql", + "additionalProperties": true, + "description": "PostgreSQL configurations." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Datasource", + "description": "A data source that backs Firebase Data Connect services." + }, + "File": { + "properties": { + "path": { + "type": "string", + "description": "Required. The file name including folder path, if applicable. The path should be relative to a local workspace (e.g. dataconnect/(schema|connector)/*.gql) and not an absolute path (e.g. /absolute/path/(schema|connector)/*.gql)." + }, + "content": { + "type": "string", + "description": "Required. The file's textual content." + } + }, + "additionalProperties": true, + "type": "object", + "title": "File", + "description": "Individual files." + }, + "PostgreSql": { + "properties": { + "schemaValidation": { + "enum": [ + "SQL_SCHEMA_VALIDATION_UNSPECIFIED", + 0, + "NONE", + 1, + "STRICT", + 2, + "COMPATIBLE", + 3 + ], + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + } + ], + "title": "Sql Schema Validation", + "description": "Configure how much SQL Schema to perform for the given schema." + }, + "schemaMigration": { + "enum": [ + "SQL_SCHEMA_MIGRATION_UNSPECIFIED", + 0, + "MIGRATE_COMPATIBLE", + 1 + ], + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + } + ], + "title": "Sql Schema Migration", + "description": "Configure how to perform SQL Schema migration before deploying the Schema." + }, + "unlinked": { + "type": "boolean", + "description": "No Postgres data source is linked. If set, don't allow `database` and `schema_validation` to be configured." + }, + "cloudSql": { + "$ref": "#/definitions/CloudSqlInstance", + "additionalProperties": true, + "description": "Cloud SQL configurations." + }, + "database": { + "type": "string", + "description": "Required. Name of the PostgreSQL database." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Postgre Sql", + "description": "Settings for PostgreSQL data source." + }, + "Schema": { + "properties": { + "name": { + "type": "string", + "description": "Identifier. The relative resource name of the schema, in the format: ``` projects/{project}/locations/{location}/services/{service}/schemas/{schema} ``` Right now, the only supported schema is \"main\"." + }, + "createTime": { + "type": "string", + "description": "Output only. [Output only] Create time stamp.", + "format": "date-time" + }, + "updateTime": { + "type": "string", + "description": "Output only. [Output only] Update time stamp.", + "format": "date-time" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Optional. Labels as key value pairs." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Optional. Stores small amounts of arbitrary data." + }, + "datasources": { + "items": { + "$ref": "#/definitions/Datasource" + }, + "type": "array", + "description": "Required. The data sources linked in the schema." + }, + "source": { + "$ref": "#/definitions/Source", + "additionalProperties": true, + "description": "Required. The source files that comprise the application schema." + }, + "uid": { + "type": "string", + "description": "Output only. System-assigned, unique identifier." + }, + "reconciling": { + "type": "boolean", + "description": "Output only. A field that if true, indicates that the system is working to compile and deploy the schema." + }, + "displayName": { + "type": "string", + "description": "Optional. Mutable human-readable name. 63 character limit." + }, + "etag": { + "type": "string", + "description": "Output only. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. [AIP-154](https://google.aip.dev/154)" + } + }, + "additionalProperties": true, + "type": "object", + "title": "Schema", + "description": "The application schema of a Firebase Data Connect service." + }, + "Source": { + "properties": { + "files": { + "items": { + "$ref": "#/definitions/File" + }, + "type": "array", + "description": "Required. The files that comprise the source set." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Source", + "description": "Used to represent a set of source files." + } + } +} \ No newline at end of file diff --git a/jsonschema/google/events/firebase/dataconnect/v1/ServiceEventData.json b/jsonschema/google/events/firebase/dataconnect/v1/ServiceEventData.json new file mode 100644 index 00000000..dde84a9c --- /dev/null +++ b/jsonschema/google/events/firebase/dataconnect/v1/ServiceEventData.json @@ -0,0 +1,82 @@ +{ + "$id": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/dataconnect/v1/ServiceEventData.json", + "name": "ServiceEventData", + "examples": [], + "package": "google.events.firebase.dataconnect.v1", + "datatype": "google.events.firebase.dataconnect.v1.ServiceEventData", + "cloudeventTypes": [ + "google.firebase.dataconnect.service.v1.created", + "google.firebase.dataconnect.service.v1.updated", + "google.firebase.dataconnect.service.v1.deleted" + ], + "product": "Firebase Data Connect", + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ServiceEventData", + "definitions": { + "ServiceEventData": { + "properties": { + "payload": { + "$ref": "#/definitions/Service", + "additionalProperties": true, + "description": "Optional. The Service event payload. Unset for deletion events." + } + }, + "additionalProperties": true, + "type": "object", + "title": "Service Event Data", + "description": "The data within all Service events." + }, + "Service": { + "properties": { + "name": { + "type": "string", + "description": "Identifier. The relative resource name of the Firebase Data Connect service, in the format: ``` projects/{project}/locations/{location}/services/{service} ``` Note that the service ID is specific to Firebase Data Connect and does not correspond to any of the instance IDs of the underlying data source connections." + }, + "createTime": { + "type": "string", + "description": "Output only. [Output only] Create time stamp.", + "format": "date-time" + }, + "updateTime": { + "type": "string", + "description": "Output only. [Output only] Update time stamp.", + "format": "date-time" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Optional. Labels as key value pairs." + }, + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Optional. Stores small amounts of arbitrary data." + }, + "uid": { + "type": "string", + "description": "Output only. System-assigned, unique identifier." + }, + "reconciling": { + "type": "boolean", + "description": "Output only. A field that if true, indicates that the system is working update the service." + }, + "displayName": { + "type": "string", + "description": "Optional. Mutable human-readable name. 63 character limit." + }, + "etag": { + "type": "string", + "description": "Output only. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. [AIP-154](https://google.aip.dev/154)" + } + }, + "additionalProperties": true, + "type": "object", + "title": "Service", + "description": "A Firebase Data Connect service." + } + } +} \ No newline at end of file