diff --git a/api_names_out.yaml b/api_names_out.yaml index 9432dbc325b..8f6e7d74005 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -91034,6 +91034,7 @@ "/compute:alpha/FirewallPolicyRuleMatcher/destFqdns/dest_fqdn": dest_fqdn "/compute:alpha/FirewallPolicyRuleMatcher/destIpRanges": dest_ip_ranges "/compute:alpha/FirewallPolicyRuleMatcher/destIpRanges/dest_ip_range": dest_ip_range +"/compute:alpha/FirewallPolicyRuleMatcher/destNetworkContext": dest_network_context "/compute:alpha/FirewallPolicyRuleMatcher/destNetworkScope": dest_network_scope "/compute:alpha/FirewallPolicyRuleMatcher/destNetworkType": dest_network_type "/compute:alpha/FirewallPolicyRuleMatcher/destRegionCodes": dest_region_codes @@ -91048,6 +91049,7 @@ "/compute:alpha/FirewallPolicyRuleMatcher/srcFqdns/src_fqdn": src_fqdn "/compute:alpha/FirewallPolicyRuleMatcher/srcIpRanges": src_ip_ranges "/compute:alpha/FirewallPolicyRuleMatcher/srcIpRanges/src_ip_range": src_ip_range +"/compute:alpha/FirewallPolicyRuleMatcher/srcNetworkContext": src_network_context "/compute:alpha/FirewallPolicyRuleMatcher/srcNetworkScope": src_network_scope "/compute:alpha/FirewallPolicyRuleMatcher/srcNetworkType": src_network_type "/compute:alpha/FirewallPolicyRuleMatcher/srcNetworks": src_networks @@ -94177,7 +94179,10 @@ "/compute:alpha/ManagedInstanceOverrideDiskOverride/mode": mode "/compute:alpha/ManagedInstanceOverrideDiskOverride/source": source "/compute:alpha/ManagedInstancePropertiesFromFlexibilityPolicy": managed_instance_properties_from_flexibility_policy +"/compute:alpha/ManagedInstancePropertiesFromFlexibilityPolicy/disks": disks +"/compute:alpha/ManagedInstancePropertiesFromFlexibilityPolicy/disks/disk": disk "/compute:alpha/ManagedInstancePropertiesFromFlexibilityPolicy/machineType": machine_type +"/compute:alpha/ManagedInstancePropertiesFromFlexibilityPolicy/minCpuPlatform": min_cpu_platform "/compute:alpha/ManagedInstancePropertiesFromFlexibilityPolicy/provisioningModel": provisioning_model "/compute:alpha/ManagedInstanceScheduling": managed_instance_scheduling "/compute:alpha/ManagedInstanceScheduling/terminationTimestamp": termination_timestamp @@ -99283,6 +99288,7 @@ "/compute:alpha/VpnGatewaysScopedList/warning/data/datum/value": value "/compute:alpha/VpnGatewaysScopedList/warning/message": message "/compute:alpha/VpnTunnel": vpn_tunnel +"/compute:alpha/VpnTunnel/capacityTier": capacity_tier "/compute:alpha/VpnTunnel/cipherSuite": cipher_suite "/compute:alpha/VpnTunnel/creationTimestamp": creation_timestamp "/compute:alpha/VpnTunnel/description": description @@ -103661,6 +103667,42 @@ "/compute:alpha/compute.regionOperations.wait/operation": operation "/compute:alpha/compute.regionOperations.wait/project": project "/compute:alpha/compute.regionOperations.wait/region": region +"/compute:alpha/compute.regionRecoverableSnapshots.delete": delete_region_recoverable_snapshot +"/compute:alpha/compute.regionRecoverableSnapshots.delete/project": project +"/compute:alpha/compute.regionRecoverableSnapshots.delete/recoverableSnapshot": recoverable_snapshot +"/compute:alpha/compute.regionRecoverableSnapshots.delete/region": region +"/compute:alpha/compute.regionRecoverableSnapshots.delete/requestId": request_id +"/compute:alpha/compute.regionRecoverableSnapshots.get": get_region_recoverable_snapshot +"/compute:alpha/compute.regionRecoverableSnapshots.get/project": project +"/compute:alpha/compute.regionRecoverableSnapshots.get/recoverableSnapshot": recoverable_snapshot +"/compute:alpha/compute.regionRecoverableSnapshots.get/region": region +"/compute:alpha/compute.regionRecoverableSnapshots.getIamPolicy": get_region_recoverable_snapshot_iam_policy +"/compute:alpha/compute.regionRecoverableSnapshots.getIamPolicy/optionsRequestedPolicyVersion": options_requested_policy_version +"/compute:alpha/compute.regionRecoverableSnapshots.getIamPolicy/project": project +"/compute:alpha/compute.regionRecoverableSnapshots.getIamPolicy/region": region +"/compute:alpha/compute.regionRecoverableSnapshots.getIamPolicy/resource": resource +"/compute:alpha/compute.regionRecoverableSnapshots.list": list_region_recoverable_snapshots +"/compute:alpha/compute.regionRecoverableSnapshots.list/filter": filter +"/compute:alpha/compute.regionRecoverableSnapshots.list/maxResults": max_results +"/compute:alpha/compute.regionRecoverableSnapshots.list/orderBy": order_by +"/compute:alpha/compute.regionRecoverableSnapshots.list/pageToken": page_token +"/compute:alpha/compute.regionRecoverableSnapshots.list/project": project +"/compute:alpha/compute.regionRecoverableSnapshots.list/region": region +"/compute:alpha/compute.regionRecoverableSnapshots.list/returnPartialSuccess": return_partial_success +"/compute:alpha/compute.regionRecoverableSnapshots.recover": recover_region_recoverable_snapshot +"/compute:alpha/compute.regionRecoverableSnapshots.recover/project": project +"/compute:alpha/compute.regionRecoverableSnapshots.recover/recoverableSnapshot": recoverable_snapshot +"/compute:alpha/compute.regionRecoverableSnapshots.recover/region": region +"/compute:alpha/compute.regionRecoverableSnapshots.recover/requestId": request_id +"/compute:alpha/compute.regionRecoverableSnapshots.recover/snapshotName": snapshot_name +"/compute:alpha/compute.regionRecoverableSnapshots.setIamPolicy": set_region_recoverable_snapshot_iam_policy +"/compute:alpha/compute.regionRecoverableSnapshots.setIamPolicy/project": project +"/compute:alpha/compute.regionRecoverableSnapshots.setIamPolicy/region": region +"/compute:alpha/compute.regionRecoverableSnapshots.setIamPolicy/resource": resource +"/compute:alpha/compute.regionRecoverableSnapshots.testIamPermissions": test_region_recoverable_snapshot_iam_permissions +"/compute:alpha/compute.regionRecoverableSnapshots.testIamPermissions/project": project +"/compute:alpha/compute.regionRecoverableSnapshots.testIamPermissions/region": region +"/compute:alpha/compute.regionRecoverableSnapshots.testIamPermissions/resource": resource "/compute:alpha/compute.regionSecurityPolicies.addRule": add_region_security_policy_rule "/compute:alpha/compute.regionSecurityPolicies.addRule/project": project "/compute:alpha/compute.regionSecurityPolicies.addRule/region": region diff --git a/generated/google-apis-compute_alpha/CHANGELOG.md b/generated/google-apis-compute_alpha/CHANGELOG.md index faca4e7f751..6d3e1a1e156 100644 --- a/generated/google-apis-compute_alpha/CHANGELOG.md +++ b/generated/google-apis-compute_alpha/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-compute_alpha +### v0.126.0 (2025-11-09) + +* Regenerated from discovery document revision 20251031 + ### v0.125.0 (2025-10-26) * Regenerated from discovery document revision 20251019 diff --git a/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/classes.rb b/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/classes.rb index 069bce9393e..9878a7a72c4 100644 --- a/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/classes.rb +++ b/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/classes.rb @@ -14118,6 +14118,16 @@ class FirewallPolicyRuleMatcher # @return [Array] attr_accessor :dest_ip_ranges + # Network context of the traffic destination. Allowed values are: + # + # + # - UNSPECIFIED + # - INTERNET + # - NON_INTERNET + # Corresponds to the JSON property `destNetworkContext` + # @return [String] + attr_accessor :dest_network_context + # Network scope of the traffic destination. # Corresponds to the JSON property `destNetworkScope` # @return [String] @@ -14171,6 +14181,18 @@ class FirewallPolicyRuleMatcher # @return [Array] attr_accessor :src_ip_ranges + # Network context of the traffic source. Allowed values are: + # + # + # - UNSPECIFIED + # - INTERNET + # - INTRA_VPC + # - NON_INTERNET + # - VPC_NETWORKS + # Corresponds to the JSON property `srcNetworkContext` + # @return [String] + attr_accessor :src_network_context + # Network scope of the traffic source. # Corresponds to the JSON property `srcNetworkScope` # @return [String] @@ -14225,6 +14247,7 @@ def update!(**args) @dest_address_groups = args[:dest_address_groups] if args.key?(:dest_address_groups) @dest_fqdns = args[:dest_fqdns] if args.key?(:dest_fqdns) @dest_ip_ranges = args[:dest_ip_ranges] if args.key?(:dest_ip_ranges) + @dest_network_context = args[:dest_network_context] if args.key?(:dest_network_context) @dest_network_scope = args[:dest_network_scope] if args.key?(:dest_network_scope) @dest_network_type = args[:dest_network_type] if args.key?(:dest_network_type) @dest_region_codes = args[:dest_region_codes] if args.key?(:dest_region_codes) @@ -14233,6 +14256,7 @@ def update!(**args) @src_address_groups = args[:src_address_groups] if args.key?(:src_address_groups) @src_fqdns = args[:src_fqdns] if args.key?(:src_fqdns) @src_ip_ranges = args[:src_ip_ranges] if args.key?(:src_ip_ranges) + @src_network_context = args[:src_network_context] if args.key?(:src_network_context) @src_network_scope = args[:src_network_scope] if args.key?(:src_network_scope) @src_network_type = args[:src_network_type] if args.key?(:src_network_type) @src_networks = args[:src_networks] if args.key?(:src_networks) @@ -21688,7 +21712,7 @@ class HttpHeaderMatch # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or # rangeMatch must be set. # Regular expressions can only be used when the loadBalancingScheme is - # set to INTERNAL_SELF_MANAGED. + # set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. # Corresponds to the JSON property `regexMatch` # @return [String] attr_accessor :regex_match @@ -22032,7 +22056,7 @@ class HttpQueryParameterMatch # more information about regular expression syntax, see Syntax. # Only one of presentMatch, exactMatch, orregexMatch must be set. # Regular expressions can only be used when the loadBalancingScheme is - # set to INTERNAL_SELF_MANAGED. + # set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. # Corresponds to the JSON property `regexMatch` # @return [String] attr_accessor :regex_match @@ -22424,7 +22448,8 @@ class HttpRouteRuleMatch # any query parameters and anchor # that may be part of the original URL. # fullPathMatch must be from 1 to 1024 characters. - # Only one of prefixMatch, fullPathMatch or regexMatch must be + # Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must + # be # specified. # Corresponds to the JSON property `fullPathMatch` # @return [String] @@ -22488,7 +22513,9 @@ class HttpRouteRuleMatch # For satisfying the matchRule condition, the request's # path must begin with the specified prefixMatch.prefixMatch must begin with a /. # The value must be from 1 to 1024 characters. - # Only one of prefixMatch, fullPathMatch or regexMatch must be + # Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must + # be + # specified. # specified. # Corresponds to the JSON property `prefixMatch` # @return [String] @@ -22506,10 +22533,11 @@ class HttpRouteRuleMatch # removing any query parameters and anchor # supplied with the original URL. For # more information about regular expression syntax, see Syntax. - # Only one of prefixMatch, fullPathMatch orregexMatch must be + # Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must + # be # specified. # Regular expressions can only be used when the loadBalancingScheme is - # set to INTERNAL_SELF_MANAGED. + # set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. # Corresponds to the JSON property `regexMatch` # @return [String] attr_accessor :regex_match @@ -37999,11 +38027,22 @@ def update!(**args) class ManagedInstancePropertiesFromFlexibilityPolicy include Google::Apis::Core::Hashable + # List of disks to be attached to the instance. + # Corresponds to the JSON property `disks` + # @return [Array] + attr_accessor :disks + # The machine type to be used for this instance. # Corresponds to the JSON property `machineType` # @return [String] attr_accessor :machine_type + # Name of the minimum CPU platform to be used by this instance. + # e.g. 'Intel Ice Lake'. + # Corresponds to the JSON property `minCpuPlatform` + # @return [String] + attr_accessor :min_cpu_platform + # The provisioning model to be used for this instance. # Corresponds to the JSON property `provisioningModel` # @return [String] @@ -38015,7 +38054,9 @@ def initialize(**args) # Update properties of this object def update!(**args) + @disks = args[:disks] if args.key?(:disks) @machine_type = args[:machine_type] if args.key?(:machine_type) + @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) @provisioning_model = args[:provisioning_model] if args.key?(:provisioning_model) end end @@ -42733,16 +42774,6 @@ class NetworkPolicyTrafficClassificationRuleAction # @return [Fixnum] attr_accessor :dscp_value - # The field type could be one of: TRAFFIC_CLASS or DSCP. - # Corresponds to the JSON property `fieldType` - # @return [String] - attr_accessor :field_type - - # For field_type = TRAFFIC_CLASS: 1 to 6. For field_type = DSCP: 0 to 63. - # Corresponds to the JSON property `fieldValue` - # @return [Fixnum] - attr_accessor :field_value - # The traffic class that should be applied to the matching packet. # Corresponds to the JSON property `trafficClass` # @return [String] @@ -42761,8 +42792,6 @@ def initialize(**args) def update!(**args) @dscp_mode = args[:dscp_mode] if args.key?(:dscp_mode) @dscp_value = args[:dscp_value] if args.key?(:dscp_value) - @field_type = args[:field_type] if args.key?(:field_type) - @field_value = args[:field_value] if args.key?(:field_value) @traffic_class = args[:traffic_class] if args.key?(:traffic_class) @type = args[:type] if args.key?(:type) end @@ -50331,16 +50360,19 @@ def update!(**args) end end - # + # [Output only] Result of queuing and provisioning based on deferred + # capacity. class QueuedResourceStatus include Google::Apis::Core::Hashable - # + # Additional status detail for the FAILED state. # Corresponds to the JSON property `failedData` # @return [Google::Apis::ComputeAlpha::QueuedResourceStatusFailedData] attr_accessor :failed_data - # + # [Output only] Fully qualified URL of the provisioning GCE operation to + # track the provisioning along with provisioning errors. The referenced + # operation may not exist after having been deleted or expired. # Corresponds to the JSON property `provisioningOperations` # @return [Array] attr_accessor :provisioning_operations @@ -50362,11 +50394,11 @@ def update!(**args) end end - # + # Additional status detail for the FAILED state. class QueuedResourceStatusFailedData include Google::Apis::Core::Hashable - # + # The error(s) that caused the QueuedResource to enter the FAILED state. # Corresponds to the JSON property `error` # @return [Google::Apis::ComputeAlpha::QueuedResourceStatusFailedData::Error] attr_accessor :error @@ -50380,7 +50412,7 @@ def update!(**args) @error = args[:error] if args.key?(:error) end - # + # The error(s) that caused the QueuedResource to enter the FAILED state. class Error include Google::Apis::Core::Hashable @@ -57501,8 +57533,7 @@ class Rollout attr_accessor :rollout_entity # Required. Rollout Plan used to model the Rollout. - # Ex. progressiverollout.googleapis.com/v1/organizations/1/rolloutPlans - # Ex. progressiverollout.googleapis.com/v1/folders/1/rolloutPlans + # Ex. compute.googleapis.com/v1/projects/1234/rolloutPlans/rp1 # Corresponds to the JSON property `rolloutPlan` # @return [String] attr_accessor :rollout_plan @@ -58095,10 +58126,9 @@ class RolloutRolloutEntityOrchestratedEntity # is applied across regions, this contains the name of the global # resource created by the user which contains a payload for a resource # that is orchestrated across regions. This follows the following format: - # //.googleapis.com/organizations//locations/global// + # //.googleapis.com/projects//locations/global// # e.g. - # //osconfig.googleapis.com/organizations/1/locations/global/policyOrchestrators/ - # po1 + # //osconfig.googleapis.com/projects/1/locations/global/policyOrchestrators/po1 # Corresponds to the JSON property `orchestrationSource` # @return [String] attr_accessor :orchestration_source @@ -77639,6 +77669,12 @@ def update!(**args) class VpnTunnel include Google::Apis::Core::Hashable + # Capacity tier of the VPN tunnel. This is used for IPsec over Interconnect + # tunnels to indicate different bandwidth limits. + # Corresponds to the JSON property `capacityTier` + # @return [String] + attr_accessor :capacity_tier + # User specified list of ciphers to use for the phase 1 and phase 2 of the # IKE protocol. # Corresponds to the JSON property `cipherSuite` @@ -77861,6 +77897,7 @@ def initialize(**args) # Update properties of this object def update!(**args) + @capacity_tier = args[:capacity_tier] if args.key?(:capacity_tier) @cipher_suite = args[:cipher_suite] if args.key?(:cipher_suite) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) diff --git a/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/gem_version.rb b/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/gem_version.rb index 036de7ccb7b..2f6c8675aee 100644 --- a/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/gem_version.rb +++ b/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module ComputeAlpha # Version of the google-apis-compute_alpha gem - GEM_VERSION = "0.125.0" + GEM_VERSION = "0.126.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20251019" + REVISION = "20251031" end end end diff --git a/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/representations.rb b/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/representations.rb index d851e0ed521..4269917a251 100644 --- a/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/representations.rb +++ b/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/representations.rb @@ -12970,6 +12970,7 @@ class Representation < Google::Apis::Core::JsonRepresentation collection :dest_address_groups, as: 'destAddressGroups' collection :dest_fqdns, as: 'destFqdns' collection :dest_ip_ranges, as: 'destIpRanges' + property :dest_network_context, as: 'destNetworkContext' property :dest_network_scope, as: 'destNetworkScope' property :dest_network_type, as: 'destNetworkType' collection :dest_region_codes, as: 'destRegionCodes' @@ -12979,6 +12980,7 @@ class Representation < Google::Apis::Core::JsonRepresentation collection :src_address_groups, as: 'srcAddressGroups' collection :src_fqdns, as: 'srcFqdns' collection :src_ip_ranges, as: 'srcIpRanges' + property :src_network_context, as: 'srcNetworkContext' property :src_network_scope, as: 'srcNetworkScope' property :src_network_type, as: 'srcNetworkType' collection :src_networks, as: 'srcNetworks' @@ -18538,7 +18540,10 @@ class Representation < Google::Apis::Core::JsonRepresentation class ManagedInstancePropertiesFromFlexibilityPolicy # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :disks, as: 'disks', class: Google::Apis::ComputeAlpha::AttachedDisk, decorator: Google::Apis::ComputeAlpha::AttachedDisk::Representation + property :machine_type, as: 'machineType' + property :min_cpu_platform, as: 'minCpuPlatform' property :provisioning_model, as: 'provisioningModel' end end @@ -19656,8 +19661,6 @@ class NetworkPolicyTrafficClassificationRuleAction class Representation < Google::Apis::Core::JsonRepresentation property :dscp_mode, as: 'dscpMode' property :dscp_value, as: 'dscpValue' - property :field_type, as: 'fieldType' - property :field_value, as: 'fieldValue' property :traffic_class, as: 'trafficClass' property :type, as: 'type' end @@ -28050,6 +28053,7 @@ class Representation < Google::Apis::Core::JsonRepresentation class VpnTunnel # @private class Representation < Google::Apis::Core::JsonRepresentation + property :capacity_tier, as: 'capacityTier' property :cipher_suite, as: 'cipherSuite', class: Google::Apis::ComputeAlpha::VpnTunnelCipherSuite, decorator: Google::Apis::ComputeAlpha::VpnTunnelCipherSuite::Representation property :creation_timestamp, as: 'creationTimestamp' diff --git a/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/service.rb b/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/service.rb index 8b7a326eaf2..d0cfdb9072c 100644 --- a/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/service.rb +++ b/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/service.rb @@ -31234,8 +31234,10 @@ def list_node_types(project, zone, filter: nil, max_results: nil, order_by: nil, # This has billing implications. Projects in the hierarchy with effective # hierarchical security policies will be automatically enrolled into Cloud # Armor Enterprise if not already enrolled. - # Use of this API to modify firewall policies is deprecated. Use - # firewallPolicies.addAssociation instead if possible. + # Use this API to modify Cloud Armor policies. Previously, alpha and beta + # versions of this API were used to modify firewall policies. This usage is + # now disabled for most organizations. Use firewallPolicies.addAssociation + # instead. # @param [String] security_policy # Name of the security policy to update. # @param [Google::Apis::ComputeAlpha::SecurityPolicyAssociation] security_policy_association_object @@ -31290,6 +31292,9 @@ def add_organization_security_policy_association(security_policy, security_polic end # Inserts a rule into a security policy. + # Use this API to modify Cloud Armor policies. Previously, alpha and beta + # versions of this API were used to modify firewall policies. This usage is + # now disabled for most organizations. Use firewallPolicies.addRule instead. # @param [String] security_policy # Name of the security policy to update. # @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_object @@ -31339,8 +31344,10 @@ def add_organization_security_policy_rule(security_policy, security_policy_rule_ end # Copies rules to the specified security policy. - # Use of this API to modify firewall policies is deprecated. Use - # firewallPolicies.copyRules instead. + # Use this API to modify Cloud Armor policies. Previously, alpha and beta + # versions of this API were used to modify firewall policies. This usage is + # now disabled for most organizations. Use firewallPolicies.cloneRules + # instead. # @param [String] security_policy # Name of the security policy to update. # @param [String] request_id @@ -31390,8 +31397,9 @@ def copy_organization_security_policy_rules(security_policy, request_id: nil, so end # Deletes the specified policy. - # Use of this API to remove firewall policies is deprecated. Use - # firewallPolicies.delete instead. + # Use this API to remove Cloud Armor policies. Previously, alpha and beta + # versions of this API were used to remove firewall policies. This usage is + # now disabled for most organizations. Use firewallPolicies.delete instead. # @param [String] security_policy # Name of the security policy to delete. # @param [String] request_id @@ -31438,8 +31446,9 @@ def delete_organization_security_policy(security_policy, request_id: nil, fields end # List all of the ordered rules present in a single specified policy. - # Use of this API to read firewall policies is deprecated. Use - # firewallPolicies.get instead. + # Use this API to read Cloud Armor policies. Previously, alpha and beta + # versions of this API were used to read firewall policies. This usage is now + # disabled for most organizations. Use firewallPolicies.get instead. # @param [String] security_policy # Name of the security policy to get. # @param [String] fields @@ -31473,8 +31482,10 @@ def get_organization_security_policy(security_policy, fields: nil, quota_user: n end # Gets an association with the specified name. - # Use of this API to read firewall policies is deprecated. Use - # firewallPolicies.getAssociation instead if possible. + # Use this API to read Cloud Armor policies. Previously, alpha and beta + # versions of this API were used to read firewall policies. This usage is + # now disabled for most organizations. Use firewallPolicies.getAssociation + # instead. # @param [String] security_policy # Name of the security policy to which the queried rule belongs. # @param [String] name @@ -31511,8 +31522,9 @@ def get_organization_security_policy_association(security_policy, name: nil, fie end # Gets a rule at the specified priority. - # Use of this API to read firewall policies is deprecated. Use - # firewallPolicies.getRule instead. + # Use this API to read Cloud Armor policies. Previously, alpha and beta + # versions of this API were used to read firewall policies. This usage is now + # disabled for most organizations. Use firewallPolicies.getRule instead. # @param [String] security_policy # Name of the security policy to which the queried rule belongs. # @param [Fixnum] priority @@ -31550,8 +31562,9 @@ def get_organization_security_policy_rule(security_policy, priority: nil, fields # Creates a new policy in the specified organization using the data included # in the request. - # Use of this API to insert firewall policies is deprecated. Use - # firewallPolicies.insert instead. + # Use this API to add Cloud Armor policies. Previously, alpha and beta + # versions of this API were used to add firewall policies. This usage is now + # disabled for most organizations. Use firewallPolicies.insert instead. # @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object # @param [String] parent_id # Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" @@ -31604,8 +31617,9 @@ def insert_organization_security_policy(security_policy_object = nil, parent_id: # List all the policies that have been configured for the specified # organization. - # Use of this API to read firewall policies is deprecated. Use - # firewallPolicies.list instead. + # Use this API to read Cloud Armor policies. Previously, alpha and beta + # versions of this API were used to read firewall policies. This usage is now + # disabled for most organizations. Use firewallPolicies.list instead. # @param [String] filter # A filter expression that filters resources listed in the response. Most # Compute resources support two types of filter expressions: @@ -31720,8 +31734,10 @@ def list_organization_security_policies(filter: nil, max_results: nil, order_by: end # Lists associations of a specified target, i.e., organization or folder. - # Use of this API to read firewall policies is deprecated. Use - # firewallPolicies.listAssociations instead if possible. + # Use this API to read Cloud Armor policies. Previously, alpha and beta + # versions of this API were used to read firewall policies. This usage is + # now disabled for most organizations. Use firewallPolicies.listAssociations + # instead. # @param [String] target_resource # The target resource to list associations. It is an organization, or a # folder. @@ -31871,8 +31887,9 @@ def list_organization_security_policy_preconfigured_expression_sets(filter: nil, end # Moves the specified security policy. - # Use of this API to modify firewall policies is deprecated. Use - # firewallPolicies.move instead. + # Use this API to modify Cloud Armor policies. Previously, alpha and beta + # versions of this API were used to modify firewall policies. This usage is + # now disabled for most organizations. Use firewallPolicies.move instead. # @param [String] security_policy # Name of the security policy to update. # @param [String] parent_id @@ -31922,8 +31939,9 @@ def move_organization_security_policy(security_policy, parent_id: nil, request_i end # Patches the specified policy with the data included in the request. - # Use of this API to modify firewall policies is deprecated. Use - # firewallPolicies.patch instead. + # Use this API to modify Cloud Armor policies. Previously, alpha and beta + # versions of this API were used to modify firewall policies. This usage is + # now disabled for most organizations. Use firewallPolicies.patch instead. # @param [String] security_policy # Name of the security policy to update. # @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object @@ -31976,8 +31994,10 @@ def patch_organization_security_policy(security_policy, security_policy_object = end # Patches a rule at the specified priority. - # Use of this API to modify firewall policies is deprecated. Use - # firewallPolicies.patchRule instead. + # Use this API to modify Cloud Armor policies. Previously, alpha and beta + # versions of this API were used to modify firewall policies. This usage is + # now disabled for most organizations. Use firewallPolicies.patchRule + # instead. # @param [String] security_policy # Name of the security policy to update. # @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_object @@ -32033,8 +32053,10 @@ def patch_organization_security_policy_rule(security_policy, security_policy_rul end # Removes an association for the specified security policy. - # Use of this API to modify firewall policies is deprecated. Use - # firewallPolicies.removeAssociation instead if possible. + # Use this API to modify Cloud Armor policies. Previously, alpha and beta + # versions of this API were used to modify firewall policies. This usage is + # now disabled for most organizations. Use firewallPolicies.removeAssociation + # instead. # @param [String] security_policy # Name of the security policy to update. # @param [String] name @@ -32084,6 +32106,10 @@ def remove_organization_security_policy_association(security_policy, name: nil, end # Deletes a rule at the specified priority. + # Use this API to modify Cloud Armor policies. Previously, alpha and beta + # versions of this API were used to modify firewall policies. This usage is + # now disabled for most organizations. Use firewallPolicies.removeRule + # instead. # @param [String] security_policy # Name of the security policy to update. # @param [Fixnum] priority @@ -48463,6 +48489,405 @@ def wait_region_operation(project, region, operation, fields: nil, quota_user: n execute_or_queue_command(command, &block) end + # Deletes the specified RecoverableSnapshot. Deleting a recoverable snapshot + # will delete the underlying PD snapshot and is irreversible. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [String] recoverable_snapshot + # Name of the recoverable Snapshot resource to delete. + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and + # the request times out. If you make the request again with the same + # request ID, the server can check if original operation with the same + # request ID was received, and if so, will ignore the second request. This + # prevents clients from accidentally creating duplicate commitments. + # The request ID must be + # a valid UUID with the exception that zero UUID is not supported + # (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_region_recoverable_snapshot(project, region, recoverable_snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/recoverableSnapshots/{recoverableSnapshot}', options) + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['recoverableSnapshot'] = recoverable_snapshot unless recoverable_snapshot.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified RecoverableSnapshot resource. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [String] recoverable_snapshot + # Name of the Snapshot resource to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::RecoverableSnapshot] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::RecoverableSnapshot] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_region_recoverable_snapshot(project, region, recoverable_snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/recoverableSnapshots/{recoverableSnapshot}', options) + command.response_representation = Google::Apis::ComputeAlpha::RecoverableSnapshot::Representation + command.response_class = Google::Apis::ComputeAlpha::RecoverableSnapshot + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['recoverableSnapshot'] = recoverable_snapshot unless recoverable_snapshot.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets the access control policy for a resource. May be empty if no such + # policy or resource exists. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_region_recoverable_snapshot_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/recoverableSnapshots/{resource}/getIamPolicy', options) + command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation + command.response_class = Google::Apis::ComputeAlpha::Policy + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the list of RecoverableSnapshot resources contained within + # the specified region. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. Most + # Compute resources support two types of filter expressions: + # expressions that support regular expressions and expressions that follow + # API improvement proposal AIP-160. + # These two types of filter expressions cannot be mixed in one request. + # If you want to use AIP-160, your expression must specify the field name, an + # operator, and the value that you want to use for filtering. The value + # must be a string, a number, or a boolean. The operator + # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + # For example, if you are filtering Compute Engine instances, you can + # exclude instances named `example-instance` by specifying + # `name != example-instance`. + # The `:*` comparison can be used to test whether a key has been defined. + # For example, to find all objects with `owner` label use: + # ``` + # labels.owner:* + # ``` + # You can also filter nested fields. For example, you could specify + # `scheduling.automaticRestart = false` to include instances only + # if they are not scheduled for automatic restarts. You can use filtering + # on nested fields to filter based onresource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example: + # ``` + # (scheduling.automaticRestart = true) + # (cpuPlatform = "Intel Skylake") + # ``` + # By default, each expression is an `AND` expression. However, you + # can include `AND` and `OR` expressions explicitly. + # For example: + # ``` + # (cpuPlatform = "Intel Skylake") OR + # (cpuPlatform = "Intel Broadwell") AND + # (scheduling.automaticRestart = true) + # ``` + # If you want to use a regular expression, use the `eq` (equal) or `ne` + # (not equal) operator against a single un-parenthesized expression with or + # without quotes or against multiple parenthesized expressions. Examples: + # `fieldname eq unquoted literal` + # `fieldname eq 'single quoted literal'` + # `fieldname eq "double quoted literal"` + # `(fieldname1 eq literal) (fieldname2 ne "literal")` + # The literal value is interpreted as a regular expression using GoogleRE2 + # library syntax. + # The literal value must match the entire field. + # For example, to filter for instances that do not end with name "instance", + # you would use `name ne .*instance`. + # You cannot combine constraints on multiple fields using regular + # expressions. + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. + # If the number of available results is larger than `maxResults`, + # Compute Engine returns a `nextPageToken` that can be used to get + # the next page of results in subsequent list requests. Acceptable values are + # `0` to `500`, inclusive. (Default: `500`) + # @param [String] order_by + # Sorts list results by a certain order. By default, results + # are returned in alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation + # timestamp using `orderBy="creationTimestamp desc"`. This sorts + # results based on the `creationTimestamp` field in + # reverse chronological order (newest result first). Use this to sort + # resources like operations so that the newest operation is returned first. + # Currently, only sorting by `name` or + # `creationTimestamp desc` is supported. + # @param [String] page_token + # Specifies a page token to use. Set `pageToken` to the + # `nextPageToken` returned by a previous list request to get + # the next page of results. + # @param [Boolean] return_partial_success + # Opt-in for partial success behavior which provides partial results in case + # of failure. The default value is false. + # For example, when partial success behavior is enabled, aggregatedList for a + # single zone scope either returns all resources in the zone or no resources, + # with an error code. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::RecoverableSnapshotList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::RecoverableSnapshotList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_region_recoverable_snapshots(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/recoverableSnapshots', options) + command.response_representation = Google::Apis::ComputeAlpha::RecoverableSnapshotList::Representation + command.response_class = Google::Apis::ComputeAlpha::RecoverableSnapshotList + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Recovers the specified RecoverableSnapshot. + # @param [String] project + # Project Id of the request + # @param [String] region + # Name of the region for this request. + # @param [String] recoverable_snapshot + # Name of the recoverable resource to recover + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and + # the request times out. If you make the request again with the same + # request ID, the server can check if original operation with the same + # request ID was received, and if so, will ignore the second request. This + # prevents clients from accidentally creating duplicate commitments. + # The request ID must be + # a valid UUID with the exception that zero UUID is not supported + # (00000000-0000-0000-0000-000000000000). + # @param [String] snapshot_name + # Optional. Name of the snapshot after the recovery + # The name will be 1-63 characters long, and comply withRFC1035. + # Specifically, the name will be 1-63 characters long and match the regular + # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + # character will be a lowercase letter, and all following characters can be + # a dash, lowercase letter, or digit, except the last character, which cannot + # be a dash. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def recover_region_recoverable_snapshot(project, region, recoverable_snapshot, request_id: nil, snapshot_name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/recoverableSnapshots/{recoverableSnapshot}/recover', options) + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['recoverableSnapshot'] = recoverable_snapshot unless recoverable_snapshot.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['snapshotName'] = snapshot_name unless snapshot_name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Sets the access control policy on the specified resource. + # Replaces any existing policy. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_region_recoverable_snapshot_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/recoverableSnapshots/{resource}/setIamPolicy', options) + command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation + command.request_object = region_set_policy_request_object + command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation + command.response_class = Google::Apis::ComputeAlpha::Policy + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_region_recoverable_snapshot_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/recoverableSnapshots/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Inserts a rule into a security policy. # @param [String] project # Project ID for this request.