google-apis-compute_v1 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: 4190f78dc6adbd7cb2f4b21199989ce823a9aa1e9e46d4a22e543204ffe6986d
4
- data.tar.gz: 6395a30be1d2d881fd867fd1f416b0997130a8819bf86bfd1e5dd2f982fba3af
3
+ metadata.gz: d8c71512aab0c1ff5a1c95dcc89901d587984c5f1fd15d3c7aff57b959d02dc3
4
+ data.tar.gz: 7bfbd499032d1e1cb08443e2461d2a74c832a8050ebf2645b7fced854ea19bea
5
5
  SHA512:
6
- metadata.gz: 1e95ff2900b99825b50ff0e3754842f95c730c0ed786cd629a42bd995c831bda0359e2dd6bfa63a559449bd10bf58c9a54b40d72b33a8313baa6f4304c911e21
7
- data.tar.gz: d4101023794eeb65980e91ecbedf6650f486b136743a42f8fe607f60828544d83dc19c7c3d3c910a6a74235e872e9309b6863cac73532587f426d72bf99d9d60
6
+ metadata.gz: cf8a817637ae4b5fcffbbb1d4a31476964af6150a505830e851da193eba39605eec270248647b27e8b6a27afb29ae3fb28b1d78e863e3cd11e08f84a64dc8cfc
7
+ data.tar.gz: 2c990f8c5ce26610579db62754a0a160de0acef586d73065bc4eb22678f74c7af1be05b3812f4bacbefa9e78c93f792c2690a04ad7985c60909869eb629b2b4a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-compute_v1
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
@@ -2563,10 +2563,15 @@ module Google
2563
2563
  # @return [String]
2564
2564
  attr_accessor :cache_mode
2565
2565
 
2566
- # Specifies a separate client (e.g. browser client) TTL, separate from the TTL
2567
- # for Cloud CDN's edge caches. Leaving this empty will use the same cache TTL
2568
- # for both Cloud CDN and the client-facing response. The maximum allowed value
2569
- # is 86400s (1 day).
2566
+ # Specifies a separate client (e.g. browser client) maximum TTL. This is used to
2567
+ # clamp the max-age (or Expires) value sent to the client. With FORCE_CACHE_ALL,
2568
+ # the lesser of client_ttl and default_ttl is used for the response max-age
2569
+ # directive, along with a "public" directive. For cacheable content in
2570
+ # CACHE_ALL_STATIC mode, client_ttl clamps the max-age from the origin (if
2571
+ # specified), or else sets the response max-age directive to the lesser of the
2572
+ # client_ttl and default_ttl, and also ensures a "public" cache-control
2573
+ # directive is present. If a client TTL is not specified, a default value (1
2574
+ # hour) will be used. The maximum allowed value is 86400s (1 day).
2570
2575
  # Corresponds to the JSON property `clientTtl`
2571
2576
  # @return [Fixnum]
2572
2577
  attr_accessor :client_ttl
@@ -3216,10 +3221,15 @@ module Google
3216
3221
  # @return [String]
3217
3222
  attr_accessor :cache_mode
3218
3223
 
3219
- # Specifies a separate client (e.g. browser client) TTL, separate from the TTL
3220
- # for Cloud CDN's edge caches. Leaving this empty will use the same cache TTL
3221
- # for both Cloud CDN and the client-facing response. The maximum allowed value
3222
- # is 86400s (1 day).
3224
+ # Specifies a separate client (e.g. browser client) maximum TTL. This is used to
3225
+ # clamp the max-age (or Expires) value sent to the client. With FORCE_CACHE_ALL,
3226
+ # the lesser of client_ttl and default_ttl is used for the response max-age
3227
+ # directive, along with a "public" directive. For cacheable content in
3228
+ # CACHE_ALL_STATIC mode, client_ttl clamps the max-age from the origin (if
3229
+ # specified), or else sets the response max-age directive to the lesser of the
3230
+ # client_ttl and default_ttl, and also ensures a "public" cache-control
3231
+ # directive is present. If a client TTL is not specified, a default value (1
3232
+ # hour) will be used. The maximum allowed value is 86400s (1 day).
3223
3233
  # Corresponds to the JSON property `clientTtl`
3224
3234
  # @return [Fixnum]
3225
3235
  attr_accessor :client_ttl
@@ -3750,6 +3760,105 @@ module Google
3750
3760
  end
3751
3761
  end
3752
3762
 
3763
+ #
3764
+ class BulkInsertInstanceResource
3765
+ include Google::Apis::Core::Hashable
3766
+
3767
+ # The maximum number of instances to create.
3768
+ # Corresponds to the JSON property `count`
3769
+ # @return [Fixnum]
3770
+ attr_accessor :count
3771
+
3772
+ #
3773
+ # Corresponds to the JSON property `instanceProperties`
3774
+ # @return [Google::Apis::ComputeV1::InstanceProperties]
3775
+ attr_accessor :instance_properties
3776
+
3777
+ # Configuration for location policy among multiple possible locations (e.g.
3778
+ # preferences for zone selection among zones in a single region).
3779
+ # Corresponds to the JSON property `locationPolicy`
3780
+ # @return [Google::Apis::ComputeV1::LocationPolicy]
3781
+ attr_accessor :location_policy
3782
+
3783
+ # The minimum number of instances to create. If no min_count is specified then
3784
+ # count is used as the default value. If min_count instances cannot be created,
3785
+ # then no instances will be created.
3786
+ # Corresponds to the JSON property `minCount`
3787
+ # @return [Fixnum]
3788
+ attr_accessor :min_count
3789
+
3790
+ # The string pattern used for the names of the VMs. Either name_pattern or
3791
+ # predefined_names must be set. The pattern should contain one consecutive
3792
+ # sequence of placeholder hash characters (#) with each character corresponding
3793
+ # to one digit of the generated instance name. Example: name_pattern of inst-####
3794
+ # will generate instance names like inst-0001, inst-0002, ... . If there
3795
+ # already exist instance(s) whose names match the name pattern in the same
3796
+ # project and zone, then the generated instance numbers will start after the
3797
+ # biggest existing number. For example, if there exists an instance with name
3798
+ # inst-0050, then instance names generated using the pattern inst-#### will be
3799
+ # inst-0051, inst-0052, etc. The name pattern placeholder #...# can contain up
3800
+ # to 18 characters.
3801
+ # Corresponds to the JSON property `namePattern`
3802
+ # @return [String]
3803
+ attr_accessor :name_pattern
3804
+
3805
+ # Per-instance properties to be set on individual instances. Keys of this map
3806
+ # specify requested instance names. Can be empty if name_pattern is used.
3807
+ # Corresponds to the JSON property `perInstanceProperties`
3808
+ # @return [Hash<String,Google::Apis::ComputeV1::BulkInsertInstanceResourcePerInstanceProperties>]
3809
+ attr_accessor :per_instance_properties
3810
+
3811
+ # Specifies the instance template from which to create instances. You may
3812
+ # combine sourceInstanceTemplate with instanceProperties to override specific
3813
+ # values from an existing instance template. Bulk API follows the semantics of
3814
+ # JSON Merge Patch described by RFC 7396.
3815
+ # It can be a full or partial URL. For example, the following are all valid URLs
3816
+ # to an instance template:
3817
+ # - https://www.googleapis.com/compute/v1/projects/project/global/
3818
+ # instanceTemplates/instanceTemplate
3819
+ # - projects/project/global/instanceTemplates/instanceTemplate
3820
+ # - global/instanceTemplates/instanceTemplate
3821
+ # This field is optional.
3822
+ # Corresponds to the JSON property `sourceInstanceTemplate`
3823
+ # @return [String]
3824
+ attr_accessor :source_instance_template
3825
+
3826
+ def initialize(**args)
3827
+ update!(**args)
3828
+ end
3829
+
3830
+ # Update properties of this object
3831
+ def update!(**args)
3832
+ @count = args[:count] if args.key?(:count)
3833
+ @instance_properties = args[:instance_properties] if args.key?(:instance_properties)
3834
+ @location_policy = args[:location_policy] if args.key?(:location_policy)
3835
+ @min_count = args[:min_count] if args.key?(:min_count)
3836
+ @name_pattern = args[:name_pattern] if args.key?(:name_pattern)
3837
+ @per_instance_properties = args[:per_instance_properties] if args.key?(:per_instance_properties)
3838
+ @source_instance_template = args[:source_instance_template] if args.key?(:source_instance_template)
3839
+ end
3840
+ end
3841
+
3842
+ # Per-instance properties to be set on individual instances. To be extended in
3843
+ # the future.
3844
+ class BulkInsertInstanceResourcePerInstanceProperties
3845
+ include Google::Apis::Core::Hashable
3846
+
3847
+ # This field is only temporary. It will be removed. Do not use it.
3848
+ # Corresponds to the JSON property `name`
3849
+ # @return [String]
3850
+ attr_accessor :name
3851
+
3852
+ def initialize(**args)
3853
+ update!(**args)
3854
+ end
3855
+
3856
+ # Update properties of this object
3857
+ def update!(**args)
3858
+ @name = args[:name] if args.key?(:name)
3859
+ end
3860
+ end
3861
+
3753
3862
  #
3754
3863
  class CacheInvalidationRule
3755
3864
  include Google::Apis::Core::Hashable
@@ -4868,8 +4977,13 @@ module Google
4868
4977
  # The source disk used to create this disk. You can provide this as a partial or
4869
4978
  # full URL to the resource. For example, the following are valid values:
4870
4979
  # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
4980
+ #
4981
+ # - https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/
4982
+ # disk
4871
4983
  # - projects/project/zones/zone/disks/disk
4984
+ # - projects/project/regions/region/disks/disk
4872
4985
  # - zones/zone/disks/disk
4986
+ # - regions/region/disks/disk
4873
4987
  # Corresponds to the JSON property `sourceDisk`
4874
4988
  # @return [String]
4875
4989
  attr_accessor :source_disk
@@ -8845,11 +8959,12 @@ module Google
8845
8959
  attr_accessor :log_config
8846
8960
 
8847
8961
  # Name of the resource. Provided by the client when the resource is created. The
8848
- # name must be 1-63 characters long, and comply with RFC1035. Specifically, the
8849
- # name must be 1-63 characters long and match the regular expression `[a-z]([-a-
8850
- # z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter,
8851
- # and all following characters must be a dash, lowercase letter, or digit,
8852
- # except the last character, which cannot be a dash.
8962
+ # name must be 1-63 characters long, and comply with RFC1035. For example, a
8963
+ # name that is 1-63 characters long, matches the regular expression `[a-z]([-a-
8964
+ # z0-9]*[a-z0-9])?`, and otherwise complies with RFC1035. This regular
8965
+ # expression describes a name where the first character is a lowercase letter,
8966
+ # and all following characters are a dash, lowercase letter, or digit, except
8967
+ # the last character, which isn't a dash.
8853
8968
  # Corresponds to the JSON property `name`
8854
8969
  # @return [String]
8855
8970
  attr_accessor :name
@@ -16737,6 +16852,47 @@ module Google
16737
16852
  end
16738
16853
  end
16739
16854
 
16855
+ # Configuration for location policy among multiple possible locations (e.g.
16856
+ # preferences for zone selection among zones in a single region).
16857
+ class LocationPolicy
16858
+ include Google::Apis::Core::Hashable
16859
+
16860
+ # Location configurations mapped by location name. Currently only zone names are
16861
+ # supported and must be represented as valid internal URLs, like: zones/us-
16862
+ # central1-a.
16863
+ # Corresponds to the JSON property `locations`
16864
+ # @return [Hash<String,Google::Apis::ComputeV1::LocationPolicyLocation>]
16865
+ attr_accessor :locations
16866
+
16867
+ def initialize(**args)
16868
+ update!(**args)
16869
+ end
16870
+
16871
+ # Update properties of this object
16872
+ def update!(**args)
16873
+ @locations = args[:locations] if args.key?(:locations)
16874
+ end
16875
+ end
16876
+
16877
+ #
16878
+ class LocationPolicyLocation
16879
+ include Google::Apis::Core::Hashable
16880
+
16881
+ #
16882
+ # Corresponds to the JSON property `preference`
16883
+ # @return [String]
16884
+ attr_accessor :preference
16885
+
16886
+ def initialize(**args)
16887
+ update!(**args)
16888
+ end
16889
+
16890
+ # Update properties of this object
16891
+ def update!(**args)
16892
+ @preference = args[:preference] if args.key?(:preference)
16893
+ end
16894
+ end
16895
+
16740
16896
  # Specifies what kind of log the caller must write
16741
16897
  class LogConfig
16742
16898
  include Google::Apis::Core::Hashable
@@ -21282,6 +21438,12 @@ module Google
21282
21438
  # @return [String]
21283
21439
  attr_accessor :name
21284
21440
 
21441
+ # [Output Only] An ID that represents a group of operations, such as when a
21442
+ # group of operations results from a `bulkInsert` API request.
21443
+ # Corresponds to the JSON property `operationGroupId`
21444
+ # @return [String]
21445
+ attr_accessor :operation_group_id
21446
+
21285
21447
  # [Output Only] The type of operation, such as `insert`, `update`, or `delete`,
21286
21448
  # and so on.
21287
21449
  # Corresponds to the JSON property `operationType`
@@ -21373,6 +21535,7 @@ module Google
21373
21535
  @insert_time = args[:insert_time] if args.key?(:insert_time)
21374
21536
  @kind = args[:kind] if args.key?(:kind)
21375
21537
  @name = args[:name] if args.key?(:name)
21538
+ @operation_group_id = args[:operation_group_id] if args.key?(:operation_group_id)
21376
21539
  @operation_type = args[:operation_type] if args.key?(:operation_type)
21377
21540
  @progress = args[:progress] if args.key?(:progress)
21378
21541
  @region = args[:region] if args.key?(:region)
@@ -29779,9 +29942,9 @@ module Google
29779
29942
  # The range of internal addresses that are owned by this subnetwork. Provide
29780
29943
  # this property when you create the subnetwork. For example, 10.0.0.0/8 or 100.
29781
29944
  # 64.0.0/10. Ranges must be unique and non-overlapping within a network. Only
29782
- # IPv4 is supported. This field is set at resource creation time. This may be a
29783
- # RFC 1918 IP range, or a privately routed, non-RFC 1918 IP range, not belonging
29784
- # to Google. The range can be expanded after creation using expandIpCidrRange.
29945
+ # IPv4 is supported. This field is set at resource creation time. The range can
29946
+ # be any range listed in the Valid ranges list. The range can be expanded after
29947
+ # creation using expandIpCidrRange.
29785
29948
  # Corresponds to the JSON property `ipCidrRange`
29786
29949
  # @return [String]
29787
29950
  attr_accessor :ip_cidr_range
@@ -30229,8 +30392,8 @@ module Google
30229
30392
  # The range of IP addresses belonging to this subnetwork secondary range.
30230
30393
  # Provide this property when you create the subnetwork. Ranges must be unique
30231
30394
  # and non-overlapping with all primary and secondary IP ranges within a network.
30232
- # Only IPv4 is supported. This may be a RFC 1918 IP range, or a privately, non-
30233
- # RFC 1918 IP range, not belonging to Google.
30395
+ # Only IPv4 is supported. The range can be any range listed in the Valid ranges
30396
+ # list.
30234
30397
  # Corresponds to the JSON property `ipCidrRange`
30235
30398
  # @return [String]
30236
30399
  attr_accessor :ip_cidr_range
@@ -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.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
@@ -448,6 +448,18 @@ module Google
448
448
  include Google::Apis::Core::JsonObjectSupport
449
449
  end
450
450
 
451
+ class BulkInsertInstanceResource
452
+ class Representation < Google::Apis::Core::JsonRepresentation; end
453
+
454
+ include Google::Apis::Core::JsonObjectSupport
455
+ end
456
+
457
+ class BulkInsertInstanceResourcePerInstanceProperties
458
+ class Representation < Google::Apis::Core::JsonRepresentation; end
459
+
460
+ include Google::Apis::Core::JsonObjectSupport
461
+ end
462
+
451
463
  class CacheInvalidationRule
452
464
  class Representation < Google::Apis::Core::JsonRepresentation; end
453
465
 
@@ -2086,6 +2098,18 @@ module Google
2086
2098
  include Google::Apis::Core::JsonObjectSupport
2087
2099
  end
2088
2100
 
2101
+ class LocationPolicy
2102
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2103
+
2104
+ include Google::Apis::Core::JsonObjectSupport
2105
+ end
2106
+
2107
+ class LocationPolicyLocation
2108
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2109
+
2110
+ include Google::Apis::Core::JsonObjectSupport
2111
+ end
2112
+
2089
2113
  class LogConfig
2090
2114
  class Representation < Google::Apis::Core::JsonRepresentation; end
2091
2115
 
@@ -5744,6 +5768,29 @@ module Google
5744
5768
  end
5745
5769
  end
5746
5770
 
5771
+ class BulkInsertInstanceResource
5772
+ # @private
5773
+ class Representation < Google::Apis::Core::JsonRepresentation
5774
+ property :count, :numeric_string => true, as: 'count'
5775
+ property :instance_properties, as: 'instanceProperties', class: Google::Apis::ComputeV1::InstanceProperties, decorator: Google::Apis::ComputeV1::InstanceProperties::Representation
5776
+
5777
+ property :location_policy, as: 'locationPolicy', class: Google::Apis::ComputeV1::LocationPolicy, decorator: Google::Apis::ComputeV1::LocationPolicy::Representation
5778
+
5779
+ property :min_count, :numeric_string => true, as: 'minCount'
5780
+ property :name_pattern, as: 'namePattern'
5781
+ hash :per_instance_properties, as: 'perInstanceProperties', class: Google::Apis::ComputeV1::BulkInsertInstanceResourcePerInstanceProperties, decorator: Google::Apis::ComputeV1::BulkInsertInstanceResourcePerInstanceProperties::Representation
5782
+
5783
+ property :source_instance_template, as: 'sourceInstanceTemplate'
5784
+ end
5785
+ end
5786
+
5787
+ class BulkInsertInstanceResourcePerInstanceProperties
5788
+ # @private
5789
+ class Representation < Google::Apis::Core::JsonRepresentation
5790
+ property :name, as: 'name'
5791
+ end
5792
+ end
5793
+
5747
5794
  class CacheInvalidationRule
5748
5795
  # @private
5749
5796
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -8852,6 +8899,21 @@ module Google
8852
8899
  end
8853
8900
  end
8854
8901
 
8902
+ class LocationPolicy
8903
+ # @private
8904
+ class Representation < Google::Apis::Core::JsonRepresentation
8905
+ hash :locations, as: 'locations', class: Google::Apis::ComputeV1::LocationPolicyLocation, decorator: Google::Apis::ComputeV1::LocationPolicyLocation::Representation
8906
+
8907
+ end
8908
+ end
8909
+
8910
+ class LocationPolicyLocation
8911
+ # @private
8912
+ class Representation < Google::Apis::Core::JsonRepresentation
8913
+ property :preference, as: 'preference'
8914
+ end
8915
+ end
8916
+
8855
8917
  class LogConfig
8856
8918
  # @private
8857
8919
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -10017,6 +10079,7 @@ module Google
10017
10079
  property :insert_time, as: 'insertTime'
10018
10080
  property :kind, as: 'kind'
10019
10081
  property :name, as: 'name'
10082
+ property :operation_group_id, as: 'operationGroupId'
10020
10083
  property :operation_type, as: 'operationType'
10021
10084
  property :progress, as: 'progress'
10022
10085
  property :region, as: 'region'
@@ -10137,6 +10137,57 @@ module Google
10137
10137
  execute_or_queue_command(command, &block)
10138
10138
  end
10139
10139
 
10140
+ # Creates multiple instances. Count specifies the number of instances to create.
10141
+ # @param [String] project
10142
+ # Project ID for this request.
10143
+ # @param [String] zone
10144
+ # The name of the zone for this request.
10145
+ # @param [Google::Apis::ComputeV1::BulkInsertInstanceResource] bulk_insert_instance_resource_object
10146
+ # @param [String] request_id
10147
+ # An optional request ID to identify requests. Specify a unique request ID so
10148
+ # that if you must retry your request, the server will know to ignore the
10149
+ # request if it has already been completed.
10150
+ # For example, consider a situation where you make an initial request and the
10151
+ # request times out. If you make the request again with the same request ID, the
10152
+ # server can check if original operation with the same request ID was received,
10153
+ # and if so, will ignore the second request. This prevents clients from
10154
+ # accidentally creating duplicate commitments.
10155
+ # The request ID must be a valid UUID with the exception that zero UUID is not
10156
+ # supported (00000000-0000-0000-0000-000000000000).
10157
+ # @param [String] fields
10158
+ # Selector specifying which fields to include in a partial response.
10159
+ # @param [String] quota_user
10160
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
10161
+ # characters.
10162
+ # @param [String] user_ip
10163
+ # Deprecated. Please use quotaUser instead.
10164
+ # @param [Google::Apis::RequestOptions] options
10165
+ # Request-specific options
10166
+ #
10167
+ # @yield [result, err] Result & error if block supplied
10168
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
10169
+ # @yieldparam err [StandardError] error object if request failed
10170
+ #
10171
+ # @return [Google::Apis::ComputeV1::Operation]
10172
+ #
10173
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10174
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10175
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10176
+ 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)
10177
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/bulkInsert', options)
10178
+ command.request_representation = Google::Apis::ComputeV1::BulkInsertInstanceResource::Representation
10179
+ command.request_object = bulk_insert_instance_resource_object
10180
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
10181
+ command.response_class = Google::Apis::ComputeV1::Operation
10182
+ command.params['project'] = project unless project.nil?
10183
+ command.params['zone'] = zone unless zone.nil?
10184
+ command.query['requestId'] = request_id unless request_id.nil?
10185
+ command.query['fields'] = fields unless fields.nil?
10186
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10187
+ command.query['userIp'] = user_ip unless user_ip.nil?
10188
+ execute_or_queue_command(command, &block)
10189
+ end
10190
+
10140
10191
  # Deletes the specified Instance resource. For more information, see Stopping or
10141
10192
  # Deleting an Instance.
10142
10193
  # @param [String] project
@@ -20816,6 +20867,58 @@ module Google
20816
20867
  execute_or_queue_command(command, &block)
20817
20868
  end
20818
20869
 
20870
+ # Creates multiple instances in a given region. Count specifies the number of
20871
+ # instances to create.
20872
+ # @param [String] project
20873
+ # Project ID for this request.
20874
+ # @param [String] region
20875
+ # The name of the region for this request.
20876
+ # @param [Google::Apis::ComputeV1::BulkInsertInstanceResource] bulk_insert_instance_resource_object
20877
+ # @param [String] request_id
20878
+ # An optional request ID to identify requests. Specify a unique request ID so
20879
+ # that if you must retry your request, the server will know to ignore the
20880
+ # request if it has already been completed.
20881
+ # For example, consider a situation where you make an initial request and the
20882
+ # request times out. If you make the request again with the same request ID, the
20883
+ # server can check if original operation with the same request ID was received,
20884
+ # and if so, will ignore the second request. This prevents clients from
20885
+ # accidentally creating duplicate commitments.
20886
+ # The request ID must be a valid UUID with the exception that zero UUID is not
20887
+ # supported (00000000-0000-0000-0000-000000000000).
20888
+ # @param [String] fields
20889
+ # Selector specifying which fields to include in a partial response.
20890
+ # @param [String] quota_user
20891
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
20892
+ # characters.
20893
+ # @param [String] user_ip
20894
+ # Deprecated. Please use quotaUser instead.
20895
+ # @param [Google::Apis::RequestOptions] options
20896
+ # Request-specific options
20897
+ #
20898
+ # @yield [result, err] Result & error if block supplied
20899
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
20900
+ # @yieldparam err [StandardError] error object if request failed
20901
+ #
20902
+ # @return [Google::Apis::ComputeV1::Operation]
20903
+ #
20904
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
20905
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
20906
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
20907
+ 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)
20908
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instances/bulkInsert', options)
20909
+ command.request_representation = Google::Apis::ComputeV1::BulkInsertInstanceResource::Representation
20910
+ command.request_object = bulk_insert_instance_resource_object
20911
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
20912
+ command.response_class = Google::Apis::ComputeV1::Operation
20913
+ command.params['project'] = project unless project.nil?
20914
+ command.params['region'] = region unless region.nil?
20915
+ command.query['requestId'] = request_id unless request_id.nil?
20916
+ command.query['fields'] = fields unless fields.nil?
20917
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
20918
+ command.query['userIp'] = user_ip unless user_ip.nil?
20919
+ execute_or_queue_command(command, &block)
20920
+ end
20921
+
20819
20922
  # Deletes the specified network endpoint group. Note that the NEG cannot be
20820
20923
  # deleted if it is configured as a backend of a backend service.
20821
20924
  # @param [String] project
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.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_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.3.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.4.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-compute_v1
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 V1