Skip to content

Commit 5037209

Browse files
feat: Automated regeneration of compute beta client (#13168)
Auto-created at 2023-01-04 17:17:56 +0000 using the toys pull request generator.
1 parent 7ab93fe commit 5037209

File tree

6 files changed

+106
-7
lines changed

6 files changed

+106
-7
lines changed

api_names_out.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63695,6 +63695,9 @@
6369563695
"/compute:beta/NodeGroupsScopedList/warning/message": message
6369663696
"/compute:beta/NodeGroupsSetNodeTemplateRequest": node_groups_set_node_template_request
6369763697
"/compute:beta/NodeGroupsSetNodeTemplateRequest/nodeTemplate": node_template
63698+
"/compute:beta/NodeGroupsSimulateMaintenanceEventRequest": node_groups_simulate_maintenance_event_request
63699+
"/compute:beta/NodeGroupsSimulateMaintenanceEventRequest/nodes": nodes
63700+
"/compute:beta/NodeGroupsSimulateMaintenanceEventRequest/nodes/node": node
6369863701
"/compute:beta/NodeTemplate": node_template
6369963702
"/compute:beta/NodeTemplate/accelerators": accelerators
6370063703
"/compute:beta/NodeTemplate/accelerators/accelerator": accelerator
@@ -68187,6 +68190,11 @@
6818768190
"/compute:beta/compute.nodeGroups.setNodeTemplate/project": project
6818868191
"/compute:beta/compute.nodeGroups.setNodeTemplate/requestId": request_id
6818968192
"/compute:beta/compute.nodeGroups.setNodeTemplate/zone": zone
68193+
"/compute:beta/compute.nodeGroups.simulateMaintenanceEvent": simulate_node_group_maintenance_event
68194+
"/compute:beta/compute.nodeGroups.simulateMaintenanceEvent/nodeGroup": node_group
68195+
"/compute:beta/compute.nodeGroups.simulateMaintenanceEvent/project": project
68196+
"/compute:beta/compute.nodeGroups.simulateMaintenanceEvent/requestId": request_id
68197+
"/compute:beta/compute.nodeGroups.simulateMaintenanceEvent/zone": zone
6819068198
"/compute:beta/compute.nodeGroups.testIamPermissions": test_node_group_iam_permissions
6819168199
"/compute:beta/compute.nodeGroups.testIamPermissions/project": project
6819268200
"/compute:beta/compute.nodeGroups.testIamPermissions/resource": resource

generated/google-apis-compute_beta/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_beta
22

3+
### v0.56.0 (2023-01-04)
4+
5+
* Regenerated from discovery document revision 20221206
6+
37
### v0.55.0 (2022-12-11)
48

59
* Regenerated from discovery document revision 20221205

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

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9253,12 +9253,13 @@ class ForwardingRule
92539253
# forwarding rules, this target must be in the same region as the forwarding
92549254
# rule. For global forwarding rules, this target must be a global load balancing
92559255
# resource. The forwarded traffic must be of a type appropriate to the target
9256-
# object. For more information, see the "Target" column in [Port specifications](
9256+
# object. - For load balancers, see the "Target" column in [Port specifications](
92579257
# https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#
9258-
# ip_address_specifications). For Private Service Connect forwarding rules that
9259-
# forward traffic to Google APIs, provide the name of a supported Google API
9260-
# bundle: - vpc-sc - APIs that support VPC Service Controls. - all-apis - All
9261-
# supported Google APIs.
9258+
# ip_address_specifications). - For Private Service Connect forwarding rules
9259+
# that forward traffic to Google APIs, provide the name of a supported Google
9260+
# API bundle: - vpc-sc - APIs that support VPC Service Controls. - all-apis -
9261+
# All supported Google APIs. - For Private Service Connect forwarding rules that
9262+
# forward traffic to managed services, the target must be a service attachment.
92629263
# Corresponds to the JSON property `target`
92639264
# @return [String]
92649265
attr_accessor :target
@@ -23961,6 +23962,25 @@ def update!(**args)
2396123962
end
2396223963
end
2396323964

23965+
#
23966+
class NodeGroupsSimulateMaintenanceEventRequest
23967+
include Google::Apis::Core::Hashable
23968+
23969+
# Names of the nodes to go under maintenance simulation.
23970+
# Corresponds to the JSON property `nodes`
23971+
# @return [Array<String>]
23972+
attr_accessor :nodes
23973+
23974+
def initialize(**args)
23975+
update!(**args)
23976+
end
23977+
23978+
# Update properties of this object
23979+
def update!(**args)
23980+
@nodes = args[:nodes] if args.key?(:nodes)
23981+
end
23982+
end
23983+
2396423984
# Represent a sole-tenant Node Template resource. You can use a template to
2396523985
# define properties for nodes in a node group. For more information, read
2396623986
# Creating node groups and instances.

generated/google-apis-compute_beta/lib/google/apis/compute_beta/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 ComputeBeta
1818
# Version of the google-apis-compute_beta gem
19-
GEM_VERSION = "0.55.0"
19+
GEM_VERSION = "0.56.0"
2020

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

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

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2986,6 +2986,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
29862986
include Google::Apis::Core::JsonObjectSupport
29872987
end
29882988

2989+
class NodeGroupsSimulateMaintenanceEventRequest
2990+
class Representation < Google::Apis::Core::JsonRepresentation; end
2991+
2992+
include Google::Apis::Core::JsonObjectSupport
2993+
end
2994+
29892995
class NodeTemplate
29902996
class Representation < Google::Apis::Core::JsonRepresentation; end
29912997

@@ -11660,6 +11666,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
1166011666
end
1166111667
end
1166211668

11669+
class NodeGroupsSimulateMaintenanceEventRequest
11670+
# @private
11671+
class Representation < Google::Apis::Core::JsonRepresentation
11672+
collection :nodes, as: 'nodes'
11673+
end
11674+
end
11675+
1166311676
class NodeTemplate
1166411677
# @private
1166511678
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19901,6 +19901,60 @@ def set_node_group_node_template(project, zone, node_group, node_groups_set_node
1990119901
execute_or_queue_command(command, &block)
1990219902
end
1990319903

19904+
# Simulates maintenance event on specified nodes from the node group.
19905+
# @param [String] project
19906+
# Project ID for this request.
19907+
# @param [String] zone
19908+
# The name of the zone for this request.
19909+
# @param [String] node_group
19910+
# Name of the NodeGroup resource whose nodes will go under maintenance
19911+
# simulation.
19912+
# @param [Google::Apis::ComputeBeta::NodeGroupsSimulateMaintenanceEventRequest] node_groups_simulate_maintenance_event_request_object
19913+
# @param [String] request_id
19914+
# An optional request ID to identify requests. Specify a unique request ID so
19915+
# that if you must retry your request, the server will know to ignore the
19916+
# request if it has already been completed. For example, consider a situation
19917+
# where you make an initial request and the request times out. If you make the
19918+
# request again with the same request ID, the server can check if original
19919+
# operation with the same request ID was received, and if so, will ignore the
19920+
# second request. This prevents clients from accidentally creating duplicate
19921+
# commitments. The request ID must be a valid UUID with the exception that zero
19922+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
19923+
# @param [String] fields
19924+
# Selector specifying which fields to include in a partial response.
19925+
# @param [String] quota_user
19926+
# Available to use for quota purposes for server-side applications. Can be any
19927+
# arbitrary string assigned to a user, but should not exceed 40 characters.
19928+
# @param [String] user_ip
19929+
# Legacy name for parameter that has been superseded by `quotaUser`.
19930+
# @param [Google::Apis::RequestOptions] options
19931+
# Request-specific options
19932+
#
19933+
# @yield [result, err] Result & error if block supplied
19934+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
19935+
# @yieldparam err [StandardError] error object if request failed
19936+
#
19937+
# @return [Google::Apis::ComputeBeta::Operation]
19938+
#
19939+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
19940+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
19941+
# @raise [Google::Apis::AuthorizationError] Authorization is required
19942+
def simulate_node_group_maintenance_event(project, zone, node_group, node_groups_simulate_maintenance_event_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19943+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent', options)
19944+
command.request_representation = Google::Apis::ComputeBeta::NodeGroupsSimulateMaintenanceEventRequest::Representation
19945+
command.request_object = node_groups_simulate_maintenance_event_request_object
19946+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
19947+
command.response_class = Google::Apis::ComputeBeta::Operation
19948+
command.params['project'] = project unless project.nil?
19949+
command.params['zone'] = zone unless zone.nil?
19950+
command.params['nodeGroup'] = node_group unless node_group.nil?
19951+
command.query['requestId'] = request_id unless request_id.nil?
19952+
command.query['fields'] = fields unless fields.nil?
19953+
command.query['quotaUser'] = quota_user unless quota_user.nil?
19954+
command.query['userIp'] = user_ip unless user_ip.nil?
19955+
execute_or_queue_command(command, &block)
19956+
end
19957+
1990419958
# Returns permissions that a caller has on the specified resource.
1990519959
# @param [String] project
1990619960
# Project ID for this request.

0 commit comments

Comments
 (0)