Skip to content

Commit 85c71ca

Browse files
feat: Automated regeneration of networksecurity v1 client (googleapis#22106)
Auto-created at 2025-03-16 10:18:22 +0000 using the toys pull request generator.
1 parent 14e6871 commit 85c71ca

File tree

6 files changed

+146
-3
lines changed

6 files changed

+146
-3
lines changed

api_names_out.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280448,6 +280448,8 @@
280448280448
"/networksecurity:v1/ListServerTlsPoliciesResponse/nextPageToken": next_page_token
280449280449
"/networksecurity:v1/ListServerTlsPoliciesResponse/serverTlsPolicies": server_tls_policies
280450280450
"/networksecurity:v1/ListServerTlsPoliciesResponse/serverTlsPolicies/server_tls_policy": server_tls_policy
280451+
"/networksecurity:v1/ListServerTlsPoliciesResponse/unreachable": unreachable
280452+
"/networksecurity:v1/ListServerTlsPoliciesResponse/unreachable/unreachable": unreachable
280451280453
"/networksecurity:v1/ListTlsInspectionPoliciesResponse": list_tls_inspection_policies_response
280452280454
"/networksecurity:v1/ListTlsInspectionPoliciesResponse/nextPageToken": next_page_token
280453280455
"/networksecurity:v1/ListTlsInspectionPoliciesResponse/tlsInspectionPolicies": tls_inspection_policies
@@ -280491,6 +280493,8 @@
280491280493
"/networksecurity:v1/MirroringDeploymentGroup/description": description
280492280494
"/networksecurity:v1/MirroringDeploymentGroup/labels": labels
280493280495
"/networksecurity:v1/MirroringDeploymentGroup/labels/label": label
280496+
"/networksecurity:v1/MirroringDeploymentGroup/locations": locations
280497+
"/networksecurity:v1/MirroringDeploymentGroup/locations/location": location
280494280498
"/networksecurity:v1/MirroringDeploymentGroup/name": name
280495280499
"/networksecurity:v1/MirroringDeploymentGroup/nestedDeployments": nested_deployments
280496280500
"/networksecurity:v1/MirroringDeploymentGroup/nestedDeployments/nested_deployment": nested_deployment
@@ -280506,6 +280510,8 @@
280506280510
"/networksecurity:v1/MirroringEndpointGroup": mirroring_endpoint_group
280507280511
"/networksecurity:v1/MirroringEndpointGroup/associations": associations
280508280512
"/networksecurity:v1/MirroringEndpointGroup/associations/association": association
280513+
"/networksecurity:v1/MirroringEndpointGroup/connectedDeploymentGroups": connected_deployment_groups
280514+
"/networksecurity:v1/MirroringEndpointGroup/connectedDeploymentGroups/connected_deployment_group": connected_deployment_group
280509280515
"/networksecurity:v1/MirroringEndpointGroup/createTime": create_time
280510280516
"/networksecurity:v1/MirroringEndpointGroup/description": description
280511280517
"/networksecurity:v1/MirroringEndpointGroup/labels": labels
@@ -280519,6 +280525,8 @@
280519280525
"/networksecurity:v1/MirroringEndpointGroupAssociation/createTime": create_time
280520280526
"/networksecurity:v1/MirroringEndpointGroupAssociation/labels": labels
280521280527
"/networksecurity:v1/MirroringEndpointGroupAssociation/labels/label": label
280528+
"/networksecurity:v1/MirroringEndpointGroupAssociation/locations": locations
280529+
"/networksecurity:v1/MirroringEndpointGroupAssociation/locations/location": location
280522280530
"/networksecurity:v1/MirroringEndpointGroupAssociation/locationsDetails": locations_details
280523280531
"/networksecurity:v1/MirroringEndpointGroupAssociation/locationsDetails/locations_detail": locations_detail
280524280532
"/networksecurity:v1/MirroringEndpointGroupAssociation/mirroringEndpointGroup": mirroring_endpoint_group
@@ -280534,6 +280542,13 @@
280534280542
"/networksecurity:v1/MirroringEndpointGroupAssociationLocationDetails": mirroring_endpoint_group_association_location_details
280535280543
"/networksecurity:v1/MirroringEndpointGroupAssociationLocationDetails/location": location
280536280544
"/networksecurity:v1/MirroringEndpointGroupAssociationLocationDetails/state": state
280545+
"/networksecurity:v1/MirroringEndpointGroupConnectedDeploymentGroup": mirroring_endpoint_group_connected_deployment_group
280546+
"/networksecurity:v1/MirroringEndpointGroupConnectedDeploymentGroup/locations": locations
280547+
"/networksecurity:v1/MirroringEndpointGroupConnectedDeploymentGroup/locations/location": location
280548+
"/networksecurity:v1/MirroringEndpointGroupConnectedDeploymentGroup/name": name
280549+
"/networksecurity:v1/MirroringLocation": mirroring_location
280550+
"/networksecurity:v1/MirroringLocation/location": location
280551+
"/networksecurity:v1/MirroringLocation/state": state
280537280552
"/networksecurity:v1/Operation": operation
280538280553
"/networksecurity:v1/Operation/done": done
280539280554
"/networksecurity:v1/Operation/error": error
@@ -280989,6 +281004,7 @@
280989281004
"/networksecurity:v1/networksecurity.projects.locations.serverTlsPolicies.list/pageSize": page_size
280990281005
"/networksecurity:v1/networksecurity.projects.locations.serverTlsPolicies.list/pageToken": page_token
280991281006
"/networksecurity:v1/networksecurity.projects.locations.serverTlsPolicies.list/parent": parent
281007+
"/networksecurity:v1/networksecurity.projects.locations.serverTlsPolicies.list/returnPartialSuccess": return_partial_success
280992281008
"/networksecurity:v1/networksecurity.projects.locations.serverTlsPolicies.patch": patch_project_location_server_tls_policy
280993281009
"/networksecurity:v1/networksecurity.projects.locations.serverTlsPolicies.patch/name": name
280994281010
"/networksecurity:v1/networksecurity.projects.locations.serverTlsPolicies.patch/updateMask": update_mask

generated/google-apis-networksecurity_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-networksecurity_v1
22

3+
### v0.34.0 (2025-03-16)
4+
5+
* Regenerated from discovery document revision 20250310
6+
37
### v0.33.0 (2025-03-02)
48

59
* Regenerated from discovery document revision 20250217

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

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2331,6 +2331,13 @@ class ListServerTlsPoliciesResponse
23312331
# @return [Array<Google::Apis::NetworksecurityV1::ServerTlsPolicy>]
23322332
attr_accessor :server_tls_policies
23332333

2334+
# Unreachable resources. Populated when the request opts into `
2335+
# return_partial_success` and reading across collections e.g. when attempting to
2336+
# list all resources across all supported locations.
2337+
# Corresponds to the JSON property `unreachable`
2338+
# @return [Array<String>]
2339+
attr_accessor :unreachable
2340+
23342341
def initialize(**args)
23352342
update!(**args)
23362343
end
@@ -2339,6 +2346,7 @@ def initialize(**args)
23392346
def update!(**args)
23402347
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
23412348
@server_tls_policies = args[:server_tls_policies] if args.key?(:server_tls_policies)
2349+
@unreachable = args[:unreachable] if args.key?(:unreachable)
23422350
end
23432351
end
23442352

@@ -2608,6 +2616,11 @@ class MirroringDeploymentGroup
26082616
# @return [Hash<String,String>]
26092617
attr_accessor :labels
26102618

2619+
# Output only. The list of locations where the deployment group is present.
2620+
# Corresponds to the JSON property `locations`
2621+
# @return [Array<Google::Apis::NetworksecurityV1::MirroringLocation>]
2622+
attr_accessor :locations
2623+
26112624
# Immutable. Identifier. The resource name of this deployment group, for example:
26122625
# `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`. See
26132626
# https://google.aip.dev/122 for more details.
@@ -2658,6 +2671,7 @@ def update!(**args)
26582671
@create_time = args[:create_time] if args.key?(:create_time)
26592672
@description = args[:description] if args.key?(:description)
26602673
@labels = args[:labels] if args.key?(:labels)
2674+
@locations = args[:locations] if args.key?(:locations)
26612675
@name = args[:name] if args.key?(:name)
26622676
@nested_deployments = args[:nested_deployments] if args.key?(:nested_deployments)
26632677
@network = args[:network] if args.key?(:network)
@@ -2727,6 +2741,12 @@ class MirroringEndpointGroup
27272741
# @return [Array<Google::Apis::NetworksecurityV1::MirroringEndpointGroupAssociationDetails>]
27282742
attr_accessor :associations
27292743

2744+
# Output only. List of details about the connected deployment groups to this
2745+
# endpoint group.
2746+
# Corresponds to the JSON property `connectedDeploymentGroups`
2747+
# @return [Array<Google::Apis::NetworksecurityV1::MirroringEndpointGroupConnectedDeploymentGroup>]
2748+
attr_accessor :connected_deployment_groups
2749+
27302750
# Output only. The timestamp when the resource was created. See https://google.
27312751
# aip.dev/148#timestamps.
27322752
# Corresponds to the JSON property `createTime`
@@ -2787,6 +2807,7 @@ def initialize(**args)
27872807
# Update properties of this object
27882808
def update!(**args)
27892809
@associations = args[:associations] if args.key?(:associations)
2810+
@connected_deployment_groups = args[:connected_deployment_groups] if args.key?(:connected_deployment_groups)
27902811
@create_time = args[:create_time] if args.key?(:create_time)
27912812
@description = args[:description] if args.key?(:description)
27922813
@labels = args[:labels] if args.key?(:labels)
@@ -2819,6 +2840,12 @@ class MirroringEndpointGroupAssociation
28192840
# @return [Hash<String,String>]
28202841
attr_accessor :labels
28212842

2843+
# Output only. The list of locations where the association is configured. This
2844+
# information is retrieved from the linked endpoint group.
2845+
# Corresponds to the JSON property `locations`
2846+
# @return [Array<Google::Apis::NetworksecurityV1::MirroringLocation>]
2847+
attr_accessor :locations
2848+
28222849
# Output only. The list of locations where the association is present. This
28232850
# information is retrieved from the linked endpoint group, and not configured as
28242851
# part of the association itself.
@@ -2875,6 +2902,7 @@ def initialize(**args)
28752902
def update!(**args)
28762903
@create_time = args[:create_time] if args.key?(:create_time)
28772904
@labels = args[:labels] if args.key?(:labels)
2905+
@locations = args[:locations] if args.key?(:locations)
28782906
@locations_details = args[:locations_details] if args.key?(:locations_details)
28792907
@mirroring_endpoint_group = args[:mirroring_endpoint_group] if args.key?(:mirroring_endpoint_group)
28802908
@name = args[:name] if args.key?(:name)
@@ -2945,6 +2973,58 @@ def update!(**args)
29452973
end
29462974
end
29472975

2976+
# The endpoint group's view of a connected deployment group.
2977+
class MirroringEndpointGroupConnectedDeploymentGroup
2978+
include Google::Apis::Core::Hashable
2979+
2980+
# Output only. The list of locations where the deployment group is present.
2981+
# Corresponds to the JSON property `locations`
2982+
# @return [Array<Google::Apis::NetworksecurityV1::MirroringLocation>]
2983+
attr_accessor :locations
2984+
2985+
# Output only. The connected deployment group's resource name, for example: `
2986+
# projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`. See
2987+
# https://google.aip.dev/124.
2988+
# Corresponds to the JSON property `name`
2989+
# @return [String]
2990+
attr_accessor :name
2991+
2992+
def initialize(**args)
2993+
update!(**args)
2994+
end
2995+
2996+
# Update properties of this object
2997+
def update!(**args)
2998+
@locations = args[:locations] if args.key?(:locations)
2999+
@name = args[:name] if args.key?(:name)
3000+
end
3001+
end
3002+
3003+
# Details about mirroring in a specific cloud location.
3004+
class MirroringLocation
3005+
include Google::Apis::Core::Hashable
3006+
3007+
# Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
3008+
# Corresponds to the JSON property `location`
3009+
# @return [String]
3010+
attr_accessor :location
3011+
3012+
# Output only. The current state of the association in this location.
3013+
# Corresponds to the JSON property `state`
3014+
# @return [String]
3015+
attr_accessor :state
3016+
3017+
def initialize(**args)
3018+
update!(**args)
3019+
end
3020+
3021+
# Update properties of this object
3022+
def update!(**args)
3023+
@location = args[:location] if args.key?(:location)
3024+
@state = args[:state] if args.key?(:state)
3025+
end
3026+
end
3027+
29483028
# This resource represents a long-running operation that is the result of a
29493029
# network API call.
29503030
class Operation

generated/google-apis-networksecurity_v1/lib/google/apis/networksecurity_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 NetworksecurityV1
1818
# Version of the google-apis-networksecurity_v1 gem
19-
GEM_VERSION = "0.33.0"
19+
GEM_VERSION = "0.34.0"
2020

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

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

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
466466
include Google::Apis::Core::JsonObjectSupport
467467
end
468468

469+
class MirroringEndpointGroupConnectedDeploymentGroup
470+
class Representation < Google::Apis::Core::JsonRepresentation; end
471+
472+
include Google::Apis::Core::JsonObjectSupport
473+
end
474+
475+
class MirroringLocation
476+
class Representation < Google::Apis::Core::JsonRepresentation; end
477+
478+
include Google::Apis::Core::JsonObjectSupport
479+
end
480+
469481
class Operation
470482
class Representation < Google::Apis::Core::JsonRepresentation; end
471483

@@ -1160,6 +1172,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
11601172
property :next_page_token, as: 'nextPageToken'
11611173
collection :server_tls_policies, as: 'serverTlsPolicies', class: Google::Apis::NetworksecurityV1::ServerTlsPolicy, decorator: Google::Apis::NetworksecurityV1::ServerTlsPolicy::Representation
11621174

1175+
collection :unreachable, as: 'unreachable'
11631176
end
11641177
end
11651178

@@ -1227,6 +1240,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
12271240
property :create_time, as: 'createTime'
12281241
property :description, as: 'description'
12291242
hash :labels, as: 'labels'
1243+
collection :locations, as: 'locations', class: Google::Apis::NetworksecurityV1::MirroringLocation, decorator: Google::Apis::NetworksecurityV1::MirroringLocation::Representation
1244+
12301245
property :name, as: 'name'
12311246
collection :nested_deployments, as: 'nestedDeployments', class: Google::Apis::NetworksecurityV1::MirroringDeploymentGroupDeployment, decorator: Google::Apis::NetworksecurityV1::MirroringDeploymentGroupDeployment::Representation
12321247

@@ -1257,6 +1272,8 @@ class MirroringEndpointGroup
12571272
class Representation < Google::Apis::Core::JsonRepresentation
12581273
collection :associations, as: 'associations', class: Google::Apis::NetworksecurityV1::MirroringEndpointGroupAssociationDetails, decorator: Google::Apis::NetworksecurityV1::MirroringEndpointGroupAssociationDetails::Representation
12591274

1275+
collection :connected_deployment_groups, as: 'connectedDeploymentGroups', class: Google::Apis::NetworksecurityV1::MirroringEndpointGroupConnectedDeploymentGroup, decorator: Google::Apis::NetworksecurityV1::MirroringEndpointGroupConnectedDeploymentGroup::Representation
1276+
12601277
property :create_time, as: 'createTime'
12611278
property :description, as: 'description'
12621279
hash :labels, as: 'labels'
@@ -1273,6 +1290,8 @@ class MirroringEndpointGroupAssociation
12731290
class Representation < Google::Apis::Core::JsonRepresentation
12741291
property :create_time, as: 'createTime'
12751292
hash :labels, as: 'labels'
1293+
collection :locations, as: 'locations', class: Google::Apis::NetworksecurityV1::MirroringLocation, decorator: Google::Apis::NetworksecurityV1::MirroringLocation::Representation
1294+
12761295
collection :locations_details, as: 'locationsDetails', class: Google::Apis::NetworksecurityV1::MirroringEndpointGroupAssociationLocationDetails, decorator: Google::Apis::NetworksecurityV1::MirroringEndpointGroupAssociationLocationDetails::Representation
12771296

12781297
property :mirroring_endpoint_group, as: 'mirroringEndpointGroup'
@@ -1301,6 +1320,23 @@ class Representation < Google::Apis::Core::JsonRepresentation
13011320
end
13021321
end
13031322

1323+
class MirroringEndpointGroupConnectedDeploymentGroup
1324+
# @private
1325+
class Representation < Google::Apis::Core::JsonRepresentation
1326+
collection :locations, as: 'locations', class: Google::Apis::NetworksecurityV1::MirroringLocation, decorator: Google::Apis::NetworksecurityV1::MirroringLocation::Representation
1327+
1328+
property :name, as: 'name'
1329+
end
1330+
end
1331+
1332+
class MirroringLocation
1333+
# @private
1334+
class Representation < Google::Apis::Core::JsonRepresentation
1335+
property :location, as: 'location'
1336+
property :state, as: 'state'
1337+
end
1338+
end
1339+
13041340
class Operation
13051341
# @private
13061342
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4378,6 +4378,12 @@ def get_project_location_server_tls_policy_iam_policy(resource, options_requeste
43784378
# The value returned by the last `ListServerTlsPoliciesResponse` Indicates that
43794379
# this is a continuation of a prior `ListServerTlsPolicies` call, and that the
43804380
# system should return the next page of data.
4381+
# @param [Boolean] return_partial_success
4382+
# Optional. Setting this field to `true` will opt the request into returning the
4383+
# resources that are reachable, and into including the names of those that were
4384+
# unreachable in the [ListServerTlsPoliciesResponse.unreachable] field. This can
4385+
# only be `true` when reading across collections e.g. when `parent` is set to `"
4386+
# projects/example/locations/-"`.
43814387
# @param [String] fields
43824388
# Selector specifying which fields to include in a partial response.
43834389
# @param [String] quota_user
@@ -4395,13 +4401,14 @@ def get_project_location_server_tls_policy_iam_policy(resource, options_requeste
43954401
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
43964402
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
43974403
# @raise [Google::Apis::AuthorizationError] Authorization is required
4398-
def list_project_location_server_tls_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
4404+
def list_project_location_server_tls_policies(parent, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
43994405
command = make_simple_command(:get, 'v1/{+parent}/serverTlsPolicies', options)
44004406
command.response_representation = Google::Apis::NetworksecurityV1::ListServerTlsPoliciesResponse::Representation
44014407
command.response_class = Google::Apis::NetworksecurityV1::ListServerTlsPoliciesResponse
44024408
command.params['parent'] = parent unless parent.nil?
44034409
command.query['pageSize'] = page_size unless page_size.nil?
44044410
command.query['pageToken'] = page_token unless page_token.nil?
4411+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
44054412
command.query['fields'] = fields unless fields.nil?
44064413
command.query['quotaUser'] = quota_user unless quota_user.nil?
44074414
execute_or_queue_command(command, &block)

0 commit comments

Comments
 (0)