blob: 248a3b563cd3b68b133302755f91a5952fe6345b [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="run_v1alpha1.html">Cloud Run API</a> . <a href="run_v1alpha1.namespaces.html">namespaces</a> . <a href="run_v1alpha1.namespaces.cloudpubsubsources.html">cloudpubsubsources</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Creates a new cloudpubsubsource.</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(name, apiVersion=None, propagationPolicy=None, kind=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Rpc to delete a cloudpubsubsource.</p>
83<p class="toc_element">
84 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Rpc to get information about a cloudpubsubsource.</p>
86<p class="toc_element">
87 <code><a href="#list">list(parent, labelSelector=None, fieldSelector=None, includeUninitialized=None, resourceVersion=None, continue=None, limit=None, watch=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Rpc to list cloudpubsubsources.</p>
89<h3>Method Details</h3>
90<div class="method">
91 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
92 <pre>Creates a new cloudpubsubsource.
93
94Args:
95 parent: string, The project ID or project number in which this cloudpubsubsource should
96be created. (required)
97 body: object, The request body.
98 The object takes the form of:
99
100{
101 &quot;status&quot;: { # CloudPubSubSourceStatus represents the current state of a CloudPubSubSource. # Status represents the current state of the CloudPubSubSource. This data may
102 # be out of date. +optional
103 &quot;conditions&quot;: [ # Array of observed CloudPubSubSourceConditions, indicating the current state
104 # of the CloudPubSubSource.
105 { # Condition defines a generic condition for a Resource
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700106 &quot;message&quot;: &quot;A String&quot;, # Optional. Human readable message indicating details about the current status.
107 &quot;lastTransitionTime&quot;: &quot;A String&quot;, # Optional. Last time the condition transitioned from one status to another.
108 &quot;status&quot;: &quot;A String&quot;, # Status of the condition, one of True, False, Unknown.
Bu Sun Kim65020912020-05-20 12:08:20 -0700109 &quot;severity&quot;: &quot;A String&quot;, # Optional. How to interpret failures of this condition, one of Error, Warning, Info
110 &quot;reason&quot;: &quot;A String&quot;, # Optional. One-word CamelCase reason for the condition&#x27;s last transition.
111 &quot;type&quot;: &quot;A String&quot;, # type is used to communicate the status of the reconciliation process.
112 # See also:
113 # https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting
114 # Types common to all resources include:
115 # * &quot;Ready&quot;: True when the Resource is ready.
Bu Sun Kim65020912020-05-20 12:08:20 -0700116 },
117 ],
118 &quot;observedGeneration&quot;: 42, # ObservedGeneration is the &#x27;Generation&#x27; of the CloudPubSubSource that
119 # was last processed by the controller.
120 &quot;sinkUri&quot;: &quot;A String&quot;, # SinkURI is the current active sink URI that has been configured for the
121 # Source.
122 # +optional
123 },
124 &quot;apiVersion&quot;: &quot;A String&quot;, # The API version for this call such as &quot;events.cloud.google.com/v1alpha1&quot;.
125 &quot;spec&quot;: { # The desired state of the CloudPubSubSource. # Spec defines the desired state of the CloudPubSubSource.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700126 &quot;pubsubSecret&quot;: { # Cloud Run fully managed: not supported # CloudPubSubSourceSecret is the credential to use to create
127 # Topic / PullSubscription resources. If omitted, uses Secret.
128 #
129 # Cloud Run on GKE: supported
130 #
131 # SecretKeySelector selects a key of a Secret.
132 &quot;optional&quot;: True or False, # Cloud Run fully managed: not supported
133 #
134 # Cloud Run on GKE: supported
135 #
136 # Specify whether the Secret or its key must be defined
137 # +optional
138 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
139 #
140 # Cloud Run on GKE: supported
141 #
142 # The key of the secret to select from. Must be a valid secret key.
143 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
144 #
145 # Cloud Run on GKE: supported
146 #
147 # The name of the secret in the pod&#x27;s namespace to select from.
148 &quot;localObjectReference&quot;: { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
149 # directly into the message. Use the &quot;name&quot; field instead.
150 # referenced object inside the same namespace.
151 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
152 # More info:
153 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
154 },
155 },
156 &quot;sink&quot;: { # Sink is a reference to an object that will resolve to a domain name or a
157 # URI directly to use as the sink.
158 &quot;uri&quot;: &quot;A String&quot;, # URI is for direct URI Designations or used with the resulting URL from
159 # Addressable ObjectReference. If used with an ObjectReference, will be
160 # appended to the path of the resulting URL from the Addressable.
161 # + optional
162 &quot;ref&quot;: { # ObjectReference contains enough information to let you inspect or modify the # ObjectReference points to an Addressable.
163 # + optional
164 # referred object.
165 &quot;apiVersion&quot;: &quot;A String&quot;, # API version of the referent.
166 # +optional
167 &quot;resourceVersion&quot;: &quot;A String&quot;, # Specific resourceVersion to which this reference is made, if any.
168 # More info:
169 # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
170 # +optional
171 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
172 # More info:
173 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
174 # +optional
175 &quot;fieldPath&quot;: &quot;A String&quot;, # If referring to a piece of an object instead of an entire object, this
176 # string should contain a valid JSON/Go field access statement, such as
177 # desiredState.manifest.containers[2]. For example, if the object reference
178 # is to a container within a pod, this would take on a value like:
179 # &quot;spec.containers{name}&quot; (where &quot;name&quot; refers to the name of the container
180 # that triggered the event) or if no container name is specified
181 # &quot;spec.containers[2]&quot; (container with index 2 in this pod). This syntax is
182 # chosen only to have some well-defined way of referencing a part of an
183 # object.
184 &quot;uid&quot;: &quot;A String&quot;, # UID of the referent.
185 # More info:
186 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
187 # +optional
188 &quot;namespace&quot;: &quot;A String&quot;, # Namespace of the referent.
189 # More info:
190 # https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
191 # +optional
192 &quot;kind&quot;: &quot;A String&quot;, # Kind of the referent.
193 # More info:
194 # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
195 # +optional
196 },
197 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700198 &quot;retainAckedMessages&quot;: True or False, # RetainAckedMessages defines whether to retain acknowledged messages. If
199 # true, acknowledged messages will not be expunged until they fall out of
200 # the RetentionDuration window.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700201 &quot;ackDeadline&quot;: &quot;A String&quot;, # AckDeadline is the default maximum time after a subscriber receives a
202 # message before the subscriber should acknowledge the message. Defaults
203 # to 30 seconds (&#x27;30s&#x27;).
204 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700205 &quot;retentionDuration&quot;: &quot;A String&quot;, # RetentionDuration defines how long to retain messages in backlog, from
206 # the time of publish. If RetainAckedMessages is true, this duration
207 # affects the retention of acknowledged messages, otherwise only
208 # unacknowledged messages are retained. Cannot be longer than 7 days or
209 # shorter than 10 minutes. Defaults to 7 days (&#x27;7d&#x27;).
210 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700211 &quot;ceOverrides&quot;: { # CloudEventOverrides defines arguments for a Source that control the output # CloudEventOverrides defines overrides to control the output format and
212 # modifications of the event sent to the sink.
213 # +optional
214 # format of the CloudEvents produced by the Source.
215 &quot;extensions&quot;: { # Extensions specify what attribute are added or overridden on the outbound
216 # event. Each `Extensions` key-value pair are set on the event as an
217 # attribute extension independently.
218 # +optional
219 &quot;a_key&quot;: &quot;A String&quot;,
220 },
221 },
222 &quot;secret&quot;: { # Cloud Run fully managed: not supported # Secret is the credential to use to create the Scheduler Job.
223 # If not specified, defaults to:
224 # Name: google-cloud-key
225 # Key: key.json
226 # +optional
227 #
228 # Cloud Run on GKE: supported
229 #
230 # SecretKeySelector selects a key of a Secret.
Bu Sun Kim65020912020-05-20 12:08:20 -0700231 &quot;optional&quot;: True or False, # Cloud Run fully managed: not supported
232 #
233 # Cloud Run on GKE: supported
234 #
235 # Specify whether the Secret or its key must be defined
236 # +optional
237 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
238 #
239 # Cloud Run on GKE: supported
240 #
241 # The key of the secret to select from. Must be a valid secret key.
242 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
243 #
244 # Cloud Run on GKE: supported
245 #
246 # The name of the secret in the pod&#x27;s namespace to select from.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700247 &quot;localObjectReference&quot;: { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
248 # directly into the message. Use the &quot;name&quot; field instead.
249 # referenced object inside the same namespace.
250 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
251 # More info:
252 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
253 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700254 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700255 &quot;topic&quot;: &quot;A String&quot;, # Topic is the ID of the CloudPubSubSource Topic to Subscribe to. It must
256 # be in the form of the unique identifier within the project, not the
257 # entire name. E.g. it must be &#x27;laconia&#x27;, not
258 # &#x27;projects/my-proj/topics/laconia&#x27;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700259 &quot;project&quot;: &quot;A String&quot;, # Project is the ID of the Google Cloud Project that the CloudPubSubSource
260 # Topic exists in. If omitted, defaults to same as the cluster. +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700261 },
262 &quot;kind&quot;: &quot;A String&quot;, # The kind of resource, in this case &quot;CloudPubSubSource&quot;.
263 &quot;metadata&quot;: { # ObjectMeta is metadata that all persisted resources must have, which includes # Metadata associated with this CloudPubSubSource.
264 # all objects users must create.
Bu Sun Kim65020912020-05-20 12:08:20 -0700265 &quot;generateName&quot;: &quot;A String&quot;, # Not currently supported by Cloud Run.
266 #
267 # GenerateName is an optional prefix, used by the server, to generate a
268 # unique name ONLY IF the Name field has not been provided. If this field is
269 # used, the name returned to the client will be different than the name
270 # passed. This value will also be combined with a unique suffix. The provided
271 # value has the same validation rules as the Name field, and may be truncated
272 # by the length of the suffix required to make the value unique on the
273 # server.
274 #
275 # If this field is specified and the generated name exists, the server will
276 # NOT return a 409 - instead, it will either return 201 Created or 500 with
277 # Reason ServerTimeout indicating a unique name could not be found in the
278 # time allotted, and the client should retry (optionally after the time
279 # indicated in the Retry-After header).
280 #
281 # Applied only if Name is not specified.
282 # More info:
283 # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency
284 # +optional
285 # string generateName = 2;
286 &quot;name&quot;: &quot;A String&quot;, # Name must be unique within a namespace, within a Cloud Run region.
287 # Is required when creating
288 # resources, although some resources may allow a client to request the
289 # generation of an appropriate name automatically. Name is primarily intended
290 # for creation idempotence and configuration definition. Cannot be updated.
291 # More info: http://kubernetes.io/docs/user-guide/identifiers#names
292 # +optional
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700293 &quot;deletionGracePeriodSeconds&quot;: 42, # Not currently supported by Cloud Run.
294 #
295 # Number of seconds allowed for this object to gracefully terminate before
296 # it will be removed from the system. Only set when deletionTimestamp is also
297 # set. May only be shortened. Read-only. +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700298 &quot;clusterName&quot;: &quot;A String&quot;, # Not currently supported by Cloud Run.
299 #
300 # The name of the cluster which the object belongs to.
301 # This is used to distinguish resources with same name and namespace in
302 # different clusters. This field is not set anywhere right now and apiserver
303 # is going to ignore it if set in create or update request. +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700304 &quot;finalizers&quot;: [ # Not currently supported by Cloud Run.
305 #
306 # Must be empty before the object is deleted from the registry. Each entry
307 # is an identifier for the responsible component that will remove the entry
308 # from the list. If the deletionTimestamp of the object is non-nil, entries
309 # in this list can only be removed.
310 # +optional
311 # +patchStrategy=merge
312 &quot;A String&quot;,
313 ],
314 &quot;deletionTimestamp&quot;: &quot;A String&quot;, # DeletionTimestamp is RFC 3339 date and time at which this resource will be
315 # deleted. This field is set by the server when a graceful deletion is
316 # requested by the user, and is not directly settable by a client. The
317 # resource is expected to be deleted (no longer visible from resource lists,
318 # and not reachable by name) after the time in this field, once the
319 # finalizers list is empty. As long as the finalizers list contains items,
320 # deletion is blocked. Once the deletionTimestamp is set, this value may not
321 # be unset or be set further into the future, although it may be shortened or
322 # the resource may be deleted prior to this time. For example, a user may
323 # request that a pod is deleted in 30 seconds. The Kubelet will react by
324 # sending a graceful termination signal to the containers in the pod. After
325 # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL)
326 # to the container and after cleanup, remove the pod from the API. In the
327 # presence of network partitions, this object may still exist after this
328 # timestamp, until an administrator or automated process can determine the
329 # resource is fully terminated.
330 # If not set, graceful deletion of the object has not been requested.
331 #
332 # Populated by the system when a graceful deletion is requested.
333 # Read-only.
334 # More info:
335 # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
336 # +optional
337 &quot;ownerReferences&quot;: [ # List of objects that own this object. If ALL objects in the list have
338 # been deleted, this object will be garbage collected.
339 # +optional
340 { # OwnerReference contains enough information to let you identify an owning
341 # object. Currently, an owning object must be in the same namespace, so there
342 # is no namespace field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700343 &quot;controller&quot;: True or False, # If true, this reference points to the managing controller.
344 # +optional
345 &quot;kind&quot;: &quot;A String&quot;, # Kind of the referent.
346 # More info:
347 # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
348 &quot;blockOwnerDeletion&quot;: True or False, # If true, AND if the owner has the &quot;foregroundDeletion&quot; finalizer, then
349 # the owner cannot be deleted from the key-value store until this
350 # reference is removed.
351 # Defaults to false.
352 # To set this field, a user needs &quot;delete&quot; permission of the owner,
353 # otherwise 422 (Unprocessable Entity) will be returned.
354 # +optional
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700355 &quot;apiVersion&quot;: &quot;A String&quot;, # API version of the referent.
356 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
357 # More info: http://kubernetes.io/docs/user-guide/identifiers#names
358 &quot;uid&quot;: &quot;A String&quot;, # UID of the referent.
359 # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
Bu Sun Kim65020912020-05-20 12:08:20 -0700360 },
361 ],
362 &quot;creationTimestamp&quot;: &quot;A String&quot;, # CreationTimestamp is a timestamp representing the server time when this
363 # object was created. It is not guaranteed to be set in happens-before order
364 # across separate operations. Clients may not set this value. It is
365 # represented in RFC3339 form and is in UTC.
366 #
367 # Populated by the system.
368 # Read-only.
369 # Null for lists.
370 # More info:
371 # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
372 # +optional
373 &quot;labels&quot;: { # Map of string keys and values that can be used to organize and categorize
374 # (scope and select) objects. May match selectors of replication controllers
375 # and routes.
376 # More info: http://kubernetes.io/docs/user-guide/labels
377 # +optional
378 &quot;a_key&quot;: &quot;A String&quot;,
379 },
380 &quot;generation&quot;: 42, # A sequence number representing a specific generation of the desired state.
381 # Populated by the system. Read-only.
382 # +optional
383 &quot;resourceVersion&quot;: &quot;A String&quot;, # An opaque value that represents the internal version of this object that
384 # can be used by clients to determine when objects have changed. May be used
385 # for optimistic concurrency, change detection, and the watch operation on a
386 # resource or set of resources. Clients must treat these values as opaque and
387 # passed unmodified back to the server. They may only be valid for a
388 # particular resource or set of resources.
389 #
390 # Populated by the system.
391 # Read-only.
392 # Value must be treated as opaque by clients and .
393 # More info:
394 # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
395 # +optional
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700396 &quot;selfLink&quot;: &quot;A String&quot;, # SelfLink is a URL representing this object.
397 # Populated by the system.
398 # Read-only.
399 # +optional
400 # string selfLink = 4;
Bu Sun Kim65020912020-05-20 12:08:20 -0700401 &quot;uid&quot;: &quot;A String&quot;, # UID is the unique in time and space value for this object. It is typically
402 # generated by the server on successful creation of a resource and is not
403 # allowed to change on PUT operations.
404 #
405 # Populated by the system.
406 # Read-only.
407 # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
408 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700409 &quot;namespace&quot;: &quot;A String&quot;, # Namespace defines the space within each name must be unique, within a
410 # Cloud Run region. In Cloud Run the namespace must be equal to either the
411 # project ID or project number.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700412 &quot;annotations&quot;: { # Annotations is an unstructured key value map stored with a resource that
413 # may be set by external tools to store and retrieve arbitrary metadata. They
414 # are not queryable and should be preserved when modifying objects. More
415 # info: http://kubernetes.io/docs/user-guide/annotations +optional
416 &quot;a_key&quot;: &quot;A String&quot;,
417 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700418 },
419}
420
421 x__xgafv: string, V1 error format.
422 Allowed values
423 1 - v1 error format
424 2 - v2 error format
425
426Returns:
427 An object of the form:
428
429 {
430 &quot;status&quot;: { # CloudPubSubSourceStatus represents the current state of a CloudPubSubSource. # Status represents the current state of the CloudPubSubSource. This data may
431 # be out of date. +optional
432 &quot;conditions&quot;: [ # Array of observed CloudPubSubSourceConditions, indicating the current state
433 # of the CloudPubSubSource.
434 { # Condition defines a generic condition for a Resource
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700435 &quot;message&quot;: &quot;A String&quot;, # Optional. Human readable message indicating details about the current status.
436 &quot;lastTransitionTime&quot;: &quot;A String&quot;, # Optional. Last time the condition transitioned from one status to another.
437 &quot;status&quot;: &quot;A String&quot;, # Status of the condition, one of True, False, Unknown.
Bu Sun Kim65020912020-05-20 12:08:20 -0700438 &quot;severity&quot;: &quot;A String&quot;, # Optional. How to interpret failures of this condition, one of Error, Warning, Info
439 &quot;reason&quot;: &quot;A String&quot;, # Optional. One-word CamelCase reason for the condition&#x27;s last transition.
440 &quot;type&quot;: &quot;A String&quot;, # type is used to communicate the status of the reconciliation process.
441 # See also:
442 # https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting
443 # Types common to all resources include:
444 # * &quot;Ready&quot;: True when the Resource is ready.
Bu Sun Kim65020912020-05-20 12:08:20 -0700445 },
446 ],
447 &quot;observedGeneration&quot;: 42, # ObservedGeneration is the &#x27;Generation&#x27; of the CloudPubSubSource that
448 # was last processed by the controller.
449 &quot;sinkUri&quot;: &quot;A String&quot;, # SinkURI is the current active sink URI that has been configured for the
450 # Source.
451 # +optional
452 },
453 &quot;apiVersion&quot;: &quot;A String&quot;, # The API version for this call such as &quot;events.cloud.google.com/v1alpha1&quot;.
454 &quot;spec&quot;: { # The desired state of the CloudPubSubSource. # Spec defines the desired state of the CloudPubSubSource.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700455 &quot;pubsubSecret&quot;: { # Cloud Run fully managed: not supported # CloudPubSubSourceSecret is the credential to use to create
456 # Topic / PullSubscription resources. If omitted, uses Secret.
457 #
458 # Cloud Run on GKE: supported
459 #
460 # SecretKeySelector selects a key of a Secret.
461 &quot;optional&quot;: True or False, # Cloud Run fully managed: not supported
462 #
463 # Cloud Run on GKE: supported
464 #
465 # Specify whether the Secret or its key must be defined
466 # +optional
467 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
468 #
469 # Cloud Run on GKE: supported
470 #
471 # The key of the secret to select from. Must be a valid secret key.
472 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
473 #
474 # Cloud Run on GKE: supported
475 #
476 # The name of the secret in the pod&#x27;s namespace to select from.
477 &quot;localObjectReference&quot;: { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
478 # directly into the message. Use the &quot;name&quot; field instead.
479 # referenced object inside the same namespace.
480 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
481 # More info:
482 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
483 },
484 },
485 &quot;sink&quot;: { # Sink is a reference to an object that will resolve to a domain name or a
486 # URI directly to use as the sink.
487 &quot;uri&quot;: &quot;A String&quot;, # URI is for direct URI Designations or used with the resulting URL from
488 # Addressable ObjectReference. If used with an ObjectReference, will be
489 # appended to the path of the resulting URL from the Addressable.
490 # + optional
491 &quot;ref&quot;: { # ObjectReference contains enough information to let you inspect or modify the # ObjectReference points to an Addressable.
492 # + optional
493 # referred object.
494 &quot;apiVersion&quot;: &quot;A String&quot;, # API version of the referent.
495 # +optional
496 &quot;resourceVersion&quot;: &quot;A String&quot;, # Specific resourceVersion to which this reference is made, if any.
497 # More info:
498 # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
499 # +optional
500 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
501 # More info:
502 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
503 # +optional
504 &quot;fieldPath&quot;: &quot;A String&quot;, # If referring to a piece of an object instead of an entire object, this
505 # string should contain a valid JSON/Go field access statement, such as
506 # desiredState.manifest.containers[2]. For example, if the object reference
507 # is to a container within a pod, this would take on a value like:
508 # &quot;spec.containers{name}&quot; (where &quot;name&quot; refers to the name of the container
509 # that triggered the event) or if no container name is specified
510 # &quot;spec.containers[2]&quot; (container with index 2 in this pod). This syntax is
511 # chosen only to have some well-defined way of referencing a part of an
512 # object.
513 &quot;uid&quot;: &quot;A String&quot;, # UID of the referent.
514 # More info:
515 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
516 # +optional
517 &quot;namespace&quot;: &quot;A String&quot;, # Namespace of the referent.
518 # More info:
519 # https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
520 # +optional
521 &quot;kind&quot;: &quot;A String&quot;, # Kind of the referent.
522 # More info:
523 # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
524 # +optional
525 },
526 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700527 &quot;retainAckedMessages&quot;: True or False, # RetainAckedMessages defines whether to retain acknowledged messages. If
528 # true, acknowledged messages will not be expunged until they fall out of
529 # the RetentionDuration window.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700530 &quot;ackDeadline&quot;: &quot;A String&quot;, # AckDeadline is the default maximum time after a subscriber receives a
531 # message before the subscriber should acknowledge the message. Defaults
532 # to 30 seconds (&#x27;30s&#x27;).
533 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700534 &quot;retentionDuration&quot;: &quot;A String&quot;, # RetentionDuration defines how long to retain messages in backlog, from
535 # the time of publish. If RetainAckedMessages is true, this duration
536 # affects the retention of acknowledged messages, otherwise only
537 # unacknowledged messages are retained. Cannot be longer than 7 days or
538 # shorter than 10 minutes. Defaults to 7 days (&#x27;7d&#x27;).
539 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700540 &quot;ceOverrides&quot;: { # CloudEventOverrides defines arguments for a Source that control the output # CloudEventOverrides defines overrides to control the output format and
541 # modifications of the event sent to the sink.
542 # +optional
543 # format of the CloudEvents produced by the Source.
544 &quot;extensions&quot;: { # Extensions specify what attribute are added or overridden on the outbound
545 # event. Each `Extensions` key-value pair are set on the event as an
546 # attribute extension independently.
547 # +optional
548 &quot;a_key&quot;: &quot;A String&quot;,
549 },
550 },
551 &quot;secret&quot;: { # Cloud Run fully managed: not supported # Secret is the credential to use to create the Scheduler Job.
552 # If not specified, defaults to:
553 # Name: google-cloud-key
554 # Key: key.json
555 # +optional
556 #
557 # Cloud Run on GKE: supported
558 #
559 # SecretKeySelector selects a key of a Secret.
Bu Sun Kim65020912020-05-20 12:08:20 -0700560 &quot;optional&quot;: True or False, # Cloud Run fully managed: not supported
561 #
562 # Cloud Run on GKE: supported
563 #
564 # Specify whether the Secret or its key must be defined
565 # +optional
566 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
567 #
568 # Cloud Run on GKE: supported
569 #
570 # The key of the secret to select from. Must be a valid secret key.
571 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
572 #
573 # Cloud Run on GKE: supported
574 #
575 # The name of the secret in the pod&#x27;s namespace to select from.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700576 &quot;localObjectReference&quot;: { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
577 # directly into the message. Use the &quot;name&quot; field instead.
578 # referenced object inside the same namespace.
579 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
580 # More info:
581 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
582 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700583 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700584 &quot;topic&quot;: &quot;A String&quot;, # Topic is the ID of the CloudPubSubSource Topic to Subscribe to. It must
585 # be in the form of the unique identifier within the project, not the
586 # entire name. E.g. it must be &#x27;laconia&#x27;, not
587 # &#x27;projects/my-proj/topics/laconia&#x27;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700588 &quot;project&quot;: &quot;A String&quot;, # Project is the ID of the Google Cloud Project that the CloudPubSubSource
589 # Topic exists in. If omitted, defaults to same as the cluster. +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700590 },
591 &quot;kind&quot;: &quot;A String&quot;, # The kind of resource, in this case &quot;CloudPubSubSource&quot;.
592 &quot;metadata&quot;: { # ObjectMeta is metadata that all persisted resources must have, which includes # Metadata associated with this CloudPubSubSource.
593 # all objects users must create.
Bu Sun Kim65020912020-05-20 12:08:20 -0700594 &quot;generateName&quot;: &quot;A String&quot;, # Not currently supported by Cloud Run.
595 #
596 # GenerateName is an optional prefix, used by the server, to generate a
597 # unique name ONLY IF the Name field has not been provided. If this field is
598 # used, the name returned to the client will be different than the name
599 # passed. This value will also be combined with a unique suffix. The provided
600 # value has the same validation rules as the Name field, and may be truncated
601 # by the length of the suffix required to make the value unique on the
602 # server.
603 #
604 # If this field is specified and the generated name exists, the server will
605 # NOT return a 409 - instead, it will either return 201 Created or 500 with
606 # Reason ServerTimeout indicating a unique name could not be found in the
607 # time allotted, and the client should retry (optionally after the time
608 # indicated in the Retry-After header).
609 #
610 # Applied only if Name is not specified.
611 # More info:
612 # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency
613 # +optional
614 # string generateName = 2;
615 &quot;name&quot;: &quot;A String&quot;, # Name must be unique within a namespace, within a Cloud Run region.
616 # Is required when creating
617 # resources, although some resources may allow a client to request the
618 # generation of an appropriate name automatically. Name is primarily intended
619 # for creation idempotence and configuration definition. Cannot be updated.
620 # More info: http://kubernetes.io/docs/user-guide/identifiers#names
621 # +optional
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700622 &quot;deletionGracePeriodSeconds&quot;: 42, # Not currently supported by Cloud Run.
623 #
624 # Number of seconds allowed for this object to gracefully terminate before
625 # it will be removed from the system. Only set when deletionTimestamp is also
626 # set. May only be shortened. Read-only. +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700627 &quot;clusterName&quot;: &quot;A String&quot;, # Not currently supported by Cloud Run.
628 #
629 # The name of the cluster which the object belongs to.
630 # This is used to distinguish resources with same name and namespace in
631 # different clusters. This field is not set anywhere right now and apiserver
632 # is going to ignore it if set in create or update request. +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700633 &quot;finalizers&quot;: [ # Not currently supported by Cloud Run.
634 #
635 # Must be empty before the object is deleted from the registry. Each entry
636 # is an identifier for the responsible component that will remove the entry
637 # from the list. If the deletionTimestamp of the object is non-nil, entries
638 # in this list can only be removed.
639 # +optional
640 # +patchStrategy=merge
641 &quot;A String&quot;,
642 ],
643 &quot;deletionTimestamp&quot;: &quot;A String&quot;, # DeletionTimestamp is RFC 3339 date and time at which this resource will be
644 # deleted. This field is set by the server when a graceful deletion is
645 # requested by the user, and is not directly settable by a client. The
646 # resource is expected to be deleted (no longer visible from resource lists,
647 # and not reachable by name) after the time in this field, once the
648 # finalizers list is empty. As long as the finalizers list contains items,
649 # deletion is blocked. Once the deletionTimestamp is set, this value may not
650 # be unset or be set further into the future, although it may be shortened or
651 # the resource may be deleted prior to this time. For example, a user may
652 # request that a pod is deleted in 30 seconds. The Kubelet will react by
653 # sending a graceful termination signal to the containers in the pod. After
654 # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL)
655 # to the container and after cleanup, remove the pod from the API. In the
656 # presence of network partitions, this object may still exist after this
657 # timestamp, until an administrator or automated process can determine the
658 # resource is fully terminated.
659 # If not set, graceful deletion of the object has not been requested.
660 #
661 # Populated by the system when a graceful deletion is requested.
662 # Read-only.
663 # More info:
664 # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
665 # +optional
666 &quot;ownerReferences&quot;: [ # List of objects that own this object. If ALL objects in the list have
667 # been deleted, this object will be garbage collected.
668 # +optional
669 { # OwnerReference contains enough information to let you identify an owning
670 # object. Currently, an owning object must be in the same namespace, so there
671 # is no namespace field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700672 &quot;controller&quot;: True or False, # If true, this reference points to the managing controller.
673 # +optional
674 &quot;kind&quot;: &quot;A String&quot;, # Kind of the referent.
675 # More info:
676 # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
677 &quot;blockOwnerDeletion&quot;: True or False, # If true, AND if the owner has the &quot;foregroundDeletion&quot; finalizer, then
678 # the owner cannot be deleted from the key-value store until this
679 # reference is removed.
680 # Defaults to false.
681 # To set this field, a user needs &quot;delete&quot; permission of the owner,
682 # otherwise 422 (Unprocessable Entity) will be returned.
683 # +optional
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700684 &quot;apiVersion&quot;: &quot;A String&quot;, # API version of the referent.
685 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
686 # More info: http://kubernetes.io/docs/user-guide/identifiers#names
687 &quot;uid&quot;: &quot;A String&quot;, # UID of the referent.
688 # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
Bu Sun Kim65020912020-05-20 12:08:20 -0700689 },
690 ],
691 &quot;creationTimestamp&quot;: &quot;A String&quot;, # CreationTimestamp is a timestamp representing the server time when this
692 # object was created. It is not guaranteed to be set in happens-before order
693 # across separate operations. Clients may not set this value. It is
694 # represented in RFC3339 form and is in UTC.
695 #
696 # Populated by the system.
697 # Read-only.
698 # Null for lists.
699 # More info:
700 # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
701 # +optional
702 &quot;labels&quot;: { # Map of string keys and values that can be used to organize and categorize
703 # (scope and select) objects. May match selectors of replication controllers
704 # and routes.
705 # More info: http://kubernetes.io/docs/user-guide/labels
706 # +optional
707 &quot;a_key&quot;: &quot;A String&quot;,
708 },
709 &quot;generation&quot;: 42, # A sequence number representing a specific generation of the desired state.
710 # Populated by the system. Read-only.
711 # +optional
712 &quot;resourceVersion&quot;: &quot;A String&quot;, # An opaque value that represents the internal version of this object that
713 # can be used by clients to determine when objects have changed. May be used
714 # for optimistic concurrency, change detection, and the watch operation on a
715 # resource or set of resources. Clients must treat these values as opaque and
716 # passed unmodified back to the server. They may only be valid for a
717 # particular resource or set of resources.
718 #
719 # Populated by the system.
720 # Read-only.
721 # Value must be treated as opaque by clients and .
722 # More info:
723 # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
724 # +optional
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700725 &quot;selfLink&quot;: &quot;A String&quot;, # SelfLink is a URL representing this object.
726 # Populated by the system.
727 # Read-only.
728 # +optional
729 # string selfLink = 4;
Bu Sun Kim65020912020-05-20 12:08:20 -0700730 &quot;uid&quot;: &quot;A String&quot;, # UID is the unique in time and space value for this object. It is typically
731 # generated by the server on successful creation of a resource and is not
732 # allowed to change on PUT operations.
733 #
734 # Populated by the system.
735 # Read-only.
736 # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
737 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700738 &quot;namespace&quot;: &quot;A String&quot;, # Namespace defines the space within each name must be unique, within a
739 # Cloud Run region. In Cloud Run the namespace must be equal to either the
740 # project ID or project number.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700741 &quot;annotations&quot;: { # Annotations is an unstructured key value map stored with a resource that
742 # may be set by external tools to store and retrieve arbitrary metadata. They
743 # are not queryable and should be preserved when modifying objects. More
744 # info: http://kubernetes.io/docs/user-guide/annotations +optional
745 &quot;a_key&quot;: &quot;A String&quot;,
746 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700747 },
748 }</pre>
749</div>
750
751<div class="method">
752 <code class="details" id="delete">delete(name, apiVersion=None, propagationPolicy=None, kind=None, x__xgafv=None)</code>
753 <pre>Rpc to delete a cloudpubsubsource.
754
755Args:
756 name: string, The name of the cloudpubsubsource being deleted. If needed, replace
757{namespace_id} with the project ID. (required)
758 apiVersion: string, Cloud Run currently ignores this parameter.
759 propagationPolicy: string, Specifies the propagation policy of delete. Cloud Run currently ignores
760this setting, and deletes in the background. Please see
761kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for
762more information.
763 kind: string, Cloud Run currently ignores this parameter.
764 x__xgafv: string, V1 error format.
765 Allowed values
766 1 - v1 error format
767 2 - v2 error format
768
769Returns:
770 An object of the form:
771
772 { # A generic empty message that you can re-use to avoid defining duplicated
773 # empty messages in your APIs. A typical example is to use it as the request
774 # or the response type of an API method. For instance:
775 #
776 # service Foo {
777 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
778 # }
779 #
780 # The JSON representation for `Empty` is empty JSON object `{}`.
781 }</pre>
782</div>
783
784<div class="method">
785 <code class="details" id="get">get(name, x__xgafv=None)</code>
786 <pre>Rpc to get information about a cloudpubsubsource.
787
788Args:
789 name: string, The name of the cloudpubsubsource being retrieved. If needed, replace
790{namespace_id} with the project ID. (required)
791 x__xgafv: string, V1 error format.
792 Allowed values
793 1 - v1 error format
794 2 - v2 error format
795
796Returns:
797 An object of the form:
798
799 {
800 &quot;status&quot;: { # CloudPubSubSourceStatus represents the current state of a CloudPubSubSource. # Status represents the current state of the CloudPubSubSource. This data may
801 # be out of date. +optional
802 &quot;conditions&quot;: [ # Array of observed CloudPubSubSourceConditions, indicating the current state
803 # of the CloudPubSubSource.
804 { # Condition defines a generic condition for a Resource
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700805 &quot;message&quot;: &quot;A String&quot;, # Optional. Human readable message indicating details about the current status.
806 &quot;lastTransitionTime&quot;: &quot;A String&quot;, # Optional. Last time the condition transitioned from one status to another.
807 &quot;status&quot;: &quot;A String&quot;, # Status of the condition, one of True, False, Unknown.
Bu Sun Kim65020912020-05-20 12:08:20 -0700808 &quot;severity&quot;: &quot;A String&quot;, # Optional. How to interpret failures of this condition, one of Error, Warning, Info
809 &quot;reason&quot;: &quot;A String&quot;, # Optional. One-word CamelCase reason for the condition&#x27;s last transition.
810 &quot;type&quot;: &quot;A String&quot;, # type is used to communicate the status of the reconciliation process.
811 # See also:
812 # https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting
813 # Types common to all resources include:
814 # * &quot;Ready&quot;: True when the Resource is ready.
Bu Sun Kim65020912020-05-20 12:08:20 -0700815 },
816 ],
817 &quot;observedGeneration&quot;: 42, # ObservedGeneration is the &#x27;Generation&#x27; of the CloudPubSubSource that
818 # was last processed by the controller.
819 &quot;sinkUri&quot;: &quot;A String&quot;, # SinkURI is the current active sink URI that has been configured for the
820 # Source.
821 # +optional
822 },
823 &quot;apiVersion&quot;: &quot;A String&quot;, # The API version for this call such as &quot;events.cloud.google.com/v1alpha1&quot;.
824 &quot;spec&quot;: { # The desired state of the CloudPubSubSource. # Spec defines the desired state of the CloudPubSubSource.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700825 &quot;pubsubSecret&quot;: { # Cloud Run fully managed: not supported # CloudPubSubSourceSecret is the credential to use to create
826 # Topic / PullSubscription resources. If omitted, uses Secret.
827 #
828 # Cloud Run on GKE: supported
829 #
830 # SecretKeySelector selects a key of a Secret.
831 &quot;optional&quot;: True or False, # Cloud Run fully managed: not supported
832 #
833 # Cloud Run on GKE: supported
834 #
835 # Specify whether the Secret or its key must be defined
836 # +optional
837 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
838 #
839 # Cloud Run on GKE: supported
840 #
841 # The key of the secret to select from. Must be a valid secret key.
842 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
843 #
844 # Cloud Run on GKE: supported
845 #
846 # The name of the secret in the pod&#x27;s namespace to select from.
847 &quot;localObjectReference&quot;: { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
848 # directly into the message. Use the &quot;name&quot; field instead.
849 # referenced object inside the same namespace.
850 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
851 # More info:
852 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
853 },
854 },
855 &quot;sink&quot;: { # Sink is a reference to an object that will resolve to a domain name or a
856 # URI directly to use as the sink.
857 &quot;uri&quot;: &quot;A String&quot;, # URI is for direct URI Designations or used with the resulting URL from
858 # Addressable ObjectReference. If used with an ObjectReference, will be
859 # appended to the path of the resulting URL from the Addressable.
860 # + optional
861 &quot;ref&quot;: { # ObjectReference contains enough information to let you inspect or modify the # ObjectReference points to an Addressable.
862 # + optional
863 # referred object.
864 &quot;apiVersion&quot;: &quot;A String&quot;, # API version of the referent.
865 # +optional
866 &quot;resourceVersion&quot;: &quot;A String&quot;, # Specific resourceVersion to which this reference is made, if any.
867 # More info:
868 # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
869 # +optional
870 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
871 # More info:
872 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
873 # +optional
874 &quot;fieldPath&quot;: &quot;A String&quot;, # If referring to a piece of an object instead of an entire object, this
875 # string should contain a valid JSON/Go field access statement, such as
876 # desiredState.manifest.containers[2]. For example, if the object reference
877 # is to a container within a pod, this would take on a value like:
878 # &quot;spec.containers{name}&quot; (where &quot;name&quot; refers to the name of the container
879 # that triggered the event) or if no container name is specified
880 # &quot;spec.containers[2]&quot; (container with index 2 in this pod). This syntax is
881 # chosen only to have some well-defined way of referencing a part of an
882 # object.
883 &quot;uid&quot;: &quot;A String&quot;, # UID of the referent.
884 # More info:
885 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
886 # +optional
887 &quot;namespace&quot;: &quot;A String&quot;, # Namespace of the referent.
888 # More info:
889 # https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
890 # +optional
891 &quot;kind&quot;: &quot;A String&quot;, # Kind of the referent.
892 # More info:
893 # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
894 # +optional
895 },
896 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700897 &quot;retainAckedMessages&quot;: True or False, # RetainAckedMessages defines whether to retain acknowledged messages. If
898 # true, acknowledged messages will not be expunged until they fall out of
899 # the RetentionDuration window.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700900 &quot;ackDeadline&quot;: &quot;A String&quot;, # AckDeadline is the default maximum time after a subscriber receives a
901 # message before the subscriber should acknowledge the message. Defaults
902 # to 30 seconds (&#x27;30s&#x27;).
903 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700904 &quot;retentionDuration&quot;: &quot;A String&quot;, # RetentionDuration defines how long to retain messages in backlog, from
905 # the time of publish. If RetainAckedMessages is true, this duration
906 # affects the retention of acknowledged messages, otherwise only
907 # unacknowledged messages are retained. Cannot be longer than 7 days or
908 # shorter than 10 minutes. Defaults to 7 days (&#x27;7d&#x27;).
909 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700910 &quot;ceOverrides&quot;: { # CloudEventOverrides defines arguments for a Source that control the output # CloudEventOverrides defines overrides to control the output format and
911 # modifications of the event sent to the sink.
912 # +optional
913 # format of the CloudEvents produced by the Source.
914 &quot;extensions&quot;: { # Extensions specify what attribute are added or overridden on the outbound
915 # event. Each `Extensions` key-value pair are set on the event as an
916 # attribute extension independently.
917 # +optional
918 &quot;a_key&quot;: &quot;A String&quot;,
919 },
920 },
921 &quot;secret&quot;: { # Cloud Run fully managed: not supported # Secret is the credential to use to create the Scheduler Job.
922 # If not specified, defaults to:
923 # Name: google-cloud-key
924 # Key: key.json
925 # +optional
926 #
927 # Cloud Run on GKE: supported
928 #
929 # SecretKeySelector selects a key of a Secret.
Bu Sun Kim65020912020-05-20 12:08:20 -0700930 &quot;optional&quot;: True or False, # Cloud Run fully managed: not supported
931 #
932 # Cloud Run on GKE: supported
933 #
934 # Specify whether the Secret or its key must be defined
935 # +optional
936 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
937 #
938 # Cloud Run on GKE: supported
939 #
940 # The key of the secret to select from. Must be a valid secret key.
941 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
942 #
943 # Cloud Run on GKE: supported
944 #
945 # The name of the secret in the pod&#x27;s namespace to select from.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700946 &quot;localObjectReference&quot;: { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
947 # directly into the message. Use the &quot;name&quot; field instead.
948 # referenced object inside the same namespace.
949 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
950 # More info:
951 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
952 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700953 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700954 &quot;topic&quot;: &quot;A String&quot;, # Topic is the ID of the CloudPubSubSource Topic to Subscribe to. It must
955 # be in the form of the unique identifier within the project, not the
956 # entire name. E.g. it must be &#x27;laconia&#x27;, not
957 # &#x27;projects/my-proj/topics/laconia&#x27;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700958 &quot;project&quot;: &quot;A String&quot;, # Project is the ID of the Google Cloud Project that the CloudPubSubSource
959 # Topic exists in. If omitted, defaults to same as the cluster. +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700960 },
961 &quot;kind&quot;: &quot;A String&quot;, # The kind of resource, in this case &quot;CloudPubSubSource&quot;.
962 &quot;metadata&quot;: { # ObjectMeta is metadata that all persisted resources must have, which includes # Metadata associated with this CloudPubSubSource.
963 # all objects users must create.
Bu Sun Kim65020912020-05-20 12:08:20 -0700964 &quot;generateName&quot;: &quot;A String&quot;, # Not currently supported by Cloud Run.
965 #
966 # GenerateName is an optional prefix, used by the server, to generate a
967 # unique name ONLY IF the Name field has not been provided. If this field is
968 # used, the name returned to the client will be different than the name
969 # passed. This value will also be combined with a unique suffix. The provided
970 # value has the same validation rules as the Name field, and may be truncated
971 # by the length of the suffix required to make the value unique on the
972 # server.
973 #
974 # If this field is specified and the generated name exists, the server will
975 # NOT return a 409 - instead, it will either return 201 Created or 500 with
976 # Reason ServerTimeout indicating a unique name could not be found in the
977 # time allotted, and the client should retry (optionally after the time
978 # indicated in the Retry-After header).
979 #
980 # Applied only if Name is not specified.
981 # More info:
982 # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency
983 # +optional
984 # string generateName = 2;
985 &quot;name&quot;: &quot;A String&quot;, # Name must be unique within a namespace, within a Cloud Run region.
986 # Is required when creating
987 # resources, although some resources may allow a client to request the
988 # generation of an appropriate name automatically. Name is primarily intended
989 # for creation idempotence and configuration definition. Cannot be updated.
990 # More info: http://kubernetes.io/docs/user-guide/identifiers#names
991 # +optional
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700992 &quot;deletionGracePeriodSeconds&quot;: 42, # Not currently supported by Cloud Run.
993 #
994 # Number of seconds allowed for this object to gracefully terminate before
995 # it will be removed from the system. Only set when deletionTimestamp is also
996 # set. May only be shortened. Read-only. +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700997 &quot;clusterName&quot;: &quot;A String&quot;, # Not currently supported by Cloud Run.
998 #
999 # The name of the cluster which the object belongs to.
1000 # This is used to distinguish resources with same name and namespace in
1001 # different clusters. This field is not set anywhere right now and apiserver
1002 # is going to ignore it if set in create or update request. +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07001003 &quot;finalizers&quot;: [ # Not currently supported by Cloud Run.
1004 #
1005 # Must be empty before the object is deleted from the registry. Each entry
1006 # is an identifier for the responsible component that will remove the entry
1007 # from the list. If the deletionTimestamp of the object is non-nil, entries
1008 # in this list can only be removed.
1009 # +optional
1010 # +patchStrategy=merge
1011 &quot;A String&quot;,
1012 ],
1013 &quot;deletionTimestamp&quot;: &quot;A String&quot;, # DeletionTimestamp is RFC 3339 date and time at which this resource will be
1014 # deleted. This field is set by the server when a graceful deletion is
1015 # requested by the user, and is not directly settable by a client. The
1016 # resource is expected to be deleted (no longer visible from resource lists,
1017 # and not reachable by name) after the time in this field, once the
1018 # finalizers list is empty. As long as the finalizers list contains items,
1019 # deletion is blocked. Once the deletionTimestamp is set, this value may not
1020 # be unset or be set further into the future, although it may be shortened or
1021 # the resource may be deleted prior to this time. For example, a user may
1022 # request that a pod is deleted in 30 seconds. The Kubelet will react by
1023 # sending a graceful termination signal to the containers in the pod. After
1024 # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL)
1025 # to the container and after cleanup, remove the pod from the API. In the
1026 # presence of network partitions, this object may still exist after this
1027 # timestamp, until an administrator or automated process can determine the
1028 # resource is fully terminated.
1029 # If not set, graceful deletion of the object has not been requested.
1030 #
1031 # Populated by the system when a graceful deletion is requested.
1032 # Read-only.
1033 # More info:
1034 # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
1035 # +optional
1036 &quot;ownerReferences&quot;: [ # List of objects that own this object. If ALL objects in the list have
1037 # been deleted, this object will be garbage collected.
1038 # +optional
1039 { # OwnerReference contains enough information to let you identify an owning
1040 # object. Currently, an owning object must be in the same namespace, so there
1041 # is no namespace field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001042 &quot;controller&quot;: True or False, # If true, this reference points to the managing controller.
1043 # +optional
1044 &quot;kind&quot;: &quot;A String&quot;, # Kind of the referent.
1045 # More info:
1046 # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
1047 &quot;blockOwnerDeletion&quot;: True or False, # If true, AND if the owner has the &quot;foregroundDeletion&quot; finalizer, then
1048 # the owner cannot be deleted from the key-value store until this
1049 # reference is removed.
1050 # Defaults to false.
1051 # To set this field, a user needs &quot;delete&quot; permission of the owner,
1052 # otherwise 422 (Unprocessable Entity) will be returned.
1053 # +optional
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001054 &quot;apiVersion&quot;: &quot;A String&quot;, # API version of the referent.
1055 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
1056 # More info: http://kubernetes.io/docs/user-guide/identifiers#names
1057 &quot;uid&quot;: &quot;A String&quot;, # UID of the referent.
1058 # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
Bu Sun Kim65020912020-05-20 12:08:20 -07001059 },
1060 ],
1061 &quot;creationTimestamp&quot;: &quot;A String&quot;, # CreationTimestamp is a timestamp representing the server time when this
1062 # object was created. It is not guaranteed to be set in happens-before order
1063 # across separate operations. Clients may not set this value. It is
1064 # represented in RFC3339 form and is in UTC.
1065 #
1066 # Populated by the system.
1067 # Read-only.
1068 # Null for lists.
1069 # More info:
1070 # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
1071 # +optional
1072 &quot;labels&quot;: { # Map of string keys and values that can be used to organize and categorize
1073 # (scope and select) objects. May match selectors of replication controllers
1074 # and routes.
1075 # More info: http://kubernetes.io/docs/user-guide/labels
1076 # +optional
1077 &quot;a_key&quot;: &quot;A String&quot;,
1078 },
1079 &quot;generation&quot;: 42, # A sequence number representing a specific generation of the desired state.
1080 # Populated by the system. Read-only.
1081 # +optional
1082 &quot;resourceVersion&quot;: &quot;A String&quot;, # An opaque value that represents the internal version of this object that
1083 # can be used by clients to determine when objects have changed. May be used
1084 # for optimistic concurrency, change detection, and the watch operation on a
1085 # resource or set of resources. Clients must treat these values as opaque and
1086 # passed unmodified back to the server. They may only be valid for a
1087 # particular resource or set of resources.
1088 #
1089 # Populated by the system.
1090 # Read-only.
1091 # Value must be treated as opaque by clients and .
1092 # More info:
1093 # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
1094 # +optional
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001095 &quot;selfLink&quot;: &quot;A String&quot;, # SelfLink is a URL representing this object.
1096 # Populated by the system.
1097 # Read-only.
1098 # +optional
1099 # string selfLink = 4;
Bu Sun Kim65020912020-05-20 12:08:20 -07001100 &quot;uid&quot;: &quot;A String&quot;, # UID is the unique in time and space value for this object. It is typically
1101 # generated by the server on successful creation of a resource and is not
1102 # allowed to change on PUT operations.
1103 #
1104 # Populated by the system.
1105 # Read-only.
1106 # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
1107 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07001108 &quot;namespace&quot;: &quot;A String&quot;, # Namespace defines the space within each name must be unique, within a
1109 # Cloud Run region. In Cloud Run the namespace must be equal to either the
1110 # project ID or project number.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001111 &quot;annotations&quot;: { # Annotations is an unstructured key value map stored with a resource that
1112 # may be set by external tools to store and retrieve arbitrary metadata. They
1113 # are not queryable and should be preserved when modifying objects. More
1114 # info: http://kubernetes.io/docs/user-guide/annotations +optional
1115 &quot;a_key&quot;: &quot;A String&quot;,
1116 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001117 },
1118 }</pre>
1119</div>
1120
1121<div class="method">
1122 <code class="details" id="list">list(parent, labelSelector=None, fieldSelector=None, includeUninitialized=None, resourceVersion=None, continue=None, limit=None, watch=None, x__xgafv=None)</code>
1123 <pre>Rpc to list cloudpubsubsources.
1124
1125Args:
1126 parent: string, The project ID or project number from which the cloudpubsubsources should
1127be listed. (required)
1128 labelSelector: string, Allows to filter resources based on a label. Supported operations are
1129=, !=, exists, in, and notIn.
1130 fieldSelector: string, Allows to filter resources based on a specific value for a field name.
1131Send this in a query string format. i.e. &#x27;metadata.name%3Dlorem&#x27;.
1132Not currently used by Cloud Run.
1133 includeUninitialized: boolean, Not currently used by Cloud Run.
1134 resourceVersion: string, The baseline resource version from which the list or watch operation should
1135start. Not currently used by Cloud Run.
1136 continue: string, Optional encoded string to continue paging.
1137 limit: integer, The maximum number of records that should be returned.
1138 watch: boolean, Flag that indicates that the client expects to watch this resource as well.
1139Not currently used by Cloud Run.
1140 x__xgafv: string, V1 error format.
1141 Allowed values
1142 1 - v1 error format
1143 2 - v2 error format
1144
1145Returns:
1146 An object of the form:
1147
1148 { # ListCloudPubSubSourcesResponse is a list of CloudPubSubSource resources.
Bu Sun Kim65020912020-05-20 12:08:20 -07001149 &quot;kind&quot;: &quot;A String&quot;, # The kind of this resource, in this case &quot;CloudPubSubSourceList&quot;.
1150 &quot;unreachable&quot;: [ # Locations that could not be reached.
1151 &quot;A String&quot;,
1152 ],
1153 &quot;metadata&quot;: { # ListMeta describes metadata that synthetic resources must have, including # Metadata associated with this CloudPubSubSource list.
1154 # lists and various status objects. A resource may have only one of
1155 # {ObjectMeta, ListMeta}.
1156 &quot;resourceVersion&quot;: &quot;A String&quot;, # String that identifies the server&#x27;s internal version of this object that
1157 # can be used by clients to determine when objects have changed. Value must
1158 # be treated as opaque by clients and passed unmodified back to the server.
1159 # Populated by the system.
1160 # Read-only.
1161 # More info:
1162 # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
1163 # +optional
1164 &quot;continue&quot;: &quot;A String&quot;, # continue may be set if the user set a limit on the number of items
1165 # returned, and indicates that the server has more data available. The value
1166 # is opaque and may be used to issue another request to the endpoint that
1167 # served this list to retrieve the next set of available objects. Continuing
1168 # a list may not be possible if the server configuration has changed or more
1169 # than a few minutes have passed. The resourceVersion field returned when
1170 # using this continue value will be identical to the value in the first
1171 # response.
1172 &quot;selfLink&quot;: &quot;A String&quot;, # SelfLink is a URL representing this object.
1173 # Populated by the system.
1174 # Read-only.
1175 # +optional
1176 },
1177 &quot;items&quot;: [ # List of CloudPubSubSources.
1178 {
1179 &quot;status&quot;: { # CloudPubSubSourceStatus represents the current state of a CloudPubSubSource. # Status represents the current state of the CloudPubSubSource. This data may
1180 # be out of date. +optional
1181 &quot;conditions&quot;: [ # Array of observed CloudPubSubSourceConditions, indicating the current state
1182 # of the CloudPubSubSource.
1183 { # Condition defines a generic condition for a Resource
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001184 &quot;message&quot;: &quot;A String&quot;, # Optional. Human readable message indicating details about the current status.
1185 &quot;lastTransitionTime&quot;: &quot;A String&quot;, # Optional. Last time the condition transitioned from one status to another.
1186 &quot;status&quot;: &quot;A String&quot;, # Status of the condition, one of True, False, Unknown.
Bu Sun Kim65020912020-05-20 12:08:20 -07001187 &quot;severity&quot;: &quot;A String&quot;, # Optional. How to interpret failures of this condition, one of Error, Warning, Info
1188 &quot;reason&quot;: &quot;A String&quot;, # Optional. One-word CamelCase reason for the condition&#x27;s last transition.
1189 &quot;type&quot;: &quot;A String&quot;, # type is used to communicate the status of the reconciliation process.
1190 # See also:
1191 # https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting
1192 # Types common to all resources include:
1193 # * &quot;Ready&quot;: True when the Resource is ready.
Bu Sun Kim65020912020-05-20 12:08:20 -07001194 },
1195 ],
1196 &quot;observedGeneration&quot;: 42, # ObservedGeneration is the &#x27;Generation&#x27; of the CloudPubSubSource that
1197 # was last processed by the controller.
1198 &quot;sinkUri&quot;: &quot;A String&quot;, # SinkURI is the current active sink URI that has been configured for the
1199 # Source.
1200 # +optional
1201 },
1202 &quot;apiVersion&quot;: &quot;A String&quot;, # The API version for this call such as &quot;events.cloud.google.com/v1alpha1&quot;.
1203 &quot;spec&quot;: { # The desired state of the CloudPubSubSource. # Spec defines the desired state of the CloudPubSubSource.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001204 &quot;pubsubSecret&quot;: { # Cloud Run fully managed: not supported # CloudPubSubSourceSecret is the credential to use to create
1205 # Topic / PullSubscription resources. If omitted, uses Secret.
1206 #
1207 # Cloud Run on GKE: supported
1208 #
1209 # SecretKeySelector selects a key of a Secret.
1210 &quot;optional&quot;: True or False, # Cloud Run fully managed: not supported
1211 #
1212 # Cloud Run on GKE: supported
1213 #
1214 # Specify whether the Secret or its key must be defined
1215 # +optional
1216 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1217 #
1218 # Cloud Run on GKE: supported
1219 #
1220 # The key of the secret to select from. Must be a valid secret key.
1221 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1222 #
1223 # Cloud Run on GKE: supported
1224 #
1225 # The name of the secret in the pod&#x27;s namespace to select from.
1226 &quot;localObjectReference&quot;: { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
1227 # directly into the message. Use the &quot;name&quot; field instead.
1228 # referenced object inside the same namespace.
1229 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
1230 # More info:
1231 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1232 },
1233 },
1234 &quot;sink&quot;: { # Sink is a reference to an object that will resolve to a domain name or a
1235 # URI directly to use as the sink.
1236 &quot;uri&quot;: &quot;A String&quot;, # URI is for direct URI Designations or used with the resulting URL from
1237 # Addressable ObjectReference. If used with an ObjectReference, will be
1238 # appended to the path of the resulting URL from the Addressable.
1239 # + optional
1240 &quot;ref&quot;: { # ObjectReference contains enough information to let you inspect or modify the # ObjectReference points to an Addressable.
1241 # + optional
1242 # referred object.
1243 &quot;apiVersion&quot;: &quot;A String&quot;, # API version of the referent.
1244 # +optional
1245 &quot;resourceVersion&quot;: &quot;A String&quot;, # Specific resourceVersion to which this reference is made, if any.
1246 # More info:
1247 # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
1248 # +optional
1249 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
1250 # More info:
1251 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1252 # +optional
1253 &quot;fieldPath&quot;: &quot;A String&quot;, # If referring to a piece of an object instead of an entire object, this
1254 # string should contain a valid JSON/Go field access statement, such as
1255 # desiredState.manifest.containers[2]. For example, if the object reference
1256 # is to a container within a pod, this would take on a value like:
1257 # &quot;spec.containers{name}&quot; (where &quot;name&quot; refers to the name of the container
1258 # that triggered the event) or if no container name is specified
1259 # &quot;spec.containers[2]&quot; (container with index 2 in this pod). This syntax is
1260 # chosen only to have some well-defined way of referencing a part of an
1261 # object.
1262 &quot;uid&quot;: &quot;A String&quot;, # UID of the referent.
1263 # More info:
1264 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
1265 # +optional
1266 &quot;namespace&quot;: &quot;A String&quot;, # Namespace of the referent.
1267 # More info:
1268 # https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
1269 # +optional
1270 &quot;kind&quot;: &quot;A String&quot;, # Kind of the referent.
1271 # More info:
1272 # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
1273 # +optional
1274 },
1275 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001276 &quot;retainAckedMessages&quot;: True or False, # RetainAckedMessages defines whether to retain acknowledged messages. If
1277 # true, acknowledged messages will not be expunged until they fall out of
1278 # the RetentionDuration window.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001279 &quot;ackDeadline&quot;: &quot;A String&quot;, # AckDeadline is the default maximum time after a subscriber receives a
1280 # message before the subscriber should acknowledge the message. Defaults
1281 # to 30 seconds (&#x27;30s&#x27;).
1282 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07001283 &quot;retentionDuration&quot;: &quot;A String&quot;, # RetentionDuration defines how long to retain messages in backlog, from
1284 # the time of publish. If RetainAckedMessages is true, this duration
1285 # affects the retention of acknowledged messages, otherwise only
1286 # unacknowledged messages are retained. Cannot be longer than 7 days or
1287 # shorter than 10 minutes. Defaults to 7 days (&#x27;7d&#x27;).
1288 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07001289 &quot;ceOverrides&quot;: { # CloudEventOverrides defines arguments for a Source that control the output # CloudEventOverrides defines overrides to control the output format and
1290 # modifications of the event sent to the sink.
1291 # +optional
1292 # format of the CloudEvents produced by the Source.
1293 &quot;extensions&quot;: { # Extensions specify what attribute are added or overridden on the outbound
1294 # event. Each `Extensions` key-value pair are set on the event as an
1295 # attribute extension independently.
1296 # +optional
1297 &quot;a_key&quot;: &quot;A String&quot;,
1298 },
1299 },
1300 &quot;secret&quot;: { # Cloud Run fully managed: not supported # Secret is the credential to use to create the Scheduler Job.
1301 # If not specified, defaults to:
1302 # Name: google-cloud-key
1303 # Key: key.json
1304 # +optional
1305 #
1306 # Cloud Run on GKE: supported
1307 #
1308 # SecretKeySelector selects a key of a Secret.
Bu Sun Kim65020912020-05-20 12:08:20 -07001309 &quot;optional&quot;: True or False, # Cloud Run fully managed: not supported
1310 #
1311 # Cloud Run on GKE: supported
1312 #
1313 # Specify whether the Secret or its key must be defined
1314 # +optional
1315 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1316 #
1317 # Cloud Run on GKE: supported
1318 #
1319 # The key of the secret to select from. Must be a valid secret key.
1320 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1321 #
1322 # Cloud Run on GKE: supported
1323 #
1324 # The name of the secret in the pod&#x27;s namespace to select from.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001325 &quot;localObjectReference&quot;: { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
1326 # directly into the message. Use the &quot;name&quot; field instead.
1327 # referenced object inside the same namespace.
1328 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
1329 # More info:
1330 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1331 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001332 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001333 &quot;topic&quot;: &quot;A String&quot;, # Topic is the ID of the CloudPubSubSource Topic to Subscribe to. It must
1334 # be in the form of the unique identifier within the project, not the
1335 # entire name. E.g. it must be &#x27;laconia&#x27;, not
1336 # &#x27;projects/my-proj/topics/laconia&#x27;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001337 &quot;project&quot;: &quot;A String&quot;, # Project is the ID of the Google Cloud Project that the CloudPubSubSource
1338 # Topic exists in. If omitted, defaults to same as the cluster. +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07001339 },
1340 &quot;kind&quot;: &quot;A String&quot;, # The kind of resource, in this case &quot;CloudPubSubSource&quot;.
1341 &quot;metadata&quot;: { # ObjectMeta is metadata that all persisted resources must have, which includes # Metadata associated with this CloudPubSubSource.
1342 # all objects users must create.
Bu Sun Kim65020912020-05-20 12:08:20 -07001343 &quot;generateName&quot;: &quot;A String&quot;, # Not currently supported by Cloud Run.
1344 #
1345 # GenerateName is an optional prefix, used by the server, to generate a
1346 # unique name ONLY IF the Name field has not been provided. If this field is
1347 # used, the name returned to the client will be different than the name
1348 # passed. This value will also be combined with a unique suffix. The provided
1349 # value has the same validation rules as the Name field, and may be truncated
1350 # by the length of the suffix required to make the value unique on the
1351 # server.
1352 #
1353 # If this field is specified and the generated name exists, the server will
1354 # NOT return a 409 - instead, it will either return 201 Created or 500 with
1355 # Reason ServerTimeout indicating a unique name could not be found in the
1356 # time allotted, and the client should retry (optionally after the time
1357 # indicated in the Retry-After header).
1358 #
1359 # Applied only if Name is not specified.
1360 # More info:
1361 # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency
1362 # +optional
1363 # string generateName = 2;
1364 &quot;name&quot;: &quot;A String&quot;, # Name must be unique within a namespace, within a Cloud Run region.
1365 # Is required when creating
1366 # resources, although some resources may allow a client to request the
1367 # generation of an appropriate name automatically. Name is primarily intended
1368 # for creation idempotence and configuration definition. Cannot be updated.
1369 # More info: http://kubernetes.io/docs/user-guide/identifiers#names
1370 # +optional
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001371 &quot;deletionGracePeriodSeconds&quot;: 42, # Not currently supported by Cloud Run.
1372 #
1373 # Number of seconds allowed for this object to gracefully terminate before
1374 # it will be removed from the system. Only set when deletionTimestamp is also
1375 # set. May only be shortened. Read-only. +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07001376 &quot;clusterName&quot;: &quot;A String&quot;, # Not currently supported by Cloud Run.
1377 #
1378 # The name of the cluster which the object belongs to.
1379 # This is used to distinguish resources with same name and namespace in
1380 # different clusters. This field is not set anywhere right now and apiserver
1381 # is going to ignore it if set in create or update request. +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07001382 &quot;finalizers&quot;: [ # Not currently supported by Cloud Run.
1383 #
1384 # Must be empty before the object is deleted from the registry. Each entry
1385 # is an identifier for the responsible component that will remove the entry
1386 # from the list. If the deletionTimestamp of the object is non-nil, entries
1387 # in this list can only be removed.
1388 # +optional
1389 # +patchStrategy=merge
1390 &quot;A String&quot;,
1391 ],
1392 &quot;deletionTimestamp&quot;: &quot;A String&quot;, # DeletionTimestamp is RFC 3339 date and time at which this resource will be
1393 # deleted. This field is set by the server when a graceful deletion is
1394 # requested by the user, and is not directly settable by a client. The
1395 # resource is expected to be deleted (no longer visible from resource lists,
1396 # and not reachable by name) after the time in this field, once the
1397 # finalizers list is empty. As long as the finalizers list contains items,
1398 # deletion is blocked. Once the deletionTimestamp is set, this value may not
1399 # be unset or be set further into the future, although it may be shortened or
1400 # the resource may be deleted prior to this time. For example, a user may
1401 # request that a pod is deleted in 30 seconds. The Kubelet will react by
1402 # sending a graceful termination signal to the containers in the pod. After
1403 # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL)
1404 # to the container and after cleanup, remove the pod from the API. In the
1405 # presence of network partitions, this object may still exist after this
1406 # timestamp, until an administrator or automated process can determine the
1407 # resource is fully terminated.
1408 # If not set, graceful deletion of the object has not been requested.
1409 #
1410 # Populated by the system when a graceful deletion is requested.
1411 # Read-only.
1412 # More info:
1413 # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
1414 # +optional
1415 &quot;ownerReferences&quot;: [ # List of objects that own this object. If ALL objects in the list have
1416 # been deleted, this object will be garbage collected.
1417 # +optional
1418 { # OwnerReference contains enough information to let you identify an owning
1419 # object. Currently, an owning object must be in the same namespace, so there
1420 # is no namespace field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001421 &quot;controller&quot;: True or False, # If true, this reference points to the managing controller.
1422 # +optional
1423 &quot;kind&quot;: &quot;A String&quot;, # Kind of the referent.
1424 # More info:
1425 # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
1426 &quot;blockOwnerDeletion&quot;: True or False, # If true, AND if the owner has the &quot;foregroundDeletion&quot; finalizer, then
1427 # the owner cannot be deleted from the key-value store until this
1428 # reference is removed.
1429 # Defaults to false.
1430 # To set this field, a user needs &quot;delete&quot; permission of the owner,
1431 # otherwise 422 (Unprocessable Entity) will be returned.
1432 # +optional
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001433 &quot;apiVersion&quot;: &quot;A String&quot;, # API version of the referent.
1434 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
1435 # More info: http://kubernetes.io/docs/user-guide/identifiers#names
1436 &quot;uid&quot;: &quot;A String&quot;, # UID of the referent.
1437 # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
Bu Sun Kim65020912020-05-20 12:08:20 -07001438 },
1439 ],
1440 &quot;creationTimestamp&quot;: &quot;A String&quot;, # CreationTimestamp is a timestamp representing the server time when this
1441 # object was created. It is not guaranteed to be set in happens-before order
1442 # across separate operations. Clients may not set this value. It is
1443 # represented in RFC3339 form and is in UTC.
1444 #
1445 # Populated by the system.
1446 # Read-only.
1447 # Null for lists.
1448 # More info:
1449 # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
1450 # +optional
1451 &quot;labels&quot;: { # Map of string keys and values that can be used to organize and categorize
1452 # (scope and select) objects. May match selectors of replication controllers
1453 # and routes.
1454 # More info: http://kubernetes.io/docs/user-guide/labels
1455 # +optional
1456 &quot;a_key&quot;: &quot;A String&quot;,
1457 },
1458 &quot;generation&quot;: 42, # A sequence number representing a specific generation of the desired state.
1459 # Populated by the system. Read-only.
1460 # +optional
1461 &quot;resourceVersion&quot;: &quot;A String&quot;, # An opaque value that represents the internal version of this object that
1462 # can be used by clients to determine when objects have changed. May be used
1463 # for optimistic concurrency, change detection, and the watch operation on a
1464 # resource or set of resources. Clients must treat these values as opaque and
1465 # passed unmodified back to the server. They may only be valid for a
1466 # particular resource or set of resources.
1467 #
1468 # Populated by the system.
1469 # Read-only.
1470 # Value must be treated as opaque by clients and .
1471 # More info:
1472 # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
1473 # +optional
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001474 &quot;selfLink&quot;: &quot;A String&quot;, # SelfLink is a URL representing this object.
1475 # Populated by the system.
1476 # Read-only.
1477 # +optional
1478 # string selfLink = 4;
Bu Sun Kim65020912020-05-20 12:08:20 -07001479 &quot;uid&quot;: &quot;A String&quot;, # UID is the unique in time and space value for this object. It is typically
1480 # generated by the server on successful creation of a resource and is not
1481 # allowed to change on PUT operations.
1482 #
1483 # Populated by the system.
1484 # Read-only.
1485 # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
1486 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07001487 &quot;namespace&quot;: &quot;A String&quot;, # Namespace defines the space within each name must be unique, within a
1488 # Cloud Run region. In Cloud Run the namespace must be equal to either the
1489 # project ID or project number.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001490 &quot;annotations&quot;: { # Annotations is an unstructured key value map stored with a resource that
1491 # may be set by external tools to store and retrieve arbitrary metadata. They
1492 # are not queryable and should be preserved when modifying objects. More
1493 # info: http://kubernetes.io/docs/user-guide/annotations +optional
1494 &quot;a_key&quot;: &quot;A String&quot;,
1495 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001496 },
1497 },
1498 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001499 &quot;apiVersion&quot;: &quot;A String&quot;, # The API version for this call such as &quot;events.cloud.google.com/v1alpha1&quot;.
Bu Sun Kim65020912020-05-20 12:08:20 -07001500 }</pre>
1501</div>
1502
1503</body></html>