Skip to content

Commit b05257c

Browse files
feat: Automated regeneration of compute v1 client (#24895)
Auto-created at 2025-11-09 09:38:44 +0000 using the toys pull request generator.
1 parent d17953c commit b05257c

File tree

6 files changed

+76
-34
lines changed

6 files changed

+76
-34
lines changed

api_names_out.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124710,6 +124710,7 @@
124710124710
"/compute:v1/SecurityPolicy/labels": labels
124711124711
"/compute:v1/SecurityPolicy/labels/label": label
124712124712
"/compute:v1/SecurityPolicy/name": name
124713+
"/compute:v1/SecurityPolicy/parent": parent
124713124714
"/compute:v1/SecurityPolicy/recaptchaOptionsConfig": recaptcha_options_config
124714124715
"/compute:v1/SecurityPolicy/region": region
124715124716
"/compute:v1/SecurityPolicy/rules": rules

generated/google-apis-compute_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-compute_v1
22

3+
### v0.135.0 (2025-11-09)
4+
5+
* Regenerated from discovery document revision 20251031
6+
37
### v0.134.0 (2025-10-26)
48

59
* Regenerated from discovery document revision 20251019

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

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15847,7 +15847,7 @@ class HttpHeaderMatch
1584715847
# Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or
1584815848
# rangeMatch must be set.
1584915849
# Regular expressions can only be used when the loadBalancingScheme is
15850-
# set to INTERNAL_SELF_MANAGED.
15850+
# set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED.
1585115851
# Corresponds to the JSON property `regexMatch`
1585215852
# @return [String]
1585315853
attr_accessor :regex_match
@@ -16185,7 +16185,7 @@ class HttpQueryParameterMatch
1618516185
# more information about regular expression syntax, see Syntax.
1618616186
# Only one of presentMatch, exactMatch, orregexMatch must be set.
1618716187
# Regular expressions can only be used when the loadBalancingScheme is
16188-
# set to INTERNAL_SELF_MANAGED.
16188+
# set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED.
1618916189
# Corresponds to the JSON property `regexMatch`
1619016190
# @return [String]
1619116191
attr_accessor :regex_match
@@ -16552,7 +16552,8 @@ class HttpRouteRuleMatch
1655216552
# any query parameters and anchor
1655316553
# that may be part of the original URL.
1655416554
# fullPathMatch must be from 1 to 1024 characters.
16555-
# Only one of prefixMatch, fullPathMatch or regexMatch must be
16555+
# Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must
16556+
# be
1655616557
# specified.
1655716558
# Corresponds to the JSON property `fullPathMatch`
1655816559
# @return [String]
@@ -16616,7 +16617,9 @@ class HttpRouteRuleMatch
1661616617
# For satisfying the matchRule condition, the request's
1661716618
# path must begin with the specified prefixMatch.prefixMatch must begin with a /.
1661816619
# The value must be from 1 to 1024 characters.
16619-
# Only one of prefixMatch, fullPathMatch or regexMatch must be
16620+
# Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must
16621+
# be
16622+
# specified.
1662016623
# specified.
1662116624
# Corresponds to the JSON property `prefixMatch`
1662216625
# @return [String]
@@ -16634,10 +16637,11 @@ class HttpRouteRuleMatch
1663416637
# removing any query parameters and anchor
1663516638
# supplied with the original URL. For
1663616639
# more information about regular expression syntax, see Syntax.
16637-
# Only one of prefixMatch, fullPathMatch orregexMatch must be
16640+
# Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must
16641+
# be
1663816642
# specified.
1663916643
# Regular expressions can only be used when the loadBalancingScheme is
16640-
# set to INTERNAL_SELF_MANAGED.
16644+
# set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED.
1664116645
# Corresponds to the JSON property `regexMatch`
1664216646
# @return [String]
1664316647
attr_accessor :regex_match
@@ -47345,6 +47349,11 @@ class SecurityPolicy
4734547349
# @return [String]
4734647350
attr_accessor :name
4734747351

47352+
# [Output Only] The parent of the security policy.
47353+
# Corresponds to the JSON property `parent`
47354+
# @return [String]
47355+
attr_accessor :parent
47356+
4734847357
#
4734947358
# Corresponds to the JSON property `recaptchaOptionsConfig`
4735047359
# @return [Google::Apis::ComputeV1::SecurityPolicyRecaptchaOptionsConfig]
@@ -47442,6 +47451,7 @@ def update!(**args)
4744247451
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
4744347452
@labels = args[:labels] if args.key?(:labels)
4744447453
@name = args[:name] if args.key?(:name)
47454+
@parent = args[:parent] if args.key?(:parent)
4744547455
@recaptcha_options_config = args[:recaptcha_options_config] if args.key?(:recaptcha_options_config)
4744647456
@region = args[:region] if args.key?(:region)
4744747457
@rules = args[:rules] if args.key?(:rules)

generated/google-apis-compute_v1/lib/google/apis/compute_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 ComputeV1
1818
# Version of the google-apis-compute_v1 gem
19-
GEM_VERSION = "0.134.0"
19+
GEM_VERSION = "0.135.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 = "20251019"
25+
REVISION = "20251031"
2626
end
2727
end
2828
end

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18526,6 +18526,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
1852618526
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
1852718527
hash :labels, as: 'labels'
1852818528
property :name, as: 'name'
18529+
property :parent, as: 'parent'
1852918530
property :recaptcha_options_config, as: 'recaptchaOptionsConfig', class: Google::Apis::ComputeV1::SecurityPolicyRecaptchaOptionsConfig, decorator: Google::Apis::ComputeV1::SecurityPolicyRecaptchaOptionsConfig::Representation
1853018531

1853118532
property :region, as: 'region'

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

Lines changed: 52 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -27373,8 +27373,10 @@ def list_node_types(project, zone, filter: nil, max_results: nil, order_by: nil,
2737327373
# This has billing implications. Projects in the hierarchy with effective
2737427374
# hierarchical security policies will be automatically enrolled into Cloud
2737527375
# Armor Enterprise if not already enrolled.
27376-
# Use of this API to modify firewall policies is deprecated. Use
27377-
# firewallPolicies.addAssociation instead if possible.
27376+
# Use this API to modify Cloud Armor policies. Previously, alpha and beta
27377+
# versions of this API were used to modify firewall policies. This usage is
27378+
# now disabled for most organizations. Use firewallPolicies.addAssociation
27379+
# instead.
2737827380
# @param [String] security_policy
2737927381
# Name of the security policy to update.
2738027382
# @param [Google::Apis::ComputeV1::SecurityPolicyAssociation] security_policy_association_object
@@ -27429,6 +27431,9 @@ def add_organization_security_policy_association(security_policy, security_polic
2742927431
end
2743027432

2743127433
# Inserts a rule into a security policy.
27434+
# Use this API to modify Cloud Armor policies. Previously, alpha and beta
27435+
# versions of this API were used to modify firewall policies. This usage is
27436+
# now disabled for most organizations. Use firewallPolicies.addRule instead.
2743227437
# @param [String] security_policy
2743327438
# Name of the security policy to update.
2743427439
# @param [Google::Apis::ComputeV1::SecurityPolicyRule] security_policy_rule_object
@@ -27478,8 +27483,10 @@ def add_organization_security_policy_rule(security_policy, security_policy_rule_
2747827483
end
2747927484

2748027485
# Copies rules to the specified security policy.
27481-
# Use of this API to modify firewall policies is deprecated. Use
27482-
# firewallPolicies.copyRules instead.
27486+
# Use this API to modify Cloud Armor policies. Previously, alpha and beta
27487+
# versions of this API were used to modify firewall policies. This usage is
27488+
# now disabled for most organizations. Use firewallPolicies.cloneRules
27489+
# instead.
2748327490
# @param [String] security_policy
2748427491
# Name of the security policy to update.
2748527492
# @param [String] request_id
@@ -27529,8 +27536,9 @@ def copy_organization_security_policy_rules(security_policy, request_id: nil, so
2752927536
end
2753027537

2753127538
# Deletes the specified policy.
27532-
# Use of this API to remove firewall policies is deprecated. Use
27533-
# firewallPolicies.delete instead.
27539+
# Use this API to remove Cloud Armor policies. Previously, alpha and beta
27540+
# versions of this API were used to remove firewall policies. This usage is
27541+
# now disabled for most organizations. Use firewallPolicies.delete instead.
2753427542
# @param [String] security_policy
2753527543
# Name of the security policy to delete.
2753627544
# @param [String] request_id
@@ -27577,8 +27585,9 @@ def delete_organization_security_policy(security_policy, request_id: nil, fields
2757727585
end
2757827586

2757927587
# List all of the ordered rules present in a single specified policy.
27580-
# Use of this API to read firewall policies is deprecated. Use
27581-
# firewallPolicies.get instead.
27588+
# Use this API to read Cloud Armor policies. Previously, alpha and beta
27589+
# versions of this API were used to read firewall policies. This usage is now
27590+
# disabled for most organizations. Use firewallPolicies.get instead.
2758227591
# @param [String] security_policy
2758327592
# Name of the security policy to get.
2758427593
# @param [String] fields
@@ -27612,8 +27621,10 @@ def get_organization_security_policy(security_policy, fields: nil, quota_user: n
2761227621
end
2761327622

2761427623
# Gets an association with the specified name.
27615-
# Use of this API to read firewall policies is deprecated. Use
27616-
# firewallPolicies.getAssociation instead if possible.
27624+
# Use this API to read Cloud Armor policies. Previously, alpha and beta
27625+
# versions of this API were used to read firewall policies. This usage is
27626+
# now disabled for most organizations. Use firewallPolicies.getAssociation
27627+
# instead.
2761727628
# @param [String] security_policy
2761827629
# Name of the security policy to which the queried rule belongs.
2761927630
# @param [String] name
@@ -27650,8 +27661,9 @@ def get_organization_security_policy_association(security_policy, name: nil, fie
2765027661
end
2765127662

2765227663
# Gets a rule at the specified priority.
27653-
# Use of this API to read firewall policies is deprecated. Use
27654-
# firewallPolicies.getRule instead.
27664+
# Use this API to read Cloud Armor policies. Previously, alpha and beta
27665+
# versions of this API were used to read firewall policies. This usage is now
27666+
# disabled for most organizations. Use firewallPolicies.getRule instead.
2765527667
# @param [String] security_policy
2765627668
# Name of the security policy to which the queried rule belongs.
2765727669
# @param [Fixnum] priority
@@ -27689,8 +27701,9 @@ def get_organization_security_policy_rule(security_policy, priority: nil, fields
2768927701

2769027702
# Creates a new policy in the specified organization using the data included
2769127703
# in the request.
27692-
# Use of this API to insert firewall policies is deprecated. Use
27693-
# firewallPolicies.insert instead.
27704+
# Use this API to add Cloud Armor policies. Previously, alpha and beta
27705+
# versions of this API were used to add firewall policies. This usage is now
27706+
# disabled for most organizations. Use firewallPolicies.insert instead.
2769427707
# @param [Google::Apis::ComputeV1::SecurityPolicy] security_policy_object
2769527708
# @param [String] parent_id
2769627709
# Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]"
@@ -27743,8 +27756,9 @@ def insert_organization_security_policy(security_policy_object = nil, parent_id:
2774327756

2774427757
# List all the policies that have been configured for the specified
2774527758
# organization.
27746-
# Use of this API to read firewall policies is deprecated. Use
27747-
# firewallPolicies.list instead.
27759+
# Use this API to read Cloud Armor policies. Previously, alpha and beta
27760+
# versions of this API were used to read firewall policies. This usage is now
27761+
# disabled for most organizations. Use firewallPolicies.list instead.
2774827762
# @param [String] filter
2774927763
# A filter expression that filters resources listed in the response. Most
2775027764
# Compute resources support two types of filter expressions:
@@ -27859,8 +27873,10 @@ def list_organization_security_policies(filter: nil, max_results: nil, order_by:
2785927873
end
2786027874

2786127875
# Lists associations of a specified target, i.e., organization or folder.
27862-
# Use of this API to read firewall policies is deprecated. Use
27863-
# firewallPolicies.listAssociations instead if possible.
27876+
# Use this API to read Cloud Armor policies. Previously, alpha and beta
27877+
# versions of this API were used to read firewall policies. This usage is
27878+
# now disabled for most organizations. Use firewallPolicies.listAssociations
27879+
# instead.
2786427880
# @param [String] target_resource
2786527881
# The target resource to list associations. It is an organization, or a
2786627882
# folder.
@@ -28010,8 +28026,9 @@ def list_organization_security_policy_preconfigured_expression_sets(filter: nil,
2801028026
end
2801128027

2801228028
# Moves the specified security policy.
28013-
# Use of this API to modify firewall policies is deprecated. Use
28014-
# firewallPolicies.move instead.
28029+
# Use this API to modify Cloud Armor policies. Previously, alpha and beta
28030+
# versions of this API were used to modify firewall policies. This usage is
28031+
# now disabled for most organizations. Use firewallPolicies.move instead.
2801528032
# @param [String] security_policy
2801628033
# Name of the security policy to update.
2801728034
# @param [String] parent_id
@@ -28061,8 +28078,9 @@ def move_organization_security_policy(security_policy, parent_id: nil, request_i
2806128078
end
2806228079

2806328080
# Patches the specified policy with the data included in the request.
28064-
# Use of this API to modify firewall policies is deprecated. Use
28065-
# firewallPolicies.patch instead.
28081+
# Use this API to modify Cloud Armor policies. Previously, alpha and beta
28082+
# versions of this API were used to modify firewall policies. This usage is
28083+
# now disabled for most organizations. Use firewallPolicies.patch instead.
2806628084
# @param [String] security_policy
2806728085
# Name of the security policy to update.
2806828086
# @param [Google::Apis::ComputeV1::SecurityPolicy] security_policy_object
@@ -28112,8 +28130,10 @@ def patch_organization_security_policy(security_policy, security_policy_object =
2811228130
end
2811328131

2811428132
# Patches a rule at the specified priority.
28115-
# Use of this API to modify firewall policies is deprecated. Use
28116-
# firewallPolicies.patchRule instead.
28133+
# Use this API to modify Cloud Armor policies. Previously, alpha and beta
28134+
# versions of this API were used to modify firewall policies. This usage is
28135+
# now disabled for most organizations. Use firewallPolicies.patchRule
28136+
# instead.
2811728137
# @param [String] security_policy
2811828138
# Name of the security policy to update.
2811928139
# @param [Google::Apis::ComputeV1::SecurityPolicyRule] security_policy_rule_object
@@ -28166,8 +28186,10 @@ def patch_organization_security_policy_rule(security_policy, security_policy_rul
2816628186
end
2816728187

2816828188
# Removes an association for the specified security policy.
28169-
# Use of this API to modify firewall policies is deprecated. Use
28170-
# firewallPolicies.removeAssociation instead if possible.
28189+
# Use this API to modify Cloud Armor policies. Previously, alpha and beta
28190+
# versions of this API were used to modify firewall policies. This usage is
28191+
# now disabled for most organizations. Use firewallPolicies.removeAssociation
28192+
# instead.
2817128193
# @param [String] security_policy
2817228194
# Name of the security policy to update.
2817328195
# @param [String] name
@@ -28217,6 +28239,10 @@ def remove_organization_security_policy_association(security_policy, name: nil,
2821728239
end
2821828240

2821928241
# Deletes a rule at the specified priority.
28242+
# Use this API to modify Cloud Armor policies. Previously, alpha and beta
28243+
# versions of this API were used to modify firewall policies. This usage is
28244+
# now disabled for most organizations. Use firewallPolicies.removeRule
28245+
# instead.
2822028246
# @param [String] security_policy
2822128247
# Name of the security policy to update.
2822228248
# @param [Fixnum] priority

0 commit comments

Comments
 (0)