Skip to content

Commit 128048a

Browse files
feat: Automated regeneration of compute v1 client (#13568)
Auto-created at 2023-02-12 10:48:38 +0000 using the toys pull request generator.
1 parent 49ea5da commit 128048a

File tree

6 files changed

+177
-22
lines changed

6 files changed

+177
-22
lines changed

api_names_out.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76651,6 +76651,13 @@
7665176651
"/compute:v1/compute.disks.testIamPermissions/project": project
7665276652
"/compute:v1/compute.disks.testIamPermissions/resource": resource
7665376653
"/compute:v1/compute.disks.testIamPermissions/zone": zone
76654+
"/compute:v1/compute.disks.update": update_disk
76655+
"/compute:v1/compute.disks.update/disk": disk
76656+
"/compute:v1/compute.disks.update/paths": paths
76657+
"/compute:v1/compute.disks.update/project": project
76658+
"/compute:v1/compute.disks.update/requestId": request_id
76659+
"/compute:v1/compute.disks.update/updateMask": update_mask
76660+
"/compute:v1/compute.disks.update/zone": zone
7665476661
"/compute:v1/compute.externalVpnGateways.delete": delete_external_vpn_gateway
7665576662
"/compute:v1/compute.externalVpnGateways.delete/externalVpnGateway": external_vpn_gateway
7665676663
"/compute:v1/compute.externalVpnGateways.delete/project": project
@@ -78365,6 +78372,13 @@
7836578372
"/compute:v1/compute.regionDisks.testIamPermissions/project": project
7836678373
"/compute:v1/compute.regionDisks.testIamPermissions/region": region
7836778374
"/compute:v1/compute.regionDisks.testIamPermissions/resource": resource
78375+
"/compute:v1/compute.regionDisks.update": update_region_disk
78376+
"/compute:v1/compute.regionDisks.update/disk": disk
78377+
"/compute:v1/compute.regionDisks.update/paths": paths
78378+
"/compute:v1/compute.regionDisks.update/project": project
78379+
"/compute:v1/compute.regionDisks.update/region": region
78380+
"/compute:v1/compute.regionDisks.update/requestId": request_id
78381+
"/compute:v1/compute.regionDisks.update/updateMask": update_mask
7836878382
"/compute:v1/compute.regionHealthCheckServices.delete": delete_region_health_check_service
7836978383
"/compute:v1/compute.regionHealthCheckServices.delete/healthCheckService": health_check_service
7837078384
"/compute:v1/compute.regionHealthCheckServices.delete/project": project

generated/google-apis-compute_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-compute_v1
22

3+
### v0.61.0 (2023-02-12)
4+
5+
* Regenerated from discovery document revision 20230201
6+
37
### v0.60.0 (2023-01-29)
48

59
* Regenerated from discovery document revision 20230119

generated/google-apis-compute_v1/lib/google/apis/compute_v1/classes.rb

Lines changed: 36 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,9 @@ class AccessConfig
466466

467467
# The first IPv6 address of the external IPv6 range associated with this
468468
# 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.
471472
# Corresponds to the JSON property `externalIpv6`
472473
# @return [String]
473474
attr_accessor :external_ipv6
@@ -1123,11 +1124,11 @@ def update!(**args)
11231124
end
11241125
end
11251126

1126-
#
1127+
# [Output Only] Contains output only fields.
11271128
class AllocationResourceStatus
11281129
include Google::Apis::Core::Hashable
11291130

1130-
#
1131+
# Contains Properties set for the reservation.
11311132
# Corresponds to the JSON property `specificSkuAllocation`
11321133
# @return [Google::Apis::ComputeV1::AllocationResourceStatusSpecificSkuAllocation]
11331134
attr_accessor :specific_sku_allocation
@@ -1142,11 +1143,11 @@ def update!(**args)
11421143
end
11431144
end
11441145

1145-
#
1146+
# Contains Properties set for the reservation.
11461147
class AllocationResourceStatusSpecificSkuAllocation
11471148
include Google::Apis::Core::Hashable
11481149

1149-
#
1150+
# ID of the instance template used to populate reservation properties.
11501151
# Corresponds to the JSON property `sourceInstanceTemplateId`
11511152
# @return [String]
11521153
attr_accessor :source_instance_template_id
@@ -4649,22 +4650,22 @@ class Binding
46494650
# kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-
46504651
# project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An
46514652
# email address that represents a Google group. For example, `[email protected]`
4652-
# . * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
4653-
# identifier) representing a user that has been recently deleted. For example, `
4654-
# [email protected]?uid=123456789012345678901`. If the user is recovered, this
4655-
# value reverts to `user:`emailid`` and the recovered user retains the role in
4656-
# the binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email
4657-
# address (plus unique identifier) representing a service account that has been
4658-
# recently deleted. For example, `[email protected]?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, `[email protected]?uid=
46594662
# 123456789012345678901`. If the service account is undeleted, this value
46604663
# reverts to `serviceAccount:`emailid`` and the undeleted service account
46614664
# retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``:
46624665
# An email address (plus unique identifier) representing a Google group that has
46634666
# been recently deleted. For example, `[email protected]?uid=
46644667
# 123456789012345678901`. If the group is recovered, this value reverts to `
4665-
# group:`emailid`` and the recovered group retains the role in the binding. * `
4666-
# domain:`domain``: The G Suite domain (primary) that represents all the users
4667-
# of that domain. For example, `google.com` or `example.com`.
4668+
# group:`emailid`` and the recovered group retains the role in the binding.
46684669
# Corresponds to the JSON property `members`
46694670
# @return [Array<String>]
46704671
attr_accessor :members
@@ -21692,7 +21693,10 @@ class NetworkInterface
2169221693
# @return [String]
2169321694
attr_accessor :ipv6_access_type
2169421695

21695-
# 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.
2169621700
# Corresponds to the JSON property `ipv6Address`
2169721701
# @return [String]
2169821702
attr_accessor :ipv6_address
@@ -28768,7 +28772,14 @@ class Reservation
2876828772
# @return [String]
2876928773
attr_accessor :name
2877028774

28771-
# [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.
2877228783
# Corresponds to the JSON property `resourceStatus`
2877328784
# @return [Google::Apis::ComputeV1::AllocationResourceStatus]
2877428785
attr_accessor :resource_status
@@ -28826,6 +28837,7 @@ def update!(**args)
2882628837
@id = args[:id] if args.key?(:id)
2882728838
@kind = args[:kind] if args.key?(:kind)
2882828839
@name = args[:name] if args.key?(:name)
28840+
@resource_policies = args[:resource_policies] if args.key?(:resource_policies)
2882928841
@resource_status = args[:resource_status] if args.key?(:resource_status)
2883028842
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
2883128843
@self_link = args[:self_link] if args.key?(:self_link)
@@ -32845,7 +32857,11 @@ class SecurityPolicy
3284532857
# CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be
3284632858
# configured to filter HTTP requests targeting services managed by Traffic
3284732859
# Director in a service mesh. They filter requests before the request is served
32848-
# 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.
3284932865
# Corresponds to the JSON property `type`
3285032866
# @return [String]
3285132867
attr_accessor :type
@@ -41615,7 +41631,7 @@ class VpnGateway
4161541631
# request to modify or update labels. You must always provide an up-to-date
4161641632
# fingerprint hash in order to update or change labels, otherwise the request
4161741633
# will fail with error 412 conditionNotMet. To see the latest fingerprint, make
41618-
# a get() request to retrieve an VpnGateway.
41634+
# a get() request to retrieve a VpnGateway.
4161941635
# Corresponds to the JSON property `labelFingerprint`
4162041636
# NOTE: Values are automatically base64 encoded/decoded in the client library.
4162141637
# @return [String]

generated/google-apis-compute_v1/lib/google/apis/compute_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module ComputeV1
1818
# Version of the google-apis-compute_v1 gem
19-
GEM_VERSION = "0.60.0"
19+
GEM_VERSION = "0.61.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.11.1"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20230119"
25+
REVISION = "20230201"
2626
end
2727
end
2828
end

generated/google-apis-compute_v1/lib/google/apis/compute_v1/representations.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12712,6 +12712,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
1271212712
property :id, :numeric_string => true, as: 'id'
1271312713
property :kind, as: 'kind'
1271412714
property :name, as: 'name'
12715+
hash :resource_policies, as: 'resourcePolicies'
1271512716
property :resource_status, as: 'resourceStatus', class: Google::Apis::ComputeV1::AllocationResourceStatus, decorator: Google::Apis::ComputeV1::AllocationResourceStatus::Representation
1271612717

1271712718
property :satisfies_pzs, as: 'satisfiesPzs'

generated/google-apis-compute_v1/lib/google/apis/compute_v1/service.rb

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3289,6 +3289,66 @@ def test_disk_iam_permissions(project, zone, resource, test_permissions_request_
32893289
execute_or_queue_command(command, &block)
32903290
end
32913291

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+
32923352
# Deletes the specified externalVpnGateway.
32933353
# @param [String] project
32943354
# Project ID for this request.
@@ -23133,6 +23193,66 @@ def test_region_disk_iam_permissions(project, region, resource, test_permissions
2313323193
execute_or_queue_command(command, &block)
2313423194
end
2313523195

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+
2313623256
# Deletes the specified regional HealthCheckService.
2313723257
# @param [String] project
2313823258
# Project ID for this request.

0 commit comments

Comments
 (0)