google-apis-compute_v1 0.69.0 → 0.70.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: 6c8ed37f7f4ed231a552425feb0db1e5eef7ed2b5552f75d95ac4e22eed2aed6
4
- data.tar.gz: bafda83ef73e58358d8c467727f05b981d081f6d52675e2049fd3d2a3c26e95c
3
+ metadata.gz: a6c5c1526696c5845a810830db39d916b6781f3cb8e51d56e89bdbc10cb1b1fd
4
+ data.tar.gz: 28eb9f35a9f9d57ca1fdfb467c2b94639bf15cd734ddb17052ab64ae206ab7a5
5
5
  SHA512:
6
- metadata.gz: 33bb622083003d1de13ab17776eb3a640743a12d809c8ebe3caad425263fe452b267425c6a2a4abf956efa1137a47ccc26393a56e6e5571881252362f9b48a02
7
- data.tar.gz: 0da5d4da5f6336c07b1c4144199b8febdca3686eed59cf565bfb2cbeaf130b379d42039f4f7b343e76539f8d20e21dcedd114c951911c12d613848597027b469
6
+ metadata.gz: aea9b53ff6982cb0c4f2fc0ea73e070748860fa48ba6069fcc97661c17e32b3d61c482a401a328b446b45979ca8f29cd063486ca67e3cc905cbdf819dc675687
7
+ data.tar.gz: 8dc05f1a2619d3919481c799dadfacd1756cf01eaa7285a87493d130a36090995a720e17b4bd38b888fe5ce169d7e2df8c8523d8b06f8c7cf15ff1cfd09a2e43
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-compute_v1
2
2
 
3
+ ### v0.70.0 (2023-06-11)
4
+
5
+ * Regenerated from discovery document revision 20230530
6
+
3
7
  ### v0.69.0 (2023-05-28)
4
8
 
5
9
  * Regenerated from discovery document revision 20230516
@@ -4755,6 +4755,30 @@ module Google
4755
4755
  end
4756
4756
  end
4757
4757
 
4758
+ # A transient resource used in compute.disks.bulkInsert and compute.regionDisks.
4759
+ # bulkInsert. It is only used to process requests and is not persisted.
4760
+ class BulkInsertDiskResource
4761
+ include Google::Apis::Core::Hashable
4762
+
4763
+ # The URL of the DiskConsistencyGroupPolicy for the group of disks to clone.
4764
+ # This may be a full or partial URL, such as: - https://www.googleapis.com/
4765
+ # compute/v1/projects/project/regions/region /resourcePolicies/resourcePolicy -
4766
+ # projects/project/regions/region/resourcePolicies/resourcePolicy - regions/
4767
+ # region/resourcePolicies/resourcePolicy
4768
+ # Corresponds to the JSON property `sourceConsistencyGroupPolicy`
4769
+ # @return [String]
4770
+ attr_accessor :source_consistency_group_policy
4771
+
4772
+ def initialize(**args)
4773
+ update!(**args)
4774
+ end
4775
+
4776
+ # Update properties of this object
4777
+ def update!(**args)
4778
+ @source_consistency_group_policy = args[:source_consistency_group_policy] if args.key?(:source_consistency_group_policy)
4779
+ end
4780
+ end
4781
+
4758
4782
  # A transient resource used in compute.instances.bulkInsert and compute.
4759
4783
  # regionInstances.bulkInsert . This resource is not persisted anywhere, it is
4760
4784
  # used only for processing the requests.
@@ -7281,6 +7305,55 @@ module Google
7281
7305
  end
7282
7306
  end
7283
7307
 
7308
+ #
7309
+ class DisksStartAsyncReplicationRequest
7310
+ include Google::Apis::Core::Hashable
7311
+
7312
+ # The secondary disk to start asynchronous replication to. You can provide this
7313
+ # as a partial or full URL to the resource. For example, the following are valid
7314
+ # values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /
7315
+ # disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/
7316
+ # region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/
7317
+ # regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk
7318
+ # Corresponds to the JSON property `asyncSecondaryDisk`
7319
+ # @return [String]
7320
+ attr_accessor :async_secondary_disk
7321
+
7322
+ def initialize(**args)
7323
+ update!(**args)
7324
+ end
7325
+
7326
+ # Update properties of this object
7327
+ def update!(**args)
7328
+ @async_secondary_disk = args[:async_secondary_disk] if args.key?(:async_secondary_disk)
7329
+ end
7330
+ end
7331
+
7332
+ # A transient resource used in compute.disks.stopGroupAsyncReplication and
7333
+ # compute.regionDisks.stopGroupAsyncReplication. It is only used to process
7334
+ # requests and is not persisted.
7335
+ class DisksStopGroupAsyncReplicationResource
7336
+ include Google::Apis::Core::Hashable
7337
+
7338
+ # The URL of the DiskConsistencyGroupPolicy for the group of disks to stop. This
7339
+ # may be a full or partial URL, such as: - https://www.googleapis.com/compute/v1/
7340
+ # projects/project/regions/region /resourcePolicies/resourcePolicy - projects/
7341
+ # project/regions/region/resourcePolicies/resourcePolicy - regions/region/
7342
+ # resourcePolicies/resourcePolicy
7343
+ # Corresponds to the JSON property `resourcePolicy`
7344
+ # @return [String]
7345
+ attr_accessor :resource_policy
7346
+
7347
+ def initialize(**args)
7348
+ update!(**args)
7349
+ end
7350
+
7351
+ # Update properties of this object
7352
+ def update!(**args)
7353
+ @resource_policy = args[:resource_policy] if args.key?(:resource_policy)
7354
+ end
7355
+ end
7356
+
7284
7357
  # A set of Display Device options
7285
7358
  class DisplayDevice
7286
7359
  include Google::Apis::Core::Hashable
@@ -28705,6 +28778,30 @@ module Google
28705
28778
  end
28706
28779
  end
28707
28780
 
28781
+ #
28782
+ class RegionDisksStartAsyncReplicationRequest
28783
+ include Google::Apis::Core::Hashable
28784
+
28785
+ # The secondary disk to start asynchronous replication to. You can provide this
28786
+ # as a partial or full URL to the resource. For example, the following are valid
28787
+ # values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /
28788
+ # disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/
28789
+ # region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/
28790
+ # regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk
28791
+ # Corresponds to the JSON property `asyncSecondaryDisk`
28792
+ # @return [String]
28793
+ attr_accessor :async_secondary_disk
28794
+
28795
+ def initialize(**args)
28796
+ update!(**args)
28797
+ end
28798
+
28799
+ # Update properties of this object
28800
+ def update!(**args)
28801
+ @async_secondary_disk = args[:async_secondary_disk] if args.key?(:async_secondary_disk)
28802
+ end
28803
+ end
28804
+
28708
28805
  # Contains a list of InstanceGroup resources.
28709
28806
  class RegionInstanceGroupList
28710
28807
  include Google::Apis::Core::Hashable
@@ -30554,6 +30651,11 @@ module Google
30554
30651
  # @return [String]
30555
30652
  attr_accessor :description
30556
30653
 
30654
+ # Resource policy for disk consistency groups.
30655
+ # Corresponds to the JSON property `diskConsistencyGroupPolicy`
30656
+ # @return [Google::Apis::ComputeV1::ResourcePolicyDiskConsistencyGroupPolicy]
30657
+ attr_accessor :disk_consistency_group_policy
30658
+
30557
30659
  # A GroupPlacementPolicy specifies resource placement configuration. It
30558
30660
  # specifies the failure bucket separation as well as network locality
30559
30661
  # Corresponds to the JSON property `groupPlacementPolicy`
@@ -30626,6 +30728,7 @@ module Google
30626
30728
  def update!(**args)
30627
30729
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
30628
30730
  @description = args[:description] if args.key?(:description)
30731
+ @disk_consistency_group_policy = args[:disk_consistency_group_policy] if args.key?(:disk_consistency_group_policy)
30629
30732
  @group_placement_policy = args[:group_placement_policy] if args.key?(:group_placement_policy)
30630
30733
  @id = args[:id] if args.key?(:id)
30631
30734
  @instance_schedule_policy = args[:instance_schedule_policy] if args.key?(:instance_schedule_policy)
@@ -30803,6 +30906,19 @@ module Google
30803
30906
  end
30804
30907
  end
30805
30908
 
30909
+ # Resource policy for disk consistency groups.
30910
+ class ResourcePolicyDiskConsistencyGroupPolicy
30911
+ include Google::Apis::Core::Hashable
30912
+
30913
+ def initialize(**args)
30914
+ update!(**args)
30915
+ end
30916
+
30917
+ # Update properties of this object
30918
+ def update!(**args)
30919
+ end
30920
+ end
30921
+
30806
30922
  # A GroupPlacementPolicy specifies resource placement configuration. It
30807
30923
  # specifies the failure bucket separation as well as network locality
30808
30924
  class ResourcePolicyGroupPlacementPolicy
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ComputeV1
18
18
  # Version of the google-apis-compute_v1 gem
19
- GEM_VERSION = "0.69.0"
19
+ GEM_VERSION = "0.70.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230516"
25
+ REVISION = "20230530"
26
26
  end
27
27
  end
28
28
  end
@@ -538,6 +538,12 @@ module Google
538
538
  include Google::Apis::Core::JsonObjectSupport
539
539
  end
540
540
 
541
+ class BulkInsertDiskResource
542
+ class Representation < Google::Apis::Core::JsonRepresentation; end
543
+
544
+ include Google::Apis::Core::JsonObjectSupport
545
+ end
546
+
541
547
  class BulkInsertInstanceResource
542
548
  class Representation < Google::Apis::Core::JsonRepresentation; end
543
549
 
@@ -862,6 +868,18 @@ module Google
862
868
  include Google::Apis::Core::JsonObjectSupport
863
869
  end
864
870
 
871
+ class DisksStartAsyncReplicationRequest
872
+ class Representation < Google::Apis::Core::JsonRepresentation; end
873
+
874
+ include Google::Apis::Core::JsonObjectSupport
875
+ end
876
+
877
+ class DisksStopGroupAsyncReplicationResource
878
+ class Representation < Google::Apis::Core::JsonRepresentation; end
879
+
880
+ include Google::Apis::Core::JsonObjectSupport
881
+ end
882
+
865
883
  class DisplayDevice
866
884
  class Representation < Google::Apis::Core::JsonRepresentation; end
867
885
 
@@ -3640,6 +3658,12 @@ module Google
3640
3658
  include Google::Apis::Core::JsonObjectSupport
3641
3659
  end
3642
3660
 
3661
+ class RegionDisksStartAsyncReplicationRequest
3662
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3663
+
3664
+ include Google::Apis::Core::JsonObjectSupport
3665
+ end
3666
+
3643
3667
  class RegionInstanceGroupList
3644
3668
  class Representation < Google::Apis::Core::JsonRepresentation; end
3645
3669
 
@@ -3988,6 +4012,12 @@ module Google
3988
4012
  include Google::Apis::Core::JsonObjectSupport
3989
4013
  end
3990
4014
 
4015
+ class ResourcePolicyDiskConsistencyGroupPolicy
4016
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4017
+
4018
+ include Google::Apis::Core::JsonObjectSupport
4019
+ end
4020
+
3991
4021
  class ResourcePolicyGroupPlacementPolicy
3992
4022
  class Representation < Google::Apis::Core::JsonRepresentation; end
3993
4023
 
@@ -6929,6 +6959,13 @@ module Google
6929
6959
  end
6930
6960
  end
6931
6961
 
6962
+ class BulkInsertDiskResource
6963
+ # @private
6964
+ class Representation < Google::Apis::Core::JsonRepresentation
6965
+ property :source_consistency_group_policy, as: 'sourceConsistencyGroupPolicy'
6966
+ end
6967
+ end
6968
+
6932
6969
  class BulkInsertInstanceResource
6933
6970
  # @private
6934
6971
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -7539,6 +7576,20 @@ module Google
7539
7576
  end
7540
7577
  end
7541
7578
 
7579
+ class DisksStartAsyncReplicationRequest
7580
+ # @private
7581
+ class Representation < Google::Apis::Core::JsonRepresentation
7582
+ property :async_secondary_disk, as: 'asyncSecondaryDisk'
7583
+ end
7584
+ end
7585
+
7586
+ class DisksStopGroupAsyncReplicationResource
7587
+ # @private
7588
+ class Representation < Google::Apis::Core::JsonRepresentation
7589
+ property :resource_policy, as: 'resourcePolicy'
7590
+ end
7591
+ end
7592
+
7542
7593
  class DisplayDevice
7543
7594
  # @private
7544
7595
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -12799,6 +12850,13 @@ module Google
12799
12850
  end
12800
12851
  end
12801
12852
 
12853
+ class RegionDisksStartAsyncReplicationRequest
12854
+ # @private
12855
+ class Representation < Google::Apis::Core::JsonRepresentation
12856
+ property :async_secondary_disk, as: 'asyncSecondaryDisk'
12857
+ end
12858
+ end
12859
+
12802
12860
  class RegionInstanceGroupList
12803
12861
  # @private
12804
12862
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -13313,6 +13371,8 @@ module Google
13313
13371
  class Representation < Google::Apis::Core::JsonRepresentation
13314
13372
  property :creation_timestamp, as: 'creationTimestamp'
13315
13373
  property :description, as: 'description'
13374
+ property :disk_consistency_group_policy, as: 'diskConsistencyGroupPolicy', class: Google::Apis::ComputeV1::ResourcePolicyDiskConsistencyGroupPolicy, decorator: Google::Apis::ComputeV1::ResourcePolicyDiskConsistencyGroupPolicy::Representation
13375
+
13316
13376
  property :group_placement_policy, as: 'groupPlacementPolicy', class: Google::Apis::ComputeV1::ResourcePolicyGroupPlacementPolicy, decorator: Google::Apis::ComputeV1::ResourcePolicyGroupPlacementPolicy::Representation
13317
13377
 
13318
13378
  property :id, :numeric_string => true, as: 'id'
@@ -13373,6 +13433,12 @@ module Google
13373
13433
  end
13374
13434
  end
13375
13435
 
13436
+ class ResourcePolicyDiskConsistencyGroupPolicy
13437
+ # @private
13438
+ class Representation < Google::Apis::Core::JsonRepresentation
13439
+ end
13440
+ end
13441
+
13376
13442
  class ResourcePolicyGroupPlacementPolicy
13377
13443
  # @private
13378
13444
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2749,6 +2749,56 @@ module Google
2749
2749
  execute_or_queue_command(command, &block)
2750
2750
  end
2751
2751
 
2752
+ # Bulk create a set of disks.
2753
+ # @param [String] project
2754
+ # Project ID for this request.
2755
+ # @param [String] zone
2756
+ # The name of the zone for this request.
2757
+ # @param [Google::Apis::ComputeV1::BulkInsertDiskResource] bulk_insert_disk_resource_object
2758
+ # @param [String] request_id
2759
+ # An optional request ID to identify requests. Specify a unique request ID so
2760
+ # that if you must retry your request, the server will know to ignore the
2761
+ # request if it has already been completed. For example, consider a situation
2762
+ # where you make an initial request and the request times out. If you make the
2763
+ # request again with the same request ID, the server can check if original
2764
+ # operation with the same request ID was received, and if so, will ignore the
2765
+ # second request. This prevents clients from accidentally creating duplicate
2766
+ # commitments. The request ID must be a valid UUID with the exception that zero
2767
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
2768
+ # @param [String] fields
2769
+ # Selector specifying which fields to include in a partial response.
2770
+ # @param [String] quota_user
2771
+ # Available to use for quota purposes for server-side applications. Can be any
2772
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2773
+ # @param [String] user_ip
2774
+ # Legacy name for parameter that has been superseded by `quotaUser`.
2775
+ # @param [Google::Apis::RequestOptions] options
2776
+ # Request-specific options
2777
+ #
2778
+ # @yield [result, err] Result & error if block supplied
2779
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
2780
+ # @yieldparam err [StandardError] error object if request failed
2781
+ #
2782
+ # @return [Google::Apis::ComputeV1::Operation]
2783
+ #
2784
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2785
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2786
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2787
+ def bulk_disk_insert(project, zone, bulk_insert_disk_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2788
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/bulkInsert', options)
2789
+ command.request_representation = Google::Apis::ComputeV1::BulkInsertDiskResource::Representation
2790
+ command.request_object = bulk_insert_disk_resource_object
2791
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
2792
+ command.response_class = Google::Apis::ComputeV1::Operation
2793
+ command.params['project'] = project unless project.nil?
2794
+ command.params['zone'] = zone unless zone.nil?
2795
+ command.query['requestId'] = request_id unless request_id.nil?
2796
+ command.query['fields'] = fields unless fields.nil?
2797
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2798
+ command.query['userIp'] = user_ip unless user_ip.nil?
2799
+ execute_or_queue_command(command, &block)
2800
+ end
2801
+
2752
2802
  # Creates a snapshot of a specified persistent disk. For regular snapshot
2753
2803
  # creation, consider using snapshots.insert instead, as that method supports
2754
2804
  # more features, such as creating snapshots in a project different from the
@@ -3295,6 +3345,162 @@ module Google
3295
3345
  execute_or_queue_command(command, &block)
3296
3346
  end
3297
3347
 
3348
+ # Starts asynchronous replication. Must be invoked on the primary disk.
3349
+ # @param [String] project
3350
+ # Project ID for this request.
3351
+ # @param [String] zone
3352
+ # The name of the zone for this request.
3353
+ # @param [String] disk
3354
+ # The name of the persistent disk.
3355
+ # @param [Google::Apis::ComputeV1::DisksStartAsyncReplicationRequest] disks_start_async_replication_request_object
3356
+ # @param [String] request_id
3357
+ # An optional request ID to identify requests. Specify a unique request ID so
3358
+ # that if you must retry your request, the server will know to ignore the
3359
+ # request if it has already been completed. For example, consider a situation
3360
+ # where you make an initial request and the request times out. If you make the
3361
+ # request again with the same request ID, the server can check if original
3362
+ # operation with the same request ID was received, and if so, will ignore the
3363
+ # second request. This prevents clients from accidentally creating duplicate
3364
+ # commitments. The request ID must be a valid UUID with the exception that zero
3365
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
3366
+ # @param [String] fields
3367
+ # Selector specifying which fields to include in a partial response.
3368
+ # @param [String] quota_user
3369
+ # Available to use for quota purposes for server-side applications. Can be any
3370
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3371
+ # @param [String] user_ip
3372
+ # Legacy name for parameter that has been superseded by `quotaUser`.
3373
+ # @param [Google::Apis::RequestOptions] options
3374
+ # Request-specific options
3375
+ #
3376
+ # @yield [result, err] Result & error if block supplied
3377
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
3378
+ # @yieldparam err [StandardError] error object if request failed
3379
+ #
3380
+ # @return [Google::Apis::ComputeV1::Operation]
3381
+ #
3382
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3383
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3384
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3385
+ def start_disk_async_replication(project, zone, disk, disks_start_async_replication_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3386
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/{disk}/startAsyncReplication', options)
3387
+ command.request_representation = Google::Apis::ComputeV1::DisksStartAsyncReplicationRequest::Representation
3388
+ command.request_object = disks_start_async_replication_request_object
3389
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
3390
+ command.response_class = Google::Apis::ComputeV1::Operation
3391
+ command.params['project'] = project unless project.nil?
3392
+ command.params['zone'] = zone unless zone.nil?
3393
+ command.params['disk'] = disk unless disk.nil?
3394
+ command.query['requestId'] = request_id unless request_id.nil?
3395
+ command.query['fields'] = fields unless fields.nil?
3396
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3397
+ command.query['userIp'] = user_ip unless user_ip.nil?
3398
+ execute_or_queue_command(command, &block)
3399
+ end
3400
+
3401
+ # Stops asynchronous replication. Can be invoked either on the primary or on the
3402
+ # secondary disk.
3403
+ # @param [String] project
3404
+ # Project ID for this request.
3405
+ # @param [String] zone
3406
+ # The name of the zone for this request.
3407
+ # @param [String] disk
3408
+ # The name of the persistent disk.
3409
+ # @param [String] request_id
3410
+ # An optional request ID to identify requests. Specify a unique request ID so
3411
+ # that if you must retry your request, the server will know to ignore the
3412
+ # request if it has already been completed. For example, consider a situation
3413
+ # where you make an initial request and the request times out. If you make the
3414
+ # request again with the same request ID, the server can check if original
3415
+ # operation with the same request ID was received, and if so, will ignore the
3416
+ # second request. This prevents clients from accidentally creating duplicate
3417
+ # commitments. The request ID must be a valid UUID with the exception that zero
3418
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
3419
+ # @param [String] fields
3420
+ # Selector specifying which fields to include in a partial response.
3421
+ # @param [String] quota_user
3422
+ # Available to use for quota purposes for server-side applications. Can be any
3423
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3424
+ # @param [String] user_ip
3425
+ # Legacy name for parameter that has been superseded by `quotaUser`.
3426
+ # @param [Google::Apis::RequestOptions] options
3427
+ # Request-specific options
3428
+ #
3429
+ # @yield [result, err] Result & error if block supplied
3430
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
3431
+ # @yieldparam err [StandardError] error object if request failed
3432
+ #
3433
+ # @return [Google::Apis::ComputeV1::Operation]
3434
+ #
3435
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3436
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3437
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3438
+ def stop_disk_async_replication(project, zone, disk, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3439
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/{disk}/stopAsyncReplication', options)
3440
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
3441
+ command.response_class = Google::Apis::ComputeV1::Operation
3442
+ command.params['project'] = project unless project.nil?
3443
+ command.params['zone'] = zone unless zone.nil?
3444
+ command.params['disk'] = disk unless disk.nil?
3445
+ command.query['requestId'] = request_id unless request_id.nil?
3446
+ command.query['fields'] = fields unless fields.nil?
3447
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3448
+ command.query['userIp'] = user_ip unless user_ip.nil?
3449
+ execute_or_queue_command(command, &block)
3450
+ end
3451
+
3452
+ # Stops asynchronous replication for a consistency group of disks. Can be
3453
+ # invoked either in the primary or secondary scope.
3454
+ # @param [String] project
3455
+ # Project ID for this request.
3456
+ # @param [String] zone
3457
+ # The name of the zone for this request. This must be the zone of the primary or
3458
+ # secondary disks in the consistency group.
3459
+ # @param [Google::Apis::ComputeV1::DisksStopGroupAsyncReplicationResource] disks_stop_group_async_replication_resource_object
3460
+ # @param [String] request_id
3461
+ # An optional request ID to identify requests. Specify a unique request ID so
3462
+ # that if you must retry your request, the server will know to ignore the
3463
+ # request if it has already been completed. For example, consider a situation
3464
+ # where you make an initial request and the request times out. If you make the
3465
+ # request again with the same request ID, the server can check if original
3466
+ # operation with the same request ID was received, and if so, will ignore the
3467
+ # second request. This prevents clients from accidentally creating duplicate
3468
+ # commitments. The request ID must be a valid UUID with the exception that zero
3469
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
3470
+ # @param [String] fields
3471
+ # Selector specifying which fields to include in a partial response.
3472
+ # @param [String] quota_user
3473
+ # Available to use for quota purposes for server-side applications. Can be any
3474
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3475
+ # @param [String] user_ip
3476
+ # Legacy name for parameter that has been superseded by `quotaUser`.
3477
+ # @param [Google::Apis::RequestOptions] options
3478
+ # Request-specific options
3479
+ #
3480
+ # @yield [result, err] Result & error if block supplied
3481
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
3482
+ # @yieldparam err [StandardError] error object if request failed
3483
+ #
3484
+ # @return [Google::Apis::ComputeV1::Operation]
3485
+ #
3486
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3487
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3488
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3489
+ def stop_disk_group_async_replication(project, zone, disks_stop_group_async_replication_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3490
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/stopGroupAsyncReplication', options)
3491
+ command.request_representation = Google::Apis::ComputeV1::DisksStopGroupAsyncReplicationResource::Representation
3492
+ command.request_object = disks_stop_group_async_replication_resource_object
3493
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
3494
+ command.response_class = Google::Apis::ComputeV1::Operation
3495
+ command.params['project'] = project unless project.nil?
3496
+ command.params['zone'] = zone unless zone.nil?
3497
+ command.query['requestId'] = request_id unless request_id.nil?
3498
+ command.query['fields'] = fields unless fields.nil?
3499
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3500
+ command.query['userIp'] = user_ip unless user_ip.nil?
3501
+ execute_or_queue_command(command, &block)
3502
+ end
3503
+
3298
3504
  # Returns permissions that a caller has on the specified resource.
3299
3505
  # @param [String] project
3300
3506
  # Project ID for this request.
@@ -23042,6 +23248,56 @@ module Google
23042
23248
  execute_or_queue_command(command, &block)
23043
23249
  end
23044
23250
 
23251
+ # Bulk create a set of disks.
23252
+ # @param [String] project
23253
+ # Project ID for this request.
23254
+ # @param [String] region
23255
+ # The name of the region for this request.
23256
+ # @param [Google::Apis::ComputeV1::BulkInsertDiskResource] bulk_insert_disk_resource_object
23257
+ # @param [String] request_id
23258
+ # An optional request ID to identify requests. Specify a unique request ID so
23259
+ # that if you must retry your request, the server will know to ignore the
23260
+ # request if it has already been completed. For example, consider a situation
23261
+ # where you make an initial request and the request times out. If you make the
23262
+ # request again with the same request ID, the server can check if original
23263
+ # operation with the same request ID was received, and if so, will ignore the
23264
+ # second request. This prevents clients from accidentally creating duplicate
23265
+ # commitments. The request ID must be a valid UUID with the exception that zero
23266
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
23267
+ # @param [String] fields
23268
+ # Selector specifying which fields to include in a partial response.
23269
+ # @param [String] quota_user
23270
+ # Available to use for quota purposes for server-side applications. Can be any
23271
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
23272
+ # @param [String] user_ip
23273
+ # Legacy name for parameter that has been superseded by `quotaUser`.
23274
+ # @param [Google::Apis::RequestOptions] options
23275
+ # Request-specific options
23276
+ #
23277
+ # @yield [result, err] Result & error if block supplied
23278
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
23279
+ # @yieldparam err [StandardError] error object if request failed
23280
+ #
23281
+ # @return [Google::Apis::ComputeV1::Operation]
23282
+ #
23283
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
23284
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
23285
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
23286
+ def bulk_region_disk_insert(project, region, bulk_insert_disk_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
23287
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/bulkInsert', options)
23288
+ command.request_representation = Google::Apis::ComputeV1::BulkInsertDiskResource::Representation
23289
+ command.request_object = bulk_insert_disk_resource_object
23290
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
23291
+ command.response_class = Google::Apis::ComputeV1::Operation
23292
+ command.params['project'] = project unless project.nil?
23293
+ command.params['region'] = region unless region.nil?
23294
+ command.query['requestId'] = request_id unless request_id.nil?
23295
+ command.query['fields'] = fields unless fields.nil?
23296
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
23297
+ command.query['userIp'] = user_ip unless user_ip.nil?
23298
+ execute_or_queue_command(command, &block)
23299
+ end
23300
+
23045
23301
  # Creates a snapshot of a specified persistent disk. For regular snapshot
23046
23302
  # creation, consider using snapshots.insert instead, as that method supports
23047
23303
  # more features, such as creating snapshots in a project different from the
@@ -23580,6 +23836,162 @@ module Google
23580
23836
  execute_or_queue_command(command, &block)
23581
23837
  end
23582
23838
 
23839
+ # Starts asynchronous replication. Must be invoked on the primary disk.
23840
+ # @param [String] project
23841
+ # Project ID for this request.
23842
+ # @param [String] region
23843
+ # The name of the region for this request.
23844
+ # @param [String] disk
23845
+ # The name of the persistent disk.
23846
+ # @param [Google::Apis::ComputeV1::RegionDisksStartAsyncReplicationRequest] region_disks_start_async_replication_request_object
23847
+ # @param [String] request_id
23848
+ # An optional request ID to identify requests. Specify a unique request ID so
23849
+ # that if you must retry your request, the server will know to ignore the
23850
+ # request if it has already been completed. For example, consider a situation
23851
+ # where you make an initial request and the request times out. If you make the
23852
+ # request again with the same request ID, the server can check if original
23853
+ # operation with the same request ID was received, and if so, will ignore the
23854
+ # second request. This prevents clients from accidentally creating duplicate
23855
+ # commitments. The request ID must be a valid UUID with the exception that zero
23856
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
23857
+ # @param [String] fields
23858
+ # Selector specifying which fields to include in a partial response.
23859
+ # @param [String] quota_user
23860
+ # Available to use for quota purposes for server-side applications. Can be any
23861
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
23862
+ # @param [String] user_ip
23863
+ # Legacy name for parameter that has been superseded by `quotaUser`.
23864
+ # @param [Google::Apis::RequestOptions] options
23865
+ # Request-specific options
23866
+ #
23867
+ # @yield [result, err] Result & error if block supplied
23868
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
23869
+ # @yieldparam err [StandardError] error object if request failed
23870
+ #
23871
+ # @return [Google::Apis::ComputeV1::Operation]
23872
+ #
23873
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
23874
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
23875
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
23876
+ def start_region_disk_async_replication(project, region, disk, region_disks_start_async_replication_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
23877
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{disk}/startAsyncReplication', options)
23878
+ command.request_representation = Google::Apis::ComputeV1::RegionDisksStartAsyncReplicationRequest::Representation
23879
+ command.request_object = region_disks_start_async_replication_request_object
23880
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
23881
+ command.response_class = Google::Apis::ComputeV1::Operation
23882
+ command.params['project'] = project unless project.nil?
23883
+ command.params['region'] = region unless region.nil?
23884
+ command.params['disk'] = disk unless disk.nil?
23885
+ command.query['requestId'] = request_id unless request_id.nil?
23886
+ command.query['fields'] = fields unless fields.nil?
23887
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
23888
+ command.query['userIp'] = user_ip unless user_ip.nil?
23889
+ execute_or_queue_command(command, &block)
23890
+ end
23891
+
23892
+ # Stops asynchronous replication. Can be invoked either on the primary or on the
23893
+ # secondary disk.
23894
+ # @param [String] project
23895
+ # Project ID for this request.
23896
+ # @param [String] region
23897
+ # The name of the region for this request.
23898
+ # @param [String] disk
23899
+ # The name of the persistent disk.
23900
+ # @param [String] request_id
23901
+ # An optional request ID to identify requests. Specify a unique request ID so
23902
+ # that if you must retry your request, the server will know to ignore the
23903
+ # request if it has already been completed. For example, consider a situation
23904
+ # where you make an initial request and the request times out. If you make the
23905
+ # request again with the same request ID, the server can check if original
23906
+ # operation with the same request ID was received, and if so, will ignore the
23907
+ # second request. This prevents clients from accidentally creating duplicate
23908
+ # commitments. The request ID must be a valid UUID with the exception that zero
23909
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
23910
+ # @param [String] fields
23911
+ # Selector specifying which fields to include in a partial response.
23912
+ # @param [String] quota_user
23913
+ # Available to use for quota purposes for server-side applications. Can be any
23914
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
23915
+ # @param [String] user_ip
23916
+ # Legacy name for parameter that has been superseded by `quotaUser`.
23917
+ # @param [Google::Apis::RequestOptions] options
23918
+ # Request-specific options
23919
+ #
23920
+ # @yield [result, err] Result & error if block supplied
23921
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
23922
+ # @yieldparam err [StandardError] error object if request failed
23923
+ #
23924
+ # @return [Google::Apis::ComputeV1::Operation]
23925
+ #
23926
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
23927
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
23928
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
23929
+ def stop_region_disk_async_replication(project, region, disk, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
23930
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{disk}/stopAsyncReplication', options)
23931
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
23932
+ command.response_class = Google::Apis::ComputeV1::Operation
23933
+ command.params['project'] = project unless project.nil?
23934
+ command.params['region'] = region unless region.nil?
23935
+ command.params['disk'] = disk unless disk.nil?
23936
+ command.query['requestId'] = request_id unless request_id.nil?
23937
+ command.query['fields'] = fields unless fields.nil?
23938
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
23939
+ command.query['userIp'] = user_ip unless user_ip.nil?
23940
+ execute_or_queue_command(command, &block)
23941
+ end
23942
+
23943
+ # Stops asynchronous replication for a consistency group of disks. Can be
23944
+ # invoked either in the primary or secondary scope.
23945
+ # @param [String] project
23946
+ # Project ID for this request.
23947
+ # @param [String] region
23948
+ # The name of the region for this request. This must be the region of the
23949
+ # primary or secondary disks in the consistency group.
23950
+ # @param [Google::Apis::ComputeV1::DisksStopGroupAsyncReplicationResource] disks_stop_group_async_replication_resource_object
23951
+ # @param [String] request_id
23952
+ # An optional request ID to identify requests. Specify a unique request ID so
23953
+ # that if you must retry your request, the server will know to ignore the
23954
+ # request if it has already been completed. For example, consider a situation
23955
+ # where you make an initial request and the request times out. If you make the
23956
+ # request again with the same request ID, the server can check if original
23957
+ # operation with the same request ID was received, and if so, will ignore the
23958
+ # second request. This prevents clients from accidentally creating duplicate
23959
+ # commitments. The request ID must be a valid UUID with the exception that zero
23960
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
23961
+ # @param [String] fields
23962
+ # Selector specifying which fields to include in a partial response.
23963
+ # @param [String] quota_user
23964
+ # Available to use for quota purposes for server-side applications. Can be any
23965
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
23966
+ # @param [String] user_ip
23967
+ # Legacy name for parameter that has been superseded by `quotaUser`.
23968
+ # @param [Google::Apis::RequestOptions] options
23969
+ # Request-specific options
23970
+ #
23971
+ # @yield [result, err] Result & error if block supplied
23972
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
23973
+ # @yieldparam err [StandardError] error object if request failed
23974
+ #
23975
+ # @return [Google::Apis::ComputeV1::Operation]
23976
+ #
23977
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
23978
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
23979
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
23980
+ def stop_region_disk_group_async_replication(project, region, disks_stop_group_async_replication_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
23981
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/stopGroupAsyncReplication', options)
23982
+ command.request_representation = Google::Apis::ComputeV1::DisksStopGroupAsyncReplicationResource::Representation
23983
+ command.request_object = disks_stop_group_async_replication_resource_object
23984
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
23985
+ command.response_class = Google::Apis::ComputeV1::Operation
23986
+ command.params['project'] = project unless project.nil?
23987
+ command.params['region'] = region unless region.nil?
23988
+ command.query['requestId'] = request_id unless request_id.nil?
23989
+ command.query['fields'] = fields unless fields.nil?
23990
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
23991
+ command.query['userIp'] = user_ip unless user_ip.nil?
23992
+ execute_or_queue_command(command, &block)
23993
+ end
23994
+
23583
23995
  # Returns permissions that a caller has on the specified resource.
23584
23996
  # @param [String] project
23585
23997
  # Project ID for this request.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-compute_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.69.0
4
+ version: 0.70.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-05-28 00:00:00.000000000 Z
11
+ date: 2023-06-11 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-compute_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.69.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.70.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_v1
63
63
  post_install_message:
64
64
  rdoc_options: []