google-apis-compute_v1 0.59.0 → 0.61.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: 31ada32f9bc4ff12db8e7d020a5d2b1f7ce8ada3610cbd71c8a2f9af7ce42773
4
- data.tar.gz: fb9bc16849811b6e66493fcd42740b99b13c6baa1fe9b232030e9fb73763f585
3
+ metadata.gz: 7ec3a1ed034df6e2bb12672dcf62f0b99b015dbe23b47c6e437415d84c624648
4
+ data.tar.gz: fd0eedaffee5e1a68b700ef6462338e4361e82575675fe48f8b795c6f1ffe010
5
5
  SHA512:
6
- metadata.gz: 8d8c16b9abc9ed1d114362b4a153438b97d158b60145263c5912d282683cdc6e02c4bdf9cd7188aaa4e5404b554193754dcfbf59c42704b1c7e3edeefcb8a960
7
- data.tar.gz: 7c8478a3e263f52f6f9f47384f429e1a1d7ad30a53d786a10223cf6b9448b52d66d6a8f86fa4988d2f7066fd74a1273606e2ccbbdce986a97760912b37712223
6
+ metadata.gz: eea843e55a394c570c91987e5f94185262143e71a71de6380e648a721d7efaacc30ba389fc05999cc1884d212fb26e9c9c5fb8c4753b70e4b40a7fb4f3631ea3
7
+ data.tar.gz: 2bc76d764123a6f07ca4cbe98ab909f46d50e868d994d696986063c35fabb69cd85ed45d34885fe3c51b6683b369302f701e072c866dbf16999ddcefbcdc74b8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-compute_v1
2
2
 
3
+ ### v0.61.0 (2023-02-12)
4
+
5
+ * Regenerated from discovery document revision 20230201
6
+
7
+ ### v0.60.0 (2023-01-29)
8
+
9
+ * Regenerated from discovery document revision 20230119
10
+
3
11
  ### v0.59.0 (2023-01-22)
4
12
 
5
13
  * Regenerated from discovery document revision 20230103
@@ -466,8 +466,9 @@ module Google
466
466
 
467
467
  # The first IPv6 address of the external IPv6 range associated with this
468
468
  # instance, prefix length is stored in externalIpv6PrefixLength in
469
- # ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork
470
- # associated with the instance will be allocated dynamically.
469
+ # ipv6AccessConfig. To use a static external IP address, it must be unused and
470
+ # in the same region as the instance's zone. If not specified, GCP will
471
+ # automatically assign an external IPv6 address from the instance's subnetwork.
471
472
  # Corresponds to the JSON property `externalIpv6`
472
473
  # @return [String]
473
474
  attr_accessor :external_ipv6
@@ -1123,11 +1124,11 @@ module Google
1123
1124
  end
1124
1125
  end
1125
1126
 
1126
- #
1127
+ # [Output Only] Contains output only fields.
1127
1128
  class AllocationResourceStatus
1128
1129
  include Google::Apis::Core::Hashable
1129
1130
 
1130
- #
1131
+ # Contains Properties set for the reservation.
1131
1132
  # Corresponds to the JSON property `specificSkuAllocation`
1132
1133
  # @return [Google::Apis::ComputeV1::AllocationResourceStatusSpecificSkuAllocation]
1133
1134
  attr_accessor :specific_sku_allocation
@@ -1142,11 +1143,11 @@ module Google
1142
1143
  end
1143
1144
  end
1144
1145
 
1145
- #
1146
+ # Contains Properties set for the reservation.
1146
1147
  class AllocationResourceStatusSpecificSkuAllocation
1147
1148
  include Google::Apis::Core::Hashable
1148
1149
 
1149
- #
1150
+ # ID of the instance template used to populate reservation properties.
1150
1151
  # Corresponds to the JSON property `sourceInstanceTemplateId`
1151
1152
  # @return [String]
1152
1153
  attr_accessor :source_instance_template_id
@@ -3260,11 +3261,14 @@ module Google
3260
3261
  # @return [String]
3261
3262
  attr_accessor :load_balancing_scheme
3262
3263
 
3263
- # A list of locality load balancing policies to be used in order of preference.
3264
- # Either the policy or the customPolicy field should be set. Overrides any value
3265
- # set in the localityLbPolicy field. localityLbPolicies is only supported when
3266
- # the BackendService is referenced by a URL Map that is referenced by a target
3267
- # gRPC proxy that has the validateForProxyless field set to true.
3264
+ # A list of locality load-balancing policies to be used in order of preference.
3265
+ # When you use localityLbPolicies, you must set at least one value for either
3266
+ # the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field.
3267
+ # localityLbPolicies overrides any value set in the localityLbPolicy field. For
3268
+ # an example of how to use this field, see Define a list of preferred policies.
3269
+ # Caution: This field and its children are intended for use in a service mesh
3270
+ # that includes gRPC clients only. Envoy proxies can't use backend services that
3271
+ # have this configuration.
3268
3272
  # Corresponds to the JSON property `localityLbPolicies`
3269
3273
  # @return [Array<Google::Apis::ComputeV1::BackendServiceLocalityLoadBalancingPolicyConfig>]
3270
3274
  attr_accessor :locality_lb_policies
@@ -4150,12 +4154,13 @@ module Google
4150
4154
  # @return [String]
4151
4155
  attr_accessor :data
4152
4156
 
4153
- # Identifies the custom policy. The value should match the type the custom
4154
- # implementation is registered with on the gRPC clients. It should follow
4155
- # protocol buffer message naming conventions and include the full path (e.g.
4156
- # myorg.CustomLbPolicy). The maximum length is 256 characters. Note that
4157
- # specifying the same custom policy more than once for a backend is not a valid
4158
- # configuration and will be rejected.
4157
+ # Identifies the custom policy. The value should match the name of a custom
4158
+ # implementation registered on the gRPC clients. It should follow protocol
4159
+ # buffer message naming conventions and include the full path (for example,
4160
+ # myorg.CustomLbPolicy). The maximum length is 256 characters. Do not specify
4161
+ # the same custom policy more than once for a backend. If you do, the
4162
+ # configuration is rejected. For an example of how to use this field, see Use a
4163
+ # custom policy.
4159
4164
  # Corresponds to the JSON property `name`
4160
4165
  # @return [String]
4161
4166
  attr_accessor :name
@@ -4175,11 +4180,10 @@ module Google
4175
4180
  class BackendServiceLocalityLoadBalancingPolicyConfigPolicy
4176
4181
  include Google::Apis::Core::Hashable
4177
4182
 
4178
- # The name of a locality load balancer policy to be used. The value should be
4179
- # one of the predefined ones as supported by localityLbPolicy, although at the
4180
- # moment only ROUND_ROBIN is supported. This field should only be populated when
4181
- # the customPolicy field is not used. Note that specifying the same policy more
4182
- # than once for a backend is not a valid configuration and will be rejected.
4183
+ # The name of a locality load-balancing policy. Valid values include ROUND_ROBIN
4184
+ # and, for Java clients, LEAST_REQUEST. For information about these values, see
4185
+ # the description of localityLbPolicy. Do not specify the same policy more than
4186
+ # once for a backend. If you do, the configuration is rejected.
4183
4187
  # Corresponds to the JSON property `name`
4184
4188
  # @return [String]
4185
4189
  attr_accessor :name
@@ -4206,6 +4210,22 @@ module Google
4206
4210
  attr_accessor :enable
4207
4211
  alias_method :enable?, :enable
4208
4212
 
4213
+ # This field can only be specified if logging is enabled for this backend
4214
+ # service and "logConfig.optionalMode" was set to CUSTOM. Contains a list of
4215
+ # optional fields you want to include in the logs. For example: serverInstance,
4216
+ # serverGkeDetails.cluster, serverGkeDetails.pod.podNamespace
4217
+ # Corresponds to the JSON property `optionalFields`
4218
+ # @return [Array<String>]
4219
+ attr_accessor :optional_fields
4220
+
4221
+ # This field can only be specified if logging is enabled for this backend
4222
+ # service. Configures whether all, none or a subset of optional fields should be
4223
+ # added to the reported logs. One of [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL,
4224
+ # CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL.
4225
+ # Corresponds to the JSON property `optionalMode`
4226
+ # @return [String]
4227
+ attr_accessor :optional_mode
4228
+
4209
4229
  # This field can only be specified if logging is enabled for this backend
4210
4230
  # service. The value of the field must be in [0, 1]. This configures the
4211
4231
  # sampling rate of requests to the load balancer where 1.0 means all logged
@@ -4222,6 +4242,8 @@ module Google
4222
4242
  # Update properties of this object
4223
4243
  def update!(**args)
4224
4244
  @enable = args[:enable] if args.key?(:enable)
4245
+ @optional_fields = args[:optional_fields] if args.key?(:optional_fields)
4246
+ @optional_mode = args[:optional_mode] if args.key?(:optional_mode)
4225
4247
  @sample_rate = args[:sample_rate] if args.key?(:sample_rate)
4226
4248
  end
4227
4249
  end
@@ -4628,22 +4650,22 @@ module Google
4628
4650
  # kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-
4629
4651
  # project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An
4630
4652
  # email address that represents a Google group. For example, `admins@example.com`
4631
- # . * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
4632
- # identifier) representing a user that has been recently deleted. For example, `
4633
- # alice@example.com?uid=123456789012345678901`. If the user is recovered, this
4634
- # value reverts to `user:`emailid`` and the recovered user retains the role in
4635
- # the binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email
4636
- # address (plus unique identifier) representing a service account that has been
4637
- # recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
4653
+ # . * `domain:`domain``: The G Suite domain (primary) that represents all the
4654
+ # users of that domain. For example, `google.com` or `example.com`. * `deleted:
4655
+ # user:`emailid`?uid=`uniqueid``: An email address (plus unique identifier)
4656
+ # representing a user that has been recently deleted. For example, `alice@
4657
+ # example.com?uid=123456789012345678901`. If the user is recovered, this value
4658
+ # reverts to `user:`emailid`` and the recovered user retains the role in the
4659
+ # binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address
4660
+ # (plus unique identifier) representing a service account that has been recently
4661
+ # deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
4638
4662
  # 123456789012345678901`. If the service account is undeleted, this value
4639
4663
  # reverts to `serviceAccount:`emailid`` and the undeleted service account
4640
4664
  # retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``:
4641
4665
  # An email address (plus unique identifier) representing a Google group that has
4642
4666
  # been recently deleted. For example, `admins@example.com?uid=
4643
4667
  # 123456789012345678901`. If the group is recovered, this value reverts to `
4644
- # group:`emailid`` and the recovered group retains the role in the binding. * `
4645
- # domain:`domain``: The G Suite domain (primary) that represents all the users
4646
- # of that domain. For example, `google.com` or `example.com`.
4668
+ # group:`emailid`` and the recovered group retains the role in the binding.
4647
4669
  # Corresponds to the JSON property `members`
4648
4670
  # @return [Array<String>]
4649
4671
  attr_accessor :members
@@ -16798,7 +16820,7 @@ module Google
16798
16820
  # @return [String]
16799
16821
  attr_accessor :type
16800
16822
 
16801
- # The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4094. Only
16823
+ # The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4093. Only
16802
16824
  # specified at creation time.
16803
16825
  # Corresponds to the JSON property `vlanTag8021q`
16804
16826
  # @return [Fixnum]
@@ -21671,7 +21693,10 @@ module Google
21671
21693
  # @return [String]
21672
21694
  attr_accessor :ipv6_access_type
21673
21695
 
21674
- # An IPv6 internal network address for this network interface.
21696
+ # An IPv6 internal network address for this network interface. To use a static
21697
+ # internal IP address, it must be unused and in the same region as the instance'
21698
+ # s zone. If not specified, GCP will automatically assign an internal IPv6
21699
+ # address from the instance's subnetwork.
21675
21700
  # Corresponds to the JSON property `ipv6Address`
21676
21701
  # @return [String]
21677
21702
  attr_accessor :ipv6_address
@@ -28747,7 +28772,14 @@ module Google
28747
28772
  # @return [String]
28748
28773
  attr_accessor :name
28749
28774
 
28750
- # [Output Only] Status information for Reservation resource.
28775
+ # Resource policies to be added to this reservation. The key is defined by user,
28776
+ # and the value is resource policy url. This is to define placement policy with
28777
+ # reservation.
28778
+ # Corresponds to the JSON property `resourcePolicies`
28779
+ # @return [Hash<String,String>]
28780
+ attr_accessor :resource_policies
28781
+
28782
+ # [Output Only] Contains output only fields.
28751
28783
  # Corresponds to the JSON property `resourceStatus`
28752
28784
  # @return [Google::Apis::ComputeV1::AllocationResourceStatus]
28753
28785
  attr_accessor :resource_status
@@ -28805,6 +28837,7 @@ module Google
28805
28837
  @id = args[:id] if args.key?(:id)
28806
28838
  @kind = args[:kind] if args.key?(:kind)
28807
28839
  @name = args[:name] if args.key?(:name)
28840
+ @resource_policies = args[:resource_policies] if args.key?(:resource_policies)
28808
28841
  @resource_status = args[:resource_status] if args.key?(:resource_status)
28809
28842
  @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
28810
28843
  @self_link = args[:self_link] if args.key?(:self_link)
@@ -32824,7 +32857,11 @@ module Google
32824
32857
  # CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be
32825
32858
  # configured to filter HTTP requests targeting services managed by Traffic
32826
32859
  # Director in a service mesh. They filter requests before the request is served
32827
- # from the application. This field can be set only at resource creation time.
32860
+ # from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can
32861
+ # be configured to filter packets targeting network load balancing resources
32862
+ # such as backend services, target pools, target instances, and instances with
32863
+ # external IPs. They filter requests before the request is served from the
32864
+ # application. This field can be set only at resource creation time.
32828
32865
  # Corresponds to the JSON property `type`
32829
32866
  # @return [String]
32830
32867
  attr_accessor :type
@@ -33132,16 +33169,17 @@ module Google
33132
33169
  include Google::Apis::Core::Hashable
33133
33170
 
33134
33171
  # The Action to perform when the rule is matched. The following are the valid
33135
- # actions: - allow: allow access to target. - deny(): deny access to target,
33136
- # returns the HTTP response code specified (valid values are 403, 404, and 502).
33137
- # - rate_based_ban: limit client traffic to the configured threshold and ban the
33138
- # client if the traffic exceeds the threshold. Configure parameters for this
33139
- # action in RateLimitOptions. Requires rate_limit_options to be set. - redirect:
33140
- # redirect to a different target. This can either be an internal reCAPTCHA
33141
- # redirect, or an external URL-based redirect via a 302 response. Parameters for
33142
- # this action can be configured via redirectOptions. - throttle: limit client
33143
- # traffic to the configured threshold. Configure parameters for this action in
33144
- # rateLimitOptions. Requires rate_limit_options to be set for this.
33172
+ # actions: - allow: allow access to target. - deny(STATUS): deny access to
33173
+ # target, returns the HTTP response code specified. Valid values for `STATUS`
33174
+ # are 403, 404, and 502. - rate_based_ban: limit client traffic to the
33175
+ # configured threshold and ban the client if the traffic exceeds the threshold.
33176
+ # Configure parameters for this action in RateLimitOptions. Requires
33177
+ # rate_limit_options to be set. - redirect: redirect to a different target. This
33178
+ # can either be an internal reCAPTCHA redirect, or an external URL-based
33179
+ # redirect via a 302 response. Parameters for this action can be configured via
33180
+ # redirectOptions. - throttle: limit client traffic to the configured threshold.
33181
+ # Configure parameters for this action in rateLimitOptions. Requires
33182
+ # rate_limit_options to be set for this.
33145
33183
  # Corresponds to the JSON property `action`
33146
33184
  # @return [String]
33147
33185
  attr_accessor :action
@@ -33384,9 +33422,9 @@ module Google
33384
33422
 
33385
33423
  # Action to take for requests that are above the configured rate limit threshold,
33386
33424
  # to either deny with a specified HTTP response code, or redirect to a
33387
- # different endpoint. Valid options are "deny(status)", where valid values for
33388
- # status are 403, 404, 429, and 502, and "redirect" where the redirect
33389
- # parameters come from exceedRedirectOptions below.
33425
+ # different endpoint. Valid options are `deny(STATUS)`, where valid values for `
33426
+ # STATUS` are 403, 404, 429, and 502, and `redirect`, where the redirect
33427
+ # parameters come from `exceedRedirectOptions` below.
33390
33428
  # Corresponds to the JSON property `exceedAction`
33391
33429
  # @return [String]
33392
33430
  attr_accessor :exceed_action
@@ -41593,7 +41631,7 @@ module Google
41593
41631
  # request to modify or update labels. You must always provide an up-to-date
41594
41632
  # fingerprint hash in order to update or change labels, otherwise the request
41595
41633
  # will fail with error 412 conditionNotMet. To see the latest fingerprint, make
41596
- # a get() request to retrieve an VpnGateway.
41634
+ # a get() request to retrieve a VpnGateway.
41597
41635
  # Corresponds to the JSON property `labelFingerprint`
41598
41636
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
41599
41637
  # @return [String]
@@ -42753,6 +42791,13 @@ module Google
42753
42791
  # @return [String]
42754
42792
  attr_accessor :id
42755
42793
 
42794
+ # The sensitivity value associated with the WAF rule ID. This corresponds to the
42795
+ # ModSecurity paranoia level, ranging from 1 to 4. 0 is reserved for opt-in only
42796
+ # rules.
42797
+ # Corresponds to the JSON property `sensitivity`
42798
+ # @return [Fixnum]
42799
+ attr_accessor :sensitivity
42800
+
42756
42801
  def initialize(**args)
42757
42802
  update!(**args)
42758
42803
  end
@@ -42760,6 +42805,7 @@ module Google
42760
42805
  # Update properties of this object
42761
42806
  def update!(**args)
42762
42807
  @id = args[:id] if args.key?(:id)
42808
+ @sensitivity = args[:sensitivity] if args.key?(:sensitivity)
42763
42809
  end
42764
42810
  end
42765
42811
 
@@ -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.59.0"
19
+ GEM_VERSION = "0.61.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.11.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230103"
25
+ REVISION = "20230201"
26
26
  end
27
27
  end
28
28
  end
@@ -6657,6 +6657,8 @@ module Google
6657
6657
  # @private
6658
6658
  class Representation < Google::Apis::Core::JsonRepresentation
6659
6659
  property :enable, as: 'enable'
6660
+ collection :optional_fields, as: 'optionalFields'
6661
+ property :optional_mode, as: 'optionalMode'
6660
6662
  property :sample_rate, as: 'sampleRate'
6661
6663
  end
6662
6664
  end
@@ -12710,6 +12712,7 @@ module Google
12710
12712
  property :id, :numeric_string => true, as: 'id'
12711
12713
  property :kind, as: 'kind'
12712
12714
  property :name, as: 'name'
12715
+ hash :resource_policies, as: 'resourcePolicies'
12713
12716
  property :resource_status, as: 'resourceStatus', class: Google::Apis::ComputeV1::AllocationResourceStatus, decorator: Google::Apis::ComputeV1::AllocationResourceStatus::Representation
12714
12717
 
12715
12718
  property :satisfies_pzs, as: 'satisfiesPzs'
@@ -16238,6 +16241,7 @@ module Google
16238
16241
  # @private
16239
16242
  class Representation < Google::Apis::Core::JsonRepresentation
16240
16243
  property :id, as: 'id'
16244
+ property :sensitivity, as: 'sensitivity'
16241
16245
  end
16242
16246
  end
16243
16247
 
@@ -3289,6 +3289,66 @@ module Google
3289
3289
  execute_or_queue_command(command, &block)
3290
3290
  end
3291
3291
 
3292
+ # Updates the specified disk with the data included in the request. The update
3293
+ # is performed only on selected fields included as part of update-mask. Only the
3294
+ # following fields can be modified: user_license.
3295
+ # @param [String] project
3296
+ # Project ID for this request.
3297
+ # @param [String] zone
3298
+ # The name of the zone for this request.
3299
+ # @param [String] disk
3300
+ # The disk name for this request.
3301
+ # @param [Google::Apis::ComputeV1::Disk] disk_object
3302
+ # @param [Array<String>, String] paths
3303
+ # @param [String] request_id
3304
+ # An optional request ID to identify requests. Specify a unique request ID so
3305
+ # that if you must retry your request, the server will know to ignore the
3306
+ # request if it has already been completed. For example, consider a situation
3307
+ # where you make an initial request and the request times out. If you make the
3308
+ # request again with the same request ID, the server can check if original
3309
+ # operation with the same request ID was received, and if so, will ignore the
3310
+ # second request. This prevents clients from accidentally creating duplicate
3311
+ # commitments. The request ID must be a valid UUID with the exception that zero
3312
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
3313
+ # @param [String] update_mask
3314
+ # update_mask indicates fields to be updated as part of this request.
3315
+ # @param [String] fields
3316
+ # Selector specifying which fields to include in a partial response.
3317
+ # @param [String] quota_user
3318
+ # Available to use for quota purposes for server-side applications. Can be any
3319
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3320
+ # @param [String] user_ip
3321
+ # Legacy name for parameter that has been superseded by `quotaUser`.
3322
+ # @param [Google::Apis::RequestOptions] options
3323
+ # Request-specific options
3324
+ #
3325
+ # @yield [result, err] Result & error if block supplied
3326
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
3327
+ # @yieldparam err [StandardError] error object if request failed
3328
+ #
3329
+ # @return [Google::Apis::ComputeV1::Operation]
3330
+ #
3331
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3332
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3333
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3334
+ def update_disk(project, zone, disk, disk_object = nil, paths: nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3335
+ command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/disks/{disk}', options)
3336
+ command.request_representation = Google::Apis::ComputeV1::Disk::Representation
3337
+ command.request_object = disk_object
3338
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
3339
+ command.response_class = Google::Apis::ComputeV1::Operation
3340
+ command.params['project'] = project unless project.nil?
3341
+ command.params['zone'] = zone unless zone.nil?
3342
+ command.params['disk'] = disk unless disk.nil?
3343
+ command.query['paths'] = paths unless paths.nil?
3344
+ command.query['requestId'] = request_id unless request_id.nil?
3345
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3346
+ command.query['fields'] = fields unless fields.nil?
3347
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3348
+ command.query['userIp'] = user_ip unless user_ip.nil?
3349
+ execute_or_queue_command(command, &block)
3350
+ end
3351
+
3292
3352
  # Deletes the specified externalVpnGateway.
3293
3353
  # @param [String] project
3294
3354
  # Project ID for this request.
@@ -23133,6 +23193,66 @@ module Google
23133
23193
  execute_or_queue_command(command, &block)
23134
23194
  end
23135
23195
 
23196
+ # Update the specified disk with the data included in the request. Update is
23197
+ # performed only on selected fields included as part of update-mask. Only the
23198
+ # following fields can be modified: user_license.
23199
+ # @param [String] project
23200
+ # Project ID for this request.
23201
+ # @param [String] region
23202
+ # The name of the region for this request.
23203
+ # @param [String] disk
23204
+ # The disk name for this request.
23205
+ # @param [Google::Apis::ComputeV1::Disk] disk_object
23206
+ # @param [Array<String>, String] paths
23207
+ # @param [String] request_id
23208
+ # An optional request ID to identify requests. Specify a unique request ID so
23209
+ # that if you must retry your request, the server will know to ignore the
23210
+ # request if it has already been completed. For example, consider a situation
23211
+ # where you make an initial request and the request times out. If you make the
23212
+ # request again with the same request ID, the server can check if original
23213
+ # operation with the same request ID was received, and if so, will ignore the
23214
+ # second request. This prevents clients from accidentally creating duplicate
23215
+ # commitments. The request ID must be a valid UUID with the exception that zero
23216
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
23217
+ # @param [String] update_mask
23218
+ # update_mask indicates fields to be updated as part of this request.
23219
+ # @param [String] fields
23220
+ # Selector specifying which fields to include in a partial response.
23221
+ # @param [String] quota_user
23222
+ # Available to use for quota purposes for server-side applications. Can be any
23223
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
23224
+ # @param [String] user_ip
23225
+ # Legacy name for parameter that has been superseded by `quotaUser`.
23226
+ # @param [Google::Apis::RequestOptions] options
23227
+ # Request-specific options
23228
+ #
23229
+ # @yield [result, err] Result & error if block supplied
23230
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
23231
+ # @yieldparam err [StandardError] error object if request failed
23232
+ #
23233
+ # @return [Google::Apis::ComputeV1::Operation]
23234
+ #
23235
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
23236
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
23237
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
23238
+ def update_region_disk(project, region, disk, disk_object = nil, paths: nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
23239
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/disks/{disk}', options)
23240
+ command.request_representation = Google::Apis::ComputeV1::Disk::Representation
23241
+ command.request_object = disk_object
23242
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
23243
+ command.response_class = Google::Apis::ComputeV1::Operation
23244
+ command.params['project'] = project unless project.nil?
23245
+ command.params['region'] = region unless region.nil?
23246
+ command.params['disk'] = disk unless disk.nil?
23247
+ command.query['paths'] = paths unless paths.nil?
23248
+ command.query['requestId'] = request_id unless request_id.nil?
23249
+ command.query['updateMask'] = update_mask unless update_mask.nil?
23250
+ command.query['fields'] = fields unless fields.nil?
23251
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
23252
+ command.query['userIp'] = user_ip unless user_ip.nil?
23253
+ execute_or_queue_command(command, &block)
23254
+ end
23255
+
23136
23256
  # Deletes the specified regional HealthCheckService.
23137
23257
  # @param [String] project
23138
23258
  # 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.59.0
4
+ version: 0.61.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-01-22 00:00:00.000000000 Z
11
+ date: 2023-02-12 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.59.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.61.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: []