PubSubSnapshot
| Property | Value |
|---|---|
| Google Cloud Service Name | Cloud Pub/Sub |
| Google Cloud Service Documentation | /pubsub/docs/ |
| Google Cloud REST Resource Name | projects.snapshots |
| Google Cloud REST Resource Documentation | /pubsub/docs/reference/rest/v1/projects.snapshots |
| Config Connector Resource Short Names | gcppubsubsnapshot gcppubsubsnapshots pubsubsnapshot |
| Config Connector Service Name | pubsub.googleapis.com |
| Config Connector Resource Fully Qualified Name | pubsubsnapshots.pubsub.cnrm.cloud.google.com |
| Can Be Referenced by IAMPolicy/IAMPolicyMember | No |
| Config Connector Default Average Reconcile Interval In Seconds | 600 |
Custom Resource Definition Properties
Spec
Schema
labels:
string: string
projectRef:
external: string
kind: string
name: string
namespace: string
pubSubSubscriptionRef:
external: string
name: string
namespace: string
resourceID: string
topicRef:
external: string
name: string
namespace: string
| Fields | |
|---|---|
|
Optional |
Optional. For information about creating and managing labels, see https://cloud.google.com/pubsub/docs/labels. |
|
Required |
The Project that this resource belongs to. |
|
Optional |
The `projectID` field of a project, when not managed by Config Connector. |
|
Optional |
The kind of the Project resource; optional but must be `Project` if provided. |
|
Optional |
The `name` field of a `Project` resource. |
|
Optional |
The `namespace` field of a `Project` resource. |
|
Required |
The subscription whose backlog the snapshot retains. Specifically, the created snapshot is guaranteed to retain: (a) The existing backlog on the subscription. More precisely, this is defined as the messages in the subscription's backlog that are unacknowledged upon the successful completion of the snapshots.create request; as well as: (b) Any messages published to the subscription's topic following the successful completion of the snapshots.create request. Format is projects/{project}/subscriptions/{sub}. |
|
Optional |
A reference to an externally managed PubSubSubscription resource. Should be in the format "projects/{{projectID}}/subscriptions/{{subscriptionID}}". |
|
Optional |
The name of a PubSubSubscription resource. |
|
Optional |
The namespace of a PubSubSubscription resource. |
|
Optional |
The PubSubSnapshot name. If not given, the metadata.name will be used. |
|
Optional |
Optional. The name of the topic from which this snapshot is retaining messages. |
|
Optional |
A reference to an externally managed PubSubTopic resource. Should be in the format "projects/{{projectID}}/topics/{{topicID}}". |
|
Optional |
The name of a PubSubTopic resource. |
|
Optional |
The namespace of a PubSubTopic resource. |
Status
Schema
conditions:
- lastTransitionTime: string
message: string
reason: string
status: string
type: string
externalRef: string
observedGeneration: integer
observedState:
expireTime: string
| Fields | |
|---|---|
conditions |
Conditions represent the latest available observations of the object's current state. |
conditions[] |
|
conditions[].lastTransitionTime |
Last time the condition transitioned from one status to another. |
conditions[].message |
Human-readable message indicating details about last transition. |
conditions[].reason |
Unique, one-word, CamelCase reason for the condition's last transition. |
conditions[].status |
Status is the status of the condition. Can be True, False, Unknown. |
conditions[].type |
Type is the type of the condition. |
externalRef |
A unique specifier for the PubSubSnapshot resource in Google Cloud. |
observedGeneration |
ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource. |
observedState |
ObservedState is the state of the resource as most recently observed in Google Cloud. |
observedState.expireTime |
Optional. The snapshot is guaranteed to exist up until this time. A newly-created snapshot expires no later than 7 days from the time of its creation. Its exact lifetime is determined at creation by the existing backlog in the source subscription. Specifically, the lifetime of the snapshot is `7 days - (age of oldest unacked message in the subscription)`. For example, consider a subscription whose oldest unacked message is 3 days old. If a snapshot is created from this subscription, the snapshot -- which will always capture this 3-day-old backlog as long as the snapshot exists -- will expire in 4 days. The service will refuse to create a snapshot that would expire in less than 1 hour after creation. |