google-apis-run_v2 0.60.0 → 0.62.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e5dd4188e5445a928a54f958f0ccfb6364c122713f9d3a949d84be3917b6ac7
4
- data.tar.gz: 46e1366cd9e8e18afd4515d1cacbc8be1280685bd414398cf9520ffbd1724a96
3
+ metadata.gz: 7c24ca63a65a0b3947706fe0d5cb77ffbac1e4816e299c717c5d67e33490f5a8
4
+ data.tar.gz: 77bbf6c55792308d06b3fbd09198696ba0a813829b871d17a2fc08e59b8e4447
5
5
  SHA512:
6
- metadata.gz: f7482a5510f6a7a7da3b8e378321eea55361301a4d9ee48303e3b2f65b5f20f9cddd5e0e9ca8a0687fb0fa6e72709200c039a9ea8397eefffaed650d82cfdb5b
7
- data.tar.gz: 5ba7253130b80a0c861615d02dcb119d6cabbb97fe11f447a38acd4829eb01cc0cd4a2b9952faef172b3c95464c32add127f208e748b7e824dd92740bcd2a38a
6
+ metadata.gz: e38a56b4da03f4f4f536eb15e8eb7d64373cf82bb402ba7232f743b6e4699d5d2b492099c6e536ef4d6ce6ddac4cb3923e066c59fe2d3eb607a6d795262142f4
7
+ data.tar.gz: e8ccc0c4f270ebc35ba2ded509b8ae815d52a24dabce9048582e61f9c84fb1557b58bc9e91586dafe99dc19423c81b74e39a1d795f455cd974c24fed18e0a76a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-run_v2
2
2
 
3
+ ### v0.62.0 (2024-04-21)
4
+
5
+ * Regenerated from discovery document revision 20240412
6
+
7
+ ### v0.61.0 (2024-03-31)
8
+
9
+ * Regenerated from discovery document revision 20240322
10
+
3
11
  ### v0.60.0 (2024-03-17)
4
12
 
5
13
  * Regenerated from discovery document revision 20240310
@@ -26,7 +26,7 @@ module Google
26
26
  class GoogleCloudRunV2BinaryAuthorization
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
- # If present, indicates to use Breakglass using this justification. If
29
+ # Optional. If present, indicates to use Breakglass using this justification. If
30
30
  # use_default is False, then it must be empty. For more information on
31
31
  # breakglass, see https://cloud.google.com/binary-authorization/docs/using-
32
32
  # breakglass
@@ -34,8 +34,14 @@ module Google
34
34
  # @return [String]
35
35
  attr_accessor :breakglass_justification
36
36
 
37
- # If True, indicates to use the default project's binary authorization policy.
38
- # If False, binary authorization will be disabled.
37
+ # Optional. The path to a binary authorization policy. Format: projects/`project`
38
+ # /platforms/cloudRun/`policy-name`
39
+ # Corresponds to the JSON property `policy`
40
+ # @return [String]
41
+ attr_accessor :policy
42
+
43
+ # Optional. If True, indicates to use the default project's binary authorization
44
+ # policy. If False, binary authorization will be disabled.
39
45
  # Corresponds to the JSON property `useDefault`
40
46
  # @return [Boolean]
41
47
  attr_accessor :use_default
@@ -48,6 +54,7 @@ module Google
48
54
  # Update properties of this object
49
55
  def update!(**args)
50
56
  @breakglass_justification = args[:breakglass_justification] if args.key?(:breakglass_justification)
57
+ @policy = args[:policy] if args.key?(:policy)
51
58
  @use_default = args[:use_default] if args.key?(:use_default)
52
59
  end
53
60
  end
@@ -108,7 +115,7 @@ module Google
108
115
  class GoogleCloudRunV2Condition
109
116
  include Google::Apis::Core::Hashable
110
117
 
111
- # A reason for the execution condition.
118
+ # Output only. A reason for the execution condition.
112
119
  # Corresponds to the JSON property `executionReason`
113
120
  # @return [String]
114
121
  attr_accessor :execution_reason
@@ -123,12 +130,12 @@ module Google
123
130
  # @return [String]
124
131
  attr_accessor :message
125
132
 
126
- # A common (service-level) reason for this condition.
133
+ # Output only. A common (service-level) reason for this condition.
127
134
  # Corresponds to the JSON property `reason`
128
135
  # @return [String]
129
136
  attr_accessor :reason
130
137
 
131
- # A reason for the revision condition.
138
+ # Output only. A reason for the revision condition.
132
139
  # Corresponds to the JSON property `revisionReason`
133
140
  # @return [String]
134
141
  attr_accessor :revision_reason
@@ -733,16 +740,88 @@ module Google
733
740
  end
734
741
  end
735
742
 
736
- # Represents a GCS Bucket mounted as a volume.
743
+ # Request message for exporting Cloud Run image.
744
+ class GoogleCloudRunV2ExportImageRequest
745
+ include Google::Apis::Core::Hashable
746
+
747
+ # Required. The export destination url (the Artifact Registry repo).
748
+ # Corresponds to the JSON property `destinationRepo`
749
+ # @return [String]
750
+ attr_accessor :destination_repo
751
+
752
+ def initialize(**args)
753
+ update!(**args)
754
+ end
755
+
756
+ # Update properties of this object
757
+ def update!(**args)
758
+ @destination_repo = args[:destination_repo] if args.key?(:destination_repo)
759
+ end
760
+ end
761
+
762
+ # ExportImageResponse contains an operation Id to track the image export
763
+ # operation.
764
+ class GoogleCloudRunV2ExportImageResponse
765
+ include Google::Apis::Core::Hashable
766
+
767
+ # An operation ID used to track the status of image exports tied to the original
768
+ # pod ID in the request.
769
+ # Corresponds to the JSON property `operationId`
770
+ # @return [String]
771
+ attr_accessor :operation_id
772
+
773
+ def initialize(**args)
774
+ update!(**args)
775
+ end
776
+
777
+ # Update properties of this object
778
+ def update!(**args)
779
+ @operation_id = args[:operation_id] if args.key?(:operation_id)
780
+ end
781
+ end
782
+
783
+ # ExportStatusResponse contains the status of image export operation, with the
784
+ # status of each image export job.
785
+ class GoogleCloudRunV2ExportStatusResponse
786
+ include Google::Apis::Core::Hashable
787
+
788
+ # The status of each image export job.
789
+ # Corresponds to the JSON property `imageExportStatuses`
790
+ # @return [Array<Google::Apis::RunV2::GoogleCloudRunV2ImageExportStatus>]
791
+ attr_accessor :image_export_statuses
792
+
793
+ # The operation id.
794
+ # Corresponds to the JSON property `operationId`
795
+ # @return [String]
796
+ attr_accessor :operation_id
797
+
798
+ # Output only. The state of the overall export operation.
799
+ # Corresponds to the JSON property `operationState`
800
+ # @return [String]
801
+ attr_accessor :operation_state
802
+
803
+ def initialize(**args)
804
+ update!(**args)
805
+ end
806
+
807
+ # Update properties of this object
808
+ def update!(**args)
809
+ @image_export_statuses = args[:image_export_statuses] if args.key?(:image_export_statuses)
810
+ @operation_id = args[:operation_id] if args.key?(:operation_id)
811
+ @operation_state = args[:operation_state] if args.key?(:operation_state)
812
+ end
813
+ end
814
+
815
+ # Represents a volume backed by a Cloud Storage bucket using Cloud Storage FUSE.
737
816
  class GoogleCloudRunV2GcsVolumeSource
738
817
  include Google::Apis::Core::Hashable
739
818
 
740
- # GCS Bucket name
819
+ # Cloud Storage Bucket name.
741
820
  # Corresponds to the JSON property `bucket`
742
821
  # @return [String]
743
822
  attr_accessor :bucket
744
823
 
745
- # If true, mount the GCS bucket as read-only
824
+ # If true, the volume will be mounted as read only for all mounts.
746
825
  # Corresponds to the JSON property `readOnly`
747
826
  # @return [Boolean]
748
827
  attr_accessor :read_only
@@ -763,16 +842,17 @@ module Google
763
842
  class GoogleCloudRunV2GrpcAction
764
843
  include Google::Apis::Core::Hashable
765
844
 
766
- # Port number of the gRPC service. Number must be in the range 1 to 65535. If
767
- # not specified, defaults to the exposed port of the container, which is the
768
- # value of container.ports[0].containerPort.
845
+ # Optional. Port number of the gRPC service. Number must be in the range 1 to
846
+ # 65535. If not specified, defaults to the exposed port of the container, which
847
+ # is the value of container.ports[0].containerPort.
769
848
  # Corresponds to the JSON property `port`
770
849
  # @return [Fixnum]
771
850
  attr_accessor :port
772
851
 
773
- # Service is the name of the service to place in the gRPC HealthCheckRequest (
774
- # see https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this
775
- # is not specified, the default behavior is defined by gRPC.
852
+ # Optional. Service is the name of the service to place in the gRPC
853
+ # HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-
854
+ # checking.md ). If this is not specified, the default behavior is defined by
855
+ # gRPC.
776
856
  # Corresponds to the JSON property `service`
777
857
  # @return [String]
778
858
  attr_accessor :service
@@ -792,19 +872,19 @@ module Google
792
872
  class GoogleCloudRunV2HttpGetAction
793
873
  include Google::Apis::Core::Hashable
794
874
 
795
- # Custom headers to set in the request. HTTP allows repeated headers.
875
+ # Optional. Custom headers to set in the request. HTTP allows repeated headers.
796
876
  # Corresponds to the JSON property `httpHeaders`
797
877
  # @return [Array<Google::Apis::RunV2::GoogleCloudRunV2HttpHeader>]
798
878
  attr_accessor :http_headers
799
879
 
800
- # Path to access on the HTTP server. Defaults to '/'.
880
+ # Optional. Path to access on the HTTP server. Defaults to '/'.
801
881
  # Corresponds to the JSON property `path`
802
882
  # @return [String]
803
883
  attr_accessor :path
804
884
 
805
- # Port number to access on the container. Must be in the range 1 to 65535. If
806
- # not specified, defaults to the exposed port of the container, which is the
807
- # value of container.ports[0].containerPort.
885
+ # Optional. Port number to access on the container. Must be in the range 1 to
886
+ # 65535. If not specified, defaults to the exposed port of the container, which
887
+ # is the value of container.ports[0].containerPort.
808
888
  # Corresponds to the JSON property `port`
809
889
  # @return [Fixnum]
810
890
  attr_accessor :port
@@ -830,7 +910,7 @@ module Google
830
910
  # @return [String]
831
911
  attr_accessor :name
832
912
 
833
- # The header field value
913
+ # Optional. The header field value
834
914
  # Corresponds to the JSON property `value`
835
915
  # @return [String]
836
916
  attr_accessor :value
@@ -846,6 +926,44 @@ module Google
846
926
  end
847
927
  end
848
928
 
929
+ # The status of an image export job.
930
+ class GoogleCloudRunV2ImageExportStatus
931
+ include Google::Apis::Core::Hashable
932
+
933
+ # Output only. Has the image export job finished (regardless of successful or
934
+ # failure).
935
+ # Corresponds to the JSON property `exportJobState`
936
+ # @return [String]
937
+ attr_accessor :export_job_state
938
+
939
+ # The exported image ID as it will appear in Artifact Registry.
940
+ # Corresponds to the JSON property `exportedImageDigest`
941
+ # @return [String]
942
+ attr_accessor :exported_image_digest
943
+
944
+ # Wire-format for a Status object
945
+ # Corresponds to the JSON property `status`
946
+ # @return [Google::Apis::RunV2::UtilStatusProto]
947
+ attr_accessor :status
948
+
949
+ # The image tag as it will appear in Artifact Registry.
950
+ # Corresponds to the JSON property `tag`
951
+ # @return [String]
952
+ attr_accessor :tag
953
+
954
+ def initialize(**args)
955
+ update!(**args)
956
+ end
957
+
958
+ # Update properties of this object
959
+ def update!(**args)
960
+ @export_job_state = args[:export_job_state] if args.key?(:export_job_state)
961
+ @exported_image_digest = args[:exported_image_digest] if args.key?(:exported_image_digest)
962
+ @status = args[:status] if args.key?(:status)
963
+ @tag = args[:tag] if args.key?(:tag)
964
+ end
965
+ end
966
+
849
967
  # Job represents the configuration of a single job, which references a container
850
968
  # image that is run to completion.
851
969
  class GoogleCloudRunV2Job
@@ -997,6 +1115,13 @@ module Google
997
1115
  attr_accessor :satisfies_pzs
998
1116
  alias_method :satisfies_pzs?, :satisfies_pzs
999
1117
 
1118
+ # A unique string used as a suffix creating a new execution. The Job will become
1119
+ # ready when the execution is successfully started. The sum of job name and
1120
+ # token length must be fewer than 63 characters.
1121
+ # Corresponds to the JSON property `startExecutionToken`
1122
+ # @return [String]
1123
+ attr_accessor :start_execution_token
1124
+
1000
1125
  # ExecutionTemplate describes the data an execution should have when created
1001
1126
  # from a template.
1002
1127
  # Corresponds to the JSON property `template`
@@ -1046,6 +1171,7 @@ module Google
1046
1171
  @observed_generation = args[:observed_generation] if args.key?(:observed_generation)
1047
1172
  @reconciling = args[:reconciling] if args.key?(:reconciling)
1048
1173
  @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
1174
+ @start_execution_token = args[:start_execution_token] if args.key?(:start_execution_token)
1049
1175
  @template = args[:template] if args.key?(:template)
1050
1176
  @terminal_condition = args[:terminal_condition] if args.key?(:terminal_condition)
1051
1177
  @uid = args[:uid] if args.key?(:uid)
@@ -1183,6 +1309,25 @@ module Google
1183
1309
  end
1184
1310
  end
1185
1311
 
1312
+ # Metadata represents the JSON encoded generated customer metadata.
1313
+ class GoogleCloudRunV2Metadata
1314
+ include Google::Apis::Core::Hashable
1315
+
1316
+ # JSON encoded Google-generated Customer Metadata for a given resource/project.
1317
+ # Corresponds to the JSON property `metadata`
1318
+ # @return [String]
1319
+ attr_accessor :metadata
1320
+
1321
+ def initialize(**args)
1322
+ update!(**args)
1323
+ end
1324
+
1325
+ # Update properties of this object
1326
+ def update!(**args)
1327
+ @metadata = args[:metadata] if args.key?(:metadata)
1328
+ end
1329
+ end
1330
+
1186
1331
  # Represents an NFS mount.
1187
1332
  class GoogleCloudRunV2NfsVolumeSource
1188
1333
  include Google::Apis::Core::Hashable
@@ -1192,7 +1337,7 @@ module Google
1192
1337
  # @return [String]
1193
1338
  attr_accessor :path
1194
1339
 
1195
- # If true, mount the NFS volume as read only
1340
+ # If true, the volume will be mounted as read only for all mounts.
1196
1341
  # Corresponds to the JSON property `readOnly`
1197
1342
  # @return [Boolean]
1198
1343
  attr_accessor :read_only
@@ -1219,25 +1364,25 @@ module Google
1219
1364
  class GoogleCloudRunV2NetworkInterface
1220
1365
  include Google::Apis::Core::Hashable
1221
1366
 
1222
- # The VPC network that the Cloud Run resource will be able to send traffic to.
1223
- # At least one of network or subnetwork must be specified. If both network and
1224
- # subnetwork are specified, the given VPC subnetwork must belong to the given
1225
- # VPC network. If network is not specified, it will be looked up from the
1226
- # subnetwork.
1367
+ # Optional. The VPC network that the Cloud Run resource will be able to send
1368
+ # traffic to. At least one of network or subnetwork must be specified. If both
1369
+ # network and subnetwork are specified, the given VPC subnetwork must belong to
1370
+ # the given VPC network. If network is not specified, it will be looked up from
1371
+ # the subnetwork.
1227
1372
  # Corresponds to the JSON property `network`
1228
1373
  # @return [String]
1229
1374
  attr_accessor :network
1230
1375
 
1231
- # The VPC subnetwork that the Cloud Run resource will get IPs from. At least one
1232
- # of network or subnetwork must be specified. If both network and subnetwork are
1233
- # specified, the given VPC subnetwork must belong to the given VPC network. If
1234
- # subnetwork is not specified, the subnetwork with the same name with the
1235
- # network will be used.
1376
+ # Optional. The VPC subnetwork that the Cloud Run resource will get IPs from. At
1377
+ # least one of network or subnetwork must be specified. If both network and
1378
+ # subnetwork are specified, the given VPC subnetwork must belong to the given
1379
+ # VPC network. If subnetwork is not specified, the subnetwork with the same name
1380
+ # with the network will be used.
1236
1381
  # Corresponds to the JSON property `subnetwork`
1237
1382
  # @return [String]
1238
1383
  attr_accessor :subnetwork
1239
1384
 
1240
- # Network tags applied to this Cloud Run resource.
1385
+ # Optional. Network tags applied to this Cloud Run resource.
1241
1386
  # Corresponds to the JSON property `tags`
1242
1387
  # @return [Array<String>]
1243
1388
  attr_accessor :tags
@@ -1293,8 +1438,8 @@ module Google
1293
1438
  class GoogleCloudRunV2Probe
1294
1439
  include Google::Apis::Core::Hashable
1295
1440
 
1296
- # Minimum consecutive failures for the probe to be considered failed after
1297
- # having succeeded. Defaults to 3. Minimum value is 1.
1441
+ # Optional. Minimum consecutive failures for the probe to be considered failed
1442
+ # after having succeeded. Defaults to 3. Minimum value is 1.
1298
1443
  # Corresponds to the JSON property `failureThreshold`
1299
1444
  # @return [Fixnum]
1300
1445
  attr_accessor :failure_threshold
@@ -1309,16 +1454,16 @@ module Google
1309
1454
  # @return [Google::Apis::RunV2::GoogleCloudRunV2HttpGetAction]
1310
1455
  attr_accessor :http_get
1311
1456
 
1312
- # Number of seconds after the container has started before the probe is
1313
- # initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for
1457
+ # Optional. Number of seconds after the container has started before the probe
1458
+ # is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for
1314
1459
  # liveness probe is 3600. Maximum value for startup probe is 240.
1315
1460
  # Corresponds to the JSON property `initialDelaySeconds`
1316
1461
  # @return [Fixnum]
1317
1462
  attr_accessor :initial_delay_seconds
1318
1463
 
1319
- # How often (in seconds) to perform the probe. Default to 10 seconds. Minimum
1320
- # value is 1. Maximum value for liveness probe is 3600. Maximum value for
1321
- # startup probe is 240. Must be greater or equal than timeout_seconds.
1464
+ # Optional. How often (in seconds) to perform the probe. Default to 10 seconds.
1465
+ # Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value
1466
+ # for startup probe is 240. Must be greater or equal than timeout_seconds.
1322
1467
  # Corresponds to the JSON property `periodSeconds`
1323
1468
  # @return [Fixnum]
1324
1469
  attr_accessor :period_seconds
@@ -1328,8 +1473,9 @@ module Google
1328
1473
  # @return [Google::Apis::RunV2::GoogleCloudRunV2TcpSocketAction]
1329
1474
  attr_accessor :tcp_socket
1330
1475
 
1331
- # Number of seconds after which the probe times out. Defaults to 1 second.
1332
- # Minimum value is 1. Maximum value is 3600. Must be smaller than period_seconds.
1476
+ # Optional. Number of seconds after which the probe times out. Defaults to 1
1477
+ # second. Minimum value is 1. Maximum value is 3600. Must be smaller than
1478
+ # period_seconds.
1333
1479
  # Corresponds to the JSON property `timeoutSeconds`
1334
1480
  # @return [Fixnum]
1335
1481
  attr_accessor :timeout_seconds
@@ -1623,12 +1769,12 @@ module Google
1623
1769
  class GoogleCloudRunV2RevisionScaling
1624
1770
  include Google::Apis::Core::Hashable
1625
1771
 
1626
- # Maximum number of serving instances that this resource should have.
1772
+ # Optional. Maximum number of serving instances that this resource should have.
1627
1773
  # Corresponds to the JSON property `maxInstanceCount`
1628
1774
  # @return [Fixnum]
1629
1775
  attr_accessor :max_instance_count
1630
1776
 
1631
- # Minimum number of serving instances that this resource should have.
1777
+ # Optional. Minimum number of serving instances that this resource should have.
1632
1778
  # Corresponds to the JSON property `minInstanceCount`
1633
1779
  # @return [Fixnum]
1634
1780
  attr_accessor :min_instance_count
@@ -1668,10 +1814,10 @@ module Google
1668
1814
  class GoogleCloudRunV2RevisionTemplate
1669
1815
  include Google::Apis::Core::Hashable
1670
1816
 
1671
- # Unstructured key value map that may be set by external tools to store and
1672
- # arbitrary metadata. They are not queryable and should be preserved when
1673
- # modifying objects. Cloud Run API v2 does not support annotations with `run.
1674
- # googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `
1817
+ # Optional. Unstructured key value map that may be set by external tools to
1818
+ # store and arbitrary metadata. They are not queryable and should be preserved
1819
+ # when modifying objects. Cloud Run API v2 does not support annotations with `
1820
+ # run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `
1675
1821
  # autoscaling.knative.dev` namespaces, and they will be rejected. All system
1676
1822
  # annotations in v1 now have a corresponding field in v2 RevisionTemplate. This
1677
1823
  # field follows Kubernetes annotations' namespacing, limits, and rules.
@@ -1692,7 +1838,7 @@ module Google
1692
1838
  # @return [String]
1693
1839
  attr_accessor :encryption_key
1694
1840
 
1695
- # The sandbox environment to host this Revision.
1841
+ # Optional. The sandbox environment to host this Revision.
1696
1842
  # Corresponds to the JSON property `executionEnvironment`
1697
1843
  # @return [String]
1698
1844
  attr_accessor :execution_environment
@@ -1703,26 +1849,27 @@ module Google
1703
1849
  attr_accessor :health_check_disabled
1704
1850
  alias_method :health_check_disabled?, :health_check_disabled
1705
1851
 
1706
- # Unstructured key value map that can be used to organize and categorize objects.
1707
- # User-provided labels are shared with Google's billing system, so they can be
1708
- # used to filter, or break down billing charges by team, component, environment,
1709
- # state, etc. For more information, visit https://cloud.google.com/resource-
1710
- # manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/
1711
- # configuring/labels. Cloud Run API v2 does not support labels with `run.
1712
- # googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `
1713
- # autoscaling.knative.dev` namespaces, and they will be rejected. All system
1714
- # labels in v1 now have a corresponding field in v2 RevisionTemplate.
1852
+ # Optional. Unstructured key value map that can be used to organize and
1853
+ # categorize objects. User-provided labels are shared with Google's billing
1854
+ # system, so they can be used to filter, or break down billing charges by team,
1855
+ # component, environment, state, etc. For more information, visit https://cloud.
1856
+ # google.com/resource-manager/docs/creating-managing-labels or https://cloud.
1857
+ # google.com/run/docs/configuring/labels. Cloud Run API v2 does not support
1858
+ # labels with `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`
1859
+ # , or `autoscaling.knative.dev` namespaces, and they will be rejected. All
1860
+ # system labels in v1 now have a corresponding field in v2 RevisionTemplate.
1715
1861
  # Corresponds to the JSON property `labels`
1716
1862
  # @return [Hash<String,String>]
1717
1863
  attr_accessor :labels
1718
1864
 
1719
- # Sets the maximum number of requests that each serving instance can receive.
1865
+ # Optional. Sets the maximum number of requests that each serving instance can
1866
+ # receive.
1720
1867
  # Corresponds to the JSON property `maxInstanceRequestConcurrency`
1721
1868
  # @return [Fixnum]
1722
1869
  attr_accessor :max_instance_request_concurrency
1723
1870
 
1724
- # The unique name for the revision. If this field is omitted, it will be
1725
- # automatically generated based on the Service name.
1871
+ # Optional. The unique name for the revision. If this field is omitted, it will
1872
+ # be automatically generated based on the Service name.
1726
1873
  # Corresponds to the JSON property `revision`
1727
1874
  # @return [String]
1728
1875
  attr_accessor :revision
@@ -1732,10 +1879,10 @@ module Google
1732
1879
  # @return [Google::Apis::RunV2::GoogleCloudRunV2RevisionScaling]
1733
1880
  attr_accessor :scaling
1734
1881
 
1735
- # Email address of the IAM service account associated with the revision of the
1736
- # service. The service account represents the identity of the running revision,
1737
- # and determines what permissions the revision has. If not provided, the
1738
- # revision will use the project's default service account.
1882
+ # Optional. Email address of the IAM service account associated with the
1883
+ # revision of the service. The service account represents the identity of the
1884
+ # running revision, and determines what permissions the revision has. If not
1885
+ # provided, the revision will use the project's default service account.
1739
1886
  # Corresponds to the JSON property `serviceAccount`
1740
1887
  # @return [String]
1741
1888
  attr_accessor :service_account
@@ -1746,12 +1893,12 @@ module Google
1746
1893
  attr_accessor :session_affinity
1747
1894
  alias_method :session_affinity?, :session_affinity
1748
1895
 
1749
- # Max allowed time for an instance to respond to a request.
1896
+ # Optional. Max allowed time for an instance to respond to a request.
1750
1897
  # Corresponds to the JSON property `timeout`
1751
1898
  # @return [String]
1752
1899
  attr_accessor :timeout
1753
1900
 
1754
- # A list of Volumes to make available to containers.
1901
+ # Optional. A list of Volumes to make available to containers.
1755
1902
  # Corresponds to the JSON property `volumes`
1756
1903
  # @return [Array<Google::Apis::RunV2::GoogleCloudRunV2Volume>]
1757
1904
  attr_accessor :volumes
@@ -1995,8 +2142,8 @@ module Google
1995
2142
  # @return [Fixnum]
1996
2143
  attr_accessor :generation
1997
2144
 
1998
- # Provides the ingress settings for this Service. On output, returns the
1999
- # currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
2145
+ # Optional. Provides the ingress settings for this Service. On output, returns
2146
+ # the currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
2000
2147
  # revision is active.
2001
2148
  # Corresponds to the JSON property `ingress`
2002
2149
  # @return [String]
@@ -2033,13 +2180,13 @@ module Google
2033
2180
  # @return [String]
2034
2181
  attr_accessor :latest_ready_revision
2035
2182
 
2036
- # The launch stage as defined by [Google Cloud Platform Launch Stages](https://
2037
- # cloud.google.com/terms/launch-stages). Cloud Run supports `ALPHA`, `BETA`, and
2038
- # `GA`. If no value is specified, GA is assumed. Set the launch stage to a
2039
- # preview stage on input to allow use of preview features in that stage. On read
2040
- # (or output), describes whether the resource uses preview features. For example,
2041
- # if ALPHA is provided as input, but only BETA and GA-level features are used,
2042
- # this field will be BETA on output.
2183
+ # Optional. The launch stage as defined by [Google Cloud Platform Launch Stages](
2184
+ # https://cloud.google.com/terms/launch-stages). Cloud Run supports `ALPHA`, `
2185
+ # BETA`, and `GA`. If no value is specified, GA is assumed. Set the launch stage
2186
+ # to a preview stage on input to allow use of preview features in that stage. On
2187
+ # read (or output), describes whether the resource uses preview features. For
2188
+ # example, if ALPHA is provided as input, but only BETA and GA-level features
2189
+ # are used, this field will be BETA on output.
2043
2190
  # Corresponds to the JSON property `launchStage`
2044
2191
  # @return [String]
2045
2192
  attr_accessor :launch_stage
@@ -2106,9 +2253,9 @@ module Google
2106
2253
  # @return [Google::Apis::RunV2::GoogleCloudRunV2Condition]
2107
2254
  attr_accessor :terminal_condition
2108
2255
 
2109
- # Specifies how to distribute traffic over a collection of Revisions belonging
2110
- # to the Service. If traffic is empty or not provided, defaults to 100% traffic
2111
- # to the latest `Ready` Revision.
2256
+ # Optional. Specifies how to distribute traffic over a collection of Revisions
2257
+ # belonging to the Service. If traffic is empty or not provided, defaults to 100%
2258
+ # traffic to the latest `Ready` Revision.
2112
2259
  # Corresponds to the JSON property `traffic`
2113
2260
  # @return [Array<Google::Apis::RunV2::GoogleCloudRunV2TrafficTarget>]
2114
2261
  attr_accessor :traffic
@@ -2182,9 +2329,9 @@ module Google
2182
2329
  class GoogleCloudRunV2ServiceScaling
2183
2330
  include Google::Apis::Core::Hashable
2184
2331
 
2185
- # total min instances for the service. This number of instances is divided among
2186
- # all revisions with specified traffic based on the percent of traffic they are
2187
- # receiving. (BETA)
2332
+ # Optional. total min instances for the service. This number of instances is
2333
+ # divided among all revisions with specified traffic based on the percent of
2334
+ # traffic they are receiving. (BETA)
2188
2335
  # Corresponds to the JSON property `minInstanceCount`
2189
2336
  # @return [Fixnum]
2190
2337
  attr_accessor :min_instance_count
@@ -2203,9 +2350,9 @@ module Google
2203
2350
  class GoogleCloudRunV2TcpSocketAction
2204
2351
  include Google::Apis::Core::Hashable
2205
2352
 
2206
- # Port number to access on the container. Must be in the range 1 to 65535. If
2207
- # not specified, defaults to the exposed port of the container, which is the
2208
- # value of container.ports[0].containerPort.
2353
+ # Optional. Port number to access on the container. Must be in the range 1 to
2354
+ # 65535. If not specified, defaults to the exposed port of the container, which
2355
+ # is the value of container.ports[0].containerPort.
2209
2356
  # Corresponds to the JSON property `port`
2210
2357
  # @return [Fixnum]
2211
2358
  attr_accessor :port
@@ -2500,7 +2647,7 @@ module Google
2500
2647
  # @return [String]
2501
2648
  attr_accessor :encryption_key
2502
2649
 
2503
- # The execution environment being used to host this Task.
2650
+ # Optional. The execution environment being used to host this Task.
2504
2651
  # Corresponds to the JSON property `executionEnvironment`
2505
2652
  # @return [String]
2506
2653
  attr_accessor :execution_environment
@@ -2511,23 +2658,23 @@ module Google
2511
2658
  # @return [Fixnum]
2512
2659
  attr_accessor :max_retries
2513
2660
 
2514
- # Email address of the IAM service account associated with the Task of a Job.
2515
- # The service account represents the identity of the running task, and
2661
+ # Optional. Email address of the IAM service account associated with the Task of
2662
+ # a Job. The service account represents the identity of the running task, and
2516
2663
  # determines what permissions the task has. If not provided, the task will use
2517
2664
  # the project's default service account.
2518
2665
  # Corresponds to the JSON property `serviceAccount`
2519
2666
  # @return [String]
2520
2667
  attr_accessor :service_account
2521
2668
 
2522
- # Max allowed time duration the Task may be active before the system will
2523
- # actively try to mark it failed and kill associated containers. This applies
2524
- # per attempt of a task, meaning each retry can run for the full timeout.
2669
+ # Optional. Max allowed time duration the Task may be active before the system
2670
+ # will actively try to mark it failed and kill associated containers. This
2671
+ # applies per attempt of a task, meaning each retry can run for the full timeout.
2525
2672
  # Defaults to 600 seconds.
2526
2673
  # Corresponds to the JSON property `timeout`
2527
2674
  # @return [String]
2528
2675
  attr_accessor :timeout
2529
2676
 
2530
- # A list of Volumes to make available to containers.
2677
+ # Optional. A list of Volumes to make available to containers.
2531
2678
  # Corresponds to the JSON property `volumes`
2532
2679
  # @return [Array<Google::Apis::RunV2::GoogleCloudRunV2Volume>]
2533
2680
  attr_accessor :volumes
@@ -2698,7 +2845,7 @@ module Google
2698
2845
  # @return [Google::Apis::RunV2::GoogleCloudRunV2EmptyDirVolumeSource]
2699
2846
  attr_accessor :empty_dir
2700
2847
 
2701
- # Represents a GCS Bucket mounted as a volume.
2848
+ # Represents a volume backed by a Cloud Storage bucket using Cloud Storage FUSE.
2702
2849
  # Corresponds to the JSON property `gcs`
2703
2850
  # @return [Google::Apis::RunV2::GoogleCloudRunV2GcsVolumeSource]
2704
2851
  attr_accessor :gcs
@@ -2777,14 +2924,14 @@ module Google
2777
2924
  # @return [String]
2778
2925
  attr_accessor :connector
2779
2926
 
2780
- # Traffic VPC egress settings. If not provided, it defaults to
2927
+ # Optional. Traffic VPC egress settings. If not provided, it defaults to
2781
2928
  # PRIVATE_RANGES_ONLY.
2782
2929
  # Corresponds to the JSON property `egress`
2783
2930
  # @return [String]
2784
2931
  attr_accessor :egress
2785
2932
 
2786
- # Direct VPC egress settings. Currently only single network interface is
2787
- # supported.
2933
+ # Optional. Direct VPC egress settings. Currently only single network interface
2934
+ # is supported.
2788
2935
  # Corresponds to the JSON property `networkInterfaces`
2789
2936
  # @return [Array<Google::Apis::RunV2::GoogleCloudRunV2NetworkInterface>]
2790
2937
  attr_accessor :network_interfaces
@@ -5042,6 +5189,66 @@ module Google
5042
5189
  @title = args[:title] if args.key?(:title)
5043
5190
  end
5044
5191
  end
5192
+
5193
+ # This is proto2's version of MessageSet.
5194
+ class Proto2BridgeMessageSet
5195
+ include Google::Apis::Core::Hashable
5196
+
5197
+ def initialize(**args)
5198
+ update!(**args)
5199
+ end
5200
+
5201
+ # Update properties of this object
5202
+ def update!(**args)
5203
+ end
5204
+ end
5205
+
5206
+ # Wire-format for a Status object
5207
+ class UtilStatusProto
5208
+ include Google::Apis::Core::Hashable
5209
+
5210
+ # The canonical error code (see codes.proto) that most closely corresponds to
5211
+ # this status. This may be missing, and in the common case of the generic space,
5212
+ # it definitely will be.
5213
+ # Corresponds to the JSON property `canonicalCode`
5214
+ # @return [Fixnum]
5215
+ attr_accessor :canonical_code
5216
+
5217
+ # Numeric code drawn from the space specified below. Often, this is the
5218
+ # canonical error space, and code is drawn from google3/util/task/codes.proto
5219
+ # Corresponds to the JSON property `code`
5220
+ # @return [Fixnum]
5221
+ attr_accessor :code
5222
+
5223
+ # Detail message
5224
+ # Corresponds to the JSON property `message`
5225
+ # @return [String]
5226
+ attr_accessor :message
5227
+
5228
+ # This is proto2's version of MessageSet.
5229
+ # Corresponds to the JSON property `messageSet`
5230
+ # @return [Google::Apis::RunV2::Proto2BridgeMessageSet]
5231
+ attr_accessor :message_set
5232
+
5233
+ # The following are usually only present when code != 0 Space to which this
5234
+ # status belongs
5235
+ # Corresponds to the JSON property `space`
5236
+ # @return [String]
5237
+ attr_accessor :space
5238
+
5239
+ def initialize(**args)
5240
+ update!(**args)
5241
+ end
5242
+
5243
+ # Update properties of this object
5244
+ def update!(**args)
5245
+ @canonical_code = args[:canonical_code] if args.key?(:canonical_code)
5246
+ @code = args[:code] if args.key?(:code)
5247
+ @message = args[:message] if args.key?(:message)
5248
+ @message_set = args[:message_set] if args.key?(:message_set)
5249
+ @space = args[:space] if args.key?(:space)
5250
+ end
5251
+ end
5045
5252
  end
5046
5253
  end
5047
5254
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RunV2
18
18
  # Version of the google-apis-run_v2 gem
19
- GEM_VERSION = "0.60.0"
19
+ GEM_VERSION = "0.62.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240310"
25
+ REVISION = "20240412"
26
26
  end
27
27
  end
28
28
  end
@@ -100,6 +100,24 @@ module Google
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
+ class GoogleCloudRunV2ExportImageRequest
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class GoogleCloudRunV2ExportImageResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class GoogleCloudRunV2ExportStatusResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
103
121
  class GoogleCloudRunV2GcsVolumeSource
104
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
123
 
@@ -124,6 +142,12 @@ module Google
124
142
  include Google::Apis::Core::JsonObjectSupport
125
143
  end
126
144
 
145
+ class GoogleCloudRunV2ImageExportStatus
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
127
151
  class GoogleCloudRunV2Job
128
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
153
 
@@ -160,6 +184,12 @@ module Google
160
184
  include Google::Apis::Core::JsonObjectSupport
161
185
  end
162
186
 
187
+ class GoogleCloudRunV2Metadata
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
163
193
  class GoogleCloudRunV2NfsVolumeSource
164
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
195
 
@@ -592,10 +622,23 @@ module Google
592
622
  include Google::Apis::Core::JsonObjectSupport
593
623
  end
594
624
 
625
+ class Proto2BridgeMessageSet
626
+ class Representation < Google::Apis::Core::JsonRepresentation; end
627
+
628
+ include Google::Apis::Core::JsonObjectSupport
629
+ end
630
+
631
+ class UtilStatusProto
632
+ class Representation < Google::Apis::Core::JsonRepresentation; end
633
+
634
+ include Google::Apis::Core::JsonObjectSupport
635
+ end
636
+
595
637
  class GoogleCloudRunV2BinaryAuthorization
596
638
  # @private
597
639
  class Representation < Google::Apis::Core::JsonRepresentation
598
640
  property :breakglass_justification, as: 'breakglassJustification'
641
+ property :policy, as: 'policy'
599
642
  property :use_default, as: 'useDefault'
600
643
  end
601
644
  end
@@ -754,6 +797,30 @@ module Google
754
797
  end
755
798
  end
756
799
 
800
+ class GoogleCloudRunV2ExportImageRequest
801
+ # @private
802
+ class Representation < Google::Apis::Core::JsonRepresentation
803
+ property :destination_repo, as: 'destinationRepo'
804
+ end
805
+ end
806
+
807
+ class GoogleCloudRunV2ExportImageResponse
808
+ # @private
809
+ class Representation < Google::Apis::Core::JsonRepresentation
810
+ property :operation_id, as: 'operationId'
811
+ end
812
+ end
813
+
814
+ class GoogleCloudRunV2ExportStatusResponse
815
+ # @private
816
+ class Representation < Google::Apis::Core::JsonRepresentation
817
+ collection :image_export_statuses, as: 'imageExportStatuses', class: Google::Apis::RunV2::GoogleCloudRunV2ImageExportStatus, decorator: Google::Apis::RunV2::GoogleCloudRunV2ImageExportStatus::Representation
818
+
819
+ property :operation_id, as: 'operationId'
820
+ property :operation_state, as: 'operationState'
821
+ end
822
+ end
823
+
757
824
  class GoogleCloudRunV2GcsVolumeSource
758
825
  # @private
759
826
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -788,6 +855,17 @@ module Google
788
855
  end
789
856
  end
790
857
 
858
+ class GoogleCloudRunV2ImageExportStatus
859
+ # @private
860
+ class Representation < Google::Apis::Core::JsonRepresentation
861
+ property :export_job_state, as: 'exportJobState'
862
+ property :exported_image_digest, as: 'exportedImageDigest'
863
+ property :status, as: 'status', class: Google::Apis::RunV2::UtilStatusProto, decorator: Google::Apis::RunV2::UtilStatusProto::Representation
864
+
865
+ property :tag, as: 'tag'
866
+ end
867
+ end
868
+
791
869
  class GoogleCloudRunV2Job
792
870
  # @private
793
871
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -814,6 +892,7 @@ module Google
814
892
  property :observed_generation, :numeric_string => true, as: 'observedGeneration'
815
893
  property :reconciling, as: 'reconciling'
816
894
  property :satisfies_pzs, as: 'satisfiesPzs'
895
+ property :start_execution_token, as: 'startExecutionToken'
817
896
  property :template, as: 'template', class: Google::Apis::RunV2::GoogleCloudRunV2ExecutionTemplate, decorator: Google::Apis::RunV2::GoogleCloudRunV2ExecutionTemplate::Representation
818
897
 
819
898
  property :terminal_condition, as: 'terminalCondition', class: Google::Apis::RunV2::GoogleCloudRunV2Condition, decorator: Google::Apis::RunV2::GoogleCloudRunV2Condition::Representation
@@ -868,6 +947,13 @@ module Google
868
947
  end
869
948
  end
870
949
 
950
+ class GoogleCloudRunV2Metadata
951
+ # @private
952
+ class Representation < Google::Apis::Core::JsonRepresentation
953
+ property :metadata, as: 'metadata'
954
+ end
955
+ end
956
+
871
957
  class GoogleCloudRunV2NfsVolumeSource
872
958
  # @private
873
959
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1759,6 +1845,24 @@ module Google
1759
1845
  property :title, as: 'title'
1760
1846
  end
1761
1847
  end
1848
+
1849
+ class Proto2BridgeMessageSet
1850
+ # @private
1851
+ class Representation < Google::Apis::Core::JsonRepresentation
1852
+ end
1853
+ end
1854
+
1855
+ class UtilStatusProto
1856
+ # @private
1857
+ class Representation < Google::Apis::Core::JsonRepresentation
1858
+ property :canonical_code, as: 'canonicalCode'
1859
+ property :code, as: 'code'
1860
+ property :message, as: 'message'
1861
+ property :message_set, as: 'messageSet', class: Google::Apis::RunV2::Proto2BridgeMessageSet, decorator: Google::Apis::RunV2::Proto2BridgeMessageSet::Representation
1862
+
1863
+ property :space, as: 'space'
1864
+ end
1865
+ end
1762
1866
  end
1763
1867
  end
1764
1868
  end
@@ -54,6 +54,110 @@ module Google
54
54
  @batch_path = 'batch'
55
55
  end
56
56
 
57
+ # Export image for a given resource.
58
+ # @param [String] name
59
+ # Required. The name of the resource of which image metadata should be exported.
60
+ # Format: `projects/`project_id_or_number`/locations/`location`/services/`
61
+ # service`/revisions/`revision`` for Revision `projects/`project_id_or_number`/
62
+ # locations/`location`/jobs/`job`/executions/`execution`` for Execution
63
+ # @param [Google::Apis::RunV2::GoogleCloudRunV2ExportImageRequest] google_cloud_run_v2_export_image_request_object
64
+ # @param [String] fields
65
+ # Selector specifying which fields to include in a partial response.
66
+ # @param [String] quota_user
67
+ # Available to use for quota purposes for server-side applications. Can be any
68
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
69
+ # @param [Google::Apis::RequestOptions] options
70
+ # Request-specific options
71
+ #
72
+ # @yield [result, err] Result & error if block supplied
73
+ # @yieldparam result [Google::Apis::RunV2::GoogleCloudRunV2ExportImageResponse] parsed result object
74
+ # @yieldparam err [StandardError] error object if request failed
75
+ #
76
+ # @return [Google::Apis::RunV2::GoogleCloudRunV2ExportImageResponse]
77
+ #
78
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
79
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
80
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
81
+ def export_project_location_image(name, google_cloud_run_v2_export_image_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
82
+ command = make_simple_command(:post, 'v2/{+name}:exportImage', options)
83
+ command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2ExportImageRequest::Representation
84
+ command.request_object = google_cloud_run_v2_export_image_request_object
85
+ command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ExportImageResponse::Representation
86
+ command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ExportImageResponse
87
+ command.params['name'] = name unless name.nil?
88
+ command.query['fields'] = fields unless fields.nil?
89
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
90
+ execute_or_queue_command(command, &block)
91
+ end
92
+
93
+ # Export image metadata for a given resource.
94
+ # @param [String] name
95
+ # Required. The name of the resource of which image metadata should be exported.
96
+ # Format: `projects/`project_id_or_number`/locations/`location`/services/`
97
+ # service`/revisions/`revision`` for Revision `projects/`project_id_or_number`/
98
+ # locations/`location`/jobs/`job`/executions/`execution`` for Execution
99
+ # @param [String] fields
100
+ # Selector specifying which fields to include in a partial response.
101
+ # @param [String] quota_user
102
+ # Available to use for quota purposes for server-side applications. Can be any
103
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
104
+ # @param [Google::Apis::RequestOptions] options
105
+ # Request-specific options
106
+ #
107
+ # @yield [result, err] Result & error if block supplied
108
+ # @yieldparam result [Google::Apis::RunV2::GoogleCloudRunV2Metadata] parsed result object
109
+ # @yieldparam err [StandardError] error object if request failed
110
+ #
111
+ # @return [Google::Apis::RunV2::GoogleCloudRunV2Metadata]
112
+ #
113
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
114
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
115
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
116
+ def export_project_location_image_metadata(name, fields: nil, quota_user: nil, options: nil, &block)
117
+ command = make_simple_command(:get, 'v2/{+name}:exportImageMetadata', options)
118
+ command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2Metadata::Representation
119
+ command.response_class = Google::Apis::RunV2::GoogleCloudRunV2Metadata
120
+ command.params['name'] = name unless name.nil?
121
+ command.query['fields'] = fields unless fields.nil?
122
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
123
+ execute_or_queue_command(command, &block)
124
+ end
125
+
126
+ # Export generated customer metadata for a given resource.
127
+ # @param [String] name
128
+ # Required. The name of the resource of which metadata should be exported.
129
+ # Format: `projects/`project_id_or_number`/locations/`location`/services/`
130
+ # service`` for Service `projects/`project_id_or_number`/locations/`location`/
131
+ # services/`service`/revisions/`revision`` for Revision `projects/`
132
+ # project_id_or_number`/locations/`location`/jobs/`job`/executions/`execution``
133
+ # for Execution
134
+ # @param [String] fields
135
+ # Selector specifying which fields to include in a partial response.
136
+ # @param [String] quota_user
137
+ # Available to use for quota purposes for server-side applications. Can be any
138
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
139
+ # @param [Google::Apis::RequestOptions] options
140
+ # Request-specific options
141
+ #
142
+ # @yield [result, err] Result & error if block supplied
143
+ # @yieldparam result [Google::Apis::RunV2::GoogleCloudRunV2Metadata] parsed result object
144
+ # @yieldparam err [StandardError] error object if request failed
145
+ #
146
+ # @return [Google::Apis::RunV2::GoogleCloudRunV2Metadata]
147
+ #
148
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
149
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
150
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
151
+ def export_project_location_metadata(name, fields: nil, quota_user: nil, options: nil, &block)
152
+ command = make_simple_command(:get, 'v2/{+name}:exportMetadata', options)
153
+ command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2Metadata::Representation
154
+ command.response_class = Google::Apis::RunV2::GoogleCloudRunV2Metadata
155
+ command.params['name'] = name unless name.nil?
156
+ command.query['fields'] = fields unless fields.nil?
157
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
158
+ execute_or_queue_command(command, &block)
159
+ end
160
+
57
161
  # Creates a Job.
58
162
  # @param [String] parent
59
163
  # Required. The location and project in which this Job should be created. Format:
@@ -259,9 +363,9 @@ module Google
259
363
  # location`/jobs/`job`
260
364
  # @param [Google::Apis::RunV2::GoogleCloudRunV2Job] google_cloud_run_v2_job_object
261
365
  # @param [Boolean] allow_missing
262
- # If set to true, and if the Job does not exist, it will create a new one.
263
- # Caller must have both create and update permissions for this call if this is
264
- # set to true.
366
+ # Optional. If set to true, and if the Job does not exist, it will create a new
367
+ # one. Caller must have both create and update permissions for this call if this
368
+ # is set to true.
265
369
  # @param [Boolean] validate_only
266
370
  # Indicates that the request should be validated and default values populated,
267
371
  # without persisting the request or updating any resources.
@@ -477,6 +581,43 @@ module Google
477
581
  execute_or_queue_command(command, &block)
478
582
  end
479
583
 
584
+ # Read the status of an image export operation.
585
+ # @param [String] name
586
+ # Required. The name of the resource of which image export operation status has
587
+ # to be fetched. Format: `projects/`project_id_or_number`/locations/`location`/
588
+ # services/`service`/revisions/`revision`` for Revision `projects/`
589
+ # project_id_or_number`/locations/`location`/jobs/`job`/executions/`execution``
590
+ # for Execution
591
+ # @param [String] operation_id
592
+ # Required. The operation id returned from ExportImage.
593
+ # @param [String] fields
594
+ # Selector specifying which fields to include in a partial response.
595
+ # @param [String] quota_user
596
+ # Available to use for quota purposes for server-side applications. Can be any
597
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
598
+ # @param [Google::Apis::RequestOptions] options
599
+ # Request-specific options
600
+ #
601
+ # @yield [result, err] Result & error if block supplied
602
+ # @yieldparam result [Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse] parsed result object
603
+ # @yieldparam err [StandardError] error object if request failed
604
+ #
605
+ # @return [Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse]
606
+ #
607
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
608
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
609
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
610
+ def export_project_location_job_execution_status(name, operation_id, fields: nil, quota_user: nil, options: nil, &block)
611
+ command = make_simple_command(:get, 'v2/{+name}/{+operationId}:exportStatus', options)
612
+ command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse::Representation
613
+ command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse
614
+ command.params['name'] = name unless name.nil?
615
+ command.params['operationId'] = operation_id unless operation_id.nil?
616
+ command.query['fields'] = fields unless fields.nil?
617
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
618
+ execute_or_queue_command(command, &block)
619
+ end
620
+
480
621
  # Gets information about an Execution.
481
622
  # @param [String] name
482
623
  # Required. The full name of the Execution. Format: `projects/`project`/
@@ -986,9 +1127,9 @@ module Google
986
1127
  # location`/services/`service_id`
987
1128
  # @param [Google::Apis::RunV2::GoogleCloudRunV2Service] google_cloud_run_v2_service_object
988
1129
  # @param [Boolean] allow_missing
989
- # If set to true, and if the Service does not exist, it will create a new one.
990
- # The caller must have 'run.services.create' permissions if this is set to true
991
- # and the Service does not exist.
1130
+ # Optional. If set to true, and if the Service does not exist, it will create a
1131
+ # new one. The caller must have 'run.services.create' permissions if this is set
1132
+ # to true and the Service does not exist.
992
1133
  # @param [String] update_mask
993
1134
  # Optional. The list of fields to be updated.
994
1135
  # @param [Boolean] validate_only
@@ -1137,6 +1278,43 @@ module Google
1137
1278
  execute_or_queue_command(command, &block)
1138
1279
  end
1139
1280
 
1281
+ # Read the status of an image export operation.
1282
+ # @param [String] name
1283
+ # Required. The name of the resource of which image export operation status has
1284
+ # to be fetched. Format: `projects/`project_id_or_number`/locations/`location`/
1285
+ # services/`service`/revisions/`revision`` for Revision `projects/`
1286
+ # project_id_or_number`/locations/`location`/jobs/`job`/executions/`execution``
1287
+ # for Execution
1288
+ # @param [String] operation_id
1289
+ # Required. The operation id returned from ExportImage.
1290
+ # @param [String] fields
1291
+ # Selector specifying which fields to include in a partial response.
1292
+ # @param [String] quota_user
1293
+ # Available to use for quota purposes for server-side applications. Can be any
1294
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1295
+ # @param [Google::Apis::RequestOptions] options
1296
+ # Request-specific options
1297
+ #
1298
+ # @yield [result, err] Result & error if block supplied
1299
+ # @yieldparam result [Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse] parsed result object
1300
+ # @yieldparam err [StandardError] error object if request failed
1301
+ #
1302
+ # @return [Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse]
1303
+ #
1304
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1305
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1306
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1307
+ def export_project_location_service_revision_status(name, operation_id, fields: nil, quota_user: nil, options: nil, &block)
1308
+ command = make_simple_command(:get, 'v2/{+name}/{+operationId}:exportStatus', options)
1309
+ command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse::Representation
1310
+ command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse
1311
+ command.params['name'] = name unless name.nil?
1312
+ command.params['operationId'] = operation_id unless operation_id.nil?
1313
+ command.query['fields'] = fields unless fields.nil?
1314
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1315
+ execute_or_queue_command(command, &block)
1316
+ end
1317
+
1140
1318
  # Gets information about a Revision.
1141
1319
  # @param [String] name
1142
1320
  # Required. The full name of the Revision. Format: projects/`project`/locations/`
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-run_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.60.0
4
+ version: 0.62.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-17 00:00:00.000000000 Z
11
+ date: 2024-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-run_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-run_v2/v0.60.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-run_v2/v0.62.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-run_v2
63
63
  post_install_message:
64
64
  rdoc_options: []