Skip to content

Commit de851d2

Browse files
feat(run): update the api
#### run:v1alpha1 The following keys were added: - schemas.GoogleRpcStatus (Total Keys: 8) - schemas.InstanceAttemptResult (Total Keys: 5) - schemas.InstanceStatus.properties.lastAttemptResult.$ref (Total Keys: 1)
1 parent bc20f1e commit de851d2

File tree

3 files changed

+97
-2
lines changed

3 files changed

+97
-2
lines changed

docs/dyn/run_v1alpha1.namespaces.jobs.html

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,18 @@ <h3>Method Details</h3>
369369
&quot;completionTime&quot;: &quot;A String&quot;, # Optional. Represents time when the instance was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. +optional
370370
&quot;failed&quot;: 42, # Optional. The number of times this instance exited with code &gt; 0; +optional
371371
&quot;index&quot;: 42, # Required. Index of the instance, unique per Job, and beginning at 0.
372+
&quot;lastAttemptResult&quot;: { # Result of an instance attempt. # Optional. Result of the last attempt of this instance. +optional
373+
&quot;exitCode&quot;: 42, # Optional. The exit code of this attempt. This may be unset if the container was unable to exit cleanly with a code due to some other failure. See status field for possible failure details.
374+
&quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Optional. The status of this attempt. If the status code is OK, then the attempt succeeded.
375+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
376+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
377+
{
378+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
379+
},
380+
],
381+
&quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
382+
},
383+
},
372384
&quot;lastExitCode&quot;: 42, # Optional. Last exit code seen for this instance. +optional
373385
&quot;restarted&quot;: 42, # Optional. The number of times this instance was restarted. Instances are restarted according the restartPolicy configured in the Job template. +optional
374386
&quot;startTime&quot;: &quot;A String&quot;, # Optional. Represents time when the instance was created by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. +optional
@@ -654,6 +666,18 @@ <h3>Method Details</h3>
654666
&quot;completionTime&quot;: &quot;A String&quot;, # Optional. Represents time when the instance was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. +optional
655667
&quot;failed&quot;: 42, # Optional. The number of times this instance exited with code &gt; 0; +optional
656668
&quot;index&quot;: 42, # Required. Index of the instance, unique per Job, and beginning at 0.
669+
&quot;lastAttemptResult&quot;: { # Result of an instance attempt. # Optional. Result of the last attempt of this instance. +optional
670+
&quot;exitCode&quot;: 42, # Optional. The exit code of this attempt. This may be unset if the container was unable to exit cleanly with a code due to some other failure. See status field for possible failure details.
671+
&quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Optional. The status of this attempt. If the status code is OK, then the attempt succeeded.
672+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
673+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
674+
{
675+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
676+
},
677+
],
678+
&quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
679+
},
680+
},
657681
&quot;lastExitCode&quot;: 42, # Optional. Last exit code seen for this instance. +optional
658682
&quot;restarted&quot;: 42, # Optional. The number of times this instance was restarted. Instances are restarted according the restartPolicy configured in the Job template. +optional
659683
&quot;startTime&quot;: &quot;A String&quot;, # Optional. Represents time when the instance was created by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. +optional
@@ -967,6 +991,18 @@ <h3>Method Details</h3>
967991
&quot;completionTime&quot;: &quot;A String&quot;, # Optional. Represents time when the instance was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. +optional
968992
&quot;failed&quot;: 42, # Optional. The number of times this instance exited with code &gt; 0; +optional
969993
&quot;index&quot;: 42, # Required. Index of the instance, unique per Job, and beginning at 0.
994+
&quot;lastAttemptResult&quot;: { # Result of an instance attempt. # Optional. Result of the last attempt of this instance. +optional
995+
&quot;exitCode&quot;: 42, # Optional. The exit code of this attempt. This may be unset if the container was unable to exit cleanly with a code due to some other failure. See status field for possible failure details.
996+
&quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Optional. The status of this attempt. If the status code is OK, then the attempt succeeded.
997+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
998+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
999+
{
1000+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1001+
},
1002+
],
1003+
&quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1004+
},
1005+
},
9701006
&quot;lastExitCode&quot;: 42, # Optional. Last exit code seen for this instance. +optional
9711007
&quot;restarted&quot;: 42, # Optional. The number of times this instance was restarted. Instances are restarted according the restartPolicy configured in the Job template. +optional
9721008
&quot;startTime&quot;: &quot;A String&quot;, # Optional. Represents time when the instance was created by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. +optional
@@ -1269,6 +1305,18 @@ <h3>Method Details</h3>
12691305
&quot;completionTime&quot;: &quot;A String&quot;, # Optional. Represents time when the instance was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. +optional
12701306
&quot;failed&quot;: 42, # Optional. The number of times this instance exited with code &gt; 0; +optional
12711307
&quot;index&quot;: 42, # Required. Index of the instance, unique per Job, and beginning at 0.
1308+
&quot;lastAttemptResult&quot;: { # Result of an instance attempt. # Optional. Result of the last attempt of this instance. +optional
1309+
&quot;exitCode&quot;: 42, # Optional. The exit code of this attempt. This may be unset if the container was unable to exit cleanly with a code due to some other failure. See status field for possible failure details.
1310+
&quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Optional. The status of this attempt. If the status code is OK, then the attempt succeeded.
1311+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1312+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1313+
{
1314+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1315+
},
1316+
],
1317+
&quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1318+
},
1319+
},
12721320
&quot;lastExitCode&quot;: 42, # Optional. Last exit code seen for this instance. +optional
12731321
&quot;restarted&quot;: 42, # Optional. The number of times this instance was restarted. Instances are restarted according the restartPolicy configured in the Job template. +optional
12741322
&quot;startTime&quot;: &quot;A String&quot;, # Optional. Represents time when the instance was created by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. +optional

googleapiclient/discovery_cache/documents/run.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1736,7 +1736,7 @@
17361736
}
17371737
}
17381738
},
1739-
"revision": "20210901",
1739+
"revision": "20210910",
17401740
"rootUrl": "https://run.googleapis.com/",
17411741
"schemas": {
17421742
"Addressable": {

googleapiclient/discovery_cache/documents/run.v1alpha1.json

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@
268268
}
269269
}
270270
},
271-
"revision": "20210901",
271+
"revision": "20210910",
272272
"rootUrl": "https://run.googleapis.com/",
273273
"schemas": {
274274
"ConfigMapEnvSource": {
@@ -525,6 +525,33 @@
525525
},
526526
"type": "object"
527527
},
528+
"GoogleRpcStatus": {
529+
"description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).",
530+
"id": "GoogleRpcStatus",
531+
"properties": {
532+
"code": {
533+
"description": "The status code, which should be an enum value of google.rpc.Code.",
534+
"format": "int32",
535+
"type": "integer"
536+
},
537+
"details": {
538+
"description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.",
539+
"items": {
540+
"additionalProperties": {
541+
"description": "Properties of the object. Contains field @type with type URL.",
542+
"type": "any"
543+
},
544+
"type": "object"
545+
},
546+
"type": "array"
547+
},
548+
"message": {
549+
"description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.",
550+
"type": "string"
551+
}
552+
},
553+
"type": "object"
554+
},
528555
"HTTPGetAction": {
529556
"description": "Not supported by Cloud Run HTTPGetAction describes an action based on HTTP Get requests.",
530557
"id": "HTTPGetAction",
@@ -566,6 +593,22 @@
566593
},
567594
"type": "object"
568595
},
596+
"InstanceAttemptResult": {
597+
"description": "Result of an instance attempt.",
598+
"id": "InstanceAttemptResult",
599+
"properties": {
600+
"exitCode": {
601+
"description": "Optional. The exit code of this attempt. This may be unset if the container was unable to exit cleanly with a code due to some other failure. See status field for possible failure details.",
602+
"format": "int32",
603+
"type": "integer"
604+
},
605+
"status": {
606+
"$ref": "GoogleRpcStatus",
607+
"description": "Optional. The status of this attempt. If the status code is OK, then the attempt succeeded."
608+
}
609+
},
610+
"type": "object"
611+
},
569612
"InstanceSpec": {
570613
"description": "InstanceSpec is a description of an instance.",
571614
"id": "InstanceSpec",
@@ -624,6 +667,10 @@
624667
"format": "int32",
625668
"type": "integer"
626669
},
670+
"lastAttemptResult": {
671+
"$ref": "InstanceAttemptResult",
672+
"description": "Optional. Result of the last attempt of this instance. +optional"
673+
},
627674
"lastExitCode": {
628675
"description": "Optional. Last exit code seen for this instance. +optional",
629676
"format": "int32",

0 commit comments

Comments
 (0)