blob: 0b83a5ab42c51f3a8603f6a734d9fd9ce5439211 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -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.routes.html">routes</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
79<p class="firstline">Rpc to get information about a route.</p>
80<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070081 <code><a href="#list">list(parent, labelSelector=None, resourceVersion=None, includeUninitialized=None, fieldSelector=None, continue=None, limit=None, watch=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Rpc to list routes.</p>
83<h3>Method Details</h3>
84<div class="method">
85 <code class="details" id="get">get(name, x__xgafv=None)</code>
86 <pre>Rpc to get information about a route.
87
88Args:
89 name: string, The name of the route being retrieved. If needed, replace
90{namespace_id} with the project ID. (required)
91 x__xgafv: string, V1 error format.
92 Allowed values
93 1 - v1 error format
94 2 - v2 error format
95
96Returns:
97 An object of the form:
98
99 { # Route is responsible for configuring ingress over a collection of Revisions.
100 # Some of the Revisions a Route distributes traffic over may be specified by
101 # referencing the Configuration responsible for creating them; in these cases
102 # the Route is additionally responsible for monitoring the Configuration for
Bu Sun Kim65020912020-05-20 12:08:20 -0700103 # &quot;latest ready&quot; revision changes, and smoothly rolling out latest revisions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700104 # See also:
105 # https://github.com/knative/serving/blob/master/docs/spec/overview.md#route
106 #
107 # Cloud Run currently supports referencing a single Configuration to
Bu Sun Kim65020912020-05-20 12:08:20 -0700108 # automatically deploy the &quot;latest ready&quot; Revision from that Configuration.
109 &quot;status&quot;: { # RouteStatus communicates the observed state of the Route (from the # Status communicates the observed state of the Route (from the controller).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110 # controller).
Bu Sun Kim65020912020-05-20 12:08:20 -0700111 &quot;conditions&quot;: [ # Conditions communicates information about ongoing/complete
112 # reconciliation processes that bring the &quot;spec&quot; inline with the observed
113 # state of the world.
114 { # RouteCondition defines a readiness condition for a Route.
115 &quot;message&quot;: &quot;A String&quot;, # Human-readable message indicating details about last transition.
116 # +optional
117 &quot;lastTransitionTime&quot;: &quot;A String&quot;, # Last time the condition transitioned from one status to another.
118 # +optional
119 &quot;status&quot;: &quot;A String&quot;, # Status of the condition, one of &quot;True&quot;, &quot;False&quot;, &quot;Unknown&quot;.
120 &quot;severity&quot;: &quot;A String&quot;, # How to interpret failures of this condition, one of Error, Warning, Info
121 # +optional
122 &quot;reason&quot;: &quot;A String&quot;, # One-word CamelCase reason for the condition&#x27;s last transition.
123 # +optional
124 &quot;type&quot;: &quot;A String&quot;, # RouteConditionType is used to communicate the status of the reconciliation
125 # process. See also:
126 # https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting
127 # Types include: &quot;Ready&quot;.
128 },
129 ],
130 &quot;address&quot;: { # Information for connecting over HTTP(s). # Similar to url, information on where the service is available on HTTP.
131 &quot;url&quot;: &quot;A String&quot;,
132 &quot;hostname&quot;: &quot;A String&quot;, # Deprecated - use url instead.
133 },
134 &quot;observedGeneration&quot;: 42, # ObservedGeneration is the &#x27;Generation&#x27; of the Route that
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700135 # was last processed by the controller.
136 #
137 # Clients polling for completed reconciliation should poll until
Bu Sun Kim65020912020-05-20 12:08:20 -0700138 # observedGeneration = metadata.generation and the Ready condition&#x27;s status
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700139 # is True or False.
140 #
141 # Note that providing a trafficTarget that only has a configurationName will
142 # result in a Route that does not increment either its metadata.generation or
Bu Sun Kim65020912020-05-20 12:08:20 -0700143 # its observedGeneration, as new &quot;latest ready&quot; revisions from the
144 # Configuration are processed without an update to the Route&#x27;s spec.
145 &quot;url&quot;: &quot;A String&quot;, # URL holds the url that will distribute traffic over the provided traffic
Dan O'Mearadd494642020-05-01 07:42:23 -0700146 # targets. It generally has the form
147 # https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.app
Bu Sun Kim65020912020-05-20 12:08:20 -0700148 &quot;traffic&quot;: [ # Traffic holds the configured traffic distribution.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700149 # These entries will always contain RevisionName references.
150 # When ConfigurationName appears in the spec, this will hold the
151 # LatestReadyRevisionName that we last observed.
152 { # TrafficTarget holds a single entry of the routing table for a Route.
Bu Sun Kim65020912020-05-20 12:08:20 -0700153 &quot;name&quot;: &quot;A String&quot;, # Name is optionally used to expose a dedicated hostname for referencing this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700154 # target exclusively.
155 #
156 # Not currently supported by Cloud Run.
157 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700158 &quot;configurationName&quot;: &quot;A String&quot;, # ConfigurationName of a configuration to whose latest revision we will
159 # send this portion of traffic. When the &quot;status.latestReadyRevisionName&quot;
160 # of the referenced configuration changes, we will automatically migrate
161 # traffic from the prior &quot;latest ready&quot; revision to the new one. This field
162 # is never set in Route&#x27;s status, only its spec. This is mutually exclusive
163 # with RevisionName.
164 #
165 # Cloud Run currently supports a single ConfigurationName.
166 &quot;percent&quot;: 42, # Percent specifies percent of the traffic to this Revision or Configuration.
167 # This defaults to zero if unspecified.
168 #
169 # Cloud Run currently requires 100 percent for a single ConfigurationName
170 # TrafficTarget entry.
171 &quot;revisionName&quot;: &quot;A String&quot;, # RevisionName of a specific revision to which to send this portion of
172 # traffic. This is mutually exclusive with ConfigurationName.
173 #
174 # Providing RevisionName in spec is not currently supported by Cloud Run.
175 &quot;latestRevision&quot;: True or False, # LatestRevision may be optionally provided to indicate that the latest
176 # ready Revision of the Configuration should be used for this traffic
177 # target. When provided LatestRevision must be true if RevisionName is
178 # empty; it must be false when RevisionName is non-empty.
179 # +optional
180 &quot;tag&quot;: &quot;A String&quot;, # Tag is optionally used to expose a dedicated url for referencing
181 # this target exclusively.
182 #
183 # Not currently supported in Cloud Run.
184 # +optional
185 &quot;url&quot;: &quot;A String&quot;, # Output only. URL displays the URL for accessing named traffic targets. URL
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700186 # is displayed in status, and is disallowed on spec. URL must contain a
187 # scheme (e.g. http://) and a hostname, but may not contain anything else
188 # (e.g. basic auth, url path, etc.
189 #
190 # Not currently supported in Cloud Run.
Bu Sun Kim65020912020-05-20 12:08:20 -0700191 },
192 ],
193 &quot;domain&quot;: &quot;A String&quot;, # Deprecated - use url instead.
194 # Domain holds the top-level domain that will distribute traffic over the
195 # provided targets.
196 &quot;domainInternal&quot;: &quot;A String&quot;, # Deprecated - use address instead.
197 # For Cloud Run, identifical to domain.
198 },
199 &quot;apiVersion&quot;: &quot;A String&quot;, # The API version for this call such as &quot;serving.knative.dev/v1alpha1&quot;.
200 &quot;spec&quot;: { # RouteSpec holds the desired state of the Route (from the client). # Spec holds the desired state of the Route (from the client).
201 &quot;traffic&quot;: [ # Traffic specifies how to distribute traffic over a collection of Knative
202 # Revisions and Configurations.
203 # Cloud Run currently supports a single configurationName.
204 { # TrafficTarget holds a single entry of the routing table for a Route.
205 &quot;name&quot;: &quot;A String&quot;, # Name is optionally used to expose a dedicated hostname for referencing this
206 # target exclusively.
207 #
208 # Not currently supported by Cloud Run.
209 # +optional
210 &quot;configurationName&quot;: &quot;A String&quot;, # ConfigurationName of a configuration to whose latest revision we will
211 # send this portion of traffic. When the &quot;status.latestReadyRevisionName&quot;
212 # of the referenced configuration changes, we will automatically migrate
213 # traffic from the prior &quot;latest ready&quot; revision to the new one. This field
214 # is never set in Route&#x27;s status, only its spec. This is mutually exclusive
215 # with RevisionName.
216 #
217 # Cloud Run currently supports a single ConfigurationName.
218 &quot;percent&quot;: 42, # Percent specifies percent of the traffic to this Revision or Configuration.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700219 # This defaults to zero if unspecified.
220 #
221 # Cloud Run currently requires 100 percent for a single ConfigurationName
222 # TrafficTarget entry.
Bu Sun Kim65020912020-05-20 12:08:20 -0700223 &quot;revisionName&quot;: &quot;A String&quot;, # RevisionName of a specific revision to which to send this portion of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700224 # traffic. This is mutually exclusive with ConfigurationName.
225 #
226 # Providing RevisionName in spec is not currently supported by Cloud Run.
Bu Sun Kim65020912020-05-20 12:08:20 -0700227 &quot;latestRevision&quot;: True or False, # LatestRevision may be optionally provided to indicate that the latest
228 # ready Revision of the Configuration should be used for this traffic
229 # target. When provided LatestRevision must be true if RevisionName is
230 # empty; it must be false when RevisionName is non-empty.
231 # +optional
232 &quot;tag&quot;: &quot;A String&quot;, # Tag is optionally used to expose a dedicated url for referencing
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700233 # this target exclusively.
234 #
235 # Not currently supported in Cloud Run.
236 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700237 &quot;url&quot;: &quot;A String&quot;, # Output only. URL displays the URL for accessing named traffic targets. URL
238 # is displayed in status, and is disallowed on spec. URL must contain a
239 # scheme (e.g. http://) and a hostname, but may not contain anything else
240 # (e.g. basic auth, url path, etc.
241 #
242 # Not currently supported in Cloud Run.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700243 },
244 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700245 &quot;generation&quot;: 42, # Deprecated and not currently populated by Cloud Run. See
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700246 # metadata.generation instead, which is the sequence number containing the
247 # latest generation of the desired state.
248 #
249 # Read-only.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700250 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700251 &quot;kind&quot;: &quot;A String&quot;, # The kind of this resource, in this case always &quot;Route&quot;.
252 &quot;metadata&quot;: { # ObjectMeta is metadata that all persisted resources must have, which includes # Metadata associated with this Route, including name, namespace, labels,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700253 # and annotations.
254 # all objects users must create.
Bu Sun Kim65020912020-05-20 12:08:20 -0700255 &quot;annotations&quot;: { # Annotations is an unstructured key value map stored with a resource that
256 # may be set by external tools to store and retrieve arbitrary metadata. They
257 # are not queryable and should be preserved when modifying objects. More
258 # info: http://kubernetes.io/docs/user-guide/annotations +optional
259 &quot;a_key&quot;: &quot;A String&quot;,
260 },
261 &quot;generateName&quot;: &quot;A String&quot;, # Not currently supported by Cloud Run.
262 #
263 # GenerateName is an optional prefix, used by the server, to generate a
264 # unique name ONLY IF the Name field has not been provided. If this field is
265 # used, the name returned to the client will be different than the name
266 # passed. This value will also be combined with a unique suffix. The provided
267 # value has the same validation rules as the Name field, and may be truncated
268 # by the length of the suffix required to make the value unique on the
269 # server.
270 #
271 # If this field is specified and the generated name exists, the server will
272 # NOT return a 409 - instead, it will either return 201 Created or 500 with
273 # Reason ServerTimeout indicating a unique name could not be found in the
274 # time allotted, and the client should retry (optionally after the time
275 # indicated in the Retry-After header).
276 #
277 # Applied only if Name is not specified.
278 # More info:
279 # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700280 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700281 # string generateName = 2;
282 &quot;name&quot;: &quot;A String&quot;, # Name must be unique within a namespace, within a Cloud Run region.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700283 # Is required when creating
284 # resources, although some resources may allow a client to request the
285 # generation of an appropriate name automatically. Name is primarily intended
286 # for creation idempotence and configuration definition. Cannot be updated.
287 # More info: http://kubernetes.io/docs/user-guide/identifiers#names
288 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700289 &quot;clusterName&quot;: &quot;A String&quot;, # Not currently supported by Cloud Run.
290 #
291 # The name of the cluster which the object belongs to.
292 # This is used to distinguish resources with same name and namespace in
293 # different clusters. This field is not set anywhere right now and apiserver
294 # is going to ignore it if set in create or update request. +optional
295 &quot;deletionGracePeriodSeconds&quot;: 42, # Not currently supported by Cloud Run.
296 #
297 # Number of seconds allowed for this object to gracefully terminate before
298 # it will be removed from the system. Only set when deletionTimestamp is also
299 # set. May only be shortened. Read-only. +optional
300 &quot;finalizers&quot;: [ # Not currently supported by Cloud Run.
301 #
302 # Must be empty before the object is deleted from the registry. Each entry
303 # is an identifier for the responsible component that will remove the entry
304 # from the list. If the deletionTimestamp of the object is non-nil, entries
305 # in this list can only be removed.
306 # +optional
307 # +patchStrategy=merge
308 &quot;A String&quot;,
309 ],
310 &quot;deletionTimestamp&quot;: &quot;A String&quot;, # DeletionTimestamp is RFC 3339 date and time at which this resource will be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700311 # deleted. This field is set by the server when a graceful deletion is
312 # requested by the user, and is not directly settable by a client. The
313 # resource is expected to be deleted (no longer visible from resource lists,
314 # and not reachable by name) after the time in this field, once the
315 # finalizers list is empty. As long as the finalizers list contains items,
316 # deletion is blocked. Once the deletionTimestamp is set, this value may not
317 # be unset or be set further into the future, although it may be shortened or
318 # the resource may be deleted prior to this time. For example, a user may
319 # request that a pod is deleted in 30 seconds. The Kubelet will react by
320 # sending a graceful termination signal to the containers in the pod. After
321 # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL)
322 # to the container and after cleanup, remove the pod from the API. In the
323 # presence of network partitions, this object may still exist after this
324 # timestamp, until an administrator or automated process can determine the
325 # resource is fully terminated.
326 # If not set, graceful deletion of the object has not been requested.
327 #
328 # Populated by the system when a graceful deletion is requested.
329 # Read-only.
330 # More info:
331 # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
332 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700333 &quot;ownerReferences&quot;: [ # List of objects that own this object. If ALL objects in the list have
334 # been deleted, this object will be garbage collected.
335 # +optional
336 { # OwnerReference contains enough information to let you identify an owning
337 # object. Currently, an owning object must be in the same namespace, so there
338 # is no namespace field.
339 &quot;apiVersion&quot;: &quot;A String&quot;, # API version of the referent.
340 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
341 # More info: http://kubernetes.io/docs/user-guide/identifiers#names
342 &quot;uid&quot;: &quot;A String&quot;, # UID of the referent.
343 # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
344 &quot;controller&quot;: True or False, # If true, this reference points to the managing controller.
345 # +optional
346 &quot;kind&quot;: &quot;A String&quot;, # Kind of the referent.
347 # More info:
348 # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
349 &quot;blockOwnerDeletion&quot;: True or False, # If true, AND if the owner has the &quot;foregroundDeletion&quot; finalizer, then
350 # the owner cannot be deleted from the key-value store until this
351 # reference is removed.
352 # Defaults to false.
353 # To set this field, a user needs &quot;delete&quot; permission of the owner,
354 # otherwise 422 (Unprocessable Entity) will be returned.
355 # +optional
356 },
357 ],
358 &quot;creationTimestamp&quot;: &quot;A String&quot;, # CreationTimestamp is a timestamp representing the server time when this
359 # object was created. It is not guaranteed to be set in happens-before order
360 # across separate operations. Clients may not set this value. It is
361 # represented in RFC3339 form and is in UTC.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700362 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700363 # Populated by the system.
364 # Read-only.
365 # Null for lists.
366 # More info:
367 # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
368 # +optional
369 &quot;labels&quot;: { # Map of string keys and values that can be used to organize and categorize
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700370 # (scope and select) objects. May match selectors of replication controllers
371 # and routes.
372 # More info: http://kubernetes.io/docs/user-guide/labels
373 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700374 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700375 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700376 &quot;generation&quot;: 42, # A sequence number representing a specific generation of the desired state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700377 # Populated by the system. Read-only.
378 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700379 &quot;resourceVersion&quot;: &quot;A String&quot;, # An opaque value that represents the internal version of this object that
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700380 # can be used by clients to determine when objects have changed. May be used
381 # for optimistic concurrency, change detection, and the watch operation on a
382 # resource or set of resources. Clients must treat these values as opaque and
383 # passed unmodified back to the server. They may only be valid for a
384 # particular resource or set of resources.
385 #
386 # Populated by the system.
387 # Read-only.
388 # Value must be treated as opaque by clients and .
389 # More info:
390 # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
391 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700392 &quot;uid&quot;: &quot;A String&quot;, # UID is the unique in time and space value for this object. It is typically
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700393 # generated by the server on successful creation of a resource and is not
394 # allowed to change on PUT operations.
395 #
396 # Populated by the system.
397 # Read-only.
398 # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
399 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700400 &quot;selfLink&quot;: &quot;A String&quot;, # SelfLink is a URL representing this object.
401 # Populated by the system.
402 # Read-only.
403 # +optional
404 # string selfLink = 4;
405 &quot;namespace&quot;: &quot;A String&quot;, # Namespace defines the space within each name must be unique, within a
406 # Cloud Run region. In Cloud Run the namespace must be equal to either the
407 # project ID or project number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700408 },
409 }</pre>
410</div>
411
412<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700413 <code class="details" id="list">list(parent, labelSelector=None, resourceVersion=None, includeUninitialized=None, fieldSelector=None, continue=None, limit=None, watch=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700414 <pre>Rpc to list routes.
415
416Args:
417 parent: string, The project ID or project number from which the routes should be listed. (required)
418 labelSelector: string, Allows to filter resources based on a label. Supported operations are
419=, !=, exists, in, and notIn.
Bu Sun Kim65020912020-05-20 12:08:20 -0700420 resourceVersion: string, The baseline resource version from which the list or watch operation should
421start. Not currently used by Cloud Run.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700422 includeUninitialized: boolean, Not currently used by Cloud Run.
Bu Sun Kim65020912020-05-20 12:08:20 -0700423 fieldSelector: string, Allows to filter resources based on a specific value for a field name.
424Send this in a query string format. i.e. &#x27;metadata.name%3Dlorem&#x27;.
425Not currently used by Cloud Run.
426 continue: string, Optional encoded string to continue paging.
427 limit: integer, The maximum number of records that should be returned.
428 watch: boolean, Flag that indicates that the client expects to watch this resource as well.
429Not currently used by Cloud Run.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700430 x__xgafv: string, V1 error format.
431 Allowed values
432 1 - v1 error format
433 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700434
435Returns:
436 An object of the form:
437
438 { # ListRoutesResponse is a list of Route resources.
Bu Sun Kim65020912020-05-20 12:08:20 -0700439 &quot;apiVersion&quot;: &quot;A String&quot;, # The API version for this call such as &quot;serving.knative.dev/v1alpha1&quot;.
440 &quot;kind&quot;: &quot;A String&quot;, # The kind of this resource, in this case always &quot;RouteList&quot;.
441 &quot;unreachable&quot;: [ # Locations that could not be reached.
442 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700443 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700444 &quot;metadata&quot;: { # ListMeta describes metadata that synthetic resources must have, including # Metadata associated with this Route list.
445 # lists and various status objects. A resource may have only one of
446 # {ObjectMeta, ListMeta}.
447 &quot;resourceVersion&quot;: &quot;A String&quot;, # String that identifies the server&#x27;s internal version of this object that
448 # can be used by clients to determine when objects have changed. Value must
449 # be treated as opaque by clients and passed unmodified back to the server.
450 # Populated by the system.
451 # Read-only.
452 # More info:
453 # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
454 # +optional
455 &quot;continue&quot;: &quot;A String&quot;, # continue may be set if the user set a limit on the number of items
456 # returned, and indicates that the server has more data available. The value
457 # is opaque and may be used to issue another request to the endpoint that
458 # served this list to retrieve the next set of available objects. Continuing
459 # a list may not be possible if the server configuration has changed or more
460 # than a few minutes have passed. The resourceVersion field returned when
461 # using this continue value will be identical to the value in the first
462 # response.
463 &quot;selfLink&quot;: &quot;A String&quot;, # SelfLink is a URL representing this object.
464 # Populated by the system.
465 # Read-only.
466 # +optional
467 },
468 &quot;items&quot;: [ # List of Routes.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700469 { # Route is responsible for configuring ingress over a collection of Revisions.
470 # Some of the Revisions a Route distributes traffic over may be specified by
471 # referencing the Configuration responsible for creating them; in these cases
472 # the Route is additionally responsible for monitoring the Configuration for
Bu Sun Kim65020912020-05-20 12:08:20 -0700473 # &quot;latest ready&quot; revision changes, and smoothly rolling out latest revisions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700474 # See also:
475 # https://github.com/knative/serving/blob/master/docs/spec/overview.md#route
476 #
477 # Cloud Run currently supports referencing a single Configuration to
Bu Sun Kim65020912020-05-20 12:08:20 -0700478 # automatically deploy the &quot;latest ready&quot; Revision from that Configuration.
479 &quot;status&quot;: { # RouteStatus communicates the observed state of the Route (from the # Status communicates the observed state of the Route (from the controller).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700480 # controller).
Bu Sun Kim65020912020-05-20 12:08:20 -0700481 &quot;conditions&quot;: [ # Conditions communicates information about ongoing/complete
482 # reconciliation processes that bring the &quot;spec&quot; inline with the observed
483 # state of the world.
484 { # RouteCondition defines a readiness condition for a Route.
485 &quot;message&quot;: &quot;A String&quot;, # Human-readable message indicating details about last transition.
486 # +optional
487 &quot;lastTransitionTime&quot;: &quot;A String&quot;, # Last time the condition transitioned from one status to another.
488 # +optional
489 &quot;status&quot;: &quot;A String&quot;, # Status of the condition, one of &quot;True&quot;, &quot;False&quot;, &quot;Unknown&quot;.
490 &quot;severity&quot;: &quot;A String&quot;, # How to interpret failures of this condition, one of Error, Warning, Info
491 # +optional
492 &quot;reason&quot;: &quot;A String&quot;, # One-word CamelCase reason for the condition&#x27;s last transition.
493 # +optional
494 &quot;type&quot;: &quot;A String&quot;, # RouteConditionType is used to communicate the status of the reconciliation
495 # process. See also:
496 # https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting
497 # Types include: &quot;Ready&quot;.
498 },
499 ],
500 &quot;address&quot;: { # Information for connecting over HTTP(s). # Similar to url, information on where the service is available on HTTP.
501 &quot;url&quot;: &quot;A String&quot;,
502 &quot;hostname&quot;: &quot;A String&quot;, # Deprecated - use url instead.
503 },
504 &quot;observedGeneration&quot;: 42, # ObservedGeneration is the &#x27;Generation&#x27; of the Route that
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700505 # was last processed by the controller.
506 #
507 # Clients polling for completed reconciliation should poll until
Bu Sun Kim65020912020-05-20 12:08:20 -0700508 # observedGeneration = metadata.generation and the Ready condition&#x27;s status
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700509 # is True or False.
510 #
511 # Note that providing a trafficTarget that only has a configurationName will
512 # result in a Route that does not increment either its metadata.generation or
Bu Sun Kim65020912020-05-20 12:08:20 -0700513 # its observedGeneration, as new &quot;latest ready&quot; revisions from the
514 # Configuration are processed without an update to the Route&#x27;s spec.
515 &quot;url&quot;: &quot;A String&quot;, # URL holds the url that will distribute traffic over the provided traffic
Dan O'Mearadd494642020-05-01 07:42:23 -0700516 # targets. It generally has the form
517 # https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.app
Bu Sun Kim65020912020-05-20 12:08:20 -0700518 &quot;traffic&quot;: [ # Traffic holds the configured traffic distribution.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700519 # These entries will always contain RevisionName references.
520 # When ConfigurationName appears in the spec, this will hold the
521 # LatestReadyRevisionName that we last observed.
522 { # TrafficTarget holds a single entry of the routing table for a Route.
Bu Sun Kim65020912020-05-20 12:08:20 -0700523 &quot;name&quot;: &quot;A String&quot;, # Name is optionally used to expose a dedicated hostname for referencing this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700524 # target exclusively.
525 #
526 # Not currently supported by Cloud Run.
527 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700528 &quot;configurationName&quot;: &quot;A String&quot;, # ConfigurationName of a configuration to whose latest revision we will
529 # send this portion of traffic. When the &quot;status.latestReadyRevisionName&quot;
530 # of the referenced configuration changes, we will automatically migrate
531 # traffic from the prior &quot;latest ready&quot; revision to the new one. This field
532 # is never set in Route&#x27;s status, only its spec. This is mutually exclusive
533 # with RevisionName.
534 #
535 # Cloud Run currently supports a single ConfigurationName.
536 &quot;percent&quot;: 42, # Percent specifies percent of the traffic to this Revision or Configuration.
537 # This defaults to zero if unspecified.
538 #
539 # Cloud Run currently requires 100 percent for a single ConfigurationName
540 # TrafficTarget entry.
541 &quot;revisionName&quot;: &quot;A String&quot;, # RevisionName of a specific revision to which to send this portion of
542 # traffic. This is mutually exclusive with ConfigurationName.
543 #
544 # Providing RevisionName in spec is not currently supported by Cloud Run.
545 &quot;latestRevision&quot;: True or False, # LatestRevision may be optionally provided to indicate that the latest
546 # ready Revision of the Configuration should be used for this traffic
547 # target. When provided LatestRevision must be true if RevisionName is
548 # empty; it must be false when RevisionName is non-empty.
549 # +optional
550 &quot;tag&quot;: &quot;A String&quot;, # Tag is optionally used to expose a dedicated url for referencing
551 # this target exclusively.
552 #
553 # Not currently supported in Cloud Run.
554 # +optional
555 &quot;url&quot;: &quot;A String&quot;, # Output only. URL displays the URL for accessing named traffic targets. URL
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700556 # is displayed in status, and is disallowed on spec. URL must contain a
557 # scheme (e.g. http://) and a hostname, but may not contain anything else
558 # (e.g. basic auth, url path, etc.
559 #
560 # Not currently supported in Cloud Run.
Bu Sun Kim65020912020-05-20 12:08:20 -0700561 },
562 ],
563 &quot;domain&quot;: &quot;A String&quot;, # Deprecated - use url instead.
564 # Domain holds the top-level domain that will distribute traffic over the
565 # provided targets.
566 &quot;domainInternal&quot;: &quot;A String&quot;, # Deprecated - use address instead.
567 # For Cloud Run, identifical to domain.
568 },
569 &quot;apiVersion&quot;: &quot;A String&quot;, # The API version for this call such as &quot;serving.knative.dev/v1alpha1&quot;.
570 &quot;spec&quot;: { # RouteSpec holds the desired state of the Route (from the client). # Spec holds the desired state of the Route (from the client).
571 &quot;traffic&quot;: [ # Traffic specifies how to distribute traffic over a collection of Knative
572 # Revisions and Configurations.
573 # Cloud Run currently supports a single configurationName.
574 { # TrafficTarget holds a single entry of the routing table for a Route.
575 &quot;name&quot;: &quot;A String&quot;, # Name is optionally used to expose a dedicated hostname for referencing this
576 # target exclusively.
577 #
578 # Not currently supported by Cloud Run.
579 # +optional
580 &quot;configurationName&quot;: &quot;A String&quot;, # ConfigurationName of a configuration to whose latest revision we will
581 # send this portion of traffic. When the &quot;status.latestReadyRevisionName&quot;
582 # of the referenced configuration changes, we will automatically migrate
583 # traffic from the prior &quot;latest ready&quot; revision to the new one. This field
584 # is never set in Route&#x27;s status, only its spec. This is mutually exclusive
585 # with RevisionName.
586 #
587 # Cloud Run currently supports a single ConfigurationName.
588 &quot;percent&quot;: 42, # Percent specifies percent of the traffic to this Revision or Configuration.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700589 # This defaults to zero if unspecified.
590 #
591 # Cloud Run currently requires 100 percent for a single ConfigurationName
592 # TrafficTarget entry.
Bu Sun Kim65020912020-05-20 12:08:20 -0700593 &quot;revisionName&quot;: &quot;A String&quot;, # RevisionName of a specific revision to which to send this portion of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700594 # traffic. This is mutually exclusive with ConfigurationName.
595 #
596 # Providing RevisionName in spec is not currently supported by Cloud Run.
Bu Sun Kim65020912020-05-20 12:08:20 -0700597 &quot;latestRevision&quot;: True or False, # LatestRevision may be optionally provided to indicate that the latest
598 # ready Revision of the Configuration should be used for this traffic
599 # target. When provided LatestRevision must be true if RevisionName is
600 # empty; it must be false when RevisionName is non-empty.
601 # +optional
602 &quot;tag&quot;: &quot;A String&quot;, # Tag is optionally used to expose a dedicated url for referencing
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700603 # this target exclusively.
604 #
605 # Not currently supported in Cloud Run.
606 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700607 &quot;url&quot;: &quot;A String&quot;, # Output only. URL displays the URL for accessing named traffic targets. URL
608 # is displayed in status, and is disallowed on spec. URL must contain a
609 # scheme (e.g. http://) and a hostname, but may not contain anything else
610 # (e.g. basic auth, url path, etc.
611 #
612 # Not currently supported in Cloud Run.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700613 },
614 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700615 &quot;generation&quot;: 42, # Deprecated and not currently populated by Cloud Run. See
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700616 # metadata.generation instead, which is the sequence number containing the
617 # latest generation of the desired state.
618 #
619 # Read-only.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700620 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700621 &quot;kind&quot;: &quot;A String&quot;, # The kind of this resource, in this case always &quot;Route&quot;.
622 &quot;metadata&quot;: { # ObjectMeta is metadata that all persisted resources must have, which includes # Metadata associated with this Route, including name, namespace, labels,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700623 # and annotations.
624 # all objects users must create.
Bu Sun Kim65020912020-05-20 12:08:20 -0700625 &quot;annotations&quot;: { # Annotations is an unstructured key value map stored with a resource that
626 # may be set by external tools to store and retrieve arbitrary metadata. They
627 # are not queryable and should be preserved when modifying objects. More
628 # info: http://kubernetes.io/docs/user-guide/annotations +optional
629 &quot;a_key&quot;: &quot;A String&quot;,
630 },
631 &quot;generateName&quot;: &quot;A String&quot;, # Not currently supported by Cloud Run.
632 #
633 # GenerateName is an optional prefix, used by the server, to generate a
634 # unique name ONLY IF the Name field has not been provided. If this field is
635 # used, the name returned to the client will be different than the name
636 # passed. This value will also be combined with a unique suffix. The provided
637 # value has the same validation rules as the Name field, and may be truncated
638 # by the length of the suffix required to make the value unique on the
639 # server.
640 #
641 # If this field is specified and the generated name exists, the server will
642 # NOT return a 409 - instead, it will either return 201 Created or 500 with
643 # Reason ServerTimeout indicating a unique name could not be found in the
644 # time allotted, and the client should retry (optionally after the time
645 # indicated in the Retry-After header).
646 #
647 # Applied only if Name is not specified.
648 # More info:
649 # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700650 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700651 # string generateName = 2;
652 &quot;name&quot;: &quot;A String&quot;, # Name must be unique within a namespace, within a Cloud Run region.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700653 # Is required when creating
654 # resources, although some resources may allow a client to request the
655 # generation of an appropriate name automatically. Name is primarily intended
656 # for creation idempotence and configuration definition. Cannot be updated.
657 # More info: http://kubernetes.io/docs/user-guide/identifiers#names
658 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700659 &quot;clusterName&quot;: &quot;A String&quot;, # Not currently supported by Cloud Run.
660 #
661 # The name of the cluster which the object belongs to.
662 # This is used to distinguish resources with same name and namespace in
663 # different clusters. This field is not set anywhere right now and apiserver
664 # is going to ignore it if set in create or update request. +optional
665 &quot;deletionGracePeriodSeconds&quot;: 42, # Not currently supported by Cloud Run.
666 #
667 # Number of seconds allowed for this object to gracefully terminate before
668 # it will be removed from the system. Only set when deletionTimestamp is also
669 # set. May only be shortened. Read-only. +optional
670 &quot;finalizers&quot;: [ # Not currently supported by Cloud Run.
671 #
672 # Must be empty before the object is deleted from the registry. Each entry
673 # is an identifier for the responsible component that will remove the entry
674 # from the list. If the deletionTimestamp of the object is non-nil, entries
675 # in this list can only be removed.
676 # +optional
677 # +patchStrategy=merge
678 &quot;A String&quot;,
679 ],
680 &quot;deletionTimestamp&quot;: &quot;A String&quot;, # DeletionTimestamp is RFC 3339 date and time at which this resource will be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700681 # deleted. This field is set by the server when a graceful deletion is
682 # requested by the user, and is not directly settable by a client. The
683 # resource is expected to be deleted (no longer visible from resource lists,
684 # and not reachable by name) after the time in this field, once the
685 # finalizers list is empty. As long as the finalizers list contains items,
686 # deletion is blocked. Once the deletionTimestamp is set, this value may not
687 # be unset or be set further into the future, although it may be shortened or
688 # the resource may be deleted prior to this time. For example, a user may
689 # request that a pod is deleted in 30 seconds. The Kubelet will react by
690 # sending a graceful termination signal to the containers in the pod. After
691 # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL)
692 # to the container and after cleanup, remove the pod from the API. In the
693 # presence of network partitions, this object may still exist after this
694 # timestamp, until an administrator or automated process can determine the
695 # resource is fully terminated.
696 # If not set, graceful deletion of the object has not been requested.
697 #
698 # Populated by the system when a graceful deletion is requested.
699 # Read-only.
700 # More info:
701 # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
702 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700703 &quot;ownerReferences&quot;: [ # List of objects that own this object. If ALL objects in the list have
704 # been deleted, this object will be garbage collected.
705 # +optional
706 { # OwnerReference contains enough information to let you identify an owning
707 # object. Currently, an owning object must be in the same namespace, so there
708 # is no namespace field.
709 &quot;apiVersion&quot;: &quot;A String&quot;, # API version of the referent.
710 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
711 # More info: http://kubernetes.io/docs/user-guide/identifiers#names
712 &quot;uid&quot;: &quot;A String&quot;, # UID of the referent.
713 # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
714 &quot;controller&quot;: True or False, # If true, this reference points to the managing controller.
715 # +optional
716 &quot;kind&quot;: &quot;A String&quot;, # Kind of the referent.
717 # More info:
718 # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
719 &quot;blockOwnerDeletion&quot;: True or False, # If true, AND if the owner has the &quot;foregroundDeletion&quot; finalizer, then
720 # the owner cannot be deleted from the key-value store until this
721 # reference is removed.
722 # Defaults to false.
723 # To set this field, a user needs &quot;delete&quot; permission of the owner,
724 # otherwise 422 (Unprocessable Entity) will be returned.
725 # +optional
726 },
727 ],
728 &quot;creationTimestamp&quot;: &quot;A String&quot;, # CreationTimestamp is a timestamp representing the server time when this
729 # object was created. It is not guaranteed to be set in happens-before order
730 # across separate operations. Clients may not set this value. It is
731 # represented in RFC3339 form and is in UTC.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700732 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700733 # Populated by the system.
734 # Read-only.
735 # Null for lists.
736 # More info:
737 # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
738 # +optional
739 &quot;labels&quot;: { # Map of string keys and values that can be used to organize and categorize
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700740 # (scope and select) objects. May match selectors of replication controllers
741 # and routes.
742 # More info: http://kubernetes.io/docs/user-guide/labels
743 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700744 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700745 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700746 &quot;generation&quot;: 42, # A sequence number representing a specific generation of the desired state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700747 # Populated by the system. Read-only.
748 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700749 &quot;resourceVersion&quot;: &quot;A String&quot;, # An opaque value that represents the internal version of this object that
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700750 # can be used by clients to determine when objects have changed. May be used
751 # for optimistic concurrency, change detection, and the watch operation on a
752 # resource or set of resources. Clients must treat these values as opaque and
753 # passed unmodified back to the server. They may only be valid for a
754 # particular resource or set of resources.
755 #
756 # Populated by the system.
757 # Read-only.
758 # Value must be treated as opaque by clients and .
759 # More info:
760 # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
761 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700762 &quot;uid&quot;: &quot;A String&quot;, # UID is the unique in time and space value for this object. It is typically
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700763 # generated by the server on successful creation of a resource and is not
764 # allowed to change on PUT operations.
765 #
766 # Populated by the system.
767 # Read-only.
768 # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
769 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700770 &quot;selfLink&quot;: &quot;A String&quot;, # SelfLink is a URL representing this object.
771 # Populated by the system.
772 # Read-only.
773 # +optional
774 # string selfLink = 4;
775 &quot;namespace&quot;: &quot;A String&quot;, # Namespace defines the space within each name must be unique, within a
776 # Cloud Run region. In Cloud Run the namespace must be equal to either the
777 # project ID or project number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700778 },
779 },
780 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700781 }</pre>
782</div>
783
784</body></html>