google-apis-compute_beta 0.3.0 → 0.4.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: eeedce7a61ada297430e4625ea77907ed5d53aa6d70e0d3d6b02ce008b8e90c3
4
- data.tar.gz: ea987d7fd72d5b5b2ccf702e71c728c16955d6a63bb5558f60ada394bb7d0a8a
3
+ metadata.gz: 2d635336309fb9ad374e35d41c7bc3af7faff07bc71a7362ddacf925d317f3c8
4
+ data.tar.gz: e772796db78cff638c35c82841920a2b0e3292539d979c3effd702a3e2e23db0
5
5
  SHA512:
6
- metadata.gz: 2f035356394b34c2cbaa0c6b18a00c3c79a4cbe8de8cea86a7ce42e45caf4a27ac396272570effb695bca213e042481eda9408909c1665c5875f2e10d42acd51
7
- data.tar.gz: afa5533378d6ee06dbdac55cd9e8c1e1329508955d707892301999405bf6fbd0f803bdb6a2ebb6e2864c6c7751ab85c5666a3e1640826e36ed16cc24c2e1ac2b
6
+ metadata.gz: af2de9467e02171ad38bf6933e61d31769af1012ea9313a98db995d42ff00266658d493470145fc4e0f0b428a0600bf3c09e6f37ac7a5e1c88f8321449a24f2e
7
+ data.tar.gz: 2e17c33cbf572f5c6af1dbddf97b19a1d4132f6262856725d94379ad76b84d28c14415f3fc3c81d1d0ad11090c7e4ec829364a7d380c65a7b82695ee4edc9723
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-compute_beta
2
2
 
3
+ ### v0.4.0 (2021-02-24)
4
+
5
+ * Regenerated from discovery document revision 20210209
6
+
3
7
  ### v0.3.0 (2021-02-16)
4
8
 
5
9
  * Regenerated from discovery document revision 20210129
@@ -2736,10 +2736,15 @@ module Google
2736
2736
  # @return [String]
2737
2737
  attr_accessor :cache_mode
2738
2738
 
2739
- # Specifies a separate client (e.g. browser client) TTL, separate from the TTL
2740
- # for Cloud CDN's edge caches. Leaving this empty will use the same cache TTL
2741
- # for both Cloud CDN and the client-facing response. The maximum allowed value
2742
- # is 86400s (1 day).
2739
+ # Specifies a separate client (e.g. browser client) maximum TTL. This is used to
2740
+ # clamp the max-age (or Expires) value sent to the client. With FORCE_CACHE_ALL,
2741
+ # the lesser of client_ttl and default_ttl is used for the response max-age
2742
+ # directive, along with a "public" directive. For cacheable content in
2743
+ # CACHE_ALL_STATIC mode, client_ttl clamps the max-age from the origin (if
2744
+ # specified), or else sets the response max-age directive to the lesser of the
2745
+ # client_ttl and default_ttl, and also ensures a "public" cache-control
2746
+ # directive is present. If a client TTL is not specified, a default value (1
2747
+ # hour) will be used. The maximum allowed value is 86400s (1 day).
2743
2748
  # Corresponds to the JSON property `clientTtl`
2744
2749
  # @return [Fixnum]
2745
2750
  attr_accessor :client_ttl
@@ -3506,10 +3511,15 @@ module Google
3506
3511
  # @return [String]
3507
3512
  attr_accessor :cache_mode
3508
3513
 
3509
- # Specifies a separate client (e.g. browser client) TTL, separate from the TTL
3510
- # for Cloud CDN's edge caches. Leaving this empty will use the same cache TTL
3511
- # for both Cloud CDN and the client-facing response. The maximum allowed value
3512
- # is 86400s (1 day).
3514
+ # Specifies a separate client (e.g. browser client) maximum TTL. This is used to
3515
+ # clamp the max-age (or Expires) value sent to the client. With FORCE_CACHE_ALL,
3516
+ # the lesser of client_ttl and default_ttl is used for the response max-age
3517
+ # directive, along with a "public" directive. For cacheable content in
3518
+ # CACHE_ALL_STATIC mode, client_ttl clamps the max-age from the origin (if
3519
+ # specified), or else sets the response max-age directive to the lesser of the
3520
+ # client_ttl and default_ttl, and also ensures a "public" cache-control
3521
+ # directive is present. If a client TTL is not specified, a default value (1
3522
+ # hour) will be used. The maximum allowed value is 86400s (1 day).
3513
3523
  # Corresponds to the JSON property `clientTtl`
3514
3524
  # @return [Fixnum]
3515
3525
  attr_accessor :client_ttl
@@ -4445,6 +4455,105 @@ module Google
4445
4455
  end
4446
4456
  end
4447
4457
 
4458
+ #
4459
+ class BulkInsertInstanceResource
4460
+ include Google::Apis::Core::Hashable
4461
+
4462
+ # The maximum number of instances to create.
4463
+ # Corresponds to the JSON property `count`
4464
+ # @return [Fixnum]
4465
+ attr_accessor :count
4466
+
4467
+ #
4468
+ # Corresponds to the JSON property `instanceProperties`
4469
+ # @return [Google::Apis::ComputeBeta::InstanceProperties]
4470
+ attr_accessor :instance_properties
4471
+
4472
+ # Configuration for location policy among multiple possible locations (e.g.
4473
+ # preferences for zone selection among zones in a single region).
4474
+ # Corresponds to the JSON property `locationPolicy`
4475
+ # @return [Google::Apis::ComputeBeta::LocationPolicy]
4476
+ attr_accessor :location_policy
4477
+
4478
+ # The minimum number of instances to create. If no min_count is specified then
4479
+ # count is used as the default value. If min_count instances cannot be created,
4480
+ # then no instances will be created.
4481
+ # Corresponds to the JSON property `minCount`
4482
+ # @return [Fixnum]
4483
+ attr_accessor :min_count
4484
+
4485
+ # The string pattern used for the names of the VMs. Either name_pattern or
4486
+ # predefined_names must be set. The pattern should contain one consecutive
4487
+ # sequence of placeholder hash characters (#) with each character corresponding
4488
+ # to one digit of the generated instance name. Example: name_pattern of inst-####
4489
+ # will generate instance names like inst-0001, inst-0002, ... . If there
4490
+ # already exist instance(s) whose names match the name pattern in the same
4491
+ # project and zone, then the generated instance numbers will start after the
4492
+ # biggest existing number. For example, if there exists an instance with name
4493
+ # inst-0050, then instance names generated using the pattern inst-#### will be
4494
+ # inst-0051, inst-0052, etc. The name pattern placeholder #...# can contain up
4495
+ # to 18 characters.
4496
+ # Corresponds to the JSON property `namePattern`
4497
+ # @return [String]
4498
+ attr_accessor :name_pattern
4499
+
4500
+ # Per-instance properties to be set on individual instances. Keys of this map
4501
+ # specify requested instance names. Can be empty if name_pattern is used.
4502
+ # Corresponds to the JSON property `perInstanceProperties`
4503
+ # @return [Hash<String,Google::Apis::ComputeBeta::BulkInsertInstanceResourcePerInstanceProperties>]
4504
+ attr_accessor :per_instance_properties
4505
+
4506
+ # Specifies the instance template from which to create instances. You may
4507
+ # combine sourceInstanceTemplate with instanceProperties to override specific
4508
+ # values from an existing instance template. Bulk API follows the semantics of
4509
+ # JSON Merge Patch described by RFC 7396.
4510
+ # It can be a full or partial URL. For example, the following are all valid URLs
4511
+ # to an instance template:
4512
+ # - https://www.googleapis.com/compute/v1/projects/project/global/
4513
+ # instanceTemplates/instanceTemplate
4514
+ # - projects/project/global/instanceTemplates/instanceTemplate
4515
+ # - global/instanceTemplates/instanceTemplate
4516
+ # This field is optional.
4517
+ # Corresponds to the JSON property `sourceInstanceTemplate`
4518
+ # @return [String]
4519
+ attr_accessor :source_instance_template
4520
+
4521
+ def initialize(**args)
4522
+ update!(**args)
4523
+ end
4524
+
4525
+ # Update properties of this object
4526
+ def update!(**args)
4527
+ @count = args[:count] if args.key?(:count)
4528
+ @instance_properties = args[:instance_properties] if args.key?(:instance_properties)
4529
+ @location_policy = args[:location_policy] if args.key?(:location_policy)
4530
+ @min_count = args[:min_count] if args.key?(:min_count)
4531
+ @name_pattern = args[:name_pattern] if args.key?(:name_pattern)
4532
+ @per_instance_properties = args[:per_instance_properties] if args.key?(:per_instance_properties)
4533
+ @source_instance_template = args[:source_instance_template] if args.key?(:source_instance_template)
4534
+ end
4535
+ end
4536
+
4537
+ # Per-instance properties to be set on individual instances. To be extended in
4538
+ # the future.
4539
+ class BulkInsertInstanceResourcePerInstanceProperties
4540
+ include Google::Apis::Core::Hashable
4541
+
4542
+ # This field is only temporary. It will be removed. Do not use it.
4543
+ # Corresponds to the JSON property `name`
4544
+ # @return [String]
4545
+ attr_accessor :name
4546
+
4547
+ def initialize(**args)
4548
+ update!(**args)
4549
+ end
4550
+
4551
+ # Update properties of this object
4552
+ def update!(**args)
4553
+ @name = args[:name] if args.key?(:name)
4554
+ end
4555
+ end
4556
+
4448
4557
  #
4449
4558
  class CacheInvalidationRule
4450
4559
  include Google::Apis::Core::Hashable
@@ -5614,8 +5723,13 @@ module Google
5614
5723
  # The source disk used to create this disk. You can provide this as a partial or
5615
5724
  # full URL to the resource. For example, the following are valid values:
5616
5725
  # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
5726
+ #
5727
+ # - https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/
5728
+ # disk
5617
5729
  # - projects/project/zones/zone/disks/disk
5730
+ # - projects/project/regions/region/disks/disk
5618
5731
  # - zones/zone/disks/disk
5732
+ # - regions/region/disks/disk
5619
5733
  # Corresponds to the JSON property `sourceDisk`
5620
5734
  # @return [String]
5621
5735
  attr_accessor :source_disk
@@ -9617,11 +9731,12 @@ module Google
9617
9731
  attr_accessor :log_config
9618
9732
 
9619
9733
  # Name of the resource. Provided by the client when the resource is created. The
9620
- # name must be 1-63 characters long, and comply with RFC1035. Specifically, the
9621
- # name must be 1-63 characters long and match the regular expression `[a-z]([-a-
9622
- # z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter,
9623
- # and all following characters must be a dash, lowercase letter, or digit,
9624
- # except the last character, which cannot be a dash.
9734
+ # name must be 1-63 characters long, and comply with RFC1035. For example, a
9735
+ # name that is 1-63 characters long, matches the regular expression `[a-z]([-a-
9736
+ # z0-9]*[a-z0-9])?`, and otherwise complies with RFC1035. This regular
9737
+ # expression describes a name where the first character is a lowercase letter,
9738
+ # and all following characters are a dash, lowercase letter, or digit, except
9739
+ # the last character, which isn't a dash.
9625
9740
  # Corresponds to the JSON property `name`
9626
9741
  # @return [String]
9627
9742
  attr_accessor :name
@@ -17878,6 +17993,47 @@ module Google
17878
17993
  end
17879
17994
  end
17880
17995
 
17996
+ # Configuration for location policy among multiple possible locations (e.g.
17997
+ # preferences for zone selection among zones in a single region).
17998
+ class LocationPolicy
17999
+ include Google::Apis::Core::Hashable
18000
+
18001
+ # Location configurations mapped by location name. Currently only zone names are
18002
+ # supported and must be represented as valid internal URLs, like: zones/us-
18003
+ # central1-a.
18004
+ # Corresponds to the JSON property `locations`
18005
+ # @return [Hash<String,Google::Apis::ComputeBeta::LocationPolicyLocation>]
18006
+ attr_accessor :locations
18007
+
18008
+ def initialize(**args)
18009
+ update!(**args)
18010
+ end
18011
+
18012
+ # Update properties of this object
18013
+ def update!(**args)
18014
+ @locations = args[:locations] if args.key?(:locations)
18015
+ end
18016
+ end
18017
+
18018
+ #
18019
+ class LocationPolicyLocation
18020
+ include Google::Apis::Core::Hashable
18021
+
18022
+ #
18023
+ # Corresponds to the JSON property `preference`
18024
+ # @return [String]
18025
+ attr_accessor :preference
18026
+
18027
+ def initialize(**args)
18028
+ update!(**args)
18029
+ end
18030
+
18031
+ # Update properties of this object
18032
+ def update!(**args)
18033
+ @preference = args[:preference] if args.key?(:preference)
18034
+ end
18035
+ end
18036
+
17881
18037
  # Specifies what kind of log the caller must write
17882
18038
  class LogConfig
17883
18039
  include Google::Apis::Core::Hashable
@@ -22772,6 +22928,12 @@ module Google
22772
22928
  # @return [String]
22773
22929
  attr_accessor :name
22774
22930
 
22931
+ # [Output Only] An ID that represents a group of operations, such as when a
22932
+ # group of operations results from a `bulkInsert` API request.
22933
+ # Corresponds to the JSON property `operationGroupId`
22934
+ # @return [String]
22935
+ attr_accessor :operation_group_id
22936
+
22775
22937
  # [Output Only] The type of operation, such as `insert`, `update`, or `delete`,
22776
22938
  # and so on.
22777
22939
  # Corresponds to the JSON property `operationType`
@@ -22863,6 +23025,7 @@ module Google
22863
23025
  @insert_time = args[:insert_time] if args.key?(:insert_time)
22864
23026
  @kind = args[:kind] if args.key?(:kind)
22865
23027
  @name = args[:name] if args.key?(:name)
23028
+ @operation_group_id = args[:operation_group_id] if args.key?(:operation_group_id)
22866
23029
  @operation_type = args[:operation_type] if args.key?(:operation_type)
22867
23030
  @progress = args[:progress] if args.key?(:progress)
22868
23031
  @region = args[:region] if args.key?(:region)
@@ -33425,9 +33588,9 @@ module Google
33425
33588
  # The range of internal addresses that are owned by this subnetwork. Provide
33426
33589
  # this property when you create the subnetwork. For example, 10.0.0.0/8 or 100.
33427
33590
  # 64.0.0/10. Ranges must be unique and non-overlapping within a network. Only
33428
- # IPv4 is supported. This field is set at resource creation time. This may be a
33429
- # RFC 1918 IP range, or a privately routed, non-RFC 1918 IP range, not belonging
33430
- # to Google. The range can be expanded after creation using expandIpCidrRange.
33591
+ # IPv4 is supported. This field is set at resource creation time. The range can
33592
+ # be any range listed in the Valid ranges list. The range can be expanded after
33593
+ # creation using expandIpCidrRange.
33431
33594
  # Corresponds to the JSON property `ipCidrRange`
33432
33595
  # @return [String]
33433
33596
  attr_accessor :ip_cidr_range
@@ -33876,8 +34039,8 @@ module Google
33876
34039
  # The range of IP addresses belonging to this subnetwork secondary range.
33877
34040
  # Provide this property when you create the subnetwork. Ranges must be unique
33878
34041
  # and non-overlapping with all primary and secondary IP ranges within a network.
33879
- # Only IPv4 is supported. This may be a RFC 1918 IP range, or a privately, non-
33880
- # RFC 1918 IP range, not belonging to Google.
34042
+ # Only IPv4 is supported. The range can be any range listed in the Valid ranges
34043
+ # list.
33881
34044
  # Corresponds to the JSON property `ipCidrRange`
33882
34045
  # @return [String]
33883
34046
  attr_accessor :ip_cidr_range
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ComputeBeta
18
18
  # Version of the google-apis-compute_beta gem
19
- GEM_VERSION = "0.3.0"
19
+ GEM_VERSION = "0.4.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.1.2"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210129"
25
+ REVISION = "20210209"
26
26
  end
27
27
  end
28
28
  end
@@ -508,6 +508,18 @@ module Google
508
508
  include Google::Apis::Core::JsonObjectSupport
509
509
  end
510
510
 
511
+ class BulkInsertInstanceResource
512
+ class Representation < Google::Apis::Core::JsonRepresentation; end
513
+
514
+ include Google::Apis::Core::JsonObjectSupport
515
+ end
516
+
517
+ class BulkInsertInstanceResourcePerInstanceProperties
518
+ class Representation < Google::Apis::Core::JsonRepresentation; end
519
+
520
+ include Google::Apis::Core::JsonObjectSupport
521
+ end
522
+
511
523
  class CacheInvalidationRule
512
524
  class Representation < Google::Apis::Core::JsonRepresentation; end
513
525
 
@@ -2182,6 +2194,18 @@ module Google
2182
2194
  include Google::Apis::Core::JsonObjectSupport
2183
2195
  end
2184
2196
 
2197
+ class LocationPolicy
2198
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2199
+
2200
+ include Google::Apis::Core::JsonObjectSupport
2201
+ end
2202
+
2203
+ class LocationPolicyLocation
2204
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2205
+
2206
+ include Google::Apis::Core::JsonObjectSupport
2207
+ end
2208
+
2185
2209
  class LogConfig
2186
2210
  class Representation < Google::Apis::Core::JsonRepresentation; end
2187
2211
 
@@ -6298,6 +6322,29 @@ module Google
6298
6322
  end
6299
6323
  end
6300
6324
 
6325
+ class BulkInsertInstanceResource
6326
+ # @private
6327
+ class Representation < Google::Apis::Core::JsonRepresentation
6328
+ property :count, :numeric_string => true, as: 'count'
6329
+ property :instance_properties, as: 'instanceProperties', class: Google::Apis::ComputeBeta::InstanceProperties, decorator: Google::Apis::ComputeBeta::InstanceProperties::Representation
6330
+
6331
+ property :location_policy, as: 'locationPolicy', class: Google::Apis::ComputeBeta::LocationPolicy, decorator: Google::Apis::ComputeBeta::LocationPolicy::Representation
6332
+
6333
+ property :min_count, :numeric_string => true, as: 'minCount'
6334
+ property :name_pattern, as: 'namePattern'
6335
+ hash :per_instance_properties, as: 'perInstanceProperties', class: Google::Apis::ComputeBeta::BulkInsertInstanceResourcePerInstanceProperties, decorator: Google::Apis::ComputeBeta::BulkInsertInstanceResourcePerInstanceProperties::Representation
6336
+
6337
+ property :source_instance_template, as: 'sourceInstanceTemplate'
6338
+ end
6339
+ end
6340
+
6341
+ class BulkInsertInstanceResourcePerInstanceProperties
6342
+ # @private
6343
+ class Representation < Google::Apis::Core::JsonRepresentation
6344
+ property :name, as: 'name'
6345
+ end
6346
+ end
6347
+
6301
6348
  class CacheInvalidationRule
6302
6349
  # @private
6303
6350
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -9500,6 +9547,21 @@ module Google
9500
9547
  end
9501
9548
  end
9502
9549
 
9550
+ class LocationPolicy
9551
+ # @private
9552
+ class Representation < Google::Apis::Core::JsonRepresentation
9553
+ hash :locations, as: 'locations', class: Google::Apis::ComputeBeta::LocationPolicyLocation, decorator: Google::Apis::ComputeBeta::LocationPolicyLocation::Representation
9554
+
9555
+ end
9556
+ end
9557
+
9558
+ class LocationPolicyLocation
9559
+ # @private
9560
+ class Representation < Google::Apis::Core::JsonRepresentation
9561
+ property :preference, as: 'preference'
9562
+ end
9563
+ end
9564
+
9503
9565
  class LogConfig
9504
9566
  # @private
9505
9567
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -10751,6 +10813,7 @@ module Google
10751
10813
  property :insert_time, as: 'insertTime'
10752
10814
  property :kind, as: 'kind'
10753
10815
  property :name, as: 'name'
10816
+ property :operation_group_id, as: 'operationGroupId'
10754
10817
  property :operation_type, as: 'operationType'
10755
10818
  property :progress, as: 'progress'
10756
10819
  property :region, as: 'region'
@@ -11155,6 +11155,57 @@ module Google
11155
11155
  execute_or_queue_command(command, &block)
11156
11156
  end
11157
11157
 
11158
+ # Creates multiple instances. Count specifies the number of instances to create.
11159
+ # @param [String] project
11160
+ # Project ID for this request.
11161
+ # @param [String] zone
11162
+ # The name of the zone for this request.
11163
+ # @param [Google::Apis::ComputeBeta::BulkInsertInstanceResource] bulk_insert_instance_resource_object
11164
+ # @param [String] request_id
11165
+ # An optional request ID to identify requests. Specify a unique request ID so
11166
+ # that if you must retry your request, the server will know to ignore the
11167
+ # request if it has already been completed.
11168
+ # For example, consider a situation where you make an initial request and the
11169
+ # request times out. If you make the request again with the same request ID, the
11170
+ # server can check if original operation with the same request ID was received,
11171
+ # and if so, will ignore the second request. This prevents clients from
11172
+ # accidentally creating duplicate commitments.
11173
+ # The request ID must be a valid UUID with the exception that zero UUID is not
11174
+ # supported (00000000-0000-0000-0000-000000000000).
11175
+ # @param [String] fields
11176
+ # Selector specifying which fields to include in a partial response.
11177
+ # @param [String] quota_user
11178
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
11179
+ # characters.
11180
+ # @param [String] user_ip
11181
+ # Deprecated. Please use quotaUser instead.
11182
+ # @param [Google::Apis::RequestOptions] options
11183
+ # Request-specific options
11184
+ #
11185
+ # @yield [result, err] Result & error if block supplied
11186
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
11187
+ # @yieldparam err [StandardError] error object if request failed
11188
+ #
11189
+ # @return [Google::Apis::ComputeBeta::Operation]
11190
+ #
11191
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11192
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11193
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11194
+ def bulk_instance_insert(project, zone, bulk_insert_instance_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11195
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/bulkInsert', options)
11196
+ command.request_representation = Google::Apis::ComputeBeta::BulkInsertInstanceResource::Representation
11197
+ command.request_object = bulk_insert_instance_resource_object
11198
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
11199
+ command.response_class = Google::Apis::ComputeBeta::Operation
11200
+ command.params['project'] = project unless project.nil?
11201
+ command.params['zone'] = zone unless zone.nil?
11202
+ command.query['requestId'] = request_id unless request_id.nil?
11203
+ command.query['fields'] = fields unless fields.nil?
11204
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11205
+ command.query['userIp'] = user_ip unless user_ip.nil?
11206
+ execute_or_queue_command(command, &block)
11207
+ end
11208
+
11158
11209
  # Deletes the specified Instance resource. For more information, see Stopping or
11159
11210
  # Deleting an Instance.
11160
11211
  # @param [String] project
@@ -24288,6 +24339,58 @@ module Google
24288
24339
  execute_or_queue_command(command, &block)
24289
24340
  end
24290
24341
 
24342
+ # Creates multiple instances in a given region. Count specifies the number of
24343
+ # instances to create.
24344
+ # @param [String] project
24345
+ # Project ID for this request.
24346
+ # @param [String] region
24347
+ # The name of the region for this request.
24348
+ # @param [Google::Apis::ComputeBeta::BulkInsertInstanceResource] bulk_insert_instance_resource_object
24349
+ # @param [String] request_id
24350
+ # An optional request ID to identify requests. Specify a unique request ID so
24351
+ # that if you must retry your request, the server will know to ignore the
24352
+ # request if it has already been completed.
24353
+ # For example, consider a situation where you make an initial request and the
24354
+ # request times out. If you make the request again with the same request ID, the
24355
+ # server can check if original operation with the same request ID was received,
24356
+ # and if so, will ignore the second request. This prevents clients from
24357
+ # accidentally creating duplicate commitments.
24358
+ # The request ID must be a valid UUID with the exception that zero UUID is not
24359
+ # supported (00000000-0000-0000-0000-000000000000).
24360
+ # @param [String] fields
24361
+ # Selector specifying which fields to include in a partial response.
24362
+ # @param [String] quota_user
24363
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
24364
+ # characters.
24365
+ # @param [String] user_ip
24366
+ # Deprecated. Please use quotaUser instead.
24367
+ # @param [Google::Apis::RequestOptions] options
24368
+ # Request-specific options
24369
+ #
24370
+ # @yield [result, err] Result & error if block supplied
24371
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
24372
+ # @yieldparam err [StandardError] error object if request failed
24373
+ #
24374
+ # @return [Google::Apis::ComputeBeta::Operation]
24375
+ #
24376
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24377
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24378
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
24379
+ def bulk_region_instance_insert(project, region, bulk_insert_instance_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24380
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instances/bulkInsert', options)
24381
+ command.request_representation = Google::Apis::ComputeBeta::BulkInsertInstanceResource::Representation
24382
+ command.request_object = bulk_insert_instance_resource_object
24383
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
24384
+ command.response_class = Google::Apis::ComputeBeta::Operation
24385
+ command.params['project'] = project unless project.nil?
24386
+ command.params['region'] = region unless region.nil?
24387
+ command.query['requestId'] = request_id unless request_id.nil?
24388
+ command.query['fields'] = fields unless fields.nil?
24389
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
24390
+ command.query['userIp'] = user_ip unless user_ip.nil?
24391
+ execute_or_queue_command(command, &block)
24392
+ end
24393
+
24291
24394
  # Deletes the specified network endpoint group. Note that the NEG cannot be
24292
24395
  # deleted if it is configured as a backend of a backend service.
24293
24396
  # @param [String] project
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-compute_beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.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: 2021-02-22 00:00:00.000000000 Z
11
+ date: 2021-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-compute_beta/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_beta/v0.3.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_beta/v0.4.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-compute_beta
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.6
72
+ rubygems_version: 3.2.11
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Compute Engine API Beta