Skip to content

Commit d164982

Browse files
feat: Automated regeneration of networksecurity v1 client (googleapis#23773)
Auto-created at 2025-07-27 09:53:54 +0000 using the toys pull request generator.
1 parent 26133c4 commit d164982

File tree

6 files changed

+69
-7
lines changed

6 files changed

+69
-7
lines changed

api_names_out.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292111,6 +292111,9 @@
292111292111
"/networksecurity:v1/AuthzPolicyAuthzRuleIpBlock": authz_policy_authz_rule_ip_block
292112292112
"/networksecurity:v1/AuthzPolicyAuthzRuleIpBlock/length": length
292113292113
"/networksecurity:v1/AuthzPolicyAuthzRuleIpBlock/prefix": prefix
292114+
"/networksecurity:v1/AuthzPolicyAuthzRulePrincipal": authz_policy_authz_rule_principal
292115+
"/networksecurity:v1/AuthzPolicyAuthzRulePrincipal/principal": principal
292116+
"/networksecurity:v1/AuthzPolicyAuthzRulePrincipal/principalSelector": principal_selector
292114292117
"/networksecurity:v1/AuthzPolicyAuthzRuleRequestResource": authz_policy_authz_rule_request_resource
292115292118
"/networksecurity:v1/AuthzPolicyAuthzRuleRequestResource/iamServiceAccount": iam_service_account
292116292119
"/networksecurity:v1/AuthzPolicyAuthzRuleRequestResource/tagValueIdSet": tag_value_id_set

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.41.0 (2025-07-27)
4+
5+
* Regenerated from discovery document revision 20250714
6+
37
### v0.40.0 (2025-06-15)
48

59
* Regenerated from discovery document revision 20250604

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

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -375,12 +375,23 @@ def update!(**args)
375375
class AuthzPolicyAuthzRuleFromRequestSource
376376
include Google::Apis::Core::Hashable
377377

378-
# Optional. A list of IPs or CIDRs to match against the source IP of a request.
379-
# Limited to 5 ip_blocks.
378+
# Optional. A list of IP addresses or IP address ranges to match against the
379+
# source IP address of the request. Limited to 5 ip_blocks.
380380
# Corresponds to the JSON property `ipBlocks`
381381
# @return [Array<Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRuleIpBlock>]
382382
attr_accessor :ip_blocks
383383

384+
# Optional. A list of identities derived from the client's certificate. This
385+
# field will not match on a request unless frontend mutual TLS is enabled for
386+
# the forwarding rule or Gateway and the client certificate has been
387+
# successfully validated by mTLS. Each identity is a string whose value is
388+
# matched against a list of URI SANs, DNS Name SANs, or the common name in the
389+
# client's certificate. A match happens when any principal matches with the rule.
390+
# Limited to 5 principals.
391+
# Corresponds to the JSON property `principals`
392+
# @return [Array<Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRulePrincipal>]
393+
attr_accessor :principals
394+
384395
# Optional. A list of resources to match against the resource of the source VM
385396
# of a request. Limited to 5 resources.
386397
# Corresponds to the JSON property `resources`
@@ -394,6 +405,7 @@ def initialize(**args)
394405
# Update properties of this object
395406
def update!(**args)
396407
@ip_blocks = args[:ip_blocks] if args.key?(:ip_blocks)
408+
@principals = args[:principals] if args.key?(:principals)
397409
@resources = args[:resources] if args.key?(:resources)
398410
end
399411
end
@@ -448,6 +460,32 @@ def update!(**args)
448460
end
449461
end
450462

463+
# Describes the properties of a principal to be matched against.
464+
class AuthzPolicyAuthzRulePrincipal
465+
include Google::Apis::Core::Hashable
466+
467+
# Determines how a string value should be matched.
468+
# Corresponds to the JSON property `principal`
469+
# @return [Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRuleStringMatch]
470+
attr_accessor :principal
471+
472+
# Optional. An enum to decide what principal value the principal rule will match
473+
# against. If not specified, the PrincipalSelector is CLIENT_CERT_URI_SAN.
474+
# Corresponds to the JSON property `principalSelector`
475+
# @return [String]
476+
attr_accessor :principal_selector
477+
478+
def initialize(**args)
479+
update!(**args)
480+
end
481+
482+
# Update properties of this object
483+
def update!(**args)
484+
@principal = args[:principal] if args.key?(:principal)
485+
@principal_selector = args[:principal_selector] if args.key?(:principal_selector)
486+
end
487+
end
488+
451489
# Describes the properties of a client VM resource accessing the internal
452490
# application load balancers.
453491
class AuthzPolicyAuthzRuleRequestResource
@@ -757,7 +795,7 @@ def update!(**args)
757795
# certificates trusted by the TrustConfig. * `clientCertificate` is a client
758796
# certificate that the load balancer uses to express its identity to the backend,
759797
# if the connection to the backend uses mTLS. You can attach the
760-
# BackendAuthenticationConfig to the load balancers BackendService directly
798+
# BackendAuthenticationConfig to the load balancer's BackendService directly
761799
# determining how that BackendService negotiates TLS.
762800
class BackendAuthenticationConfig
763801
include Google::Apis::Core::Hashable
@@ -901,7 +939,7 @@ class ClientTlsPolicy
901939
attr_accessor :labels
902940

903941
# Required. Name of the ClientTlsPolicy resource. It matches the pattern `
904-
# projects/*/locations/`location`/clientTlsPolicies/`client_tls_policy``
942+
# projects/`project`/locations/`location`/clientTlsPolicies/`client_tls_policy``
905943
# Corresponds to the JSON property `name`
906944
# @return [String]
907945
attr_accessor :name

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.40.0"
19+
GEM_VERSION = "0.41.0"
2020

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

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

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
8282
include Google::Apis::Core::JsonObjectSupport
8383
end
8484

85+
class AuthzPolicyAuthzRulePrincipal
86+
class Representation < Google::Apis::Core::JsonRepresentation; end
87+
88+
include Google::Apis::Core::JsonObjectSupport
89+
end
90+
8591
class AuthzPolicyAuthzRuleRequestResource
8692
class Representation < Google::Apis::Core::JsonRepresentation; end
8793

@@ -760,6 +766,8 @@ class AuthzPolicyAuthzRuleFromRequestSource
760766
class Representation < Google::Apis::Core::JsonRepresentation
761767
collection :ip_blocks, as: 'ipBlocks', class: Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRuleIpBlock, decorator: Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRuleIpBlock::Representation
762768

769+
collection :principals, as: 'principals', class: Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRulePrincipal, decorator: Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRulePrincipal::Representation
770+
763771
collection :resources, as: 'resources', class: Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRuleRequestResource, decorator: Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRuleRequestResource::Representation
764772

765773
end
@@ -782,6 +790,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
782790
end
783791
end
784792

793+
class AuthzPolicyAuthzRulePrincipal
794+
# @private
795+
class Representation < Google::Apis::Core::JsonRepresentation
796+
property :principal, as: 'principal', class: Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRuleStringMatch, decorator: Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRuleStringMatch::Representation
797+
798+
property :principal_selector, as: 'principalSelector'
799+
end
800+
end
801+
785802
class AuthzPolicyAuthzRuleRequestResource
786803
# @private
787804
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2735,7 +2735,7 @@ def list_project_location_client_tls_policies(parent, page_size: nil, page_token
27352735
# Updates the parameters of a single ClientTlsPolicy.
27362736
# @param [String] name
27372737
# Required. Name of the ClientTlsPolicy resource. It matches the pattern `
2738-
# projects/*/locations/`location`/clientTlsPolicies/`client_tls_policy``
2738+
# projects/`project`/locations/`location`/clientTlsPolicies/`client_tls_policy``
27392739
# @param [Google::Apis::NetworksecurityV1::ClientTlsPolicy] client_tls_policy_object
27402740
# @param [String] update_mask
27412741
# Optional. Field mask is used to specify the fields to be overwritten in the

0 commit comments

Comments
 (0)