Skip to content

Commit

Permalink
feat(pubsublite): update the api
Browse files Browse the repository at this point in the history
#### pubsublite:v1

The following keys were added:
- schemas.ExportConfig (Total Keys: 7)
- schemas.PubSubConfig (Total Keys: 3)
- schemas.Subscription.properties.exportConfig.$ref (Total Keys: 1)
  • Loading branch information
yoshi-automation committed Dec 13, 2022
1 parent 5cd2d57 commit ddc2cac
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 1 deletion.
48 changes: 48 additions & 0 deletions docs/dyn/pubsublite_v1.admin.projects.locations.subscriptions.html
Expand Up @@ -117,6 +117,14 @@ <h3>Method Details</h3>
&quot;deliveryConfig&quot;: { # The settings for a subscription&#x27;s message delivery. # The settings for this subscription&#x27;s message delivery.
&quot;deliveryRequirement&quot;: &quot;A String&quot;, # The DeliveryRequirement for this subscription.
},
&quot;exportConfig&quot;: { # Configuration for a Pub/Sub Lite subscription that writes messages to a destination. User subscriber clients must not connect to this subscription. # If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.
&quot;currentState&quot;: &quot;A String&quot;, # Output only. The current state of the export, which may be different to the desired state due to errors. This field is output only.
&quot;deadLetterTopic&quot;: &quot;A String&quot;, # Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed.
&quot;desiredState&quot;: &quot;A String&quot;, # The desired state of this export. Setting this to values other than `ACTIVE` and `PAUSED` will result in an error.
&quot;pubsubConfig&quot;: { # Configuration for exporting to a Pub/Sub topic. # Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.
&quot;topic&quot;: &quot;A String&quot;, # The name of the Pub/Sub topic. Structured like: projects/{project_number}/topics/{topic_id}. The topic may be changed.
},
},
&quot;name&quot;: &quot;A String&quot;, # The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
&quot;topic&quot;: &quot;A String&quot;, # The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}
}
Expand All @@ -135,6 +143,14 @@ <h3>Method Details</h3>
&quot;deliveryConfig&quot;: { # The settings for a subscription&#x27;s message delivery. # The settings for this subscription&#x27;s message delivery.
&quot;deliveryRequirement&quot;: &quot;A String&quot;, # The DeliveryRequirement for this subscription.
},
&quot;exportConfig&quot;: { # Configuration for a Pub/Sub Lite subscription that writes messages to a destination. User subscriber clients must not connect to this subscription. # If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.
&quot;currentState&quot;: &quot;A String&quot;, # Output only. The current state of the export, which may be different to the desired state due to errors. This field is output only.
&quot;deadLetterTopic&quot;: &quot;A String&quot;, # Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed.
&quot;desiredState&quot;: &quot;A String&quot;, # The desired state of this export. Setting this to values other than `ACTIVE` and `PAUSED` will result in an error.
&quot;pubsubConfig&quot;: { # Configuration for exporting to a Pub/Sub topic. # Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.
&quot;topic&quot;: &quot;A String&quot;, # The name of the Pub/Sub topic. Structured like: projects/{project_number}/topics/{topic_id}. The topic may be changed.
},
},
&quot;name&quot;: &quot;A String&quot;, # The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
&quot;topic&quot;: &quot;A String&quot;, # The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}
}</pre>
Expand Down Expand Up @@ -176,6 +192,14 @@ <h3>Method Details</h3>
&quot;deliveryConfig&quot;: { # The settings for a subscription&#x27;s message delivery. # The settings for this subscription&#x27;s message delivery.
&quot;deliveryRequirement&quot;: &quot;A String&quot;, # The DeliveryRequirement for this subscription.
},
&quot;exportConfig&quot;: { # Configuration for a Pub/Sub Lite subscription that writes messages to a destination. User subscriber clients must not connect to this subscription. # If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.
&quot;currentState&quot;: &quot;A String&quot;, # Output only. The current state of the export, which may be different to the desired state due to errors. This field is output only.
&quot;deadLetterTopic&quot;: &quot;A String&quot;, # Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed.
&quot;desiredState&quot;: &quot;A String&quot;, # The desired state of this export. Setting this to values other than `ACTIVE` and `PAUSED` will result in an error.
&quot;pubsubConfig&quot;: { # Configuration for exporting to a Pub/Sub topic. # Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.
&quot;topic&quot;: &quot;A String&quot;, # The name of the Pub/Sub topic. Structured like: projects/{project_number}/topics/{topic_id}. The topic may be changed.
},
},
&quot;name&quot;: &quot;A String&quot;, # The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
&quot;topic&quot;: &quot;A String&quot;, # The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}
}</pre>
Expand Down Expand Up @@ -204,6 +228,14 @@ <h3>Method Details</h3>
&quot;deliveryConfig&quot;: { # The settings for a subscription&#x27;s message delivery. # The settings for this subscription&#x27;s message delivery.
&quot;deliveryRequirement&quot;: &quot;A String&quot;, # The DeliveryRequirement for this subscription.
},
&quot;exportConfig&quot;: { # Configuration for a Pub/Sub Lite subscription that writes messages to a destination. User subscriber clients must not connect to this subscription. # If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.
&quot;currentState&quot;: &quot;A String&quot;, # Output only. The current state of the export, which may be different to the desired state due to errors. This field is output only.
&quot;deadLetterTopic&quot;: &quot;A String&quot;, # Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed.
&quot;desiredState&quot;: &quot;A String&quot;, # The desired state of this export. Setting this to values other than `ACTIVE` and `PAUSED` will result in an error.
&quot;pubsubConfig&quot;: { # Configuration for exporting to a Pub/Sub topic. # Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.
&quot;topic&quot;: &quot;A String&quot;, # The name of the Pub/Sub topic. Structured like: projects/{project_number}/topics/{topic_id}. The topic may be changed.
},
},
&quot;name&quot;: &quot;A String&quot;, # The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
&quot;topic&quot;: &quot;A String&quot;, # The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}
},
Expand Down Expand Up @@ -238,6 +270,14 @@ <h3>Method Details</h3>
&quot;deliveryConfig&quot;: { # The settings for a subscription&#x27;s message delivery. # The settings for this subscription&#x27;s message delivery.
&quot;deliveryRequirement&quot;: &quot;A String&quot;, # The DeliveryRequirement for this subscription.
},
&quot;exportConfig&quot;: { # Configuration for a Pub/Sub Lite subscription that writes messages to a destination. User subscriber clients must not connect to this subscription. # If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.
&quot;currentState&quot;: &quot;A String&quot;, # Output only. The current state of the export, which may be different to the desired state due to errors. This field is output only.
&quot;deadLetterTopic&quot;: &quot;A String&quot;, # Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed.
&quot;desiredState&quot;: &quot;A String&quot;, # The desired state of this export. Setting this to values other than `ACTIVE` and `PAUSED` will result in an error.
&quot;pubsubConfig&quot;: { # Configuration for exporting to a Pub/Sub topic. # Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.
&quot;topic&quot;: &quot;A String&quot;, # The name of the Pub/Sub topic. Structured like: projects/{project_number}/topics/{topic_id}. The topic may be changed.
},
},
&quot;name&quot;: &quot;A String&quot;, # The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
&quot;topic&quot;: &quot;A String&quot;, # The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}
}
Expand All @@ -255,6 +295,14 @@ <h3>Method Details</h3>
&quot;deliveryConfig&quot;: { # The settings for a subscription&#x27;s message delivery. # The settings for this subscription&#x27;s message delivery.
&quot;deliveryRequirement&quot;: &quot;A String&quot;, # The DeliveryRequirement for this subscription.
},
&quot;exportConfig&quot;: { # Configuration for a Pub/Sub Lite subscription that writes messages to a destination. User subscriber clients must not connect to this subscription. # If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.
&quot;currentState&quot;: &quot;A String&quot;, # Output only. The current state of the export, which may be different to the desired state due to errors. This field is output only.
&quot;deadLetterTopic&quot;: &quot;A String&quot;, # Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed.
&quot;desiredState&quot;: &quot;A String&quot;, # The desired state of this export. Setting this to values other than `ACTIVE` and `PAUSED` will result in an error.
&quot;pubsubConfig&quot;: { # Configuration for exporting to a Pub/Sub topic. # Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.
&quot;topic&quot;: &quot;A String&quot;, # The name of the Pub/Sub topic. Structured like: projects/{project_number}/topics/{topic_id}. The topic may be changed.
},
},
&quot;name&quot;: &quot;A String&quot;, # The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
&quot;topic&quot;: &quot;A String&quot;, # The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}
}</pre>
Expand Down
69 changes: 68 additions & 1 deletion googleapiclient/discovery_cache/documents/pubsublite.v1.json
Expand Up @@ -1040,7 +1040,7 @@
}
}
},
"revision": "20221115",
"revision": "20221206",
"rootUrl": "https://pubsublite.googleapis.com/",
"schemas": {
"CancelOperationRequest": {
Expand Down Expand Up @@ -1224,6 +1224,58 @@
"properties": {},
"type": "object"
},
"ExportConfig": {
"description": "Configuration for a Pub/Sub Lite subscription that writes messages to a destination. User subscriber clients must not connect to this subscription.",
"id": "ExportConfig",
"properties": {
"currentState": {
"description": "Output only. The current state of the export, which may be different to the desired state due to errors. This field is output only.",
"enum": [
"STATE_UNSPECIFIED",
"ACTIVE",
"PAUSED",
"PERMISSION_DENIED",
"NOT_FOUND"
],
"enumDescriptions": [
"Default value. This value is unused.",
"Messages are being exported.",
"Exporting messages is suspended.",
"Messages cannot be exported due to permission denied errors. Output only.",
"Messages cannot be exported due to missing resources. Output only."
],
"readOnly": true,
"type": "string"
},
"deadLetterTopic": {
"description": "Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed.",
"type": "string"
},
"desiredState": {
"description": "The desired state of this export. Setting this to values other than `ACTIVE` and `PAUSED` will result in an error.",
"enum": [
"STATE_UNSPECIFIED",
"ACTIVE",
"PAUSED",
"PERMISSION_DENIED",
"NOT_FOUND"
],
"enumDescriptions": [
"Default value. This value is unused.",
"Messages are being exported.",
"Exporting messages is suspended.",
"Messages cannot be exported due to permission denied errors. Output only.",
"Messages cannot be exported due to missing resources. Output only."
],
"type": "string"
},
"pubsubConfig": {
"$ref": "PubSubConfig",
"description": "Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic."
}
},
"type": "object"
},
"ListOperationsResponse": {
"description": "The response message for Operations.ListOperations.",
"id": "ListOperationsResponse",
Expand Down Expand Up @@ -1447,6 +1499,17 @@
},
"type": "object"
},
"PubSubConfig": {
"description": "Configuration for exporting to a Pub/Sub topic.",
"id": "PubSubConfig",
"properties": {
"topic": {
"description": "The name of the Pub/Sub topic. Structured like: projects/{project_number}/topics/{topic_id}. The topic may be changed.",
"type": "string"
}
},
"type": "object"
},
"Reservation": {
"description": "Metadata about a reservation resource.",
"id": "Reservation",
Expand Down Expand Up @@ -1557,6 +1620,10 @@
"$ref": "DeliveryConfig",
"description": "The settings for this subscription's message delivery."
},
"exportConfig": {
"$ref": "ExportConfig",
"description": "If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination."
},
"name": {
"description": "The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}",
"type": "string"
Expand Down

0 comments on commit ddc2cac

Please sign in to comment.