google-apis-run_v1 0.66.0 → 0.68.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: '009e5dc743aedab64dc5c9fb145dc3aadc63405e5e1a8ae4102484b8e826f005'
4
- data.tar.gz: c10104faf5111f1120458537d255c4b0f37d5c74624f831c468d3f98c09fdb32
3
+ metadata.gz: c167e67a075a1434558db89dbcf800c842f95a476443acb365b1c68ed1d02268
4
+ data.tar.gz: d5d514b9a87187c6dd1e16609f432603867a750089282c6040cafb7b65151aac
5
5
  SHA512:
6
- metadata.gz: 70eb3cde39761d5c7279751cbdb649ba386fff380259d04fc6762682c8730fbd8d6f4f97faa8de55b89fc3e132e2afcebe2401fe76798dac81c1fb5a7f4d116a
7
- data.tar.gz: 4964e2448f6ebef0ba6c88ea4d55ffcef3991c412ede4ab010c74a1aa199944038a92c95d603714f98854ff5b7ed74bbb499d95df3901be67ec589b3ae21237d
6
+ metadata.gz: 248e3e8053a604fc6b5b900f3db3313b9d5960eb5d3db356b6bf5db9784653e586b6d444b516f98046949dc4d2705465114f23099a9fb225a398b444607ca38c
7
+ data.tar.gz: f090976d9cf4a56eee6aa04ea201a174360f796522157392dcc4ddc5e15c33523236c8c1d43c043aa9426858ce66112f2c83f0f78425352cd171888bf6f10618
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-run_v1
2
2
 
3
+ ### v0.68.0 (2024-01-22)
4
+
5
+ * Regenerated from discovery document revision 20240114
6
+ * Regenerated using generator version 0.13.0
7
+
8
+ ### v0.67.0 (2023-12-17)
9
+
10
+ * Regenerated from discovery document revision 20231210
11
+
3
12
  ### v0.66.0 (2023-12-10)
4
13
 
5
14
  * Regenerated from discovery document revision 20231203
@@ -179,21 +179,43 @@ module Google
179
179
  # project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An
180
180
  # email address that represents a Google group. For example, `admins@example.com`
181
181
  # . * `domain:`domain``: The G Suite domain (primary) that represents all the
182
- # users of that domain. For example, `google.com` or `example.com`. * `deleted:
183
- # user:`emailid`?uid=`uniqueid``: An email address (plus unique identifier)
184
- # representing a user that has been recently deleted. For example, `alice@
185
- # example.com?uid=123456789012345678901`. If the user is recovered, this value
186
- # reverts to `user:`emailid`` and the recovered user retains the role in the
187
- # binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address
188
- # (plus unique identifier) representing a service account that has been recently
189
- # deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
182
+ # users of that domain. For example, `google.com` or `example.com`. * `principal:
183
+ # //iam.googleapis.com/locations/global/workforcePools/`pool_id`/subject/`
184
+ # subject_attribute_value``: A single identity in a workforce identity pool. * `
185
+ # principalSet://iam.googleapis.com/locations/global/workforcePools/`pool_id`/
186
+ # group/`group_id``: All workforce identities in a group. * `principalSet://iam.
187
+ # googleapis.com/locations/global/workforcePools/`pool_id`/attribute.`
188
+ # attribute_name`/`attribute_value``: All workforce identities with a specific
189
+ # attribute value. * `principalSet://iam.googleapis.com/locations/global/
190
+ # workforcePools/`pool_id`/*`: All identities in a workforce identity pool. * `
191
+ # principal://iam.googleapis.com/projects/`project_number`/locations/global/
192
+ # workloadIdentityPools/`pool_id`/subject/`subject_attribute_value``: A single
193
+ # identity in a workload identity pool. * `principalSet://iam.googleapis.com/
194
+ # projects/`project_number`/locations/global/workloadIdentityPools/`pool_id`/
195
+ # group/`group_id``: A workload identity pool group. * `principalSet://iam.
196
+ # googleapis.com/projects/`project_number`/locations/global/
197
+ # workloadIdentityPools/`pool_id`/attribute.`attribute_name`/`attribute_value``:
198
+ # All identities in a workload identity pool with a certain attribute. * `
199
+ # principalSet://iam.googleapis.com/projects/`project_number`/locations/global/
200
+ # workloadIdentityPools/`pool_id`/*`: All identities in a workload identity pool.
201
+ # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
202
+ # identifier) representing a user that has been recently deleted. For example, `
203
+ # alice@example.com?uid=123456789012345678901`. If the user is recovered, this
204
+ # value reverts to `user:`emailid`` and the recovered user retains the role in
205
+ # the binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email
206
+ # address (plus unique identifier) representing a service account that has been
207
+ # recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
190
208
  # 123456789012345678901`. If the service account is undeleted, this value
191
209
  # reverts to `serviceAccount:`emailid`` and the undeleted service account
192
210
  # retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``:
193
211
  # An email address (plus unique identifier) representing a Google group that has
194
212
  # been recently deleted. For example, `admins@example.com?uid=
195
213
  # 123456789012345678901`. If the group is recovered, this value reverts to `
196
- # group:`emailid`` and the recovered group retains the role in the binding.
214
+ # group:`emailid`` and the recovered group retains the role in the binding. * `
215
+ # deleted:principal://iam.googleapis.com/locations/global/workforcePools/`
216
+ # pool_id`/subject/`subject_attribute_value``: Deleted single identity in a
217
+ # workforce identity pool. For example, `deleted:principal://iam.googleapis.com/
218
+ # locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
197
219
  # Corresponds to the JSON property `members`
198
220
  # @return [Array<String>]
199
221
  attr_accessor :members
@@ -216,6 +238,43 @@ module Google
216
238
  end
217
239
  end
218
240
 
241
+ # Storage volume source using the Container Storage Interface.
242
+ class CsiVolumeSource
243
+ include Google::Apis::Core::Hashable
244
+
245
+ # name of the CSI driver for the requested storage system. Cloud Run supports
246
+ # the following drivers: * gcsfuse.run.googleapis.com : Mount a Cloud Storage
247
+ # Bucket as a volume.
248
+ # Corresponds to the JSON property `driver`
249
+ # @return [String]
250
+ attr_accessor :driver
251
+
252
+ # If true, mount the volume as read only. Defaults to false.
253
+ # Corresponds to the JSON property `readOnly`
254
+ # @return [Boolean]
255
+ attr_accessor :read_only
256
+ alias_method :read_only?, :read_only
257
+
258
+ # stores driver specific attributes. For Google Cloud Storage volumes, the
259
+ # following attributes are supported: * bucketName: the name of the Cloud
260
+ # Storage bucket to mount. The Cloud Run Service identity must have access to
261
+ # this bucket.
262
+ # Corresponds to the JSON property `volumeAttributes`
263
+ # @return [Hash<String,String>]
264
+ attr_accessor :volume_attributes
265
+
266
+ def initialize(**args)
267
+ update!(**args)
268
+ end
269
+
270
+ # Update properties of this object
271
+ def update!(**args)
272
+ @driver = args[:driver] if args.key?(:driver)
273
+ @read_only = args[:read_only] if args.key?(:read_only)
274
+ @volume_attributes = args[:volume_attributes] if args.key?(:volume_attributes)
275
+ end
276
+ end
277
+
219
278
  # Request message for cancelling an execution.
220
279
  class CancelExecutionRequest
221
280
  include Google::Apis::Core::Hashable
@@ -830,6 +889,22 @@ module Google
830
889
  end
831
890
  end
832
891
 
892
+ # A generic empty message that you can re-use to avoid defining duplicated empty
893
+ # messages in your APIs. A typical example is to use it as the request or the
894
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
895
+ # protobuf.Empty) returns (google.protobuf.Empty); `
896
+ class Empty
897
+ include Google::Apis::Core::Hashable
898
+
899
+ def initialize(**args)
900
+ update!(**args)
901
+ end
902
+
903
+ # Update properties of this object
904
+ def update!(**args)
905
+ end
906
+ end
907
+
833
908
  # In memory (tmpfs) ephemeral storage. It is ephemeral in the sense that when
834
909
  # the sandbox is taken down, the data is destroyed with it (it does not persist
835
910
  # across sandbox runs).
@@ -1354,6 +1429,114 @@ module Google
1354
1429
  end
1355
1430
  end
1356
1431
 
1432
+ # The response message for Operations.ListOperations.
1433
+ class GoogleLongrunningListOperationsResponse
1434
+ include Google::Apis::Core::Hashable
1435
+
1436
+ # The standard List next-page token.
1437
+ # Corresponds to the JSON property `nextPageToken`
1438
+ # @return [String]
1439
+ attr_accessor :next_page_token
1440
+
1441
+ # A list of operations that matches the specified filter in the request.
1442
+ # Corresponds to the JSON property `operations`
1443
+ # @return [Array<Google::Apis::RunV1::GoogleLongrunningOperation>]
1444
+ attr_accessor :operations
1445
+
1446
+ def initialize(**args)
1447
+ update!(**args)
1448
+ end
1449
+
1450
+ # Update properties of this object
1451
+ def update!(**args)
1452
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1453
+ @operations = args[:operations] if args.key?(:operations)
1454
+ end
1455
+ end
1456
+
1457
+ # This resource represents a long-running operation that is the result of a
1458
+ # network API call.
1459
+ class GoogleLongrunningOperation
1460
+ include Google::Apis::Core::Hashable
1461
+
1462
+ # If the value is `false`, it means the operation is still in progress. If `true`
1463
+ # , the operation is completed, and either `error` or `response` is available.
1464
+ # Corresponds to the JSON property `done`
1465
+ # @return [Boolean]
1466
+ attr_accessor :done
1467
+ alias_method :done?, :done
1468
+
1469
+ # The `Status` type defines a logical error model that is suitable for different
1470
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1471
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1472
+ # data: error code, error message, and error details. You can find out more
1473
+ # about this error model and how to work with it in the [API Design Guide](https:
1474
+ # //cloud.google.com/apis/design/errors).
1475
+ # Corresponds to the JSON property `error`
1476
+ # @return [Google::Apis::RunV1::GoogleRpcStatus]
1477
+ attr_accessor :error
1478
+
1479
+ # Service-specific metadata associated with the operation. It typically contains
1480
+ # progress information and common metadata such as create time. Some services
1481
+ # might not provide such metadata. Any method that returns a long-running
1482
+ # operation should document the metadata type, if any.
1483
+ # Corresponds to the JSON property `metadata`
1484
+ # @return [Hash<String,Object>]
1485
+ attr_accessor :metadata
1486
+
1487
+ # The server-assigned name, which is only unique within the same service that
1488
+ # originally returns it. If you use the default HTTP mapping, the `name` should
1489
+ # be a resource name ending with `operations/`unique_id``.
1490
+ # Corresponds to the JSON property `name`
1491
+ # @return [String]
1492
+ attr_accessor :name
1493
+
1494
+ # The normal, successful response of the operation. If the original method
1495
+ # returns no data on success, such as `Delete`, the response is `google.protobuf.
1496
+ # Empty`. If the original method is standard `Get`/`Create`/`Update`, the
1497
+ # response should be the resource. For other methods, the response should have
1498
+ # the type `XxxResponse`, where `Xxx` is the original method name. For example,
1499
+ # if the original method name is `TakeSnapshot()`, the inferred response type is
1500
+ # `TakeSnapshotResponse`.
1501
+ # Corresponds to the JSON property `response`
1502
+ # @return [Hash<String,Object>]
1503
+ attr_accessor :response
1504
+
1505
+ def initialize(**args)
1506
+ update!(**args)
1507
+ end
1508
+
1509
+ # Update properties of this object
1510
+ def update!(**args)
1511
+ @done = args[:done] if args.key?(:done)
1512
+ @error = args[:error] if args.key?(:error)
1513
+ @metadata = args[:metadata] if args.key?(:metadata)
1514
+ @name = args[:name] if args.key?(:name)
1515
+ @response = args[:response] if args.key?(:response)
1516
+ end
1517
+ end
1518
+
1519
+ # The request message for Operations.WaitOperation.
1520
+ class GoogleLongrunningWaitOperationRequest
1521
+ include Google::Apis::Core::Hashable
1522
+
1523
+ # The maximum duration to wait before timing out. If left blank, the wait will
1524
+ # be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
1525
+ # context deadline is also specified, the shorter one will be used.
1526
+ # Corresponds to the JSON property `timeout`
1527
+ # @return [String]
1528
+ attr_accessor :timeout
1529
+
1530
+ def initialize(**args)
1531
+ update!(**args)
1532
+ end
1533
+
1534
+ # Update properties of this object
1535
+ def update!(**args)
1536
+ @timeout = args[:timeout] if args.key?(:timeout)
1537
+ end
1538
+ end
1539
+
1357
1540
  # The `Status` type defines a logical error model that is suitable for different
1358
1541
  # programming environments, including REST APIs and RPC APIs. It is used by [
1359
1542
  # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
@@ -2119,6 +2302,40 @@ module Google
2119
2302
  end
2120
2303
  end
2121
2304
 
2305
+ # Represents a persistent volume that will be mounted using NFS. This volume
2306
+ # will be shared between all instances of the Service and data will not be
2307
+ # deleted when the instance is shut down.
2308
+ class NfsVolumeSource
2309
+ include Google::Apis::Core::Hashable
2310
+
2311
+ # Path that is exported by the NFS server.
2312
+ # Corresponds to the JSON property `path`
2313
+ # @return [String]
2314
+ attr_accessor :path
2315
+
2316
+ # If true, mount the NFS volume as read only. Defaults to false.
2317
+ # Corresponds to the JSON property `readOnly`
2318
+ # @return [Boolean]
2319
+ attr_accessor :read_only
2320
+ alias_method :read_only?, :read_only
2321
+
2322
+ # Hostname or IP address of the NFS server.
2323
+ # Corresponds to the JSON property `server`
2324
+ # @return [String]
2325
+ attr_accessor :server
2326
+
2327
+ def initialize(**args)
2328
+ update!(**args)
2329
+ end
2330
+
2331
+ # Update properties of this object
2332
+ def update!(**args)
2333
+ @path = args[:path] if args.key?(:path)
2334
+ @read_only = args[:read_only] if args.key?(:read_only)
2335
+ @server = args[:server] if args.key?(:server)
2336
+ end
2337
+ end
2338
+
2122
2339
  # google.cloud.run.meta.v1.ObjectMeta is metadata that all persisted resources
2123
2340
  # must have, which includes all objects users must create.
2124
2341
  class ObjectMeta
@@ -2134,7 +2351,7 @@ module Google
2134
2351
  # Service, Job, * `run.googleapis.com/binary-authorization`: Service, Job,
2135
2352
  # Execution. * `run.googleapis.com/client-name`: All resources. * `run.
2136
2353
  # googleapis.com/cloudsql-instances`: Revision, Execution. * `run.googleapis.com/
2137
- # container-dependencies`: Revision. * `run.googleapis.com/cpu-throttling`:
2354
+ # container-dependencies`: Revision . * `run.googleapis.com/cpu-throttling`:
2138
2355
  # Revision. * `run.googleapis.com/custom-audiences`: Service. * `run.googleapis.
2139
2356
  # com/description`: Service. * `run.googleapis.com/encryption-key-shutdown-hours`
2140
2357
  # : Revision * `run.googleapis.com/encryption-key`: Revision, Execution. * `run.
@@ -2640,10 +2857,10 @@ module Google
2640
2857
  # @return [Fixnum]
2641
2858
  attr_accessor :container_concurrency
2642
2859
 
2643
- # Containers holds the single container that defines the unit of execution for
2644
- # this Revision. In the context of a Revision, we disallow a number of fields on
2645
- # this Container, including: name and lifecycle. In Cloud Run, only a single
2646
- # container may be provided.
2860
+ # Required. Containers holds the single container that defines the unit of
2861
+ # execution for this Revision. In the context of a Revision, we disallow a
2862
+ # number of fields on this Container, including: name and lifecycle. In Cloud
2863
+ # Run, only a single container may be provided.
2647
2864
  # Corresponds to the JSON property `containers`
2648
2865
  # @return [Array<Google::Apis::RunV1::Container>]
2649
2866
  attr_accessor :containers
@@ -3813,6 +4030,11 @@ module Google
3813
4030
  # @return [Google::Apis::RunV1::ConfigMapVolumeSource]
3814
4031
  attr_accessor :config_map
3815
4032
 
4033
+ # Storage volume source using the Container Storage Interface.
4034
+ # Corresponds to the JSON property `csi`
4035
+ # @return [Google::Apis::RunV1::CsiVolumeSource]
4036
+ attr_accessor :csi
4037
+
3816
4038
  # In memory (tmpfs) ephemeral storage. It is ephemeral in the sense that when
3817
4039
  # the sandbox is taken down, the data is destroyed with it (it does not persist
3818
4040
  # across sandbox runs).
@@ -3825,6 +4047,13 @@ module Google
3825
4047
  # @return [String]
3826
4048
  attr_accessor :name
3827
4049
 
4050
+ # Represents a persistent volume that will be mounted using NFS. This volume
4051
+ # will be shared between all instances of the Service and data will not be
4052
+ # deleted when the instance is shut down.
4053
+ # Corresponds to the JSON property `nfs`
4054
+ # @return [Google::Apis::RunV1::NfsVolumeSource]
4055
+ attr_accessor :nfs
4056
+
3828
4057
  # A volume representing a secret stored in Google Secret Manager. The secret's
3829
4058
  # value will be presented as the content of a file whose name is defined in the
3830
4059
  # item path. If no items are defined, the name of the file is the secret_name.
@@ -3841,8 +4070,10 @@ module Google
3841
4070
  # Update properties of this object
3842
4071
  def update!(**args)
3843
4072
  @config_map = args[:config_map] if args.key?(:config_map)
4073
+ @csi = args[:csi] if args.key?(:csi)
3844
4074
  @empty_dir = args[:empty_dir] if args.key?(:empty_dir)
3845
4075
  @name = args[:name] if args.key?(:name)
4076
+ @nfs = args[:nfs] if args.key?(:nfs)
3846
4077
  @secret = args[:secret] if args.key?(:secret)
3847
4078
  end
3848
4079
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RunV1
18
18
  # Version of the google-apis-run_v1 gem
19
- GEM_VERSION = "0.66.0"
19
+ GEM_VERSION = "0.68.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.12.0"
22
+ GENERATOR_VERSION = "0.13.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231203"
25
+ REVISION = "20240114"
26
26
  end
27
27
  end
28
28
  end
@@ -52,6 +52,12 @@ module Google
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
+ class CsiVolumeSource
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
55
61
  class CancelExecutionRequest
56
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
63
 
@@ -130,6 +136,12 @@ module Google
130
136
  include Google::Apis::Core::JsonObjectSupport
131
137
  end
132
138
 
139
+ class Empty
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
133
145
  class EmptyDirVolumeSource
134
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
147
 
@@ -208,6 +220,24 @@ module Google
208
220
  include Google::Apis::Core::JsonObjectSupport
209
221
  end
210
222
 
223
+ class GoogleLongrunningListOperationsResponse
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class GoogleLongrunningOperation
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
235
+ class GoogleLongrunningWaitOperationRequest
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
211
241
  class GoogleRpcStatus
212
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
213
243
 
@@ -328,6 +358,12 @@ module Google
328
358
  include Google::Apis::Core::JsonObjectSupport
329
359
  end
330
360
 
361
+ class NfsVolumeSource
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+
364
+ include Google::Apis::Core::JsonObjectSupport
365
+ end
366
+
331
367
  class ObjectMeta
332
368
  class Representation < Google::Apis::Core::JsonRepresentation; end
333
369
 
@@ -592,6 +628,15 @@ module Google
592
628
  end
593
629
  end
594
630
 
631
+ class CsiVolumeSource
632
+ # @private
633
+ class Representation < Google::Apis::Core::JsonRepresentation
634
+ property :driver, as: 'driver'
635
+ property :read_only, as: 'readOnly'
636
+ hash :volume_attributes, as: 'volumeAttributes'
637
+ end
638
+ end
639
+
595
640
  class CancelExecutionRequest
596
641
  # @private
597
642
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -751,6 +796,12 @@ module Google
751
796
  end
752
797
  end
753
798
 
799
+ class Empty
800
+ # @private
801
+ class Representation < Google::Apis::Core::JsonRepresentation
802
+ end
803
+ end
804
+
754
805
  class EmptyDirVolumeSource
755
806
  # @private
756
807
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -887,6 +938,34 @@ module Google
887
938
  end
888
939
  end
889
940
 
941
+ class GoogleLongrunningListOperationsResponse
942
+ # @private
943
+ class Representation < Google::Apis::Core::JsonRepresentation
944
+ property :next_page_token, as: 'nextPageToken'
945
+ collection :operations, as: 'operations', class: Google::Apis::RunV1::GoogleLongrunningOperation, decorator: Google::Apis::RunV1::GoogleLongrunningOperation::Representation
946
+
947
+ end
948
+ end
949
+
950
+ class GoogleLongrunningOperation
951
+ # @private
952
+ class Representation < Google::Apis::Core::JsonRepresentation
953
+ property :done, as: 'done'
954
+ property :error, as: 'error', class: Google::Apis::RunV1::GoogleRpcStatus, decorator: Google::Apis::RunV1::GoogleRpcStatus::Representation
955
+
956
+ hash :metadata, as: 'metadata'
957
+ property :name, as: 'name'
958
+ hash :response, as: 'response'
959
+ end
960
+ end
961
+
962
+ class GoogleLongrunningWaitOperationRequest
963
+ # @private
964
+ class Representation < Google::Apis::Core::JsonRepresentation
965
+ property :timeout, as: 'timeout'
966
+ end
967
+ end
968
+
890
969
  class GoogleRpcStatus
891
970
  # @private
892
971
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1108,6 +1187,15 @@ module Google
1108
1187
  end
1109
1188
  end
1110
1189
 
1190
+ class NfsVolumeSource
1191
+ # @private
1192
+ class Representation < Google::Apis::Core::JsonRepresentation
1193
+ property :path, as: 'path'
1194
+ property :read_only, as: 'readOnly'
1195
+ property :server, as: 'server'
1196
+ end
1197
+ end
1198
+
1111
1199
  class ObjectMeta
1112
1200
  # @private
1113
1201
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1520,9 +1608,13 @@ module Google
1520
1608
  class Representation < Google::Apis::Core::JsonRepresentation
1521
1609
  property :config_map, as: 'configMap', class: Google::Apis::RunV1::ConfigMapVolumeSource, decorator: Google::Apis::RunV1::ConfigMapVolumeSource::Representation
1522
1610
 
1611
+ property :csi, as: 'csi', class: Google::Apis::RunV1::CsiVolumeSource, decorator: Google::Apis::RunV1::CsiVolumeSource::Representation
1612
+
1523
1613
  property :empty_dir, as: 'emptyDir', class: Google::Apis::RunV1::EmptyDirVolumeSource, decorator: Google::Apis::RunV1::EmptyDirVolumeSource::Representation
1524
1614
 
1525
1615
  property :name, as: 'name'
1616
+ property :nfs, as: 'nfs', class: Google::Apis::RunV1::NfsVolumeSource, decorator: Google::Apis::RunV1::NfsVolumeSource::Representation
1617
+
1526
1618
  property :secret, as: 'secret', class: Google::Apis::RunV1::SecretVolumeSource, decorator: Google::Apis::RunV1::SecretVolumeSource::Representation
1527
1619
 
1528
1620
  end
@@ -35,6 +35,8 @@ module Google
35
35
  #
36
36
  # @see https://cloud.google.com/run/
37
37
  class CloudRunService < Google::Apis::Core::BaseService
38
+ DEFAULT_ENDPOINT_TEMPLATE = "https://run.$UNIVERSE_DOMAIN$/"
39
+
38
40
  # @return [String]
39
41
  # API key. Your API key identifies your project and provides you with API access,
40
42
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -46,7 +48,7 @@ module Google
46
48
  attr_accessor :quota_user
47
49
 
48
50
  def initialize
49
- super('https://run.googleapis.com/', '',
51
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
50
52
  client_name: 'google-apis-run_v1',
51
53
  client_version: Google::Apis::RunV1::GEM_VERSION)
52
54
  @batch_path = 'batch'
@@ -1785,6 +1787,156 @@ module Google
1785
1787
  execute_or_queue_command(command, &block)
1786
1788
  end
1787
1789
 
1790
+ # Deletes a long-running operation. This method indicates that the client is no
1791
+ # longer interested in the operation result. It does not cancel the operation.
1792
+ # If the server doesn't support this method, it returns `google.rpc.Code.
1793
+ # UNIMPLEMENTED`.
1794
+ # @param [String] name
1795
+ # The name of the operation resource to be deleted.
1796
+ # @param [String] fields
1797
+ # Selector specifying which fields to include in a partial response.
1798
+ # @param [String] quota_user
1799
+ # Available to use for quota purposes for server-side applications. Can be any
1800
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1801
+ # @param [Google::Apis::RequestOptions] options
1802
+ # Request-specific options
1803
+ #
1804
+ # @yield [result, err] Result & error if block supplied
1805
+ # @yieldparam result [Google::Apis::RunV1::Empty] parsed result object
1806
+ # @yieldparam err [StandardError] error object if request failed
1807
+ #
1808
+ # @return [Google::Apis::RunV1::Empty]
1809
+ #
1810
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1811
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1812
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1813
+ def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1814
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1815
+ command.response_representation = Google::Apis::RunV1::Empty::Representation
1816
+ command.response_class = Google::Apis::RunV1::Empty
1817
+ command.params['name'] = name unless name.nil?
1818
+ command.query['fields'] = fields unless fields.nil?
1819
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1820
+ execute_or_queue_command(command, &block)
1821
+ end
1822
+
1823
+ # Gets the latest state of a long-running operation. Clients can use this method
1824
+ # to poll the operation result at intervals as recommended by the API service.
1825
+ # @param [String] name
1826
+ # The name of the operation resource.
1827
+ # @param [String] fields
1828
+ # Selector specifying which fields to include in a partial response.
1829
+ # @param [String] quota_user
1830
+ # Available to use for quota purposes for server-side applications. Can be any
1831
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1832
+ # @param [Google::Apis::RequestOptions] options
1833
+ # Request-specific options
1834
+ #
1835
+ # @yield [result, err] Result & error if block supplied
1836
+ # @yieldparam result [Google::Apis::RunV1::GoogleLongrunningOperation] parsed result object
1837
+ # @yieldparam err [StandardError] error object if request failed
1838
+ #
1839
+ # @return [Google::Apis::RunV1::GoogleLongrunningOperation]
1840
+ #
1841
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1842
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1843
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1844
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1845
+ command = make_simple_command(:get, 'v1/{+name}', options)
1846
+ command.response_representation = Google::Apis::RunV1::GoogleLongrunningOperation::Representation
1847
+ command.response_class = Google::Apis::RunV1::GoogleLongrunningOperation
1848
+ command.params['name'] = name unless name.nil?
1849
+ command.query['fields'] = fields unless fields.nil?
1850
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1851
+ execute_or_queue_command(command, &block)
1852
+ end
1853
+
1854
+ # Lists operations that match the specified filter in the request. If the server
1855
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
1856
+ # @param [String] name
1857
+ # Required. To query for all of the operations for a project.
1858
+ # @param [String] filter
1859
+ # Optional. A filter for matching the completed or in-progress operations. The
1860
+ # supported formats of *filter* are: To query for only completed operations:
1861
+ # done:true To query for only ongoing operations: done:false Must be empty to
1862
+ # query for all of the latest operations for the given parent project.
1863
+ # @param [Fixnum] page_size
1864
+ # The maximum number of records that should be returned. Requested page size
1865
+ # cannot exceed 100. If not set or set to less than or equal to 0, the default
1866
+ # page size is 100. .
1867
+ # @param [String] page_token
1868
+ # Token identifying which result to start with, which is returned by a previous
1869
+ # list call.
1870
+ # @param [String] fields
1871
+ # Selector specifying which fields to include in a partial response.
1872
+ # @param [String] quota_user
1873
+ # Available to use for quota purposes for server-side applications. Can be any
1874
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1875
+ # @param [Google::Apis::RequestOptions] options
1876
+ # Request-specific options
1877
+ #
1878
+ # @yield [result, err] Result & error if block supplied
1879
+ # @yieldparam result [Google::Apis::RunV1::GoogleLongrunningListOperationsResponse] parsed result object
1880
+ # @yieldparam err [StandardError] error object if request failed
1881
+ #
1882
+ # @return [Google::Apis::RunV1::GoogleLongrunningListOperationsResponse]
1883
+ #
1884
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1885
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1886
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1887
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1888
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
1889
+ command.response_representation = Google::Apis::RunV1::GoogleLongrunningListOperationsResponse::Representation
1890
+ command.response_class = Google::Apis::RunV1::GoogleLongrunningListOperationsResponse
1891
+ command.params['name'] = name unless name.nil?
1892
+ command.query['filter'] = filter unless filter.nil?
1893
+ command.query['pageSize'] = page_size unless page_size.nil?
1894
+ command.query['pageToken'] = page_token unless page_token.nil?
1895
+ command.query['fields'] = fields unless fields.nil?
1896
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1897
+ execute_or_queue_command(command, &block)
1898
+ end
1899
+
1900
+ # Waits until the specified long-running operation is done or reaches at most a
1901
+ # specified timeout, returning the latest state. If the operation is already
1902
+ # done, the latest state is immediately returned. If the timeout specified is
1903
+ # greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
1904
+ # the server does not support this method, it returns `google.rpc.Code.
1905
+ # UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
1906
+ # the latest state before the specified timeout (including immediately), meaning
1907
+ # even an immediate response is no guarantee that the operation is done.
1908
+ # @param [String] name
1909
+ # The name of the operation resource to wait on.
1910
+ # @param [Google::Apis::RunV1::GoogleLongrunningWaitOperationRequest] google_longrunning_wait_operation_request_object
1911
+ # @param [String] fields
1912
+ # Selector specifying which fields to include in a partial response.
1913
+ # @param [String] quota_user
1914
+ # Available to use for quota purposes for server-side applications. Can be any
1915
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1916
+ # @param [Google::Apis::RequestOptions] options
1917
+ # Request-specific options
1918
+ #
1919
+ # @yield [result, err] Result & error if block supplied
1920
+ # @yieldparam result [Google::Apis::RunV1::GoogleLongrunningOperation] parsed result object
1921
+ # @yieldparam err [StandardError] error object if request failed
1922
+ #
1923
+ # @return [Google::Apis::RunV1::GoogleLongrunningOperation]
1924
+ #
1925
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1926
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1927
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1928
+ def wait_project_location_operation(name, google_longrunning_wait_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1929
+ command = make_simple_command(:post, 'v1/{+name}:wait', options)
1930
+ command.request_representation = Google::Apis::RunV1::GoogleLongrunningWaitOperationRequest::Representation
1931
+ command.request_object = google_longrunning_wait_operation_request_object
1932
+ command.response_representation = Google::Apis::RunV1::GoogleLongrunningOperation::Representation
1933
+ command.response_class = Google::Apis::RunV1::GoogleLongrunningOperation
1934
+ command.params['name'] = name unless name.nil?
1935
+ command.query['fields'] = fields unless fields.nil?
1936
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1937
+ execute_or_queue_command(command, &block)
1938
+ end
1939
+
1788
1940
  # Delete a revision.
1789
1941
  # @param [String] name
1790
1942
  # The name of the revision to delete. For Cloud Run (fully managed), replace `
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-run_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.66.0
4
+ version: 0.68.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: 2023-12-10 00:00:00.000000000 Z
11
+ date: 2024-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.11.0
19
+ version: 0.12.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.11.0
29
+ version: 0.12.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-run_v1/v0.66.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-run_v1/v0.68.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-run_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.19
78
+ rubygems_version: 3.5.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Run Admin API V1