google-apis-run_v1 0.81.0 → 0.82.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c0ea6f0a65cf33b6ff95fd12279775a9b8498b7d2999613102da5b6e49ca2a2
4
- data.tar.gz: 7210072cfd0b214058b6a7d09b333f216648acad30d3e02e1861dd530b9ddc74
3
+ metadata.gz: 132ec57d7b4f0aaec2f5745bcb3f854f7b4eabf23351e1a48d49cd5f613fc1ea
4
+ data.tar.gz: 10c5c09d08a9d704082e0504524539c8d72a6bbc9a89febb7c4360befb1cb3a4
5
5
  SHA512:
6
- metadata.gz: 534154fae4bf06d3ab3728ad273286872dabc6708f76f61d7a70597128a8a299278d6f01e0c9c4775c22e1a17ebbe6741f505a49fc642f7e760edbd1d2fff3c8
7
- data.tar.gz: c0574bb2dd2a7df84d1e9d04de1cb035dc362b1727459804b0bdf4f5311305a4ec4b8fa390c960b18bd0f2bcf03c0b35f8bd3c611655ce644b3a769e2caa1546
6
+ metadata.gz: 261d5d24c50651a2c7a67c3d8be63fa3ea985d8d22015fc20b8df0a894a7df4237aa0f8b1edb1ba397d2897571c6bc52948b41b757de28cc838462a94ed7a4fa
7
+ data.tar.gz: 011b565afd58c93ad5e759005971e3de537ea5258e306e2b0aca755fd96df05c3cbff6c37363b83cbfeb7587e60e388cedc09b1956d6559a13e611fda46d6129
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-run_v1
2
2
 
3
+ ### v0.82.0 (2025-04-20)
4
+
5
+ * Regenerated from discovery document revision 20250411
6
+
3
7
  ### v0.81.0 (2025-03-30)
4
8
 
5
9
  * Regenerated from discovery document revision 20250321
@@ -3639,6 +3639,42 @@ module Google
3639
3639
  end
3640
3640
  end
3641
3641
 
3642
+ # Holds a single instance split entry for the Worker. Allocations can be done to
3643
+ # a specific Revision name, or pointing to the latest Ready Revision.
3644
+ class InstanceSplit
3645
+ include Google::Apis::Core::Hashable
3646
+
3647
+ # Uses the "status.latestReadyRevisionName" to determine the traffic target.
3648
+ # When it changes, traffic will automatically migrate from the prior "latest
3649
+ # ready" revision to the new one.
3650
+ # Corresponds to the JSON property `latestRevision`
3651
+ # @return [Boolean]
3652
+ attr_accessor :latest_revision
3653
+ alias_method :latest_revision?, :latest_revision
3654
+
3655
+ # Specifies percent of the instance split to this Revision. This defaults to
3656
+ # zero if unspecified.
3657
+ # Corresponds to the JSON property `percent`
3658
+ # @return [Fixnum]
3659
+ attr_accessor :percent
3660
+
3661
+ # Revision to which to assign this portion of instances.
3662
+ # Corresponds to the JSON property `revisionName`
3663
+ # @return [String]
3664
+ attr_accessor :revision_name
3665
+
3666
+ def initialize(**args)
3667
+ update!(**args)
3668
+ end
3669
+
3670
+ # Update properties of this object
3671
+ def update!(**args)
3672
+ @latest_revision = args[:latest_revision] if args.key?(:latest_revision)
3673
+ @percent = args[:percent] if args.key?(:percent)
3674
+ @revision_name = args[:revision_name] if args.key?(:revision_name)
3675
+ end
3676
+ end
3677
+
3642
3678
  # Job represents the configuration of a single job, which references a container
3643
3679
  # image which is run to completion.
3644
3680
  class Job
@@ -4246,6 +4282,51 @@ module Google
4246
4282
  end
4247
4283
  end
4248
4284
 
4285
+ # A list of WorkerPool resources.
4286
+ class ListWorkerPoolsResponse
4287
+ include Google::Apis::Core::Hashable
4288
+
4289
+ # The API version for this call; returns "run.googleapis.com/v1".
4290
+ # Corresponds to the JSON property `apiVersion`
4291
+ # @return [String]
4292
+ attr_accessor :api_version
4293
+
4294
+ # List of WorkerPools.
4295
+ # Corresponds to the JSON property `items`
4296
+ # @return [Array<Google::Apis::RunV1::WorkerPool>]
4297
+ attr_accessor :items
4298
+
4299
+ # The kind of this resource; returns "WorkerPoolList".
4300
+ # Corresponds to the JSON property `kind`
4301
+ # @return [String]
4302
+ attr_accessor :kind
4303
+
4304
+ # Metadata for synthetic resources like List. In Cloud Run, all List Resources
4305
+ # Responses will have a ListMeta instead of ObjectMeta.
4306
+ # Corresponds to the JSON property `metadata`
4307
+ # @return [Google::Apis::RunV1::ListMeta]
4308
+ attr_accessor :metadata
4309
+
4310
+ # For calls against the global endpoint, returns the list of Cloud locations
4311
+ # that could not be reached. For regional calls, this field is not used.
4312
+ # Corresponds to the JSON property `unreachable`
4313
+ # @return [Array<String>]
4314
+ attr_accessor :unreachable
4315
+
4316
+ def initialize(**args)
4317
+ update!(**args)
4318
+ end
4319
+
4320
+ # Update properties of this object
4321
+ def update!(**args)
4322
+ @api_version = args[:api_version] if args.key?(:api_version)
4323
+ @items = args[:items] if args.key?(:items)
4324
+ @kind = args[:kind] if args.key?(:kind)
4325
+ @metadata = args[:metadata] if args.key?(:metadata)
4326
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
4327
+ end
4328
+ end
4329
+
4249
4330
  # Not supported by Cloud Run. LocalObjectReference contains enough information
4250
4331
  # to let you locate the referenced object inside the same namespace.
4251
4332
  class LocalObjectReference
@@ -6159,6 +6240,130 @@ module Google
6159
6240
  @sub_path = args[:sub_path] if args.key?(:sub_path)
6160
6241
  end
6161
6242
  end
6243
+
6244
+ # WorkerPool acts as a top-level container that manages a set instance splits
6245
+ # among a set of Revisions and a template for creating new Revisions.
6246
+ class WorkerPool
6247
+ include Google::Apis::Core::Hashable
6248
+
6249
+ # The API version for this call. It must be "run.googleapis.com/v1".
6250
+ # Corresponds to the JSON property `apiVersion`
6251
+ # @return [String]
6252
+ attr_accessor :api_version
6253
+
6254
+ # The kind of resource. It must be "WorkerPool".
6255
+ # Corresponds to the JSON property `kind`
6256
+ # @return [String]
6257
+ attr_accessor :kind
6258
+
6259
+ # google.cloud.run.meta.v1.ObjectMeta is metadata that all persisted resources
6260
+ # must have, which includes all objects users must create.
6261
+ # Corresponds to the JSON property `metadata`
6262
+ # @return [Google::Apis::RunV1::ObjectMeta]
6263
+ attr_accessor :metadata
6264
+
6265
+ # WorkerPoolSpec holds the desired state of the WorkerPool's template and
6266
+ # instance splits.
6267
+ # Corresponds to the JSON property `spec`
6268
+ # @return [Google::Apis::RunV1::WorkerPoolSpec]
6269
+ attr_accessor :spec
6270
+
6271
+ # The current state of the WorkerPool. Output only.
6272
+ # Corresponds to the JSON property `status`
6273
+ # @return [Google::Apis::RunV1::WorkerPoolStatus]
6274
+ attr_accessor :status
6275
+
6276
+ def initialize(**args)
6277
+ update!(**args)
6278
+ end
6279
+
6280
+ # Update properties of this object
6281
+ def update!(**args)
6282
+ @api_version = args[:api_version] if args.key?(:api_version)
6283
+ @kind = args[:kind] if args.key?(:kind)
6284
+ @metadata = args[:metadata] if args.key?(:metadata)
6285
+ @spec = args[:spec] if args.key?(:spec)
6286
+ @status = args[:status] if args.key?(:status)
6287
+ end
6288
+ end
6289
+
6290
+ # WorkerPoolSpec holds the desired state of the WorkerPool's template and
6291
+ # instance splits.
6292
+ class WorkerPoolSpec
6293
+ include Google::Apis::Core::Hashable
6294
+
6295
+ # Specifies how to distribute instances over a collection of Revisions.
6296
+ # Corresponds to the JSON property `instanceSplits`
6297
+ # @return [Array<Google::Apis::RunV1::InstanceSplit>]
6298
+ attr_accessor :instance_splits
6299
+
6300
+ # RevisionTemplateSpec describes the data a revision should have when created
6301
+ # from a template.
6302
+ # Corresponds to the JSON property `template`
6303
+ # @return [Google::Apis::RunV1::RevisionTemplate]
6304
+ attr_accessor :template
6305
+
6306
+ def initialize(**args)
6307
+ update!(**args)
6308
+ end
6309
+
6310
+ # Update properties of this object
6311
+ def update!(**args)
6312
+ @instance_splits = args[:instance_splits] if args.key?(:instance_splits)
6313
+ @template = args[:template] if args.key?(:template)
6314
+ end
6315
+ end
6316
+
6317
+ # The current state of the WorkerPool. Output only.
6318
+ class WorkerPoolStatus
6319
+ include Google::Apis::Core::Hashable
6320
+
6321
+ # Conditions communicate information about ongoing/complete reconciliation
6322
+ # processes that bring the `spec` inline with the observed state of the world. *
6323
+ # `Ready`: `True` when all underlying resources are ready.
6324
+ # Corresponds to the JSON property `conditions`
6325
+ # @return [Array<Google::Apis::RunV1::GoogleCloudRunV1Condition>]
6326
+ attr_accessor :conditions
6327
+
6328
+ # Holds the configured traffic distribution. These entries will always contain
6329
+ # RevisionName references. When ConfigurationName appears in the spec, this will
6330
+ # hold the LatestReadyRevisionName that we last observed.
6331
+ # Corresponds to the JSON property `instanceSplits`
6332
+ # @return [Array<Google::Apis::RunV1::InstanceSplit>]
6333
+ attr_accessor :instance_splits
6334
+
6335
+ # Name of the last revision that was created from this WorkerPool's template. It
6336
+ # might not be ready yet, for that use LatestReadyRevisionName.
6337
+ # Corresponds to the JSON property `latestCreatedRevisionName`
6338
+ # @return [String]
6339
+ attr_accessor :latest_created_revision_name
6340
+
6341
+ # Name of the latest Revision from this WorkerPool's template that has had its `
6342
+ # Ready` condition become `True`.
6343
+ # Corresponds to the JSON property `latestReadyRevisionName`
6344
+ # @return [String]
6345
+ attr_accessor :latest_ready_revision_name
6346
+
6347
+ # Returns the generation last seen by the system. Clients polling for completed
6348
+ # reconciliation should poll until observedGeneration = metadata.generation and
6349
+ # the Ready condition's status is True or False.
6350
+ # Corresponds to the JSON property `observedGeneration`
6351
+ # @return [Fixnum]
6352
+ attr_accessor :observed_generation
6353
+
6354
+ def initialize(**args)
6355
+ update!(**args)
6356
+ end
6357
+
6358
+ # Update properties of this object
6359
+ def update!(**args)
6360
+ @conditions = args[:conditions] if args.key?(:conditions)
6361
+ @instance_splits = args[:instance_splits] if args.key?(:instance_splits)
6362
+ @latest_created_revision_name = args[:latest_created_revision_name] if args.key?(:latest_created_revision_name)
6363
+ @latest_ready_revision_name = args[:latest_ready_revision_name] if args.key?(:latest_ready_revision_name)
6364
+ @observed_generation = args[:observed_generation] if args.key?(:observed_generation)
6365
+ end
6366
+ end
6162
6367
  end
6163
6368
  end
6164
6369
  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.81.0"
19
+ GEM_VERSION = "0.82.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250321"
25
+ REVISION = "20250411"
26
26
  end
27
27
  end
28
28
  end
@@ -514,6 +514,12 @@ module Google
514
514
  include Google::Apis::Core::JsonObjectSupport
515
515
  end
516
516
 
517
+ class InstanceSplit
518
+ class Representation < Google::Apis::Core::JsonRepresentation; end
519
+
520
+ include Google::Apis::Core::JsonObjectSupport
521
+ end
522
+
517
523
  class Job
518
524
  class Representation < Google::Apis::Core::JsonRepresentation; end
519
525
 
@@ -604,6 +610,12 @@ module Google
604
610
  include Google::Apis::Core::JsonObjectSupport
605
611
  end
606
612
 
613
+ class ListWorkerPoolsResponse
614
+ class Representation < Google::Apis::Core::JsonRepresentation; end
615
+
616
+ include Google::Apis::Core::JsonObjectSupport
617
+ end
618
+
607
619
  class LocalObjectReference
608
620
  class Representation < Google::Apis::Core::JsonRepresentation; end
609
621
 
@@ -844,6 +856,24 @@ module Google
844
856
  include Google::Apis::Core::JsonObjectSupport
845
857
  end
846
858
 
859
+ class WorkerPool
860
+ class Representation < Google::Apis::Core::JsonRepresentation; end
861
+
862
+ include Google::Apis::Core::JsonObjectSupport
863
+ end
864
+
865
+ class WorkerPoolSpec
866
+ class Representation < Google::Apis::Core::JsonRepresentation; end
867
+
868
+ include Google::Apis::Core::JsonObjectSupport
869
+ end
870
+
871
+ class WorkerPoolStatus
872
+ class Representation < Google::Apis::Core::JsonRepresentation; end
873
+
874
+ include Google::Apis::Core::JsonObjectSupport
875
+ end
876
+
847
877
  class Addressable
848
878
  # @private
849
879
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1766,6 +1796,15 @@ module Google
1766
1796
  end
1767
1797
  end
1768
1798
 
1799
+ class InstanceSplit
1800
+ # @private
1801
+ class Representation < Google::Apis::Core::JsonRepresentation
1802
+ property :latest_revision, as: 'latestRevision'
1803
+ property :percent, as: 'percent'
1804
+ property :revision_name, as: 'revisionName'
1805
+ end
1806
+ end
1807
+
1769
1808
  class Job
1770
1809
  # @private
1771
1810
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1942,6 +1981,19 @@ module Google
1942
1981
  end
1943
1982
  end
1944
1983
 
1984
+ class ListWorkerPoolsResponse
1985
+ # @private
1986
+ class Representation < Google::Apis::Core::JsonRepresentation
1987
+ property :api_version, as: 'apiVersion'
1988
+ collection :items, as: 'items', class: Google::Apis::RunV1::WorkerPool, decorator: Google::Apis::RunV1::WorkerPool::Representation
1989
+
1990
+ property :kind, as: 'kind'
1991
+ property :metadata, as: 'metadata', class: Google::Apis::RunV1::ListMeta, decorator: Google::Apis::RunV1::ListMeta::Representation
1992
+
1993
+ collection :unreachable, as: 'unreachable'
1994
+ end
1995
+ end
1996
+
1945
1997
  class LocalObjectReference
1946
1998
  # @private
1947
1999
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2405,6 +2457,43 @@ module Google
2405
2457
  property :sub_path, as: 'subPath'
2406
2458
  end
2407
2459
  end
2460
+
2461
+ class WorkerPool
2462
+ # @private
2463
+ class Representation < Google::Apis::Core::JsonRepresentation
2464
+ property :api_version, as: 'apiVersion'
2465
+ property :kind, as: 'kind'
2466
+ property :metadata, as: 'metadata', class: Google::Apis::RunV1::ObjectMeta, decorator: Google::Apis::RunV1::ObjectMeta::Representation
2467
+
2468
+ property :spec, as: 'spec', class: Google::Apis::RunV1::WorkerPoolSpec, decorator: Google::Apis::RunV1::WorkerPoolSpec::Representation
2469
+
2470
+ property :status, as: 'status', class: Google::Apis::RunV1::WorkerPoolStatus, decorator: Google::Apis::RunV1::WorkerPoolStatus::Representation
2471
+
2472
+ end
2473
+ end
2474
+
2475
+ class WorkerPoolSpec
2476
+ # @private
2477
+ class Representation < Google::Apis::Core::JsonRepresentation
2478
+ collection :instance_splits, as: 'instanceSplits', class: Google::Apis::RunV1::InstanceSplit, decorator: Google::Apis::RunV1::InstanceSplit::Representation
2479
+
2480
+ property :template, as: 'template', class: Google::Apis::RunV1::RevisionTemplate, decorator: Google::Apis::RunV1::RevisionTemplate::Representation
2481
+
2482
+ end
2483
+ end
2484
+
2485
+ class WorkerPoolStatus
2486
+ # @private
2487
+ class Representation < Google::Apis::Core::JsonRepresentation
2488
+ collection :conditions, as: 'conditions', class: Google::Apis::RunV1::GoogleCloudRunV1Condition, decorator: Google::Apis::RunV1::GoogleCloudRunV1Condition::Representation
2489
+
2490
+ collection :instance_splits, as: 'instanceSplits', class: Google::Apis::RunV1::InstanceSplit, decorator: Google::Apis::RunV1::InstanceSplit::Representation
2491
+
2492
+ property :latest_created_revision_name, as: 'latestCreatedRevisionName'
2493
+ property :latest_ready_revision_name, as: 'latestReadyRevisionName'
2494
+ property :observed_generation, as: 'observedGeneration'
2495
+ end
2496
+ end
2408
2497
  end
2409
2498
  end
2410
2499
  end
@@ -1296,6 +1296,212 @@ module Google
1296
1296
  execute_or_queue_command(command, &block)
1297
1297
  end
1298
1298
 
1299
+ # Creates a new WorkerPool. WorkerPool creation will trigger a new deployment.
1300
+ # Use GetWorkerPool, and check worker_pool.status to determine if the WorkerPool
1301
+ # is ready.
1302
+ # @param [String] parent
1303
+ # Required. The resource's parent. In Cloud Run, it may be one of the following:
1304
+ # * ``project_id_or_number`` * `namespaces/`project_id_or_number`` * `namespaces/
1305
+ # `project_id_or_number`/workerpools` * `projects/`project_id_or_number`/
1306
+ # locations/`region`` * `projects/`project_id_or_number`/regions/`region``
1307
+ # @param [Google::Apis::RunV1::WorkerPool] worker_pool_object
1308
+ # @param [String] dry_run
1309
+ # Indicates that the server should validate the request and populate default
1310
+ # values without persisting the request. Supported values: `all`
1311
+ # @param [String] fields
1312
+ # Selector specifying which fields to include in a partial response.
1313
+ # @param [String] quota_user
1314
+ # Available to use for quota purposes for server-side applications. Can be any
1315
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1316
+ # @param [Google::Apis::RequestOptions] options
1317
+ # Request-specific options
1318
+ #
1319
+ # @yield [result, err] Result & error if block supplied
1320
+ # @yieldparam result [Google::Apis::RunV1::WorkerPool] parsed result object
1321
+ # @yieldparam err [StandardError] error object if request failed
1322
+ #
1323
+ # @return [Google::Apis::RunV1::WorkerPool]
1324
+ #
1325
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1326
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1327
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1328
+ def create_namespace_workerpool(parent, worker_pool_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block)
1329
+ command = make_simple_command(:post, 'apis/run.googleapis.com/v1/{+parent}/workerpools', options)
1330
+ command.request_representation = Google::Apis::RunV1::WorkerPool::Representation
1331
+ command.request_object = worker_pool_object
1332
+ command.response_representation = Google::Apis::RunV1::WorkerPool::Representation
1333
+ command.response_class = Google::Apis::RunV1::WorkerPool
1334
+ command.params['parent'] = parent unless parent.nil?
1335
+ command.query['dryRun'] = dry_run unless dry_run.nil?
1336
+ command.query['fields'] = fields unless fields.nil?
1337
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1338
+ execute_or_queue_command(command, &block)
1339
+ end
1340
+
1341
+ # Deletes the provided worker pool. This will cause the WorkerPool to stop all
1342
+ # instances and will delete all associated WorkerPoolRevisions.
1343
+ # @param [String] name
1344
+ # Required. The fully qualified name of the worker pool to delete. It can be any
1345
+ # of the following forms: * `namespaces/`project_id_or_number`/workerpools/`
1346
+ # worker_pool_name`` (only when the `endpoint` is regional) * `projects/`
1347
+ # project_id_or_number`/locations/`region`/workerpools/`worker_pool_name`` * `
1348
+ # projects/`project_id_or_number`/regions/`region`/workerpools/`worker_pool_name`
1349
+ # `
1350
+ # @param [String] dry_run
1351
+ # Indicates that the server should validate the request and populate default
1352
+ # values without persisting the request. Supported values: `all`
1353
+ # @param [String] fields
1354
+ # Selector specifying which fields to include in a partial response.
1355
+ # @param [String] quota_user
1356
+ # Available to use for quota purposes for server-side applications. Can be any
1357
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1358
+ # @param [Google::Apis::RequestOptions] options
1359
+ # Request-specific options
1360
+ #
1361
+ # @yield [result, err] Result & error if block supplied
1362
+ # @yieldparam result [Google::Apis::RunV1::Status] parsed result object
1363
+ # @yieldparam err [StandardError] error object if request failed
1364
+ #
1365
+ # @return [Google::Apis::RunV1::Status]
1366
+ #
1367
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1368
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1369
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1370
+ def delete_namespace_workerpool(name, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block)
1371
+ command = make_simple_command(:delete, 'apis/run.googleapis.com/v1/{+name}', options)
1372
+ command.response_representation = Google::Apis::RunV1::Status::Representation
1373
+ command.response_class = Google::Apis::RunV1::Status
1374
+ command.params['name'] = name unless name.nil?
1375
+ command.query['dryRun'] = dry_run unless dry_run.nil?
1376
+ command.query['fields'] = fields unless fields.nil?
1377
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1378
+ execute_or_queue_command(command, &block)
1379
+ end
1380
+
1381
+ # Gets information about a worker pool.
1382
+ # @param [String] name
1383
+ # Required. The fully qualified name of the worker pool to retrieve. It can be
1384
+ # any of the following forms: * `namespaces/`project_id_or_number`/workerpools/`
1385
+ # worker_pool_name`` (only when the `endpoint` is regional) * `projects/`
1386
+ # project_id_or_number`/locations/`region`/workerpools/`worker_pool_name`` * `
1387
+ # projects/`project_id_or_number`/regions/`region`/workerpools/`worker_pool_name`
1388
+ # `
1389
+ # @param [String] fields
1390
+ # Selector specifying which fields to include in a partial response.
1391
+ # @param [String] quota_user
1392
+ # Available to use for quota purposes for server-side applications. Can be any
1393
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1394
+ # @param [Google::Apis::RequestOptions] options
1395
+ # Request-specific options
1396
+ #
1397
+ # @yield [result, err] Result & error if block supplied
1398
+ # @yieldparam result [Google::Apis::RunV1::WorkerPool] parsed result object
1399
+ # @yieldparam err [StandardError] error object if request failed
1400
+ #
1401
+ # @return [Google::Apis::RunV1::WorkerPool]
1402
+ #
1403
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1404
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1405
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1406
+ def get_namespace_workerpool(name, fields: nil, quota_user: nil, options: nil, &block)
1407
+ command = make_simple_command(:get, 'apis/run.googleapis.com/v1/{+name}', options)
1408
+ command.response_representation = Google::Apis::RunV1::WorkerPool::Representation
1409
+ command.response_class = Google::Apis::RunV1::WorkerPool
1410
+ command.params['name'] = name unless name.nil?
1411
+ command.query['fields'] = fields unless fields.nil?
1412
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1413
+ execute_or_queue_command(command, &block)
1414
+ end
1415
+
1416
+ # Lists worker pools for the given project and region. Results are sorted by
1417
+ # creation time, descending.
1418
+ # @param [String] parent
1419
+ # Required. The parent from where the resources should be listed. In Cloud Run,
1420
+ # it may be one of the following: * ``project_id_or_number`` * `namespaces/`
1421
+ # project_id_or_number`` * `namespaces/`project_id_or_number`/workerpools` * `
1422
+ # projects/`project_id_or_number`/locations/`region`` * `projects/`
1423
+ # project_id_or_number`/regions/`region``
1424
+ # @param [String] continue
1425
+ # Encoded string to continue paging.
1426
+ # @param [String] label_selector
1427
+ # =, !=, exists, in, and notIn.
1428
+ # @param [Fixnum] limit
1429
+ # The maximum number of records that should be returned.
1430
+ # @param [String] fields
1431
+ # Selector specifying which fields to include in a partial response.
1432
+ # @param [String] quota_user
1433
+ # Available to use for quota purposes for server-side applications. Can be any
1434
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1435
+ # @param [Google::Apis::RequestOptions] options
1436
+ # Request-specific options
1437
+ #
1438
+ # @yield [result, err] Result & error if block supplied
1439
+ # @yieldparam result [Google::Apis::RunV1::ListWorkerPoolsResponse] parsed result object
1440
+ # @yieldparam err [StandardError] error object if request failed
1441
+ #
1442
+ # @return [Google::Apis::RunV1::ListWorkerPoolsResponse]
1443
+ #
1444
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1445
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1446
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1447
+ def list_namespace_workerpools(parent, continue: nil, label_selector: nil, limit: nil, fields: nil, quota_user: nil, options: nil, &block)
1448
+ command = make_simple_command(:get, 'apis/run.googleapis.com/v1/{+parent}/workerpools', options)
1449
+ command.response_representation = Google::Apis::RunV1::ListWorkerPoolsResponse::Representation
1450
+ command.response_class = Google::Apis::RunV1::ListWorkerPoolsResponse
1451
+ command.params['parent'] = parent unless parent.nil?
1452
+ command.query['continue'] = continue unless continue.nil?
1453
+ command.query['labelSelector'] = label_selector unless label_selector.nil?
1454
+ command.query['limit'] = limit unless limit.nil?
1455
+ command.query['fields'] = fields unless fields.nil?
1456
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1457
+ execute_or_queue_command(command, &block)
1458
+ end
1459
+
1460
+ # Replaces a worker pool. Only the spec and metadata labels and annotations are
1461
+ # modifiable. After the Update request, Cloud Run will work to make the 'status'
1462
+ # match the requested 'spec'. May provide metadata.resourceVersion to enforce
1463
+ # update from last read for optimistic concurrency control.
1464
+ # @param [String] name
1465
+ # Required. The fully qualified name of the worker pool to replace. It can be
1466
+ # any of the following forms: * `namespaces/`project_id_or_number`/workerpools/`
1467
+ # worker_pool_name`` (only when the `endpoint` is regional) * `projects/`
1468
+ # project_id_or_number`/locations/`region`/workerpools/`worker_pool_name`` * `
1469
+ # projects/`project_id_or_number`/regions/`region`/workerpools/`worker_pool_name`
1470
+ # `
1471
+ # @param [Google::Apis::RunV1::WorkerPool] worker_pool_object
1472
+ # @param [String] dry_run
1473
+ # Indicates that the server should validate the request and populate default
1474
+ # values without persisting the request. Supported values: `all`
1475
+ # @param [String] fields
1476
+ # Selector specifying which fields to include in a partial response.
1477
+ # @param [String] quota_user
1478
+ # Available to use for quota purposes for server-side applications. Can be any
1479
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1480
+ # @param [Google::Apis::RequestOptions] options
1481
+ # Request-specific options
1482
+ #
1483
+ # @yield [result, err] Result & error if block supplied
1484
+ # @yieldparam result [Google::Apis::RunV1::WorkerPool] parsed result object
1485
+ # @yieldparam err [StandardError] error object if request failed
1486
+ #
1487
+ # @return [Google::Apis::RunV1::WorkerPool]
1488
+ #
1489
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1490
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1491
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1492
+ def replace_namespace_workerpool_worker_pool(name, worker_pool_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block)
1493
+ command = make_simple_command(:put, 'apis/run.googleapis.com/v1/{+name}', options)
1494
+ command.request_representation = Google::Apis::RunV1::WorkerPool::Representation
1495
+ command.request_object = worker_pool_object
1496
+ command.response_representation = Google::Apis::RunV1::WorkerPool::Representation
1497
+ command.response_class = Google::Apis::RunV1::WorkerPool
1498
+ command.params['name'] = name unless name.nil?
1499
+ command.query['dryRun'] = dry_run unless dry_run.nil?
1500
+ command.query['fields'] = fields unless fields.nil?
1501
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1502
+ execute_or_queue_command(command, &block)
1503
+ end
1504
+
1299
1505
  # List authorized domains.
1300
1506
  # @param [String] parent
1301
1507
  # Name of the parent Project resource. Example: `projects/myproject`.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-run_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.81.0
4
+ version: 0.82.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-30 00:00:00.000000000 Z
10
+ date: 2025-04-20 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: google-apis-core
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-run_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-run_v1/v0.81.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-run_v1/v0.82.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-run_v1
62
62
  rdoc_options: []
63
63
  require_paths: