Skip to content

Commit 649ef22

Browse files
feat: Automated regeneration of networkconnectivity v1 client (#19202)
Auto-created at 2024-05-19 10:37:11 +0000 using the toys pull request generator.
1 parent 16744a4 commit 649ef22

File tree

7 files changed

+167
-4
lines changed

7 files changed

+167
-4
lines changed

api_names_out.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245095,6 +245095,9 @@
245095245095
"/networkconnectivity:v1/AuditLogConfig/exemptedMembers": exempted_members
245096245096
"/networkconnectivity:v1/AuditLogConfig/exemptedMembers/exempted_member": exempted_member
245097245097
"/networkconnectivity:v1/AuditLogConfig/logType": log_type
245098+
"/networkconnectivity:v1/AutoAccept": auto_accept
245099+
"/networkconnectivity:v1/AutoAccept/autoAcceptProjects": auto_accept_projects
245100+
"/networkconnectivity:v1/AutoAccept/autoAcceptProjects/auto_accept_project": auto_accept_project
245098245101
"/networkconnectivity:v1/Binding": binding
245099245102
"/networkconnectivity:v1/Binding/condition": condition
245100245103
"/networkconnectivity:v1/Binding/members": members
@@ -245156,20 +245159,25 @@
245156245159
"/networkconnectivity:v1/GoogleRpcStatus/details/detail/detail": detail
245157245160
"/networkconnectivity:v1/GoogleRpcStatus/message": message
245158245161
"/networkconnectivity:v1/Group": group
245162+
"/networkconnectivity:v1/Group/autoAccept": auto_accept
245159245163
"/networkconnectivity:v1/Group/createTime": create_time
245160245164
"/networkconnectivity:v1/Group/description": description
245161245165
"/networkconnectivity:v1/Group/labels": labels
245162245166
"/networkconnectivity:v1/Group/labels/label": label
245163245167
"/networkconnectivity:v1/Group/name": name
245168+
"/networkconnectivity:v1/Group/routeTable": route_table
245164245169
"/networkconnectivity:v1/Group/state": state
245165245170
"/networkconnectivity:v1/Group/uid": uid
245166245171
"/networkconnectivity:v1/Group/updateTime": update_time
245167245172
"/networkconnectivity:v1/Hub": hub
245168245173
"/networkconnectivity:v1/Hub/createTime": create_time
245169245174
"/networkconnectivity:v1/Hub/description": description
245175+
"/networkconnectivity:v1/Hub/exportPsc": export_psc
245170245176
"/networkconnectivity:v1/Hub/labels": labels
245171245177
"/networkconnectivity:v1/Hub/labels/label": label
245172245178
"/networkconnectivity:v1/Hub/name": name
245179+
"/networkconnectivity:v1/Hub/policyMode": policy_mode
245180+
"/networkconnectivity:v1/Hub/presetTopology": preset_topology
245173245181
"/networkconnectivity:v1/Hub/routeTables": route_tables
245174245182
"/networkconnectivity:v1/Hub/routeTables/route_table": route_table
245175245183
"/networkconnectivity:v1/Hub/routingVpcs": routing_vpcs
@@ -245553,6 +245561,10 @@
245553245561
"/networkconnectivity:v1/networkconnectivity.projects.locations.global.hubs.groups.list/pageSize": page_size
245554245562
"/networkconnectivity:v1/networkconnectivity.projects.locations.global.hubs.groups.list/pageToken": page_token
245555245563
"/networkconnectivity:v1/networkconnectivity.projects.locations.global.hubs.groups.list/parent": parent
245564+
"/networkconnectivity:v1/networkconnectivity.projects.locations.global.hubs.groups.patch": patch_project_location_global_hub_group
245565+
"/networkconnectivity:v1/networkconnectivity.projects.locations.global.hubs.groups.patch/name": name
245566+
"/networkconnectivity:v1/networkconnectivity.projects.locations.global.hubs.groups.patch/requestId": request_id
245567+
"/networkconnectivity:v1/networkconnectivity.projects.locations.global.hubs.groups.patch/updateMask": update_mask
245556245568
"/networkconnectivity:v1/networkconnectivity.projects.locations.global.hubs.groups.setIamPolicy": set_group_iam_policy
245557245569
"/networkconnectivity:v1/networkconnectivity.projects.locations.global.hubs.groups.setIamPolicy/resource": resource
245558245570
"/networkconnectivity:v1/networkconnectivity.projects.locations.global.hubs.groups.testIamPermissions": test_group_iam_permissions

generated/google-apis-networkconnectivity_v1/CHANGELOG.md

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

3+
### v0.41.0 (2024-05-19)
4+
5+
* Regenerated from discovery document revision 20240506
6+
* Regenerated using generator version 0.15.0
7+
38
### v0.40.0 (2024-04-28)
49

510
* Regenerated from discovery document revision 20240423

generated/google-apis-networkconnectivity_v1/google-apis-networkconnectivity_v1.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ Gem::Specification.new do |gem|
2929
gem.require_paths = ["lib"]
3030

3131
gem.required_ruby_version = '>= 2.7'
32-
gem.add_runtime_dependency "google-apis-core", ">= 0.14.0", "< 2.a"
32+
gem.add_runtime_dependency "google-apis-core", ">= 0.15.0", "< 2.a"
3333
end

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

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,32 @@ def update!(**args)
151151
end
152152
end
153153

154+
# The auto-accept setting for a group controls whether proposed spokes are
155+
# automatically attached to the hub. If auto-accept is enabled, the spoke
156+
# immediately is attached to the hub and becomes part of the group. In this case,
157+
# the new spoke is in the ACTIVE state. If auto-accept is disabled, the spoke
158+
# goes to the INACTIVE state, and it must be reviewed and accepted by a hub
159+
# administrator.
160+
class AutoAccept
161+
include Google::Apis::Core::Hashable
162+
163+
# A list of project ids or project numbers for which you want to enable auto-
164+
# accept. The auto-accept setting is applied to spokes being created or updated
165+
# in these projects.
166+
# Corresponds to the JSON property `autoAcceptProjects`
167+
# @return [Array<String>]
168+
attr_accessor :auto_accept_projects
169+
170+
def initialize(**args)
171+
update!(**args)
172+
end
173+
174+
# Update properties of this object
175+
def update!(**args)
176+
@auto_accept_projects = args[:auto_accept_projects] if args.key?(:auto_accept_projects)
177+
end
178+
end
179+
154180
# Associates `members`, or principals, with a `role`.
155181
class Binding
156182
include Google::Apis::Core::Hashable
@@ -719,6 +745,16 @@ def update!(**args)
719745
class Group
720746
include Google::Apis::Core::Hashable
721747

748+
# The auto-accept setting for a group controls whether proposed spokes are
749+
# automatically attached to the hub. If auto-accept is enabled, the spoke
750+
# immediately is attached to the hub and becomes part of the group. In this case,
751+
# the new spoke is in the ACTIVE state. If auto-accept is disabled, the spoke
752+
# goes to the INACTIVE state, and it must be reviewed and accepted by a hub
753+
# administrator.
754+
# Corresponds to the JSON property `autoAccept`
755+
# @return [Google::Apis::NetworkconnectivityV1::AutoAccept]
756+
attr_accessor :auto_accept
757+
722758
# Output only. The time the group was created.
723759
# Corresponds to the JSON property `createTime`
724760
# @return [String]
@@ -743,6 +779,13 @@ class Group
743779
# @return [String]
744780
attr_accessor :name
745781

782+
# Output only. The name of the route table that corresponds to this group. They
783+
# use the following form: `projects/`project_number`/locations/global/hubs/`
784+
# hub_id`/routeTables/`route_table_id``
785+
# Corresponds to the JSON property `routeTable`
786+
# @return [String]
787+
attr_accessor :route_table
788+
746789
# Output only. The current lifecycle state of this group.
747790
# Corresponds to the JSON property `state`
748791
# @return [String]
@@ -766,10 +809,12 @@ def initialize(**args)
766809

767810
# Update properties of this object
768811
def update!(**args)
812+
@auto_accept = args[:auto_accept] if args.key?(:auto_accept)
769813
@create_time = args[:create_time] if args.key?(:create_time)
770814
@description = args[:description] if args.key?(:description)
771815
@labels = args[:labels] if args.key?(:labels)
772816
@name = args[:name] if args.key?(:name)
817+
@route_table = args[:route_table] if args.key?(:route_table)
773818
@state = args[:state] if args.key?(:state)
774819
@uid = args[:uid] if args.key?(:uid)
775820
@update_time = args[:update_time] if args.key?(:update_time)
@@ -795,6 +840,15 @@ class Hub
795840
# @return [String]
796841
attr_accessor :description
797842

843+
# Optional. Whether Private Service Connect transitivity is enabled for the hub.
844+
# If true, Private Service Connect endpoints in VPC spokes attached to the hub
845+
# are made accessible to other VPC spokes attached to the hub. The default value
846+
# is false.
847+
# Corresponds to the JSON property `exportPsc`
848+
# @return [Boolean]
849+
attr_accessor :export_psc
850+
alias_method :export_psc?, :export_psc
851+
798852
# Optional labels in key-value pair format. For more information about labels,
799853
# see [Requirements for labels](https://cloud.google.com/resource-manager/docs/
800854
# creating-managing-labels#requirements).
@@ -808,6 +862,21 @@ class Hub
808862
# @return [String]
809863
attr_accessor :name
810864

865+
# Optional. The policy mode of this hub. This field can be either PRESET or
866+
# CUSTOM. If unspecified, the policy_mode defaults to PRESET.
867+
# Corresponds to the JSON property `policyMode`
868+
# @return [String]
869+
attr_accessor :policy_mode
870+
871+
# Optional. The topology implemented in this hub. Currently, this field is only
872+
# used when policy_mode = PRESET. The available preset topologies are MESH and
873+
# STAR. If preset_topology is unspecified and policy_mode = PRESET, the
874+
# preset_topology defaults to MESH. When policy_mode = CUSTOM, the
875+
# preset_topology is set to PRESET_TOPOLOGY_UNSPECIFIED.
876+
# Corresponds to the JSON property `presetTopology`
877+
# @return [String]
878+
attr_accessor :preset_topology
879+
811880
# Output only. The route tables that belong to this hub. They use the following
812881
# form: `projects/`project_number`/locations/global/hubs/`hub_id`/routeTables/`
813882
# route_table_id`` This field is read-only. Network Connectivity Center
@@ -856,8 +925,11 @@ def initialize(**args)
856925
def update!(**args)
857926
@create_time = args[:create_time] if args.key?(:create_time)
858927
@description = args[:description] if args.key?(:description)
928+
@export_psc = args[:export_psc] if args.key?(:export_psc)
859929
@labels = args[:labels] if args.key?(:labels)
860930
@name = args[:name] if args.key?(:name)
931+
@policy_mode = args[:policy_mode] if args.key?(:policy_mode)
932+
@preset_topology = args[:preset_topology] if args.key?(:preset_topology)
861933
@route_tables = args[:route_tables] if args.key?(:route_tables)
862934
@routing_vpcs = args[:routing_vpcs] if args.key?(:routing_vpcs)
863935
@spoke_summary = args[:spoke_summary] if args.key?(:spoke_summary)

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module NetworkconnectivityV1
1818
# Version of the google-apis-networkconnectivity_v1 gem
19-
GEM_VERSION = "0.40.0"
19+
GEM_VERSION = "0.41.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.14.0"
22+
GENERATOR_VERSION = "0.15.0"
2323

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

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
4646
include Google::Apis::Core::JsonObjectSupport
4747
end
4848

49+
class AutoAccept
50+
class Representation < Google::Apis::Core::JsonRepresentation; end
51+
52+
include Google::Apis::Core::JsonObjectSupport
53+
end
54+
4955
class Binding
5056
class Representation < Google::Apis::Core::JsonRepresentation; end
5157

@@ -463,6 +469,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
463469
end
464470
end
465471

472+
class AutoAccept
473+
# @private
474+
class Representation < Google::Apis::Core::JsonRepresentation
475+
collection :auto_accept_projects, as: 'autoAcceptProjects'
476+
end
477+
end
478+
466479
class Binding
467480
# @private
468481
class Representation < Google::Apis::Core::JsonRepresentation
@@ -579,10 +592,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
579592
class Group
580593
# @private
581594
class Representation < Google::Apis::Core::JsonRepresentation
595+
property :auto_accept, as: 'autoAccept', class: Google::Apis::NetworkconnectivityV1::AutoAccept, decorator: Google::Apis::NetworkconnectivityV1::AutoAccept::Representation
596+
582597
property :create_time, as: 'createTime'
583598
property :description, as: 'description'
584599
hash :labels, as: 'labels'
585600
property :name, as: 'name'
601+
property :route_table, as: 'routeTable'
586602
property :state, as: 'state'
587603
property :uid, as: 'uid'
588604
property :update_time, as: 'updateTime'
@@ -594,8 +610,11 @@ class Hub
594610
class Representation < Google::Apis::Core::JsonRepresentation
595611
property :create_time, as: 'createTime'
596612
property :description, as: 'description'
613+
property :export_psc, as: 'exportPsc'
597614
hash :labels, as: 'labels'
598615
property :name, as: 'name'
616+
property :policy_mode, as: 'policyMode'
617+
property :preset_topology, as: 'presetTopology'
599618
collection :route_tables, as: 'routeTables'
600619
collection :routing_vpcs, as: 'routingVpcs', class: Google::Apis::NetworkconnectivityV1::RoutingVpc, decorator: Google::Apis::NetworkconnectivityV1::RoutingVpc::Representation
601620

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

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,61 @@ def list_project_location_global_hub_groups(parent, filter: nil, order_by: nil,
705705
execute_or_queue_command(command, &block)
706706
end
707707

708+
# Updates the parameters of a Network Connectivity Center group.
709+
# @param [String] name
710+
# Immutable. The name of the group. Group names must be unique. They use the
711+
# following form: `projects/`project_number`/locations/global/hubs/`hub`/groups/`
712+
# group_id``
713+
# @param [Google::Apis::NetworkconnectivityV1::Group] group_object
714+
# @param [String] request_id
715+
# Optional. A request ID to identify requests. Specify a unique request ID so
716+
# that if you must retry your request, the server knows to ignore the request if
717+
# it has already been completed. The server guarantees that a request doesn't
718+
# result in creation of duplicate commitments for at least 60 minutes. For
719+
# example, consider a situation where you make an initial request and the
720+
# request times out. If you make the request again with the same request ID, the
721+
# server can check to see whether the original operation was received. If it was,
722+
# the server ignores the second request. This behavior prevents clients from
723+
# mistakenly creating duplicate commitments. The request ID must be a valid UUID,
724+
# with the exception that zero UUID is not supported (00000000-0000-0000-0000-
725+
# 000000000000).
726+
# @param [String] update_mask
727+
# Optional. In the case of an update to an existing group, field mask is used to
728+
# specify the fields to be overwritten. The fields specified in the update_mask
729+
# are relative to the resource, not the full request. A field is overwritten if
730+
# it is in the mask. If the user does not provide a mask, then all fields are
731+
# overwritten.
732+
# @param [String] fields
733+
# Selector specifying which fields to include in a partial response.
734+
# @param [String] quota_user
735+
# Available to use for quota purposes for server-side applications. Can be any
736+
# arbitrary string assigned to a user, but should not exceed 40 characters.
737+
# @param [Google::Apis::RequestOptions] options
738+
# Request-specific options
739+
#
740+
# @yield [result, err] Result & error if block supplied
741+
# @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
742+
# @yieldparam err [StandardError] error object if request failed
743+
#
744+
# @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
745+
#
746+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
747+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
748+
# @raise [Google::Apis::AuthorizationError] Authorization is required
749+
def patch_project_location_global_hub_group(name, group_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
750+
command = make_simple_command(:patch, 'v1/{+name}', options)
751+
command.request_representation = Google::Apis::NetworkconnectivityV1::Group::Representation
752+
command.request_object = group_object
753+
command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
754+
command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
755+
command.params['name'] = name unless name.nil?
756+
command.query['requestId'] = request_id unless request_id.nil?
757+
command.query['updateMask'] = update_mask unless update_mask.nil?
758+
command.query['fields'] = fields unless fields.nil?
759+
command.query['quotaUser'] = quota_user unless quota_user.nil?
760+
execute_or_queue_command(command, &block)
761+
end
762+
708763
# Sets the access control policy on the specified resource. Replaces any
709764
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
710765
# PERMISSION_DENIED` errors.

0 commit comments

Comments
 (0)