Skip to content

Commit 0069065

Browse files
feat: Automated regeneration of networksecurity v1beta1 client (googleapis#23787)
Auto-created at 2025-07-27 10:16:31 +0000 using the toys pull request generator.
1 parent a87554c commit 0069065

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
@@ -293250,6 +293250,9 @@
293250293250
"/networksecurity:v1beta1/AuthzPolicyAuthzRuleIpBlock": authz_policy_authz_rule_ip_block
293251293251
"/networksecurity:v1beta1/AuthzPolicyAuthzRuleIpBlock/length": length
293252293252
"/networksecurity:v1beta1/AuthzPolicyAuthzRuleIpBlock/prefix": prefix
293253+
"/networksecurity:v1beta1/AuthzPolicyAuthzRulePrincipal": authz_policy_authz_rule_principal
293254+
"/networksecurity:v1beta1/AuthzPolicyAuthzRulePrincipal/principal": principal
293255+
"/networksecurity:v1beta1/AuthzPolicyAuthzRulePrincipal/principalSelector": principal_selector
293253293256
"/networksecurity:v1beta1/AuthzPolicyAuthzRuleRequestResource": authz_policy_authz_rule_request_resource
293254293257
"/networksecurity:v1beta1/AuthzPolicyAuthzRuleRequestResource/iamServiceAccount": iam_service_account
293255293258
"/networksecurity:v1beta1/AuthzPolicyAuthzRuleRequestResource/tagValueIdSet": tag_value_id_set

generated/google-apis-networksecurity_v1beta1/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_v1beta1
22

3+
### v0.51.0 (2025-07-27)
4+
5+
* Regenerated from discovery document revision 20250714
6+
37
### v0.50.0 (2025-07-06)
48

59
* Regenerated from discovery document revision 20250608

generated/google-apis-networksecurity_v1beta1/lib/google/apis/networksecurity_v1beta1/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::NetworksecurityV1beta1::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::NetworksecurityV1beta1::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::NetworksecurityV1beta1::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_v1beta1/lib/google/apis/networksecurity_v1beta1/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 NetworksecurityV1beta1
1818
# Version of the google-apis-networksecurity_v1beta1 gem
19-
GEM_VERSION = "0.50.0"
19+
GEM_VERSION = "0.51.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 = "20250608"
25+
REVISION = "20250714"
2626
end
2727
end
2828
end

generated/google-apis-networksecurity_v1beta1/lib/google/apis/networksecurity_v1beta1/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

@@ -802,6 +808,8 @@ class AuthzPolicyAuthzRuleFromRequestSource
802808
class Representation < Google::Apis::Core::JsonRepresentation
803809
collection :ip_blocks, as: 'ipBlocks', class: Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleIpBlock, decorator: Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleIpBlock::Representation
804810

811+
collection :principals, as: 'principals', class: Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRulePrincipal, decorator: Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRulePrincipal::Representation
812+
805813
collection :resources, as: 'resources', class: Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleRequestResource, decorator: Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleRequestResource::Representation
806814

807815
end
@@ -824,6 +832,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
824832
end
825833
end
826834

835+
class AuthzPolicyAuthzRulePrincipal
836+
# @private
837+
class Representation < Google::Apis::Core::JsonRepresentation
838+
property :principal, as: 'principal', class: Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleStringMatch, decorator: Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleStringMatch::Representation
839+
840+
property :principal_selector, as: 'principalSelector'
841+
end
842+
end
843+
827844
class AuthzPolicyAuthzRuleRequestResource
828845
# @private
829846
class Representation < Google::Apis::Core::JsonRepresentation

generated/google-apis-networksecurity_v1beta1/lib/google/apis/networksecurity_v1beta1/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::NetworksecurityV1beta1::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)