google-apis-compute_preview 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7576,11 +7576,12 @@ module Google
7576
7576
  execute_or_queue_command(command, &block)
7577
7577
  end
7578
7578
 
7579
- # Retrieves an aggregated list of forwarding rules.
7580
- # To prevent failure, it is recommended that you set the
7579
+ # Retrieves the list of all folder level VM Extension Policy resources
7580
+ # available to the specified folder.
7581
+ # To prevent failure, it's recommended that you set the
7581
7582
  # `returnPartialSuccess` parameter to `true`.
7582
- # @param [String] project
7583
- # Project ID for this request.
7583
+ # @param [String] folder
7584
+ # Folder ID for this request.
7584
7585
  # @param [String] filter
7585
7586
  # A filter expression that filters resources listed in the response. Most
7586
7587
  # Compute resources support two types of filter expressions:
@@ -7673,19 +7674,19 @@ module Google
7673
7674
  # Request-specific options
7674
7675
  #
7675
7676
  # @yield [result, err] Result & error if block supplied
7676
- # @yieldparam result [Google::Apis::ComputePreview::ForwardingRuleAggregatedList] parsed result object
7677
+ # @yieldparam result [Google::Apis::ComputePreview::FolderVmExtensionPolicyAggregatedListResponse] parsed result object
7677
7678
  # @yieldparam err [StandardError] error object if request failed
7678
7679
  #
7679
- # @return [Google::Apis::ComputePreview::ForwardingRuleAggregatedList]
7680
+ # @return [Google::Apis::ComputePreview::FolderVmExtensionPolicyAggregatedListResponse]
7680
7681
  #
7681
7682
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7682
7683
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7683
7684
  # @raise [Google::Apis::AuthorizationError] Authorization is required
7684
- def aggregated_forwarding_rule_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7685
- command = make_simple_command(:get, 'projects/{project}/aggregated/forwardingRules', options)
7686
- command.response_representation = Google::Apis::ComputePreview::ForwardingRuleAggregatedList::Representation
7687
- command.response_class = Google::Apis::ComputePreview::ForwardingRuleAggregatedList
7688
- command.params['project'] = project unless project.nil?
7685
+ def aggregated_folder_global_vm_extension_policy_list(folder, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7686
+ command = make_simple_command(:get, '{+folder}/aggregated/vmExtensionPolicies', options)
7687
+ command.response_representation = Google::Apis::ComputePreview::FolderVmExtensionPolicyAggregatedListResponse::Representation
7688
+ command.response_class = Google::Apis::ComputePreview::FolderVmExtensionPolicyAggregatedListResponse
7689
+ command.params['folder'] = folder unless folder.nil?
7689
7690
  command.query['filter'] = filter unless filter.nil?
7690
7691
  command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
7691
7692
  command.query['maxResults'] = max_results unless max_results.nil?
@@ -7699,13 +7700,17 @@ module Google
7699
7700
  execute_or_queue_command(command, &block)
7700
7701
  end
7701
7702
 
7702
- # Deletes the specified ForwardingRule resource.
7703
- # @param [String] project
7704
- # Project ID for this request.
7705
- # @param [String] region
7706
- # Name of the region scoping this request.
7707
- # @param [String] forwarding_rule
7708
- # Name of the ForwardingRule resource to delete.
7703
+ # Purge scoped resources (zonal policies) from a folder level global
7704
+ # VM extension policy, and then delete the global VM extension policy. Purge
7705
+ # of the scoped resources is a pre-condition of the global VM extension
7706
+ # policy deletion. The deletion of the global VM extension policy happens
7707
+ # after the purge rollout is done, so it's not a part of the LRO. It's an
7708
+ # automatic process that triggers in the backend.
7709
+ # @param [String] folder
7710
+ # Folder ID for this request.
7711
+ # @param [String] global_vm_extension_policy
7712
+ # Name of the global VM extension policy to purge scoped resources for.
7713
+ # @param [Google::Apis::ComputePreview::GlobalVmExtensionPolicyRolloutOperationRolloutInput] global_vm_extension_policy_rollout_operation_rollout_input_object
7709
7714
  # @param [String] request_id
7710
7715
  # An optional request ID to identify requests. Specify a unique request ID so
7711
7716
  # that if you must retry your request, the server will know to ignore the
@@ -7737,13 +7742,14 @@ module Google
7737
7742
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7738
7743
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7739
7744
  # @raise [Google::Apis::AuthorizationError] Authorization is required
7740
- def delete_forwarding_rule(project, region, forwarding_rule, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7741
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/forwardingRules/{forwardingRule}', options)
7745
+ def delete_folder_global_vm_extension_policy(folder, global_vm_extension_policy, global_vm_extension_policy_rollout_operation_rollout_input_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7746
+ command = make_simple_command(:post, '{+folder}/global/vmExtensionPolicies/{globalVmExtensionPolicy}/delete', options)
7747
+ command.request_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicyRolloutOperationRolloutInput::Representation
7748
+ command.request_object = global_vm_extension_policy_rollout_operation_rollout_input_object
7742
7749
  command.response_representation = Google::Apis::ComputePreview::Operation::Representation
7743
7750
  command.response_class = Google::Apis::ComputePreview::Operation
7744
- command.params['project'] = project unless project.nil?
7745
- command.params['region'] = region unless region.nil?
7746
- command.params['forwardingRule'] = forwarding_rule unless forwarding_rule.nil?
7751
+ command.params['folder'] = folder unless folder.nil?
7752
+ command.params['globalVmExtensionPolicy'] = global_vm_extension_policy unless global_vm_extension_policy.nil?
7747
7753
  command.query['requestId'] = request_id unless request_id.nil?
7748
7754
  command.query['fields'] = fields unless fields.nil?
7749
7755
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -7752,14 +7758,11 @@ module Google
7752
7758
  execute_or_queue_command(command, &block)
7753
7759
  end
7754
7760
 
7755
- # Returns the specified ForwardingRule resource.
7756
- # @param [String] project
7757
- # Project ID for this request.
7758
- # @param [String] region
7759
- # Name of the region scoping this request.
7760
- # @param [String] forwarding_rule
7761
- # Name of the ForwardingRule resource to return.
7762
- # @param [String] view
7761
+ # Gets details of a folder level GlobalVmExtensionPolicy.
7762
+ # @param [String] folder
7763
+ # Folder ID for this request.
7764
+ # @param [String] global_vm_extension_policy
7765
+ # Name of the GlobalVmExtensionPolicy resource to return.
7763
7766
  # @param [String] fields
7764
7767
  # Selector specifying which fields to include in a partial response.
7765
7768
  # @param [String] quota_user
@@ -7771,22 +7774,20 @@ module Google
7771
7774
  # Request-specific options
7772
7775
  #
7773
7776
  # @yield [result, err] Result & error if block supplied
7774
- # @yieldparam result [Google::Apis::ComputePreview::ForwardingRule] parsed result object
7777
+ # @yieldparam result [Google::Apis::ComputePreview::GlobalVmExtensionPolicy] parsed result object
7775
7778
  # @yieldparam err [StandardError] error object if request failed
7776
7779
  #
7777
- # @return [Google::Apis::ComputePreview::ForwardingRule]
7780
+ # @return [Google::Apis::ComputePreview::GlobalVmExtensionPolicy]
7778
7781
  #
7779
7782
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7780
7783
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7781
7784
  # @raise [Google::Apis::AuthorizationError] Authorization is required
7782
- def get_forwarding_rule(project, region, forwarding_rule, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7783
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/forwardingRules/{forwardingRule}', options)
7784
- command.response_representation = Google::Apis::ComputePreview::ForwardingRule::Representation
7785
- command.response_class = Google::Apis::ComputePreview::ForwardingRule
7786
- command.params['project'] = project unless project.nil?
7787
- command.params['region'] = region unless region.nil?
7788
- command.params['forwardingRule'] = forwarding_rule unless forwarding_rule.nil?
7789
- command.query['view'] = view unless view.nil?
7785
+ def get_folder_global_vm_extension_policy(folder, global_vm_extension_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7786
+ command = make_simple_command(:get, '{+folder}/global/vmExtensionPolicies/{globalVmExtensionPolicy}', options)
7787
+ command.response_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicy::Representation
7788
+ command.response_class = Google::Apis::ComputePreview::GlobalVmExtensionPolicy
7789
+ command.params['folder'] = folder unless folder.nil?
7790
+ command.params['globalVmExtensionPolicy'] = global_vm_extension_policy unless global_vm_extension_policy.nil?
7790
7791
  command.query['fields'] = fields unless fields.nil?
7791
7792
  command.query['quotaUser'] = quota_user unless quota_user.nil?
7792
7793
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -7794,13 +7795,47 @@ module Google
7794
7795
  execute_or_queue_command(command, &block)
7795
7796
  end
7796
7797
 
7797
- # Creates a ForwardingRule resource in the specified project and region using
7798
- # the data included in the request.
7799
- # @param [String] project
7800
- # Project ID for this request.
7801
- # @param [String] region
7802
- # Name of the region scoping this request.
7803
- # @param [Google::Apis::ComputePreview::ForwardingRule] forwarding_rule_object
7798
+ # Retrieves details of a specific VM extension.
7799
+ # @param [String] folder
7800
+ # Folder ID for this request.
7801
+ # @param [String] extension_name
7802
+ # Required. Name of the VM extension for this request.
7803
+ # @param [String] fields
7804
+ # Selector specifying which fields to include in a partial response.
7805
+ # @param [String] quota_user
7806
+ # Available to use for quota purposes for server-side applications. Can be any
7807
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7808
+ # @param [String] user_ip
7809
+ # Legacy name for parameter that has been superseded by `quotaUser`.
7810
+ # @param [Google::Apis::RequestOptions] options
7811
+ # Request-specific options
7812
+ #
7813
+ # @yield [result, err] Result & error if block supplied
7814
+ # @yieldparam result [Google::Apis::ComputePreview::GlobalVmExtension] parsed result object
7815
+ # @yieldparam err [StandardError] error object if request failed
7816
+ #
7817
+ # @return [Google::Apis::ComputePreview::GlobalVmExtension]
7818
+ #
7819
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7820
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7821
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7822
+ def get_folder_global_vm_extension_policy_vm_extension(folder, extension_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7823
+ command = make_simple_command(:get, '{+folder}/global/vmExtensions/{extensionName}', options)
7824
+ command.response_representation = Google::Apis::ComputePreview::GlobalVmExtension::Representation
7825
+ command.response_class = Google::Apis::ComputePreview::GlobalVmExtension
7826
+ command.params['folder'] = folder unless folder.nil?
7827
+ command.params['extensionName'] = extension_name unless extension_name.nil?
7828
+ command.query['fields'] = fields unless fields.nil?
7829
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7830
+ command.query['userIp'] = user_ip unless user_ip.nil?
7831
+ command.set_api_version_header "2026-10-01-preview"
7832
+ execute_or_queue_command(command, &block)
7833
+ end
7834
+
7835
+ # Creates a new folder level GlobalVmExtensionPolicy.
7836
+ # @param [String] folder
7837
+ # Folder ID for this request.
7838
+ # @param [Google::Apis::ComputePreview::GlobalVmExtensionPolicy] global_vm_extension_policy_object
7804
7839
  # @param [String] request_id
7805
7840
  # An optional request ID to identify requests. Specify a unique request ID so
7806
7841
  # that if you must retry your request, the server will know to ignore the
@@ -7832,14 +7867,13 @@ module Google
7832
7867
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7833
7868
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7834
7869
  # @raise [Google::Apis::AuthorizationError] Authorization is required
7835
- def insert_forwarding_rule(project, region, forwarding_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7836
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/forwardingRules', options)
7837
- command.request_representation = Google::Apis::ComputePreview::ForwardingRule::Representation
7838
- command.request_object = forwarding_rule_object
7870
+ def insert_folder_global_vm_extension_policy(folder, global_vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7871
+ command = make_simple_command(:post, '{+folder}/global/vmExtensionPolicies', options)
7872
+ command.request_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicy::Representation
7873
+ command.request_object = global_vm_extension_policy_object
7839
7874
  command.response_representation = Google::Apis::ComputePreview::Operation::Representation
7840
7875
  command.response_class = Google::Apis::ComputePreview::Operation
7841
- command.params['project'] = project unless project.nil?
7842
- command.params['region'] = region unless region.nil?
7876
+ command.params['folder'] = folder unless folder.nil?
7843
7877
  command.query['requestId'] = request_id unless request_id.nil?
7844
7878
  command.query['fields'] = fields unless fields.nil?
7845
7879
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -7848,12 +7882,9 @@ module Google
7848
7882
  execute_or_queue_command(command, &block)
7849
7883
  end
7850
7884
 
7851
- # Retrieves a list of ForwardingRule resources available to the specified
7852
- # project and region.
7853
- # @param [String] project
7854
- # Project ID for this request.
7855
- # @param [String] region
7856
- # Name of the region scoping this request.
7885
+ # Lists folder level GlobalVmExtensionPolicies.
7886
+ # @param [String] folder
7887
+ # Folder ID for this request.
7857
7888
  # @param [String] filter
7858
7889
  # A filter expression that filters resources listed in the response. Most
7859
7890
  # Compute resources support two types of filter expressions:
@@ -7935,20 +7966,19 @@ module Google
7935
7966
  # Request-specific options
7936
7967
  #
7937
7968
  # @yield [result, err] Result & error if block supplied
7938
- # @yieldparam result [Google::Apis::ComputePreview::ForwardingRuleList] parsed result object
7969
+ # @yieldparam result [Google::Apis::ComputePreview::GlobalVmExtensionPolicyList] parsed result object
7939
7970
  # @yieldparam err [StandardError] error object if request failed
7940
7971
  #
7941
- # @return [Google::Apis::ComputePreview::ForwardingRuleList]
7972
+ # @return [Google::Apis::ComputePreview::GlobalVmExtensionPolicyList]
7942
7973
  #
7943
7974
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7944
7975
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7945
7976
  # @raise [Google::Apis::AuthorizationError] Authorization is required
7946
- def list_forwarding_rules(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7947
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/forwardingRules', options)
7948
- command.response_representation = Google::Apis::ComputePreview::ForwardingRuleList::Representation
7949
- command.response_class = Google::Apis::ComputePreview::ForwardingRuleList
7950
- command.params['project'] = project unless project.nil?
7951
- command.params['region'] = region unless region.nil?
7977
+ def list_folder_global_vm_extension_policies(folder, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7978
+ command = make_simple_command(:get, '{+folder}/global/vmExtensionPolicies', options)
7979
+ command.response_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicyList::Representation
7980
+ command.response_class = Google::Apis::ComputePreview::GlobalVmExtensionPolicyList
7981
+ command.params['folder'] = folder unless folder.nil?
7952
7982
  command.query['filter'] = filter unless filter.nil?
7953
7983
  command.query['maxResults'] = max_results unless max_results.nil?
7954
7984
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -7960,30 +7990,80 @@ module Google
7960
7990
  execute_or_queue_command(command, &block)
7961
7991
  end
7962
7992
 
7963
- # Updates the specified forwarding rule with the data included in the
7964
- # request. This method supportsPATCH
7965
- # semantics and uses theJSON merge
7966
- # patch format and processing rules. Currently, you can only
7967
- # patch the network_tier field.
7968
- # @param [String] project
7969
- # Project ID for this request.
7970
- # @param [String] region
7971
- # Name of the region scoping this request.
7972
- # @param [String] forwarding_rule
7973
- # Name of the ForwardingRule resource to patch.
7974
- # @param [Google::Apis::ComputePreview::ForwardingRule] forwarding_rule_object
7975
- # @param [String] request_id
7976
- # An optional request ID to identify requests. Specify a unique request ID so
7977
- # that if you must retry your request, the server will know to ignore the
7978
- # request if it has already been completed.
7979
- # For example, consider a situation where you make an initial request and
7980
- # the request times out. If you make the request again with the same
7981
- # request ID, the server can check if original operation with the same
7982
- # request ID was received, and if so, will ignore the second request. This
7983
- # prevents clients from accidentally creating duplicate commitments.
7984
- # The request ID must be
7985
- # a valid UUID with the exception that zero UUID is not supported
7986
- # (00000000-0000-0000-0000-000000000000).
7993
+ # Lists all VM extensions within a folder.
7994
+ # This is a read-only API.
7995
+ # @param [String] folder
7996
+ # Required. Folder ID for this request.
7997
+ # @param [String] filter
7998
+ # A filter expression that filters resources listed in the response. Most
7999
+ # Compute resources support two types of filter expressions:
8000
+ # expressions that support regular expressions and expressions that follow
8001
+ # API improvement proposal AIP-160.
8002
+ # These two types of filter expressions cannot be mixed in one request.
8003
+ # If you want to use AIP-160, your expression must specify the field name, an
8004
+ # operator, and the value that you want to use for filtering. The value
8005
+ # must be a string, a number, or a boolean. The operator
8006
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
8007
+ # For example, if you are filtering Compute Engine instances, you can
8008
+ # exclude instances named `example-instance` by specifying
8009
+ # `name != example-instance`.
8010
+ # The `:*` comparison can be used to test whether a key has been defined.
8011
+ # For example, to find all objects with `owner` label use:
8012
+ # ```
8013
+ # labels.owner:*
8014
+ # ```
8015
+ # You can also filter nested fields. For example, you could specify
8016
+ # `scheduling.automaticRestart = false` to include instances only
8017
+ # if they are not scheduled for automatic restarts. You can use filtering
8018
+ # on nested fields to filter based onresource labels.
8019
+ # To filter on multiple expressions, provide each separate expression within
8020
+ # parentheses. For example:
8021
+ # ```
8022
+ # (scheduling.automaticRestart = true)
8023
+ # (cpuPlatform = "Intel Skylake")
8024
+ # ```
8025
+ # By default, each expression is an `AND` expression. However, you
8026
+ # can include `AND` and `OR` expressions explicitly.
8027
+ # For example:
8028
+ # ```
8029
+ # (cpuPlatform = "Intel Skylake") OR
8030
+ # (cpuPlatform = "Intel Broadwell") AND
8031
+ # (scheduling.automaticRestart = true)
8032
+ # ```
8033
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
8034
+ # (not equal) operator against a single un-parenthesized expression with or
8035
+ # without quotes or against multiple parenthesized expressions. Examples:
8036
+ # `fieldname eq unquoted literal`
8037
+ # `fieldname eq 'single quoted literal'`
8038
+ # `fieldname eq "double quoted literal"`
8039
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
8040
+ # The literal value is interpreted as a regular expression using GoogleRE2
8041
+ # library syntax.
8042
+ # The literal value must match the entire field.
8043
+ # For example, to filter for instances that do not end with name "instance",
8044
+ # you would use `name ne .*instance`.
8045
+ # You cannot combine constraints on multiple fields using regular
8046
+ # expressions.
8047
+ # @param [Fixnum] max_results
8048
+ # The maximum number of results per page that should be returned.
8049
+ # If the number of available results is larger than `maxResults`,
8050
+ # Compute Engine returns a `nextPageToken` that can be used to get
8051
+ # the next page of results in subsequent list requests. Acceptable values are
8052
+ # `0` to `500`, inclusive. (Default: `500`)
8053
+ # @param [String] order_by
8054
+ # Sorts list results by a certain order. By default, results
8055
+ # are returned in alphanumerical order based on the resource name.
8056
+ # You can also sort results in descending order based on the creation
8057
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
8058
+ # results based on the `creationTimestamp` field in
8059
+ # reverse chronological order (newest result first). Use this to sort
8060
+ # resources like operations so that the newest operation is returned first.
8061
+ # Currently, only sorting by `name` or
8062
+ # `creationTimestamp desc` is supported.
8063
+ # @param [String] page_token
8064
+ # Specifies a page token to use. Set `pageToken` to the
8065
+ # `nextPageToken` returned by a previous list request to get
8066
+ # the next page of results.
7987
8067
  # @param [String] fields
7988
8068
  # Selector specifying which fields to include in a partial response.
7989
8069
  # @param [String] quota_user
@@ -7995,24 +8075,23 @@ module Google
7995
8075
  # Request-specific options
7996
8076
  #
7997
8077
  # @yield [result, err] Result & error if block supplied
7998
- # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
8078
+ # @yieldparam result [Google::Apis::ComputePreview::GlobalListVmExtensionsResponse] parsed result object
7999
8079
  # @yieldparam err [StandardError] error object if request failed
8000
8080
  #
8001
- # @return [Google::Apis::ComputePreview::Operation]
8081
+ # @return [Google::Apis::ComputePreview::GlobalListVmExtensionsResponse]
8002
8082
  #
8003
8083
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8004
8084
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8005
8085
  # @raise [Google::Apis::AuthorizationError] Authorization is required
8006
- def patch_forwarding_rule(project, region, forwarding_rule, forwarding_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8007
- command = make_simple_command(:patch, 'projects/{project}/regions/{region}/forwardingRules/{forwardingRule}', options)
8008
- command.request_representation = Google::Apis::ComputePreview::ForwardingRule::Representation
8009
- command.request_object = forwarding_rule_object
8010
- command.response_representation = Google::Apis::ComputePreview::Operation::Representation
8011
- command.response_class = Google::Apis::ComputePreview::Operation
8012
- command.params['project'] = project unless project.nil?
8013
- command.params['region'] = region unless region.nil?
8014
- command.params['forwardingRule'] = forwarding_rule unless forwarding_rule.nil?
8015
- command.query['requestId'] = request_id unless request_id.nil?
8086
+ def list_folder_global_vm_extension_policy_vm_extensions(folder, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8087
+ command = make_simple_command(:get, '{+folder}/global/vmExtensions', options)
8088
+ command.response_representation = Google::Apis::ComputePreview::GlobalListVmExtensionsResponse::Representation
8089
+ command.response_class = Google::Apis::ComputePreview::GlobalListVmExtensionsResponse
8090
+ command.params['folder'] = folder unless folder.nil?
8091
+ command.query['filter'] = filter unless filter.nil?
8092
+ command.query['maxResults'] = max_results unless max_results.nil?
8093
+ command.query['orderBy'] = order_by unless order_by.nil?
8094
+ command.query['pageToken'] = page_token unless page_token.nil?
8016
8095
  command.query['fields'] = fields unless fields.nil?
8017
8096
  command.query['quotaUser'] = quota_user unless quota_user.nil?
8018
8097
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -8020,16 +8099,12 @@ module Google
8020
8099
  execute_or_queue_command(command, &block)
8021
8100
  end
8022
8101
 
8023
- # Sets the labels on the specified resource. To learn more about labels,
8024
- # read the
8025
- # Labeling Resources documentation.
8026
- # @param [String] project
8027
- # Project ID for this request.
8028
- # @param [String] region
8029
- # The region for this request.
8030
- # @param [String] resource
8031
- # Name or id of the resource for this request.
8032
- # @param [Google::Apis::ComputePreview::RegionSetLabelsRequest] region_set_labels_request_object
8102
+ # Updates a folder level GlobalVmExtensionPolicy.
8103
+ # @param [String] folder
8104
+ # Folder ID for this request.
8105
+ # @param [String] global_vm_extension_policy
8106
+ # Name of the global VM extension policy to update.
8107
+ # @param [Google::Apis::ComputePreview::GlobalVmExtensionPolicy] global_vm_extension_policy_object
8033
8108
  # @param [String] request_id
8034
8109
  # An optional request ID to identify requests. Specify a unique request ID so
8035
8110
  # that if you must retry your request, the server will know to ignore the
@@ -8061,15 +8136,14 @@ module Google
8061
8136
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8062
8137
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8063
8138
  # @raise [Google::Apis::AuthorizationError] Authorization is required
8064
- def set_forwarding_rule_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8065
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/forwardingRules/{resource}/setLabels', options)
8066
- command.request_representation = Google::Apis::ComputePreview::RegionSetLabelsRequest::Representation
8067
- command.request_object = region_set_labels_request_object
8139
+ def update_folder_global_vm_extension_policy(folder, global_vm_extension_policy, global_vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8140
+ command = make_simple_command(:patch, '{+folder}/global/vmExtensionPolicies/{globalVmExtensionPolicy}', options)
8141
+ command.request_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicy::Representation
8142
+ command.request_object = global_vm_extension_policy_object
8068
8143
  command.response_representation = Google::Apis::ComputePreview::Operation::Representation
8069
8144
  command.response_class = Google::Apis::ComputePreview::Operation
8070
- command.params['project'] = project unless project.nil?
8071
- command.params['region'] = region unless region.nil?
8072
- command.params['resource'] = resource unless resource.nil?
8145
+ command.params['folder'] = folder unless folder.nil?
8146
+ command.params['globalVmExtensionPolicy'] = global_vm_extension_policy unless global_vm_extension_policy.nil?
8073
8147
  command.query['requestId'] = request_id unless request_id.nil?
8074
8148
  command.query['fields'] = fields unless fields.nil?
8075
8149
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -8078,15 +8152,982 @@ module Google
8078
8152
  execute_or_queue_command(command, &block)
8079
8153
  end
8080
8154
 
8081
- # Changes target URL for forwarding rule. The new target should be of the
8082
- # same type as the old target.
8083
- # @param [String] project
8084
- # Project ID for this request.
8085
- # @param [String] region
8086
- # Name of the region scoping this request.
8087
- # @param [String] forwarding_rule
8088
- # Name of the ForwardingRule resource in which target is to be set.
8089
- # @param [Google::Apis::ComputePreview::TargetReference] target_reference_object
8155
+ # Deletes a specified zone VM extension policy within a folder.
8156
+ # @param [String] folder
8157
+ # Folder ID for this request.
8158
+ # @param [String] zone
8159
+ # Name of the zone for this request.
8160
+ # @param [String] vm_extension_policy
8161
+ # Name of the zone VM extension policy to delete.
8162
+ # @param [String] request_id
8163
+ # An optional request ID to identify requests. Specify a unique request ID so
8164
+ # that if you must retry your request, the server will know to ignore the
8165
+ # request if it has already been completed.
8166
+ # For example, consider a situation where you make an initial request and
8167
+ # the request times out. If you make the request again with the same
8168
+ # request ID, the server can check if original operation with the same
8169
+ # request ID was received, and if so, will ignore the second request. This
8170
+ # prevents clients from accidentally creating duplicate commitments.
8171
+ # The request ID must be
8172
+ # a valid UUID with the exception that zero UUID is not supported
8173
+ # (00000000-0000-0000-0000-000000000000).
8174
+ # @param [String] fields
8175
+ # Selector specifying which fields to include in a partial response.
8176
+ # @param [String] quota_user
8177
+ # Available to use for quota purposes for server-side applications. Can be any
8178
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8179
+ # @param [String] user_ip
8180
+ # Legacy name for parameter that has been superseded by `quotaUser`.
8181
+ # @param [Google::Apis::RequestOptions] options
8182
+ # Request-specific options
8183
+ #
8184
+ # @yield [result, err] Result & error if block supplied
8185
+ # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
8186
+ # @yieldparam err [StandardError] error object if request failed
8187
+ #
8188
+ # @return [Google::Apis::ComputePreview::Operation]
8189
+ #
8190
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8191
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8192
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8193
+ def delete_folder_zone_vm_extension_policy(folder, zone, vm_extension_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8194
+ command = make_simple_command(:delete, '{+folder}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}', options)
8195
+ command.response_representation = Google::Apis::ComputePreview::Operation::Representation
8196
+ command.response_class = Google::Apis::ComputePreview::Operation
8197
+ command.params['folder'] = folder unless folder.nil?
8198
+ command.params['zone'] = zone unless zone.nil?
8199
+ command.params['vmExtensionPolicy'] = vm_extension_policy unless vm_extension_policy.nil?
8200
+ command.query['requestId'] = request_id unless request_id.nil?
8201
+ command.query['fields'] = fields unless fields.nil?
8202
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8203
+ command.query['userIp'] = user_ip unless user_ip.nil?
8204
+ command.set_api_version_header "2026-10-01-preview"
8205
+ execute_or_queue_command(command, &block)
8206
+ end
8207
+
8208
+ # Retrieves details of a specific zone VM extension policy within a folder.
8209
+ # @param [String] folder
8210
+ # Folder ID for this request.
8211
+ # @param [String] zone
8212
+ # Name of the zone for this request.
8213
+ # @param [String] vm_extension_policy
8214
+ # Name of the VM extension policy resource to return.
8215
+ # @param [String] fields
8216
+ # Selector specifying which fields to include in a partial response.
8217
+ # @param [String] quota_user
8218
+ # Available to use for quota purposes for server-side applications. Can be any
8219
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8220
+ # @param [String] user_ip
8221
+ # Legacy name for parameter that has been superseded by `quotaUser`.
8222
+ # @param [Google::Apis::RequestOptions] options
8223
+ # Request-specific options
8224
+ #
8225
+ # @yield [result, err] Result & error if block supplied
8226
+ # @yieldparam result [Google::Apis::ComputePreview::VmExtensionPolicy] parsed result object
8227
+ # @yieldparam err [StandardError] error object if request failed
8228
+ #
8229
+ # @return [Google::Apis::ComputePreview::VmExtensionPolicy]
8230
+ #
8231
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8232
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8233
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8234
+ def get_folder_zone_vm_extension_policy(folder, zone, vm_extension_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8235
+ command = make_simple_command(:get, '{+folder}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}', options)
8236
+ command.response_representation = Google::Apis::ComputePreview::VmExtensionPolicy::Representation
8237
+ command.response_class = Google::Apis::ComputePreview::VmExtensionPolicy
8238
+ command.params['folder'] = folder unless folder.nil?
8239
+ command.params['zone'] = zone unless zone.nil?
8240
+ command.params['vmExtensionPolicy'] = vm_extension_policy unless vm_extension_policy.nil?
8241
+ command.query['fields'] = fields unless fields.nil?
8242
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8243
+ command.query['userIp'] = user_ip unless user_ip.nil?
8244
+ command.set_api_version_header "2026-10-01-preview"
8245
+ execute_or_queue_command(command, &block)
8246
+ end
8247
+
8248
+ # Retrieves details of a specific VM extension within a folder.
8249
+ # @param [String] folder
8250
+ # Folder ID for this request.
8251
+ # @param [String] zone
8252
+ # Name of the zone for this request.
8253
+ # @param [String] extension_name
8254
+ # Required. Name of the VM extension for this request.
8255
+ # @param [String] fields
8256
+ # Selector specifying which fields to include in a partial response.
8257
+ # @param [String] quota_user
8258
+ # Available to use for quota purposes for server-side applications. Can be any
8259
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8260
+ # @param [String] user_ip
8261
+ # Legacy name for parameter that has been superseded by `quotaUser`.
8262
+ # @param [Google::Apis::RequestOptions] options
8263
+ # Request-specific options
8264
+ #
8265
+ # @yield [result, err] Result & error if block supplied
8266
+ # @yieldparam result [Google::Apis::ComputePreview::VmExtension] parsed result object
8267
+ # @yieldparam err [StandardError] error object if request failed
8268
+ #
8269
+ # @return [Google::Apis::ComputePreview::VmExtension]
8270
+ #
8271
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8272
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8273
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8274
+ def get_folder_zone_vm_extension_policy_vm_extension(folder, zone, extension_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8275
+ command = make_simple_command(:get, '{+folder}/zones/{zone}/vmExtensions/{extensionName}', options)
8276
+ command.response_representation = Google::Apis::ComputePreview::VmExtension::Representation
8277
+ command.response_class = Google::Apis::ComputePreview::VmExtension
8278
+ command.params['folder'] = folder unless folder.nil?
8279
+ command.params['zone'] = zone unless zone.nil?
8280
+ command.params['extensionName'] = extension_name unless extension_name.nil?
8281
+ command.query['fields'] = fields unless fields.nil?
8282
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8283
+ command.query['userIp'] = user_ip unless user_ip.nil?
8284
+ command.set_api_version_header "2026-10-01-preview"
8285
+ execute_or_queue_command(command, &block)
8286
+ end
8287
+
8288
+ # Creates a new zone-level VM extension policy within a folder.
8289
+ # @param [String] folder
8290
+ # Folder ID for this request.
8291
+ # @param [String] zone
8292
+ # Name of the zone for this request.
8293
+ # @param [Google::Apis::ComputePreview::VmExtensionPolicy] vm_extension_policy_object
8294
+ # @param [String] request_id
8295
+ # An optional request ID to identify requests. Specify a unique request ID so
8296
+ # that if you must retry your request, the server will know to ignore the
8297
+ # request if it has already been completed.
8298
+ # For example, consider a situation where you make an initial request and
8299
+ # the request times out. If you make the request again with the same
8300
+ # request ID, the server can check if original operation with the same
8301
+ # request ID was received, and if so, will ignore the second request. This
8302
+ # prevents clients from accidentally creating duplicate commitments.
8303
+ # The request ID must be
8304
+ # a valid UUID with the exception that zero UUID is not supported
8305
+ # (00000000-0000-0000-0000-000000000000).
8306
+ # @param [String] fields
8307
+ # Selector specifying which fields to include in a partial response.
8308
+ # @param [String] quota_user
8309
+ # Available to use for quota purposes for server-side applications. Can be any
8310
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8311
+ # @param [String] user_ip
8312
+ # Legacy name for parameter that has been superseded by `quotaUser`.
8313
+ # @param [Google::Apis::RequestOptions] options
8314
+ # Request-specific options
8315
+ #
8316
+ # @yield [result, err] Result & error if block supplied
8317
+ # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
8318
+ # @yieldparam err [StandardError] error object if request failed
8319
+ #
8320
+ # @return [Google::Apis::ComputePreview::Operation]
8321
+ #
8322
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8323
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8324
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8325
+ def insert_folder_zone_vm_extension_policy(folder, zone, vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8326
+ command = make_simple_command(:post, '{+folder}/zones/{zone}/vmExtensionPolicies', options)
8327
+ command.request_representation = Google::Apis::ComputePreview::VmExtensionPolicy::Representation
8328
+ command.request_object = vm_extension_policy_object
8329
+ command.response_representation = Google::Apis::ComputePreview::Operation::Representation
8330
+ command.response_class = Google::Apis::ComputePreview::Operation
8331
+ command.params['folder'] = folder unless folder.nil?
8332
+ command.params['zone'] = zone unless zone.nil?
8333
+ command.query['requestId'] = request_id unless request_id.nil?
8334
+ command.query['fields'] = fields unless fields.nil?
8335
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8336
+ command.query['userIp'] = user_ip unless user_ip.nil?
8337
+ command.set_api_version_header "2026-10-01-preview"
8338
+ execute_or_queue_command(command, &block)
8339
+ end
8340
+
8341
+ # Lists all VM extension policies within a specific zone for a folder.
8342
+ # @param [String] folder
8343
+ # Folder ID for this request.
8344
+ # @param [String] zone
8345
+ # Name of the zone for this request.
8346
+ # @param [String] filter
8347
+ # A filter expression that filters resources listed in the response. Most
8348
+ # Compute resources support two types of filter expressions:
8349
+ # expressions that support regular expressions and expressions that follow
8350
+ # API improvement proposal AIP-160.
8351
+ # These two types of filter expressions cannot be mixed in one request.
8352
+ # If you want to use AIP-160, your expression must specify the field name, an
8353
+ # operator, and the value that you want to use for filtering. The value
8354
+ # must be a string, a number, or a boolean. The operator
8355
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
8356
+ # For example, if you are filtering Compute Engine instances, you can
8357
+ # exclude instances named `example-instance` by specifying
8358
+ # `name != example-instance`.
8359
+ # The `:*` comparison can be used to test whether a key has been defined.
8360
+ # For example, to find all objects with `owner` label use:
8361
+ # ```
8362
+ # labels.owner:*
8363
+ # ```
8364
+ # You can also filter nested fields. For example, you could specify
8365
+ # `scheduling.automaticRestart = false` to include instances only
8366
+ # if they are not scheduled for automatic restarts. You can use filtering
8367
+ # on nested fields to filter based onresource labels.
8368
+ # To filter on multiple expressions, provide each separate expression within
8369
+ # parentheses. For example:
8370
+ # ```
8371
+ # (scheduling.automaticRestart = true)
8372
+ # (cpuPlatform = "Intel Skylake")
8373
+ # ```
8374
+ # By default, each expression is an `AND` expression. However, you
8375
+ # can include `AND` and `OR` expressions explicitly.
8376
+ # For example:
8377
+ # ```
8378
+ # (cpuPlatform = "Intel Skylake") OR
8379
+ # (cpuPlatform = "Intel Broadwell") AND
8380
+ # (scheduling.automaticRestart = true)
8381
+ # ```
8382
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
8383
+ # (not equal) operator against a single un-parenthesized expression with or
8384
+ # without quotes or against multiple parenthesized expressions. Examples:
8385
+ # `fieldname eq unquoted literal`
8386
+ # `fieldname eq 'single quoted literal'`
8387
+ # `fieldname eq "double quoted literal"`
8388
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
8389
+ # The literal value is interpreted as a regular expression using GoogleRE2
8390
+ # library syntax.
8391
+ # The literal value must match the entire field.
8392
+ # For example, to filter for instances that do not end with name "instance",
8393
+ # you would use `name ne .*instance`.
8394
+ # You cannot combine constraints on multiple fields using regular
8395
+ # expressions.
8396
+ # @param [Fixnum] max_results
8397
+ # The maximum number of results per page that should be returned.
8398
+ # If the number of available results is larger than `maxResults`,
8399
+ # Compute Engine returns a `nextPageToken` that can be used to get
8400
+ # the next page of results in subsequent list requests. Acceptable values are
8401
+ # `0` to `500`, inclusive. (Default: `500`)
8402
+ # @param [String] order_by
8403
+ # Sorts list results by a certain order. By default, results
8404
+ # are returned in alphanumerical order based on the resource name.
8405
+ # You can also sort results in descending order based on the creation
8406
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
8407
+ # results based on the `creationTimestamp` field in
8408
+ # reverse chronological order (newest result first). Use this to sort
8409
+ # resources like operations so that the newest operation is returned first.
8410
+ # Currently, only sorting by `name` or
8411
+ # `creationTimestamp desc` is supported.
8412
+ # @param [String] page_token
8413
+ # Specifies a page token to use. Set `pageToken` to the
8414
+ # `nextPageToken` returned by a previous list request to get
8415
+ # the next page of results.
8416
+ # @param [String] fields
8417
+ # Selector specifying which fields to include in a partial response.
8418
+ # @param [String] quota_user
8419
+ # Available to use for quota purposes for server-side applications. Can be any
8420
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8421
+ # @param [String] user_ip
8422
+ # Legacy name for parameter that has been superseded by `quotaUser`.
8423
+ # @param [Google::Apis::RequestOptions] options
8424
+ # Request-specific options
8425
+ #
8426
+ # @yield [result, err] Result & error if block supplied
8427
+ # @yieldparam result [Google::Apis::ComputePreview::VmExtensionPolicyList] parsed result object
8428
+ # @yieldparam err [StandardError] error object if request failed
8429
+ #
8430
+ # @return [Google::Apis::ComputePreview::VmExtensionPolicyList]
8431
+ #
8432
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8433
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8434
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8435
+ def list_folder_zone_vm_extension_policies(folder, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8436
+ command = make_simple_command(:get, '{+folder}/zones/{zone}/vmExtensionPolicies', options)
8437
+ command.response_representation = Google::Apis::ComputePreview::VmExtensionPolicyList::Representation
8438
+ command.response_class = Google::Apis::ComputePreview::VmExtensionPolicyList
8439
+ command.params['folder'] = folder unless folder.nil?
8440
+ command.params['zone'] = zone unless zone.nil?
8441
+ command.query['filter'] = filter unless filter.nil?
8442
+ command.query['maxResults'] = max_results unless max_results.nil?
8443
+ command.query['orderBy'] = order_by unless order_by.nil?
8444
+ command.query['pageToken'] = page_token unless page_token.nil?
8445
+ command.query['fields'] = fields unless fields.nil?
8446
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8447
+ command.query['userIp'] = user_ip unless user_ip.nil?
8448
+ command.set_api_version_header "2026-10-01-preview"
8449
+ execute_or_queue_command(command, &block)
8450
+ end
8451
+
8452
+ # Lists all VM extensions within a specific zone for a folder.
8453
+ # This is a read-only API.
8454
+ # @param [String] folder
8455
+ # Folder ID for this request.
8456
+ # @param [String] zone
8457
+ # Name of the zone for this request.
8458
+ # @param [String] filter
8459
+ # A filter expression that filters resources listed in the response. Most
8460
+ # Compute resources support two types of filter expressions:
8461
+ # expressions that support regular expressions and expressions that follow
8462
+ # API improvement proposal AIP-160.
8463
+ # These two types of filter expressions cannot be mixed in one request.
8464
+ # If you want to use AIP-160, your expression must specify the field name, an
8465
+ # operator, and the value that you want to use for filtering. The value
8466
+ # must be a string, a number, or a boolean. The operator
8467
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
8468
+ # For example, if you are filtering Compute Engine instances, you can
8469
+ # exclude instances named `example-instance` by specifying
8470
+ # `name != example-instance`.
8471
+ # The `:*` comparison can be used to test whether a key has been defined.
8472
+ # For example, to find all objects with `owner` label use:
8473
+ # ```
8474
+ # labels.owner:*
8475
+ # ```
8476
+ # You can also filter nested fields. For example, you could specify
8477
+ # `scheduling.automaticRestart = false` to include instances only
8478
+ # if they are not scheduled for automatic restarts. You can use filtering
8479
+ # on nested fields to filter based onresource labels.
8480
+ # To filter on multiple expressions, provide each separate expression within
8481
+ # parentheses. For example:
8482
+ # ```
8483
+ # (scheduling.automaticRestart = true)
8484
+ # (cpuPlatform = "Intel Skylake")
8485
+ # ```
8486
+ # By default, each expression is an `AND` expression. However, you
8487
+ # can include `AND` and `OR` expressions explicitly.
8488
+ # For example:
8489
+ # ```
8490
+ # (cpuPlatform = "Intel Skylake") OR
8491
+ # (cpuPlatform = "Intel Broadwell") AND
8492
+ # (scheduling.automaticRestart = true)
8493
+ # ```
8494
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
8495
+ # (not equal) operator against a single un-parenthesized expression with or
8496
+ # without quotes or against multiple parenthesized expressions. Examples:
8497
+ # `fieldname eq unquoted literal`
8498
+ # `fieldname eq 'single quoted literal'`
8499
+ # `fieldname eq "double quoted literal"`
8500
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
8501
+ # The literal value is interpreted as a regular expression using GoogleRE2
8502
+ # library syntax.
8503
+ # The literal value must match the entire field.
8504
+ # For example, to filter for instances that do not end with name "instance",
8505
+ # you would use `name ne .*instance`.
8506
+ # You cannot combine constraints on multiple fields using regular
8507
+ # expressions.
8508
+ # @param [Fixnum] max_results
8509
+ # The maximum number of results per page that should be returned.
8510
+ # If the number of available results is larger than `maxResults`,
8511
+ # Compute Engine returns a `nextPageToken` that can be used to get
8512
+ # the next page of results in subsequent list requests. Acceptable values are
8513
+ # `0` to `500`, inclusive. (Default: `500`)
8514
+ # @param [String] order_by
8515
+ # Sorts list results by a certain order. By default, results
8516
+ # are returned in alphanumerical order based on the resource name.
8517
+ # You can also sort results in descending order based on the creation
8518
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
8519
+ # results based on the `creationTimestamp` field in
8520
+ # reverse chronological order (newest result first). Use this to sort
8521
+ # resources like operations so that the newest operation is returned first.
8522
+ # Currently, only sorting by `name` or
8523
+ # `creationTimestamp desc` is supported.
8524
+ # @param [String] page_token
8525
+ # Specifies a page token to use. Set `pageToken` to the
8526
+ # `nextPageToken` returned by a previous list request to get
8527
+ # the next page of results.
8528
+ # @param [String] fields
8529
+ # Selector specifying which fields to include in a partial response.
8530
+ # @param [String] quota_user
8531
+ # Available to use for quota purposes for server-side applications. Can be any
8532
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8533
+ # @param [String] user_ip
8534
+ # Legacy name for parameter that has been superseded by `quotaUser`.
8535
+ # @param [Google::Apis::RequestOptions] options
8536
+ # Request-specific options
8537
+ #
8538
+ # @yield [result, err] Result & error if block supplied
8539
+ # @yieldparam result [Google::Apis::ComputePreview::ListVmExtensionsResponse] parsed result object
8540
+ # @yieldparam err [StandardError] error object if request failed
8541
+ #
8542
+ # @return [Google::Apis::ComputePreview::ListVmExtensionsResponse]
8543
+ #
8544
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8545
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8546
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8547
+ def list_folder_zone_vm_extension_policy_vm_extensions(folder, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8548
+ command = make_simple_command(:get, '{+folder}/zones/{zone}/vmExtensions', options)
8549
+ command.response_representation = Google::Apis::ComputePreview::ListVmExtensionsResponse::Representation
8550
+ command.response_class = Google::Apis::ComputePreview::ListVmExtensionsResponse
8551
+ command.params['folder'] = folder unless folder.nil?
8552
+ command.params['zone'] = zone unless zone.nil?
8553
+ command.query['filter'] = filter unless filter.nil?
8554
+ command.query['maxResults'] = max_results unless max_results.nil?
8555
+ command.query['orderBy'] = order_by unless order_by.nil?
8556
+ command.query['pageToken'] = page_token unless page_token.nil?
8557
+ command.query['fields'] = fields unless fields.nil?
8558
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8559
+ command.query['userIp'] = user_ip unless user_ip.nil?
8560
+ command.set_api_version_header "2026-10-01-preview"
8561
+ execute_or_queue_command(command, &block)
8562
+ end
8563
+
8564
+ # Modifies an existing zone VM extension policy within a folder.
8565
+ # @param [String] folder
8566
+ # Folder ID for this request.
8567
+ # @param [String] zone
8568
+ # Name of the zone for this request.
8569
+ # @param [String] vm_extension_policy
8570
+ # Name of the zone VM extension policy to update.
8571
+ # @param [Google::Apis::ComputePreview::VmExtensionPolicy] vm_extension_policy_object
8572
+ # @param [String] request_id
8573
+ # An optional request ID to identify requests. Specify a unique request ID so
8574
+ # that if you must retry your request, the server will know to ignore the
8575
+ # request if it has already been completed.
8576
+ # For example, consider a situation where you make an initial request and
8577
+ # the request times out. If you make the request again with the same
8578
+ # request ID, the server can check if original operation with the same
8579
+ # request ID was received, and if so, will ignore the second request. This
8580
+ # prevents clients from accidentally creating duplicate commitments.
8581
+ # The request ID must be
8582
+ # a valid UUID with the exception that zero UUID is not supported
8583
+ # (00000000-0000-0000-0000-000000000000).
8584
+ # @param [String] fields
8585
+ # Selector specifying which fields to include in a partial response.
8586
+ # @param [String] quota_user
8587
+ # Available to use for quota purposes for server-side applications. Can be any
8588
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8589
+ # @param [String] user_ip
8590
+ # Legacy name for parameter that has been superseded by `quotaUser`.
8591
+ # @param [Google::Apis::RequestOptions] options
8592
+ # Request-specific options
8593
+ #
8594
+ # @yield [result, err] Result & error if block supplied
8595
+ # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
8596
+ # @yieldparam err [StandardError] error object if request failed
8597
+ #
8598
+ # @return [Google::Apis::ComputePreview::Operation]
8599
+ #
8600
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8601
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8602
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8603
+ def update_folder_zone_vm_extension_policy(folder, zone, vm_extension_policy, vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8604
+ command = make_simple_command(:patch, '{+folder}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}', options)
8605
+ command.request_representation = Google::Apis::ComputePreview::VmExtensionPolicy::Representation
8606
+ command.request_object = vm_extension_policy_object
8607
+ command.response_representation = Google::Apis::ComputePreview::Operation::Representation
8608
+ command.response_class = Google::Apis::ComputePreview::Operation
8609
+ command.params['folder'] = folder unless folder.nil?
8610
+ command.params['zone'] = zone unless zone.nil?
8611
+ command.params['vmExtensionPolicy'] = vm_extension_policy unless vm_extension_policy.nil?
8612
+ command.query['requestId'] = request_id unless request_id.nil?
8613
+ command.query['fields'] = fields unless fields.nil?
8614
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8615
+ command.query['userIp'] = user_ip unless user_ip.nil?
8616
+ command.set_api_version_header "2026-10-01-preview"
8617
+ execute_or_queue_command(command, &block)
8618
+ end
8619
+
8620
+ # Retrieves an aggregated list of forwarding rules.
8621
+ # To prevent failure, it is recommended that you set the
8622
+ # `returnPartialSuccess` parameter to `true`.
8623
+ # @param [String] project
8624
+ # Project ID for this request.
8625
+ # @param [String] filter
8626
+ # A filter expression that filters resources listed in the response. Most
8627
+ # Compute resources support two types of filter expressions:
8628
+ # expressions that support regular expressions and expressions that follow
8629
+ # API improvement proposal AIP-160.
8630
+ # These two types of filter expressions cannot be mixed in one request.
8631
+ # If you want to use AIP-160, your expression must specify the field name, an
8632
+ # operator, and the value that you want to use for filtering. The value
8633
+ # must be a string, a number, or a boolean. The operator
8634
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
8635
+ # For example, if you are filtering Compute Engine instances, you can
8636
+ # exclude instances named `example-instance` by specifying
8637
+ # `name != example-instance`.
8638
+ # The `:*` comparison can be used to test whether a key has been defined.
8639
+ # For example, to find all objects with `owner` label use:
8640
+ # ```
8641
+ # labels.owner:*
8642
+ # ```
8643
+ # You can also filter nested fields. For example, you could specify
8644
+ # `scheduling.automaticRestart = false` to include instances only
8645
+ # if they are not scheduled for automatic restarts. You can use filtering
8646
+ # on nested fields to filter based onresource labels.
8647
+ # To filter on multiple expressions, provide each separate expression within
8648
+ # parentheses. For example:
8649
+ # ```
8650
+ # (scheduling.automaticRestart = true)
8651
+ # (cpuPlatform = "Intel Skylake")
8652
+ # ```
8653
+ # By default, each expression is an `AND` expression. However, you
8654
+ # can include `AND` and `OR` expressions explicitly.
8655
+ # For example:
8656
+ # ```
8657
+ # (cpuPlatform = "Intel Skylake") OR
8658
+ # (cpuPlatform = "Intel Broadwell") AND
8659
+ # (scheduling.automaticRestart = true)
8660
+ # ```
8661
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
8662
+ # (not equal) operator against a single un-parenthesized expression with or
8663
+ # without quotes or against multiple parenthesized expressions. Examples:
8664
+ # `fieldname eq unquoted literal`
8665
+ # `fieldname eq 'single quoted literal'`
8666
+ # `fieldname eq "double quoted literal"`
8667
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
8668
+ # The literal value is interpreted as a regular expression using GoogleRE2
8669
+ # library syntax.
8670
+ # The literal value must match the entire field.
8671
+ # For example, to filter for instances that do not end with name "instance",
8672
+ # you would use `name ne .*instance`.
8673
+ # You cannot combine constraints on multiple fields using regular
8674
+ # expressions.
8675
+ # @param [Boolean] include_all_scopes
8676
+ # Indicates whether every visible scope for each scope type (zone, region,
8677
+ # global) should be included in the response. For new resource types added
8678
+ # after this field, the flag has no effect as new resource types will always
8679
+ # include every visible scope for each scope type in response. For resource
8680
+ # types which predate this field, if this flag is omitted or false, only
8681
+ # scopes of the scope types where the resource type is expected to be found
8682
+ # will be included.
8683
+ # @param [Fixnum] max_results
8684
+ # The maximum number of results per page that should be returned.
8685
+ # If the number of available results is larger than `maxResults`,
8686
+ # Compute Engine returns a `nextPageToken` that can be used to get
8687
+ # the next page of results in subsequent list requests. Acceptable values are
8688
+ # `0` to `500`, inclusive. (Default: `500`)
8689
+ # @param [String] order_by
8690
+ # Sorts list results by a certain order. By default, results
8691
+ # are returned in alphanumerical order based on the resource name.
8692
+ # You can also sort results in descending order based on the creation
8693
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
8694
+ # results based on the `creationTimestamp` field in
8695
+ # reverse chronological order (newest result first). Use this to sort
8696
+ # resources like operations so that the newest operation is returned first.
8697
+ # Currently, only sorting by `name` or
8698
+ # `creationTimestamp desc` is supported.
8699
+ # @param [String] page_token
8700
+ # Specifies a page token to use. Set `pageToken` to the
8701
+ # `nextPageToken` returned by a previous list request to get
8702
+ # the next page of results.
8703
+ # @param [Fixnum] service_project_number
8704
+ # The Shared VPC service project id or service project number for which
8705
+ # aggregated list request is invoked for subnetworks list-usable api.
8706
+ # @param [String] fields
8707
+ # Selector specifying which fields to include in a partial response.
8708
+ # @param [String] quota_user
8709
+ # Available to use for quota purposes for server-side applications. Can be any
8710
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8711
+ # @param [String] user_ip
8712
+ # Legacy name for parameter that has been superseded by `quotaUser`.
8713
+ # @param [Google::Apis::RequestOptions] options
8714
+ # Request-specific options
8715
+ #
8716
+ # @yield [result, err] Result & error if block supplied
8717
+ # @yieldparam result [Google::Apis::ComputePreview::ForwardingRuleAggregatedList] parsed result object
8718
+ # @yieldparam err [StandardError] error object if request failed
8719
+ #
8720
+ # @return [Google::Apis::ComputePreview::ForwardingRuleAggregatedList]
8721
+ #
8722
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8723
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8724
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8725
+ def aggregated_forwarding_rule_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8726
+ command = make_simple_command(:get, 'projects/{project}/aggregated/forwardingRules', options)
8727
+ command.response_representation = Google::Apis::ComputePreview::ForwardingRuleAggregatedList::Representation
8728
+ command.response_class = Google::Apis::ComputePreview::ForwardingRuleAggregatedList
8729
+ command.params['project'] = project unless project.nil?
8730
+ command.query['filter'] = filter unless filter.nil?
8731
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
8732
+ command.query['maxResults'] = max_results unless max_results.nil?
8733
+ command.query['orderBy'] = order_by unless order_by.nil?
8734
+ command.query['pageToken'] = page_token unless page_token.nil?
8735
+ command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
8736
+ command.query['fields'] = fields unless fields.nil?
8737
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8738
+ command.query['userIp'] = user_ip unless user_ip.nil?
8739
+ command.set_api_version_header "2026-10-01-preview"
8740
+ execute_or_queue_command(command, &block)
8741
+ end
8742
+
8743
+ # Deletes the specified ForwardingRule resource.
8744
+ # @param [String] project
8745
+ # Project ID for this request.
8746
+ # @param [String] region
8747
+ # Name of the region scoping this request.
8748
+ # @param [String] forwarding_rule
8749
+ # Name of the ForwardingRule resource to delete.
8750
+ # @param [String] request_id
8751
+ # An optional request ID to identify requests. Specify a unique request ID so
8752
+ # that if you must retry your request, the server will know to ignore the
8753
+ # request if it has already been completed.
8754
+ # For example, consider a situation where you make an initial request and
8755
+ # the request times out. If you make the request again with the same
8756
+ # request ID, the server can check if original operation with the same
8757
+ # request ID was received, and if so, will ignore the second request. This
8758
+ # prevents clients from accidentally creating duplicate commitments.
8759
+ # The request ID must be
8760
+ # a valid UUID with the exception that zero UUID is not supported
8761
+ # (00000000-0000-0000-0000-000000000000).
8762
+ # @param [String] fields
8763
+ # Selector specifying which fields to include in a partial response.
8764
+ # @param [String] quota_user
8765
+ # Available to use for quota purposes for server-side applications. Can be any
8766
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8767
+ # @param [String] user_ip
8768
+ # Legacy name for parameter that has been superseded by `quotaUser`.
8769
+ # @param [Google::Apis::RequestOptions] options
8770
+ # Request-specific options
8771
+ #
8772
+ # @yield [result, err] Result & error if block supplied
8773
+ # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
8774
+ # @yieldparam err [StandardError] error object if request failed
8775
+ #
8776
+ # @return [Google::Apis::ComputePreview::Operation]
8777
+ #
8778
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8779
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8780
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8781
+ def delete_forwarding_rule(project, region, forwarding_rule, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8782
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/forwardingRules/{forwardingRule}', options)
8783
+ command.response_representation = Google::Apis::ComputePreview::Operation::Representation
8784
+ command.response_class = Google::Apis::ComputePreview::Operation
8785
+ command.params['project'] = project unless project.nil?
8786
+ command.params['region'] = region unless region.nil?
8787
+ command.params['forwardingRule'] = forwarding_rule unless forwarding_rule.nil?
8788
+ command.query['requestId'] = request_id unless request_id.nil?
8789
+ command.query['fields'] = fields unless fields.nil?
8790
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8791
+ command.query['userIp'] = user_ip unless user_ip.nil?
8792
+ command.set_api_version_header "2026-10-01-preview"
8793
+ execute_or_queue_command(command, &block)
8794
+ end
8795
+
8796
+ # Returns the specified ForwardingRule resource.
8797
+ # @param [String] project
8798
+ # Project ID for this request.
8799
+ # @param [String] region
8800
+ # Name of the region scoping this request.
8801
+ # @param [String] forwarding_rule
8802
+ # Name of the ForwardingRule resource to return.
8803
+ # @param [String] view
8804
+ # @param [String] fields
8805
+ # Selector specifying which fields to include in a partial response.
8806
+ # @param [String] quota_user
8807
+ # Available to use for quota purposes for server-side applications. Can be any
8808
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8809
+ # @param [String] user_ip
8810
+ # Legacy name for parameter that has been superseded by `quotaUser`.
8811
+ # @param [Google::Apis::RequestOptions] options
8812
+ # Request-specific options
8813
+ #
8814
+ # @yield [result, err] Result & error if block supplied
8815
+ # @yieldparam result [Google::Apis::ComputePreview::ForwardingRule] parsed result object
8816
+ # @yieldparam err [StandardError] error object if request failed
8817
+ #
8818
+ # @return [Google::Apis::ComputePreview::ForwardingRule]
8819
+ #
8820
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8821
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8822
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8823
+ def get_forwarding_rule(project, region, forwarding_rule, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8824
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/forwardingRules/{forwardingRule}', options)
8825
+ command.response_representation = Google::Apis::ComputePreview::ForwardingRule::Representation
8826
+ command.response_class = Google::Apis::ComputePreview::ForwardingRule
8827
+ command.params['project'] = project unless project.nil?
8828
+ command.params['region'] = region unless region.nil?
8829
+ command.params['forwardingRule'] = forwarding_rule unless forwarding_rule.nil?
8830
+ command.query['view'] = view unless view.nil?
8831
+ command.query['fields'] = fields unless fields.nil?
8832
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8833
+ command.query['userIp'] = user_ip unless user_ip.nil?
8834
+ command.set_api_version_header "2026-10-01-preview"
8835
+ execute_or_queue_command(command, &block)
8836
+ end
8837
+
8838
+ # Creates a ForwardingRule resource in the specified project and region using
8839
+ # the data included in the request.
8840
+ # @param [String] project
8841
+ # Project ID for this request.
8842
+ # @param [String] region
8843
+ # Name of the region scoping this request.
8844
+ # @param [Google::Apis::ComputePreview::ForwardingRule] forwarding_rule_object
8845
+ # @param [String] request_id
8846
+ # An optional request ID to identify requests. Specify a unique request ID so
8847
+ # that if you must retry your request, the server will know to ignore the
8848
+ # request if it has already been completed.
8849
+ # For example, consider a situation where you make an initial request and
8850
+ # the request times out. If you make the request again with the same
8851
+ # request ID, the server can check if original operation with the same
8852
+ # request ID was received, and if so, will ignore the second request. This
8853
+ # prevents clients from accidentally creating duplicate commitments.
8854
+ # The request ID must be
8855
+ # a valid UUID with the exception that zero UUID is not supported
8856
+ # (00000000-0000-0000-0000-000000000000).
8857
+ # @param [String] fields
8858
+ # Selector specifying which fields to include in a partial response.
8859
+ # @param [String] quota_user
8860
+ # Available to use for quota purposes for server-side applications. Can be any
8861
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8862
+ # @param [String] user_ip
8863
+ # Legacy name for parameter that has been superseded by `quotaUser`.
8864
+ # @param [Google::Apis::RequestOptions] options
8865
+ # Request-specific options
8866
+ #
8867
+ # @yield [result, err] Result & error if block supplied
8868
+ # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
8869
+ # @yieldparam err [StandardError] error object if request failed
8870
+ #
8871
+ # @return [Google::Apis::ComputePreview::Operation]
8872
+ #
8873
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8874
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8875
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8876
+ def insert_forwarding_rule(project, region, forwarding_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8877
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/forwardingRules', options)
8878
+ command.request_representation = Google::Apis::ComputePreview::ForwardingRule::Representation
8879
+ command.request_object = forwarding_rule_object
8880
+ command.response_representation = Google::Apis::ComputePreview::Operation::Representation
8881
+ command.response_class = Google::Apis::ComputePreview::Operation
8882
+ command.params['project'] = project unless project.nil?
8883
+ command.params['region'] = region unless region.nil?
8884
+ command.query['requestId'] = request_id unless request_id.nil?
8885
+ command.query['fields'] = fields unless fields.nil?
8886
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8887
+ command.query['userIp'] = user_ip unless user_ip.nil?
8888
+ command.set_api_version_header "2026-10-01-preview"
8889
+ execute_or_queue_command(command, &block)
8890
+ end
8891
+
8892
+ # Retrieves a list of ForwardingRule resources available to the specified
8893
+ # project and region.
8894
+ # @param [String] project
8895
+ # Project ID for this request.
8896
+ # @param [String] region
8897
+ # Name of the region scoping this request.
8898
+ # @param [String] filter
8899
+ # A filter expression that filters resources listed in the response. Most
8900
+ # Compute resources support two types of filter expressions:
8901
+ # expressions that support regular expressions and expressions that follow
8902
+ # API improvement proposal AIP-160.
8903
+ # These two types of filter expressions cannot be mixed in one request.
8904
+ # If you want to use AIP-160, your expression must specify the field name, an
8905
+ # operator, and the value that you want to use for filtering. The value
8906
+ # must be a string, a number, or a boolean. The operator
8907
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
8908
+ # For example, if you are filtering Compute Engine instances, you can
8909
+ # exclude instances named `example-instance` by specifying
8910
+ # `name != example-instance`.
8911
+ # The `:*` comparison can be used to test whether a key has been defined.
8912
+ # For example, to find all objects with `owner` label use:
8913
+ # ```
8914
+ # labels.owner:*
8915
+ # ```
8916
+ # You can also filter nested fields. For example, you could specify
8917
+ # `scheduling.automaticRestart = false` to include instances only
8918
+ # if they are not scheduled for automatic restarts. You can use filtering
8919
+ # on nested fields to filter based onresource labels.
8920
+ # To filter on multiple expressions, provide each separate expression within
8921
+ # parentheses. For example:
8922
+ # ```
8923
+ # (scheduling.automaticRestart = true)
8924
+ # (cpuPlatform = "Intel Skylake")
8925
+ # ```
8926
+ # By default, each expression is an `AND` expression. However, you
8927
+ # can include `AND` and `OR` expressions explicitly.
8928
+ # For example:
8929
+ # ```
8930
+ # (cpuPlatform = "Intel Skylake") OR
8931
+ # (cpuPlatform = "Intel Broadwell") AND
8932
+ # (scheduling.automaticRestart = true)
8933
+ # ```
8934
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
8935
+ # (not equal) operator against a single un-parenthesized expression with or
8936
+ # without quotes or against multiple parenthesized expressions. Examples:
8937
+ # `fieldname eq unquoted literal`
8938
+ # `fieldname eq 'single quoted literal'`
8939
+ # `fieldname eq "double quoted literal"`
8940
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
8941
+ # The literal value is interpreted as a regular expression using GoogleRE2
8942
+ # library syntax.
8943
+ # The literal value must match the entire field.
8944
+ # For example, to filter for instances that do not end with name "instance",
8945
+ # you would use `name ne .*instance`.
8946
+ # You cannot combine constraints on multiple fields using regular
8947
+ # expressions.
8948
+ # @param [Fixnum] max_results
8949
+ # The maximum number of results per page that should be returned.
8950
+ # If the number of available results is larger than `maxResults`,
8951
+ # Compute Engine returns a `nextPageToken` that can be used to get
8952
+ # the next page of results in subsequent list requests. Acceptable values are
8953
+ # `0` to `500`, inclusive. (Default: `500`)
8954
+ # @param [String] order_by
8955
+ # Sorts list results by a certain order. By default, results
8956
+ # are returned in alphanumerical order based on the resource name.
8957
+ # You can also sort results in descending order based on the creation
8958
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
8959
+ # results based on the `creationTimestamp` field in
8960
+ # reverse chronological order (newest result first). Use this to sort
8961
+ # resources like operations so that the newest operation is returned first.
8962
+ # Currently, only sorting by `name` or
8963
+ # `creationTimestamp desc` is supported.
8964
+ # @param [String] page_token
8965
+ # Specifies a page token to use. Set `pageToken` to the
8966
+ # `nextPageToken` returned by a previous list request to get
8967
+ # the next page of results.
8968
+ # @param [String] fields
8969
+ # Selector specifying which fields to include in a partial response.
8970
+ # @param [String] quota_user
8971
+ # Available to use for quota purposes for server-side applications. Can be any
8972
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8973
+ # @param [String] user_ip
8974
+ # Legacy name for parameter that has been superseded by `quotaUser`.
8975
+ # @param [Google::Apis::RequestOptions] options
8976
+ # Request-specific options
8977
+ #
8978
+ # @yield [result, err] Result & error if block supplied
8979
+ # @yieldparam result [Google::Apis::ComputePreview::ForwardingRuleList] parsed result object
8980
+ # @yieldparam err [StandardError] error object if request failed
8981
+ #
8982
+ # @return [Google::Apis::ComputePreview::ForwardingRuleList]
8983
+ #
8984
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8985
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8986
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8987
+ def list_forwarding_rules(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8988
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/forwardingRules', options)
8989
+ command.response_representation = Google::Apis::ComputePreview::ForwardingRuleList::Representation
8990
+ command.response_class = Google::Apis::ComputePreview::ForwardingRuleList
8991
+ command.params['project'] = project unless project.nil?
8992
+ command.params['region'] = region unless region.nil?
8993
+ command.query['filter'] = filter unless filter.nil?
8994
+ command.query['maxResults'] = max_results unless max_results.nil?
8995
+ command.query['orderBy'] = order_by unless order_by.nil?
8996
+ command.query['pageToken'] = page_token unless page_token.nil?
8997
+ command.query['fields'] = fields unless fields.nil?
8998
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8999
+ command.query['userIp'] = user_ip unless user_ip.nil?
9000
+ command.set_api_version_header "2026-10-01-preview"
9001
+ execute_or_queue_command(command, &block)
9002
+ end
9003
+
9004
+ # Updates the specified forwarding rule with the data included in the
9005
+ # request. This method supportsPATCH
9006
+ # semantics and uses theJSON merge
9007
+ # patch format and processing rules. Currently, you can only
9008
+ # patch the network_tier field.
9009
+ # @param [String] project
9010
+ # Project ID for this request.
9011
+ # @param [String] region
9012
+ # Name of the region scoping this request.
9013
+ # @param [String] forwarding_rule
9014
+ # Name of the ForwardingRule resource to patch.
9015
+ # @param [Google::Apis::ComputePreview::ForwardingRule] forwarding_rule_object
9016
+ # @param [String] request_id
9017
+ # An optional request ID to identify requests. Specify a unique request ID so
9018
+ # that if you must retry your request, the server will know to ignore the
9019
+ # request if it has already been completed.
9020
+ # For example, consider a situation where you make an initial request and
9021
+ # the request times out. If you make the request again with the same
9022
+ # request ID, the server can check if original operation with the same
9023
+ # request ID was received, and if so, will ignore the second request. This
9024
+ # prevents clients from accidentally creating duplicate commitments.
9025
+ # The request ID must be
9026
+ # a valid UUID with the exception that zero UUID is not supported
9027
+ # (00000000-0000-0000-0000-000000000000).
9028
+ # @param [String] fields
9029
+ # Selector specifying which fields to include in a partial response.
9030
+ # @param [String] quota_user
9031
+ # Available to use for quota purposes for server-side applications. Can be any
9032
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9033
+ # @param [String] user_ip
9034
+ # Legacy name for parameter that has been superseded by `quotaUser`.
9035
+ # @param [Google::Apis::RequestOptions] options
9036
+ # Request-specific options
9037
+ #
9038
+ # @yield [result, err] Result & error if block supplied
9039
+ # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
9040
+ # @yieldparam err [StandardError] error object if request failed
9041
+ #
9042
+ # @return [Google::Apis::ComputePreview::Operation]
9043
+ #
9044
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9045
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9046
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9047
+ def patch_forwarding_rule(project, region, forwarding_rule, forwarding_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9048
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/forwardingRules/{forwardingRule}', options)
9049
+ command.request_representation = Google::Apis::ComputePreview::ForwardingRule::Representation
9050
+ command.request_object = forwarding_rule_object
9051
+ command.response_representation = Google::Apis::ComputePreview::Operation::Representation
9052
+ command.response_class = Google::Apis::ComputePreview::Operation
9053
+ command.params['project'] = project unless project.nil?
9054
+ command.params['region'] = region unless region.nil?
9055
+ command.params['forwardingRule'] = forwarding_rule unless forwarding_rule.nil?
9056
+ command.query['requestId'] = request_id unless request_id.nil?
9057
+ command.query['fields'] = fields unless fields.nil?
9058
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9059
+ command.query['userIp'] = user_ip unless user_ip.nil?
9060
+ command.set_api_version_header "2026-10-01-preview"
9061
+ execute_or_queue_command(command, &block)
9062
+ end
9063
+
9064
+ # Sets the labels on the specified resource. To learn more about labels,
9065
+ # read the
9066
+ # Labeling Resources documentation.
9067
+ # @param [String] project
9068
+ # Project ID for this request.
9069
+ # @param [String] region
9070
+ # The region for this request.
9071
+ # @param [String] resource
9072
+ # Name or id of the resource for this request.
9073
+ # @param [Google::Apis::ComputePreview::RegionSetLabelsRequest] region_set_labels_request_object
9074
+ # @param [String] request_id
9075
+ # An optional request ID to identify requests. Specify a unique request ID so
9076
+ # that if you must retry your request, the server will know to ignore the
9077
+ # request if it has already been completed.
9078
+ # For example, consider a situation where you make an initial request and
9079
+ # the request times out. If you make the request again with the same
9080
+ # request ID, the server can check if original operation with the same
9081
+ # request ID was received, and if so, will ignore the second request. This
9082
+ # prevents clients from accidentally creating duplicate commitments.
9083
+ # The request ID must be
9084
+ # a valid UUID with the exception that zero UUID is not supported
9085
+ # (00000000-0000-0000-0000-000000000000).
9086
+ # @param [String] fields
9087
+ # Selector specifying which fields to include in a partial response.
9088
+ # @param [String] quota_user
9089
+ # Available to use for quota purposes for server-side applications. Can be any
9090
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9091
+ # @param [String] user_ip
9092
+ # Legacy name for parameter that has been superseded by `quotaUser`.
9093
+ # @param [Google::Apis::RequestOptions] options
9094
+ # Request-specific options
9095
+ #
9096
+ # @yield [result, err] Result & error if block supplied
9097
+ # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
9098
+ # @yieldparam err [StandardError] error object if request failed
9099
+ #
9100
+ # @return [Google::Apis::ComputePreview::Operation]
9101
+ #
9102
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9103
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9104
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9105
+ def set_forwarding_rule_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9106
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/forwardingRules/{resource}/setLabels', options)
9107
+ command.request_representation = Google::Apis::ComputePreview::RegionSetLabelsRequest::Representation
9108
+ command.request_object = region_set_labels_request_object
9109
+ command.response_representation = Google::Apis::ComputePreview::Operation::Representation
9110
+ command.response_class = Google::Apis::ComputePreview::Operation
9111
+ command.params['project'] = project unless project.nil?
9112
+ command.params['region'] = region unless region.nil?
9113
+ command.params['resource'] = resource unless resource.nil?
9114
+ command.query['requestId'] = request_id unless request_id.nil?
9115
+ command.query['fields'] = fields unless fields.nil?
9116
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9117
+ command.query['userIp'] = user_ip unless user_ip.nil?
9118
+ command.set_api_version_header "2026-10-01-preview"
9119
+ execute_or_queue_command(command, &block)
9120
+ end
9121
+
9122
+ # Changes target URL for forwarding rule. The new target should be of the
9123
+ # same type as the old target.
9124
+ # @param [String] project
9125
+ # Project ID for this request.
9126
+ # @param [String] region
9127
+ # Name of the region scoping this request.
9128
+ # @param [String] forwarding_rule
9129
+ # Name of the ForwardingRule resource in which target is to be set.
9130
+ # @param [Google::Apis::ComputePreview::TargetReference] target_reference_object
8090
9131
  # @param [String] request_id
8091
9132
  # An optional request ID to identify requests. Specify a unique request ID so
8092
9133
  # that if you must retry your request, the server will know to ignore the
@@ -9009,6 +10050,152 @@ module Google
9009
10050
  execute_or_queue_command(command, &block)
9010
10051
  end
9011
10052
 
10053
+ # Retrieves the specified Operations resource.
10054
+ # @param [String] folder
10055
+ # Folder ID for this request.
10056
+ # @param [String] operation
10057
+ # Name of the Operations resource to return.
10058
+ # @param [String] fields
10059
+ # Selector specifying which fields to include in a partial response.
10060
+ # @param [String] quota_user
10061
+ # Available to use for quota purposes for server-side applications. Can be any
10062
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10063
+ # @param [String] user_ip
10064
+ # Legacy name for parameter that has been superseded by `quotaUser`.
10065
+ # @param [Google::Apis::RequestOptions] options
10066
+ # Request-specific options
10067
+ #
10068
+ # @yield [result, err] Result & error if block supplied
10069
+ # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
10070
+ # @yieldparam err [StandardError] error object if request failed
10071
+ #
10072
+ # @return [Google::Apis::ComputePreview::Operation]
10073
+ #
10074
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10075
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10076
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10077
+ def get_global_folder_operation(folder, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10078
+ command = make_simple_command(:get, '{+folder}/global/operations/{operation}', options)
10079
+ command.response_representation = Google::Apis::ComputePreview::Operation::Representation
10080
+ command.response_class = Google::Apis::ComputePreview::Operation
10081
+ command.params['folder'] = folder unless folder.nil?
10082
+ command.params['operation'] = operation unless operation.nil?
10083
+ command.query['fields'] = fields unless fields.nil?
10084
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10085
+ command.query['userIp'] = user_ip unless user_ip.nil?
10086
+ command.set_api_version_header "2026-10-01-preview"
10087
+ execute_or_queue_command(command, &block)
10088
+ end
10089
+
10090
+ # Retrieves a list of Operation resources contained within the specified
10091
+ # folder.
10092
+ # @param [String] folder
10093
+ # Folder ID for this request.
10094
+ # @param [String] filter
10095
+ # A filter expression that filters resources listed in the response. Most
10096
+ # Compute resources support two types of filter expressions:
10097
+ # expressions that support regular expressions and expressions that follow
10098
+ # API improvement proposal AIP-160.
10099
+ # These two types of filter expressions cannot be mixed in one request.
10100
+ # If you want to use AIP-160, your expression must specify the field name, an
10101
+ # operator, and the value that you want to use for filtering. The value
10102
+ # must be a string, a number, or a boolean. The operator
10103
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
10104
+ # For example, if you are filtering Compute Engine instances, you can
10105
+ # exclude instances named `example-instance` by specifying
10106
+ # `name != example-instance`.
10107
+ # The `:*` comparison can be used to test whether a key has been defined.
10108
+ # For example, to find all objects with `owner` label use:
10109
+ # ```
10110
+ # labels.owner:*
10111
+ # ```
10112
+ # You can also filter nested fields. For example, you could specify
10113
+ # `scheduling.automaticRestart = false` to include instances only
10114
+ # if they are not scheduled for automatic restarts. You can use filtering
10115
+ # on nested fields to filter based onresource labels.
10116
+ # To filter on multiple expressions, provide each separate expression within
10117
+ # parentheses. For example:
10118
+ # ```
10119
+ # (scheduling.automaticRestart = true)
10120
+ # (cpuPlatform = "Intel Skylake")
10121
+ # ```
10122
+ # By default, each expression is an `AND` expression. However, you
10123
+ # can include `AND` and `OR` expressions explicitly.
10124
+ # For example:
10125
+ # ```
10126
+ # (cpuPlatform = "Intel Skylake") OR
10127
+ # (cpuPlatform = "Intel Broadwell") AND
10128
+ # (scheduling.automaticRestart = true)
10129
+ # ```
10130
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
10131
+ # (not equal) operator against a single un-parenthesized expression with or
10132
+ # without quotes or against multiple parenthesized expressions. Examples:
10133
+ # `fieldname eq unquoted literal`
10134
+ # `fieldname eq 'single quoted literal'`
10135
+ # `fieldname eq "double quoted literal"`
10136
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
10137
+ # The literal value is interpreted as a regular expression using GoogleRE2
10138
+ # library syntax.
10139
+ # The literal value must match the entire field.
10140
+ # For example, to filter for instances that do not end with name "instance",
10141
+ # you would use `name ne .*instance`.
10142
+ # You cannot combine constraints on multiple fields using regular
10143
+ # expressions.
10144
+ # @param [Fixnum] max_results
10145
+ # The maximum number of results per page that should be returned.
10146
+ # If the number of available results is larger than `maxResults`,
10147
+ # Compute Engine returns a `nextPageToken` that can be used to get
10148
+ # the next page of results in subsequent list requests. Acceptable values are
10149
+ # `0` to `500`, inclusive. (Default: `500`)
10150
+ # @param [String] order_by
10151
+ # Sorts list results by a certain order. By default, results
10152
+ # are returned in alphanumerical order based on the resource name.
10153
+ # You can also sort results in descending order based on the creation
10154
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
10155
+ # results based on the `creationTimestamp` field in
10156
+ # reverse chronological order (newest result first). Use this to sort
10157
+ # resources like operations so that the newest operation is returned first.
10158
+ # Currently, only sorting by `name` or
10159
+ # `creationTimestamp desc` is supported.
10160
+ # @param [String] page_token
10161
+ # Specifies a page token to use. Set `pageToken` to the
10162
+ # `nextPageToken` returned by a previous list request to get
10163
+ # the next page of results.
10164
+ # @param [String] fields
10165
+ # Selector specifying which fields to include in a partial response.
10166
+ # @param [String] quota_user
10167
+ # Available to use for quota purposes for server-side applications. Can be any
10168
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10169
+ # @param [String] user_ip
10170
+ # Legacy name for parameter that has been superseded by `quotaUser`.
10171
+ # @param [Google::Apis::RequestOptions] options
10172
+ # Request-specific options
10173
+ #
10174
+ # @yield [result, err] Result & error if block supplied
10175
+ # @yieldparam result [Google::Apis::ComputePreview::OperationList] parsed result object
10176
+ # @yieldparam err [StandardError] error object if request failed
10177
+ #
10178
+ # @return [Google::Apis::ComputePreview::OperationList]
10179
+ #
10180
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10181
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10182
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10183
+ def list_global_folder_operations(folder, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10184
+ command = make_simple_command(:get, '{+folder}/global/operations', options)
10185
+ command.response_representation = Google::Apis::ComputePreview::OperationList::Representation
10186
+ command.response_class = Google::Apis::ComputePreview::OperationList
10187
+ command.params['folder'] = folder unless folder.nil?
10188
+ command.query['filter'] = filter unless filter.nil?
10189
+ command.query['maxResults'] = max_results unless max_results.nil?
10190
+ command.query['orderBy'] = order_by unless order_by.nil?
10191
+ command.query['pageToken'] = page_token unless page_token.nil?
10192
+ command.query['fields'] = fields unless fields.nil?
10193
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10194
+ command.query['userIp'] = user_ip unless user_ip.nil?
10195
+ command.set_api_version_header "2026-10-01-preview"
10196
+ execute_or_queue_command(command, &block)
10197
+ end
10198
+
9012
10199
  # Deletes the specified GlobalForwardingRule resource.
9013
10200
  # @param [String] project
9014
10201
  # Project ID for this request.
@@ -10871,14 +12058,309 @@ module Google
10871
12058
  # you would use `name ne .*instance`.
10872
12059
  # You cannot combine constraints on multiple fields using regular
10873
12060
  # expressions.
10874
- # @param [Boolean] include_all_scopes
10875
- # Indicates whether every visible scope for each scope type (zone, region,
10876
- # global) should be included in the response. For new resource types added
10877
- # after this field, the flag has no effect as new resource types will always
10878
- # include every visible scope for each scope type in response. For resource
10879
- # types which predate this field, if this flag is omitted or false, only
10880
- # scopes of the scope types where the resource type is expected to be found
10881
- # will be included.
12061
+ # @param [Boolean] include_all_scopes
12062
+ # Indicates whether every visible scope for each scope type (zone, region,
12063
+ # global) should be included in the response. For new resource types added
12064
+ # after this field, the flag has no effect as new resource types will always
12065
+ # include every visible scope for each scope type in response. For resource
12066
+ # types which predate this field, if this flag is omitted or false, only
12067
+ # scopes of the scope types where the resource type is expected to be found
12068
+ # will be included.
12069
+ # @param [Fixnum] max_results
12070
+ # The maximum number of results per page that should be returned.
12071
+ # If the number of available results is larger than `maxResults`,
12072
+ # Compute Engine returns a `nextPageToken` that can be used to get
12073
+ # the next page of results in subsequent list requests. Acceptable values are
12074
+ # `0` to `500`, inclusive. (Default: `500`)
12075
+ # @param [String] order_by
12076
+ # Sorts list results by a certain order. By default, results
12077
+ # are returned in alphanumerical order based on the resource name.
12078
+ # You can also sort results in descending order based on the creation
12079
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
12080
+ # results based on the `creationTimestamp` field in
12081
+ # reverse chronological order (newest result first). Use this to sort
12082
+ # resources like operations so that the newest operation is returned first.
12083
+ # Currently, only sorting by `name` or
12084
+ # `creationTimestamp desc` is supported.
12085
+ # @param [String] page_token
12086
+ # Specifies a page token to use. Set `pageToken` to the
12087
+ # `nextPageToken` returned by a previous list request to get
12088
+ # the next page of results.
12089
+ # @param [Fixnum] service_project_number
12090
+ # The Shared VPC service project id or service project number for which
12091
+ # aggregated list request is invoked for subnetworks list-usable api.
12092
+ # @param [String] fields
12093
+ # Selector specifying which fields to include in a partial response.
12094
+ # @param [String] quota_user
12095
+ # Available to use for quota purposes for server-side applications. Can be any
12096
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
12097
+ # @param [String] user_ip
12098
+ # Legacy name for parameter that has been superseded by `quotaUser`.
12099
+ # @param [Google::Apis::RequestOptions] options
12100
+ # Request-specific options
12101
+ #
12102
+ # @yield [result, err] Result & error if block supplied
12103
+ # @yieldparam result [Google::Apis::ComputePreview::VmExtensionPolicyAggregatedListResponse] parsed result object
12104
+ # @yieldparam err [StandardError] error object if request failed
12105
+ #
12106
+ # @return [Google::Apis::ComputePreview::VmExtensionPolicyAggregatedListResponse]
12107
+ #
12108
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12109
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12110
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
12111
+ def aggregated_global_vm_extension_policy_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12112
+ command = make_simple_command(:get, 'projects/{project}/aggregated/vmExtensionPolicies', options)
12113
+ command.response_representation = Google::Apis::ComputePreview::VmExtensionPolicyAggregatedListResponse::Representation
12114
+ command.response_class = Google::Apis::ComputePreview::VmExtensionPolicyAggregatedListResponse
12115
+ command.params['project'] = project unless project.nil?
12116
+ command.query['filter'] = filter unless filter.nil?
12117
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
12118
+ command.query['maxResults'] = max_results unless max_results.nil?
12119
+ command.query['orderBy'] = order_by unless order_by.nil?
12120
+ command.query['pageToken'] = page_token unless page_token.nil?
12121
+ command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
12122
+ command.query['fields'] = fields unless fields.nil?
12123
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
12124
+ command.query['userIp'] = user_ip unless user_ip.nil?
12125
+ command.set_api_version_header "2026-10-01-preview"
12126
+ execute_or_queue_command(command, &block)
12127
+ end
12128
+
12129
+ # Purge scoped resources (zonal policies) from a global VM extension
12130
+ # policy, and then delete the global VM extension policy. Purge of the scoped
12131
+ # resources is a pre-condition of the global VM extension policy deletion.
12132
+ # The deletion of the global VM extension policy happens after the purge
12133
+ # rollout is done, so it's not a part of the LRO. It's an automatic process
12134
+ # that triggers in the backend.
12135
+ # @param [String] project
12136
+ # Project ID for this request.
12137
+ # @param [String] global_vm_extension_policy
12138
+ # Name of the global VM extension policy to purge scoped resources for.
12139
+ # @param [Google::Apis::ComputePreview::GlobalVmExtensionPolicyRolloutOperationRolloutInput] global_vm_extension_policy_rollout_operation_rollout_input_object
12140
+ # @param [String] request_id
12141
+ # An optional request ID to identify requests. Specify a unique request ID so
12142
+ # that if you must retry your request, the server will know to ignore the
12143
+ # request if it has already been completed.
12144
+ # For example, consider a situation where you make an initial request and
12145
+ # the request times out. If you make the request again with the same
12146
+ # request ID, the server can check if original operation with the same
12147
+ # request ID was received, and if so, will ignore the second request. This
12148
+ # prevents clients from accidentally creating duplicate commitments.
12149
+ # The request ID must be
12150
+ # a valid UUID with the exception that zero UUID is not supported
12151
+ # (00000000-0000-0000-0000-000000000000).
12152
+ # @param [String] fields
12153
+ # Selector specifying which fields to include in a partial response.
12154
+ # @param [String] quota_user
12155
+ # Available to use for quota purposes for server-side applications. Can be any
12156
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
12157
+ # @param [String] user_ip
12158
+ # Legacy name for parameter that has been superseded by `quotaUser`.
12159
+ # @param [Google::Apis::RequestOptions] options
12160
+ # Request-specific options
12161
+ #
12162
+ # @yield [result, err] Result & error if block supplied
12163
+ # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
12164
+ # @yieldparam err [StandardError] error object if request failed
12165
+ #
12166
+ # @return [Google::Apis::ComputePreview::Operation]
12167
+ #
12168
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12169
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12170
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
12171
+ def delete_global_vm_extension_policy(project, global_vm_extension_policy, global_vm_extension_policy_rollout_operation_rollout_input_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12172
+ command = make_simple_command(:post, 'projects/{project}/global/vmExtensionPolicies/{globalVmExtensionPolicy}/delete', options)
12173
+ command.request_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicyRolloutOperationRolloutInput::Representation
12174
+ command.request_object = global_vm_extension_policy_rollout_operation_rollout_input_object
12175
+ command.response_representation = Google::Apis::ComputePreview::Operation::Representation
12176
+ command.response_class = Google::Apis::ComputePreview::Operation
12177
+ command.params['project'] = project unless project.nil?
12178
+ command.params['globalVmExtensionPolicy'] = global_vm_extension_policy unless global_vm_extension_policy.nil?
12179
+ command.query['requestId'] = request_id unless request_id.nil?
12180
+ command.query['fields'] = fields unless fields.nil?
12181
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
12182
+ command.query['userIp'] = user_ip unless user_ip.nil?
12183
+ command.set_api_version_header "2026-10-01-preview"
12184
+ execute_or_queue_command(command, &block)
12185
+ end
12186
+
12187
+ # Gets details of a global VM extension policy.
12188
+ # @param [String] project
12189
+ # Project ID for this request.
12190
+ # @param [String] global_vm_extension_policy
12191
+ # Name of the GlobalVmExtensionPolicy resource to return.
12192
+ # @param [String] fields
12193
+ # Selector specifying which fields to include in a partial response.
12194
+ # @param [String] quota_user
12195
+ # Available to use for quota purposes for server-side applications. Can be any
12196
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
12197
+ # @param [String] user_ip
12198
+ # Legacy name for parameter that has been superseded by `quotaUser`.
12199
+ # @param [Google::Apis::RequestOptions] options
12200
+ # Request-specific options
12201
+ #
12202
+ # @yield [result, err] Result & error if block supplied
12203
+ # @yieldparam result [Google::Apis::ComputePreview::GlobalVmExtensionPolicy] parsed result object
12204
+ # @yieldparam err [StandardError] error object if request failed
12205
+ #
12206
+ # @return [Google::Apis::ComputePreview::GlobalVmExtensionPolicy]
12207
+ #
12208
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12209
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12210
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
12211
+ def get_global_vm_extension_policy(project, global_vm_extension_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12212
+ command = make_simple_command(:get, 'projects/{project}/global/vmExtensionPolicies/{globalVmExtensionPolicy}', options)
12213
+ command.response_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicy::Representation
12214
+ command.response_class = Google::Apis::ComputePreview::GlobalVmExtensionPolicy
12215
+ command.params['project'] = project unless project.nil?
12216
+ command.params['globalVmExtensionPolicy'] = global_vm_extension_policy unless global_vm_extension_policy.nil?
12217
+ command.query['fields'] = fields unless fields.nil?
12218
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
12219
+ command.query['userIp'] = user_ip unless user_ip.nil?
12220
+ command.set_api_version_header "2026-10-01-preview"
12221
+ execute_or_queue_command(command, &block)
12222
+ end
12223
+
12224
+ # Retrieves details of a specific VM extension.
12225
+ # @param [String] project
12226
+ # Project ID for this request.
12227
+ # @param [String] extension_name
12228
+ # Required. Name of the VM extension for this request.
12229
+ # @param [String] fields
12230
+ # Selector specifying which fields to include in a partial response.
12231
+ # @param [String] quota_user
12232
+ # Available to use for quota purposes for server-side applications. Can be any
12233
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
12234
+ # @param [String] user_ip
12235
+ # Legacy name for parameter that has been superseded by `quotaUser`.
12236
+ # @param [Google::Apis::RequestOptions] options
12237
+ # Request-specific options
12238
+ #
12239
+ # @yield [result, err] Result & error if block supplied
12240
+ # @yieldparam result [Google::Apis::ComputePreview::GlobalVmExtension] parsed result object
12241
+ # @yieldparam err [StandardError] error object if request failed
12242
+ #
12243
+ # @return [Google::Apis::ComputePreview::GlobalVmExtension]
12244
+ #
12245
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12246
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12247
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
12248
+ def get_global_vm_extension_policy_vm_extension(project, extension_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12249
+ command = make_simple_command(:get, 'projects/{project}/global/vmExtensions/{extensionName}', options)
12250
+ command.response_representation = Google::Apis::ComputePreview::GlobalVmExtension::Representation
12251
+ command.response_class = Google::Apis::ComputePreview::GlobalVmExtension
12252
+ command.params['project'] = project unless project.nil?
12253
+ command.params['extensionName'] = extension_name unless extension_name.nil?
12254
+ command.query['fields'] = fields unless fields.nil?
12255
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
12256
+ command.query['userIp'] = user_ip unless user_ip.nil?
12257
+ command.set_api_version_header "2026-10-01-preview"
12258
+ execute_or_queue_command(command, &block)
12259
+ end
12260
+
12261
+ # Creates a new project level GlobalVmExtensionPolicy.
12262
+ # @param [String] project
12263
+ # Project ID for this request.
12264
+ # @param [Google::Apis::ComputePreview::GlobalVmExtensionPolicy] global_vm_extension_policy_object
12265
+ # @param [String] request_id
12266
+ # An optional request ID to identify requests. Specify a unique request ID so
12267
+ # that if you must retry your request, the server will know to ignore the
12268
+ # request if it has already been completed.
12269
+ # For example, consider a situation where you make an initial request and
12270
+ # the request times out. If you make the request again with the same
12271
+ # request ID, the server can check if original operation with the same
12272
+ # request ID was received, and if so, will ignore the second request. This
12273
+ # prevents clients from accidentally creating duplicate commitments.
12274
+ # The request ID must be
12275
+ # a valid UUID with the exception that zero UUID is not supported
12276
+ # (00000000-0000-0000-0000-000000000000).
12277
+ # @param [String] fields
12278
+ # Selector specifying which fields to include in a partial response.
12279
+ # @param [String] quota_user
12280
+ # Available to use for quota purposes for server-side applications. Can be any
12281
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
12282
+ # @param [String] user_ip
12283
+ # Legacy name for parameter that has been superseded by `quotaUser`.
12284
+ # @param [Google::Apis::RequestOptions] options
12285
+ # Request-specific options
12286
+ #
12287
+ # @yield [result, err] Result & error if block supplied
12288
+ # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
12289
+ # @yieldparam err [StandardError] error object if request failed
12290
+ #
12291
+ # @return [Google::Apis::ComputePreview::Operation]
12292
+ #
12293
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12294
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12295
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
12296
+ def insert_global_vm_extension_policy(project, global_vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12297
+ command = make_simple_command(:post, 'projects/{project}/global/vmExtensionPolicies', options)
12298
+ command.request_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicy::Representation
12299
+ command.request_object = global_vm_extension_policy_object
12300
+ command.response_representation = Google::Apis::ComputePreview::Operation::Representation
12301
+ command.response_class = Google::Apis::ComputePreview::Operation
12302
+ command.params['project'] = project unless project.nil?
12303
+ command.query['requestId'] = request_id unless request_id.nil?
12304
+ command.query['fields'] = fields unless fields.nil?
12305
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
12306
+ command.query['userIp'] = user_ip unless user_ip.nil?
12307
+ command.set_api_version_header "2026-10-01-preview"
12308
+ execute_or_queue_command(command, &block)
12309
+ end
12310
+
12311
+ # Lists global VM extension policies.
12312
+ # @param [String] project
12313
+ # Project ID for this request.
12314
+ # @param [String] filter
12315
+ # A filter expression that filters resources listed in the response. Most
12316
+ # Compute resources support two types of filter expressions:
12317
+ # expressions that support regular expressions and expressions that follow
12318
+ # API improvement proposal AIP-160.
12319
+ # These two types of filter expressions cannot be mixed in one request.
12320
+ # If you want to use AIP-160, your expression must specify the field name, an
12321
+ # operator, and the value that you want to use for filtering. The value
12322
+ # must be a string, a number, or a boolean. The operator
12323
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
12324
+ # For example, if you are filtering Compute Engine instances, you can
12325
+ # exclude instances named `example-instance` by specifying
12326
+ # `name != example-instance`.
12327
+ # The `:*` comparison can be used to test whether a key has been defined.
12328
+ # For example, to find all objects with `owner` label use:
12329
+ # ```
12330
+ # labels.owner:*
12331
+ # ```
12332
+ # You can also filter nested fields. For example, you could specify
12333
+ # `scheduling.automaticRestart = false` to include instances only
12334
+ # if they are not scheduled for automatic restarts. You can use filtering
12335
+ # on nested fields to filter based onresource labels.
12336
+ # To filter on multiple expressions, provide each separate expression within
12337
+ # parentheses. For example:
12338
+ # ```
12339
+ # (scheduling.automaticRestart = true)
12340
+ # (cpuPlatform = "Intel Skylake")
12341
+ # ```
12342
+ # By default, each expression is an `AND` expression. However, you
12343
+ # can include `AND` and `OR` expressions explicitly.
12344
+ # For example:
12345
+ # ```
12346
+ # (cpuPlatform = "Intel Skylake") OR
12347
+ # (cpuPlatform = "Intel Broadwell") AND
12348
+ # (scheduling.automaticRestart = true)
12349
+ # ```
12350
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
12351
+ # (not equal) operator against a single un-parenthesized expression with or
12352
+ # without quotes or against multiple parenthesized expressions. Examples:
12353
+ # `fieldname eq unquoted literal`
12354
+ # `fieldname eq 'single quoted literal'`
12355
+ # `fieldname eq "double quoted literal"`
12356
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
12357
+ # The literal value is interpreted as a regular expression using GoogleRE2
12358
+ # library syntax.
12359
+ # The literal value must match the entire field.
12360
+ # For example, to filter for instances that do not end with name "instance",
12361
+ # you would use `name ne .*instance`.
12362
+ # You cannot combine constraints on multiple fields using regular
12363
+ # expressions.
10882
12364
  # @param [Fixnum] max_results
10883
12365
  # The maximum number of results per page that should be returned.
10884
12366
  # If the number of available results is larger than `maxResults`,
@@ -10899,9 +12381,6 @@ module Google
10899
12381
  # Specifies a page token to use. Set `pageToken` to the
10900
12382
  # `nextPageToken` returned by a previous list request to get
10901
12383
  # the next page of results.
10902
- # @param [Fixnum] service_project_number
10903
- # The Shared VPC service project id or service project number for which
10904
- # aggregated list request is invoked for subnetworks list-usable api.
10905
12384
  # @param [String] fields
10906
12385
  # Selector specifying which fields to include in a partial response.
10907
12386
  # @param [String] quota_user
@@ -10913,83 +12392,23 @@ module Google
10913
12392
  # Request-specific options
10914
12393
  #
10915
12394
  # @yield [result, err] Result & error if block supplied
10916
- # @yieldparam result [Google::Apis::ComputePreview::VmExtensionPolicyAggregatedListResponse] parsed result object
12395
+ # @yieldparam result [Google::Apis::ComputePreview::GlobalVmExtensionPolicyList] parsed result object
10917
12396
  # @yieldparam err [StandardError] error object if request failed
10918
12397
  #
10919
- # @return [Google::Apis::ComputePreview::VmExtensionPolicyAggregatedListResponse]
12398
+ # @return [Google::Apis::ComputePreview::GlobalVmExtensionPolicyList]
10920
12399
  #
10921
12400
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10922
12401
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10923
12402
  # @raise [Google::Apis::AuthorizationError] Authorization is required
10924
- def aggregated_global_vm_extension_policy_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10925
- command = make_simple_command(:get, 'projects/{project}/aggregated/vmExtensionPolicies', options)
10926
- command.response_representation = Google::Apis::ComputePreview::VmExtensionPolicyAggregatedListResponse::Representation
10927
- command.response_class = Google::Apis::ComputePreview::VmExtensionPolicyAggregatedListResponse
12403
+ def list_global_vm_extension_policies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12404
+ command = make_simple_command(:get, 'projects/{project}/global/vmExtensionPolicies', options)
12405
+ command.response_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicyList::Representation
12406
+ command.response_class = Google::Apis::ComputePreview::GlobalVmExtensionPolicyList
10928
12407
  command.params['project'] = project unless project.nil?
10929
12408
  command.query['filter'] = filter unless filter.nil?
10930
- command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
10931
12409
  command.query['maxResults'] = max_results unless max_results.nil?
10932
12410
  command.query['orderBy'] = order_by unless order_by.nil?
10933
12411
  command.query['pageToken'] = page_token unless page_token.nil?
10934
- command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
10935
- command.query['fields'] = fields unless fields.nil?
10936
- command.query['quotaUser'] = quota_user unless quota_user.nil?
10937
- command.query['userIp'] = user_ip unless user_ip.nil?
10938
- command.set_api_version_header "2026-10-01-preview"
10939
- execute_or_queue_command(command, &block)
10940
- end
10941
-
10942
- # Purge scoped resources (zonal policies) from a global VM extension
10943
- # policy, and then delete the global VM extension policy. Purge of the scoped
10944
- # resources is a pre-condition of the global VM extension policy deletion.
10945
- # The deletion of the global VM extension policy happens after the purge
10946
- # rollout is done, so it's not a part of the LRO. It's an automatic process
10947
- # that triggers in the backend.
10948
- # @param [String] project
10949
- # Project ID for this request.
10950
- # @param [String] global_vm_extension_policy
10951
- # Name of the global VM extension policy to purge scoped resources for.
10952
- # @param [Google::Apis::ComputePreview::GlobalVmExtensionPolicyRolloutOperationRolloutInput] global_vm_extension_policy_rollout_operation_rollout_input_object
10953
- # @param [String] request_id
10954
- # An optional request ID to identify requests. Specify a unique request ID so
10955
- # that if you must retry your request, the server will know to ignore the
10956
- # request if it has already been completed.
10957
- # For example, consider a situation where you make an initial request and
10958
- # the request times out. If you make the request again with the same
10959
- # request ID, the server can check if original operation with the same
10960
- # request ID was received, and if so, will ignore the second request. This
10961
- # prevents clients from accidentally creating duplicate commitments.
10962
- # The request ID must be
10963
- # a valid UUID with the exception that zero UUID is not supported
10964
- # (00000000-0000-0000-0000-000000000000).
10965
- # @param [String] fields
10966
- # Selector specifying which fields to include in a partial response.
10967
- # @param [String] quota_user
10968
- # Available to use for quota purposes for server-side applications. Can be any
10969
- # arbitrary string assigned to a user, but should not exceed 40 characters.
10970
- # @param [String] user_ip
10971
- # Legacy name for parameter that has been superseded by `quotaUser`.
10972
- # @param [Google::Apis::RequestOptions] options
10973
- # Request-specific options
10974
- #
10975
- # @yield [result, err] Result & error if block supplied
10976
- # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
10977
- # @yieldparam err [StandardError] error object if request failed
10978
- #
10979
- # @return [Google::Apis::ComputePreview::Operation]
10980
- #
10981
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10982
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10983
- # @raise [Google::Apis::AuthorizationError] Authorization is required
10984
- def delete_global_vm_extension_policy(project, global_vm_extension_policy, global_vm_extension_policy_rollout_operation_rollout_input_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10985
- command = make_simple_command(:post, 'projects/{project}/global/vmExtensionPolicies/{globalVmExtensionPolicy}/delete', options)
10986
- command.request_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicyRolloutOperationRolloutInput::Representation
10987
- command.request_object = global_vm_extension_policy_rollout_operation_rollout_input_object
10988
- command.response_representation = Google::Apis::ComputePreview::Operation::Representation
10989
- command.response_class = Google::Apis::ComputePreview::Operation
10990
- command.params['project'] = project unless project.nil?
10991
- command.params['globalVmExtensionPolicy'] = global_vm_extension_policy unless global_vm_extension_policy.nil?
10992
- command.query['requestId'] = request_id unless request_id.nil?
10993
12412
  command.query['fields'] = fields unless fields.nil?
10994
12413
  command.query['quotaUser'] = quota_user unless quota_user.nil?
10995
12414
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -10997,96 +12416,10 @@ module Google
10997
12416
  execute_or_queue_command(command, &block)
10998
12417
  end
10999
12418
 
11000
- # Gets details of a global VM extension policy.
12419
+ # Lists all VM extensions within a specific zone for a project.
12420
+ # This is a read-only API.
11001
12421
  # @param [String] project
11002
- # Project ID for this request.
11003
- # @param [String] global_vm_extension_policy
11004
- # Name of the GlobalVmExtensionPolicy resource to return.
11005
- # @param [String] fields
11006
- # Selector specifying which fields to include in a partial response.
11007
- # @param [String] quota_user
11008
- # Available to use for quota purposes for server-side applications. Can be any
11009
- # arbitrary string assigned to a user, but should not exceed 40 characters.
11010
- # @param [String] user_ip
11011
- # Legacy name for parameter that has been superseded by `quotaUser`.
11012
- # @param [Google::Apis::RequestOptions] options
11013
- # Request-specific options
11014
- #
11015
- # @yield [result, err] Result & error if block supplied
11016
- # @yieldparam result [Google::Apis::ComputePreview::GlobalVmExtensionPolicy] parsed result object
11017
- # @yieldparam err [StandardError] error object if request failed
11018
- #
11019
- # @return [Google::Apis::ComputePreview::GlobalVmExtensionPolicy]
11020
- #
11021
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11022
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11023
- # @raise [Google::Apis::AuthorizationError] Authorization is required
11024
- def get_global_vm_extension_policy(project, global_vm_extension_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11025
- command = make_simple_command(:get, 'projects/{project}/global/vmExtensionPolicies/{globalVmExtensionPolicy}', options)
11026
- command.response_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicy::Representation
11027
- command.response_class = Google::Apis::ComputePreview::GlobalVmExtensionPolicy
11028
- command.params['project'] = project unless project.nil?
11029
- command.params['globalVmExtensionPolicy'] = global_vm_extension_policy unless global_vm_extension_policy.nil?
11030
- command.query['fields'] = fields unless fields.nil?
11031
- command.query['quotaUser'] = quota_user unless quota_user.nil?
11032
- command.query['userIp'] = user_ip unless user_ip.nil?
11033
- command.set_api_version_header "2026-10-01-preview"
11034
- execute_or_queue_command(command, &block)
11035
- end
11036
-
11037
- # Creates a new project level GlobalVmExtensionPolicy.
11038
- # @param [String] project
11039
- # Project ID for this request.
11040
- # @param [Google::Apis::ComputePreview::GlobalVmExtensionPolicy] global_vm_extension_policy_object
11041
- # @param [String] request_id
11042
- # An optional request ID to identify requests. Specify a unique request ID so
11043
- # that if you must retry your request, the server will know to ignore the
11044
- # request if it has already been completed.
11045
- # For example, consider a situation where you make an initial request and
11046
- # the request times out. If you make the request again with the same
11047
- # request ID, the server can check if original operation with the same
11048
- # request ID was received, and if so, will ignore the second request. This
11049
- # prevents clients from accidentally creating duplicate commitments.
11050
- # The request ID must be
11051
- # a valid UUID with the exception that zero UUID is not supported
11052
- # (00000000-0000-0000-0000-000000000000).
11053
- # @param [String] fields
11054
- # Selector specifying which fields to include in a partial response.
11055
- # @param [String] quota_user
11056
- # Available to use for quota purposes for server-side applications. Can be any
11057
- # arbitrary string assigned to a user, but should not exceed 40 characters.
11058
- # @param [String] user_ip
11059
- # Legacy name for parameter that has been superseded by `quotaUser`.
11060
- # @param [Google::Apis::RequestOptions] options
11061
- # Request-specific options
11062
- #
11063
- # @yield [result, err] Result & error if block supplied
11064
- # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
11065
- # @yieldparam err [StandardError] error object if request failed
11066
- #
11067
- # @return [Google::Apis::ComputePreview::Operation]
11068
- #
11069
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11070
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11071
- # @raise [Google::Apis::AuthorizationError] Authorization is required
11072
- def insert_global_vm_extension_policy(project, global_vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11073
- command = make_simple_command(:post, 'projects/{project}/global/vmExtensionPolicies', options)
11074
- command.request_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicy::Representation
11075
- command.request_object = global_vm_extension_policy_object
11076
- command.response_representation = Google::Apis::ComputePreview::Operation::Representation
11077
- command.response_class = Google::Apis::ComputePreview::Operation
11078
- command.params['project'] = project unless project.nil?
11079
- command.query['requestId'] = request_id unless request_id.nil?
11080
- command.query['fields'] = fields unless fields.nil?
11081
- command.query['quotaUser'] = quota_user unless quota_user.nil?
11082
- command.query['userIp'] = user_ip unless user_ip.nil?
11083
- command.set_api_version_header "2026-10-01-preview"
11084
- execute_or_queue_command(command, &block)
11085
- end
11086
-
11087
- # Lists global VM extension policies.
11088
- # @param [String] project
11089
- # Project ID for this request.
12422
+ # Required. Project ID for this request.
11090
12423
  # @param [String] filter
11091
12424
  # A filter expression that filters resources listed in the response. Most
11092
12425
  # Compute resources support two types of filter expressions:
@@ -11168,18 +12501,18 @@ module Google
11168
12501
  # Request-specific options
11169
12502
  #
11170
12503
  # @yield [result, err] Result & error if block supplied
11171
- # @yieldparam result [Google::Apis::ComputePreview::GlobalVmExtensionPolicyList] parsed result object
12504
+ # @yieldparam result [Google::Apis::ComputePreview::GlobalListVmExtensionsResponse] parsed result object
11172
12505
  # @yieldparam err [StandardError] error object if request failed
11173
12506
  #
11174
- # @return [Google::Apis::ComputePreview::GlobalVmExtensionPolicyList]
12507
+ # @return [Google::Apis::ComputePreview::GlobalListVmExtensionsResponse]
11175
12508
  #
11176
12509
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11177
12510
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11178
12511
  # @raise [Google::Apis::AuthorizationError] Authorization is required
11179
- def list_global_vm_extension_policies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11180
- command = make_simple_command(:get, 'projects/{project}/global/vmExtensionPolicies', options)
11181
- command.response_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicyList::Representation
11182
- command.response_class = Google::Apis::ComputePreview::GlobalVmExtensionPolicyList
12512
+ def list_global_vm_extension_policy_vm_extensions(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12513
+ command = make_simple_command(:get, 'projects/{project}/global/vmExtensions', options)
12514
+ command.response_representation = Google::Apis::ComputePreview::GlobalListVmExtensionsResponse::Representation
12515
+ command.response_class = Google::Apis::ComputePreview::GlobalListVmExtensionsResponse
11183
12516
  command.params['project'] = project unless project.nil?
11184
12517
  command.query['filter'] = filter unless filter.nil?
11185
12518
  command.query['maxResults'] = max_results unless max_results.nil?
@@ -20258,70 +21591,6 @@ module Google
20258
21591
  execute_or_queue_command(command, &block)
20259
21592
  end
20260
21593
 
20261
- # Initiates diagnostic troubleshooting on the specified instance.
20262
- # This operation cannot be cancelled.
20263
- # @param [String] project
20264
- # Project ID for this request.
20265
- # @param [String] zone
20266
- # The name of the zone for this request.
20267
- # @param [String] instance
20268
- # Name of the instance scoping this request.
20269
- # @param [String] params_end_time
20270
- # Input only. Timestamp representing the end of the troubleshooting window
20271
- # in RFC3339
20272
- # text format. If omitted, defaults to 'now'.
20273
- # @param [String] params_start_time
20274
- # Input only. Timestamp representing the beginning of the troubleshooting window
20275
- # in RFC3339
20276
- # text format. If omitted, defaults to the last 12 hours.
20277
- # @param [String] request_id
20278
- # An optional request ID to identify requests. Specify a unique request ID so
20279
- # that if you must retry your request, the server will know to ignore the
20280
- # request if it has already been completed.
20281
- # For example, consider a situation where you make an initial request and
20282
- # the request times out. If you make the request again with the same
20283
- # request ID, the server can check if original operation with the same
20284
- # request ID was received, and if so, will ignore the second request. This
20285
- # prevents clients from accidentally creating duplicate commitments.
20286
- # The request ID must be
20287
- # a valid UUID with the exception that zero UUID is not supported
20288
- # (00000000-0000-0000-0000-000000000000).
20289
- # @param [String] fields
20290
- # Selector specifying which fields to include in a partial response.
20291
- # @param [String] quota_user
20292
- # Available to use for quota purposes for server-side applications. Can be any
20293
- # arbitrary string assigned to a user, but should not exceed 40 characters.
20294
- # @param [String] user_ip
20295
- # Legacy name for parameter that has been superseded by `quotaUser`.
20296
- # @param [Google::Apis::RequestOptions] options
20297
- # Request-specific options
20298
- #
20299
- # @yield [result, err] Result & error if block supplied
20300
- # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
20301
- # @yieldparam err [StandardError] error object if request failed
20302
- #
20303
- # @return [Google::Apis::ComputePreview::Operation]
20304
- #
20305
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
20306
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
20307
- # @raise [Google::Apis::AuthorizationError] Authorization is required
20308
- def troubleshoot_instance(project, zone, instance, params_end_time: nil, params_start_time: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
20309
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/troubleshoot', options)
20310
- command.response_representation = Google::Apis::ComputePreview::Operation::Representation
20311
- command.response_class = Google::Apis::ComputePreview::Operation
20312
- command.params['project'] = project unless project.nil?
20313
- command.params['zone'] = zone unless zone.nil?
20314
- command.params['instance'] = instance unless instance.nil?
20315
- command.query['params.endTime'] = params_end_time unless params_end_time.nil?
20316
- command.query['params.startTime'] = params_start_time unless params_start_time.nil?
20317
- command.query['requestId'] = request_id unless request_id.nil?
20318
- command.query['fields'] = fields unless fields.nil?
20319
- command.query['quotaUser'] = quota_user unless quota_user.nil?
20320
- command.query['userIp'] = user_ip unless user_ip.nil?
20321
- command.set_api_version_header "2026-10-01-preview"
20322
- execute_or_queue_command(command, &block)
20323
- end
20324
-
20325
21594
  # Updates an instance only if the necessary resources are available. This
20326
21595
  # method can update only a specific set of instance properties. See
20327
21596
  # Updating a running instance for a list of updatable instance
@@ -28962,6 +30231,61 @@ module Google
28962
30231
  execute_or_queue_command(command, &block)
28963
30232
  end
28964
30233
 
30234
+ # Updates the network profile of the specified network.
30235
+ # Currently only the following operations are supported:
30236
+ # - Removing a Regionally Bound Network Profile
30237
+ # @param [String] project
30238
+ # Project ID for this request.
30239
+ # @param [String] network
30240
+ # Name of the network resource to update the network profile for.
30241
+ # @param [Google::Apis::ComputePreview::NetworksUpdateNetworkProfileRequest] networks_update_network_profile_request_object
30242
+ # @param [String] request_id
30243
+ # An optional request ID to identify requests. Specify a unique request ID so
30244
+ # that if you must retry your request, the server will know to ignore the
30245
+ # request if it has already been completed.
30246
+ # For example, consider a situation where you make an initial request and
30247
+ # the request times out. If you make the request again with the same
30248
+ # request ID, the server can check if original operation with the same
30249
+ # request ID was received, and if so, will ignore the second request. This
30250
+ # prevents clients from accidentally creating duplicate commitments.
30251
+ # The request ID must be
30252
+ # a valid UUID with the exception that zero UUID is not supported
30253
+ # (00000000-0000-0000-0000-000000000000).
30254
+ # @param [String] fields
30255
+ # Selector specifying which fields to include in a partial response.
30256
+ # @param [String] quota_user
30257
+ # Available to use for quota purposes for server-side applications. Can be any
30258
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30259
+ # @param [String] user_ip
30260
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30261
+ # @param [Google::Apis::RequestOptions] options
30262
+ # Request-specific options
30263
+ #
30264
+ # @yield [result, err] Result & error if block supplied
30265
+ # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
30266
+ # @yieldparam err [StandardError] error object if request failed
30267
+ #
30268
+ # @return [Google::Apis::ComputePreview::Operation]
30269
+ #
30270
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30271
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30272
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30273
+ def update_network_network_profile(project, network, networks_update_network_profile_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30274
+ command = make_simple_command(:post, 'projects/{project}/global/networks/{network}/updateNetworkProfile', options)
30275
+ command.request_representation = Google::Apis::ComputePreview::NetworksUpdateNetworkProfileRequest::Representation
30276
+ command.request_object = networks_update_network_profile_request_object
30277
+ command.response_representation = Google::Apis::ComputePreview::Operation::Representation
30278
+ command.response_class = Google::Apis::ComputePreview::Operation
30279
+ command.params['project'] = project unless project.nil?
30280
+ command.params['network'] = network unless network.nil?
30281
+ command.query['requestId'] = request_id unless request_id.nil?
30282
+ command.query['fields'] = fields unless fields.nil?
30283
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30284
+ command.query['userIp'] = user_ip unless user_ip.nil?
30285
+ command.set_api_version_header "2026-10-01-preview"
30286
+ execute_or_queue_command(command, &block)
30287
+ end
30288
+
28965
30289
  # Updates the specified network peering with the data included in the
28966
30290
  # request. You can only modify the NetworkPeering.export_custom_routes field
28967
30291
  # and the NetworkPeering.import_custom_routes field.
@@ -30751,20 +32075,543 @@ module Google
30751
32075
  # Request-specific options
30752
32076
  #
30753
32077
  # @yield [result, err] Result & error if block supplied
30754
- # @yieldparam result [Google::Apis::ComputePreview::NodeTypeList] parsed result object
32078
+ # @yieldparam result [Google::Apis::ComputePreview::NodeTypeList] parsed result object
32079
+ # @yieldparam err [StandardError] error object if request failed
32080
+ #
32081
+ # @return [Google::Apis::ComputePreview::NodeTypeList]
32082
+ #
32083
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32084
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32085
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
32086
+ def list_node_types(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32087
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/nodeTypes', options)
32088
+ command.response_representation = Google::Apis::ComputePreview::NodeTypeList::Representation
32089
+ command.response_class = Google::Apis::ComputePreview::NodeTypeList
32090
+ command.params['project'] = project unless project.nil?
32091
+ command.params['zone'] = zone unless zone.nil?
32092
+ command.query['filter'] = filter unless filter.nil?
32093
+ command.query['maxResults'] = max_results unless max_results.nil?
32094
+ command.query['orderBy'] = order_by unless order_by.nil?
32095
+ command.query['pageToken'] = page_token unless page_token.nil?
32096
+ command.query['fields'] = fields unless fields.nil?
32097
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
32098
+ command.query['userIp'] = user_ip unless user_ip.nil?
32099
+ command.set_api_version_header "2026-10-01-preview"
32100
+ execute_or_queue_command(command, &block)
32101
+ end
32102
+
32103
+ # Retrieves the list of all organization level VM Extension Policy resources
32104
+ # available to the specified organization.
32105
+ # To prevent failure, it's recommended that you set the
32106
+ # `returnPartialSuccess` parameter to `true`.
32107
+ # @param [String] organization
32108
+ # Organization ID for this request.
32109
+ # @param [String] filter
32110
+ # A filter expression that filters resources listed in the response. Most
32111
+ # Compute resources support two types of filter expressions:
32112
+ # expressions that support regular expressions and expressions that follow
32113
+ # API improvement proposal AIP-160.
32114
+ # These two types of filter expressions cannot be mixed in one request.
32115
+ # If you want to use AIP-160, your expression must specify the field name, an
32116
+ # operator, and the value that you want to use for filtering. The value
32117
+ # must be a string, a number, or a boolean. The operator
32118
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
32119
+ # For example, if you are filtering Compute Engine instances, you can
32120
+ # exclude instances named `example-instance` by specifying
32121
+ # `name != example-instance`.
32122
+ # The `:*` comparison can be used to test whether a key has been defined.
32123
+ # For example, to find all objects with `owner` label use:
32124
+ # ```
32125
+ # labels.owner:*
32126
+ # ```
32127
+ # You can also filter nested fields. For example, you could specify
32128
+ # `scheduling.automaticRestart = false` to include instances only
32129
+ # if they are not scheduled for automatic restarts. You can use filtering
32130
+ # on nested fields to filter based onresource labels.
32131
+ # To filter on multiple expressions, provide each separate expression within
32132
+ # parentheses. For example:
32133
+ # ```
32134
+ # (scheduling.automaticRestart = true)
32135
+ # (cpuPlatform = "Intel Skylake")
32136
+ # ```
32137
+ # By default, each expression is an `AND` expression. However, you
32138
+ # can include `AND` and `OR` expressions explicitly.
32139
+ # For example:
32140
+ # ```
32141
+ # (cpuPlatform = "Intel Skylake") OR
32142
+ # (cpuPlatform = "Intel Broadwell") AND
32143
+ # (scheduling.automaticRestart = true)
32144
+ # ```
32145
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
32146
+ # (not equal) operator against a single un-parenthesized expression with or
32147
+ # without quotes or against multiple parenthesized expressions. Examples:
32148
+ # `fieldname eq unquoted literal`
32149
+ # `fieldname eq 'single quoted literal'`
32150
+ # `fieldname eq "double quoted literal"`
32151
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
32152
+ # The literal value is interpreted as a regular expression using GoogleRE2
32153
+ # library syntax.
32154
+ # The literal value must match the entire field.
32155
+ # For example, to filter for instances that do not end with name "instance",
32156
+ # you would use `name ne .*instance`.
32157
+ # You cannot combine constraints on multiple fields using regular
32158
+ # expressions.
32159
+ # @param [Boolean] include_all_scopes
32160
+ # Indicates whether every visible scope for each scope type (zone, region,
32161
+ # global) should be included in the response. For new resource types added
32162
+ # after this field, the flag has no effect as new resource types will always
32163
+ # include every visible scope for each scope type in response. For resource
32164
+ # types which predate this field, if this flag is omitted or false, only
32165
+ # scopes of the scope types where the resource type is expected to be found
32166
+ # will be included.
32167
+ # @param [Fixnum] max_results
32168
+ # The maximum number of results per page that should be returned.
32169
+ # If the number of available results is larger than `maxResults`,
32170
+ # Compute Engine returns a `nextPageToken` that can be used to get
32171
+ # the next page of results in subsequent list requests. Acceptable values are
32172
+ # `0` to `500`, inclusive. (Default: `500`)
32173
+ # @param [String] order_by
32174
+ # Sorts list results by a certain order. By default, results
32175
+ # are returned in alphanumerical order based on the resource name.
32176
+ # You can also sort results in descending order based on the creation
32177
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
32178
+ # results based on the `creationTimestamp` field in
32179
+ # reverse chronological order (newest result first). Use this to sort
32180
+ # resources like operations so that the newest operation is returned first.
32181
+ # Currently, only sorting by `name` or
32182
+ # `creationTimestamp desc` is supported.
32183
+ # @param [String] page_token
32184
+ # Specifies a page token to use. Set `pageToken` to the
32185
+ # `nextPageToken` returned by a previous list request to get
32186
+ # the next page of results.
32187
+ # @param [Fixnum] service_project_number
32188
+ # The Shared VPC service project id or service project number for which
32189
+ # aggregated list request is invoked for subnetworks list-usable api.
32190
+ # @param [String] fields
32191
+ # Selector specifying which fields to include in a partial response.
32192
+ # @param [String] quota_user
32193
+ # Available to use for quota purposes for server-side applications. Can be any
32194
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
32195
+ # @param [String] user_ip
32196
+ # Legacy name for parameter that has been superseded by `quotaUser`.
32197
+ # @param [Google::Apis::RequestOptions] options
32198
+ # Request-specific options
32199
+ #
32200
+ # @yield [result, err] Result & error if block supplied
32201
+ # @yieldparam result [Google::Apis::ComputePreview::OrganizationVmExtensionPolicyAggregatedListResponse] parsed result object
32202
+ # @yieldparam err [StandardError] error object if request failed
32203
+ #
32204
+ # @return [Google::Apis::ComputePreview::OrganizationVmExtensionPolicyAggregatedListResponse]
32205
+ #
32206
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32207
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32208
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
32209
+ def aggregated_organization_global_vm_extension_policy_list(organization, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32210
+ command = make_simple_command(:get, '{+organization}/aggregated/vmExtensionPolicies', options)
32211
+ command.response_representation = Google::Apis::ComputePreview::OrganizationVmExtensionPolicyAggregatedListResponse::Representation
32212
+ command.response_class = Google::Apis::ComputePreview::OrganizationVmExtensionPolicyAggregatedListResponse
32213
+ command.params['organization'] = organization unless organization.nil?
32214
+ command.query['filter'] = filter unless filter.nil?
32215
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
32216
+ command.query['maxResults'] = max_results unless max_results.nil?
32217
+ command.query['orderBy'] = order_by unless order_by.nil?
32218
+ command.query['pageToken'] = page_token unless page_token.nil?
32219
+ command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
32220
+ command.query['fields'] = fields unless fields.nil?
32221
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
32222
+ command.query['userIp'] = user_ip unless user_ip.nil?
32223
+ command.set_api_version_header "2026-10-01-preview"
32224
+ execute_or_queue_command(command, &block)
32225
+ end
32226
+
32227
+ # Purge scoped resources (zonal policies) from an organization level global
32228
+ # VM extension policy, and then delete the global VM extension policy. Purge
32229
+ # of the scoped resources is a pre-condition of the global VM extension
32230
+ # policy deletion. The deletion of the global VM extension policy happens
32231
+ # after the purge rollout is done, so it's not a part of the LRO. It's an
32232
+ # automatic process that triggers in the backend.
32233
+ # @param [String] organization
32234
+ # Organization ID for this request.
32235
+ # @param [String] global_vm_extension_policy
32236
+ # Name of the global VM extension policy to purge scoped resources for.
32237
+ # @param [Google::Apis::ComputePreview::GlobalVmExtensionPolicyRolloutOperationRolloutInput] global_vm_extension_policy_rollout_operation_rollout_input_object
32238
+ # @param [String] request_id
32239
+ # An optional request ID to identify requests. Specify a unique request ID so
32240
+ # that if you must retry your request, the server will know to ignore the
32241
+ # request if it has already been completed.
32242
+ # For example, consider a situation where you make an initial request and
32243
+ # the request times out. If you make the request again with the same
32244
+ # request ID, the server can check if original operation with the same
32245
+ # request ID was received, and if so, will ignore the second request. This
32246
+ # prevents clients from accidentally creating duplicate commitments.
32247
+ # The request ID must be
32248
+ # a valid UUID with the exception that zero UUID is not supported
32249
+ # (00000000-0000-0000-0000-000000000000).
32250
+ # @param [String] fields
32251
+ # Selector specifying which fields to include in a partial response.
32252
+ # @param [String] quota_user
32253
+ # Available to use for quota purposes for server-side applications. Can be any
32254
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
32255
+ # @param [String] user_ip
32256
+ # Legacy name for parameter that has been superseded by `quotaUser`.
32257
+ # @param [Google::Apis::RequestOptions] options
32258
+ # Request-specific options
32259
+ #
32260
+ # @yield [result, err] Result & error if block supplied
32261
+ # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
32262
+ # @yieldparam err [StandardError] error object if request failed
32263
+ #
32264
+ # @return [Google::Apis::ComputePreview::Operation]
32265
+ #
32266
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32267
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32268
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
32269
+ def delete_organization_global_vm_extension_policy(organization, global_vm_extension_policy, global_vm_extension_policy_rollout_operation_rollout_input_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32270
+ command = make_simple_command(:post, '{+organization}/global/vmExtensionPolicies/{globalVmExtensionPolicy}/delete', options)
32271
+ command.request_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicyRolloutOperationRolloutInput::Representation
32272
+ command.request_object = global_vm_extension_policy_rollout_operation_rollout_input_object
32273
+ command.response_representation = Google::Apis::ComputePreview::Operation::Representation
32274
+ command.response_class = Google::Apis::ComputePreview::Operation
32275
+ command.params['organization'] = organization unless organization.nil?
32276
+ command.params['globalVmExtensionPolicy'] = global_vm_extension_policy unless global_vm_extension_policy.nil?
32277
+ command.query['requestId'] = request_id unless request_id.nil?
32278
+ command.query['fields'] = fields unless fields.nil?
32279
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
32280
+ command.query['userIp'] = user_ip unless user_ip.nil?
32281
+ command.set_api_version_header "2026-10-01-preview"
32282
+ execute_or_queue_command(command, &block)
32283
+ end
32284
+
32285
+ # Gets details of an organization level GlobalVmExtensionPolicy.
32286
+ # @param [String] organization
32287
+ # Organization ID for this request.
32288
+ # @param [String] global_vm_extension_policy
32289
+ # Name of the GlobalVmExtensionPolicy resource to return.
32290
+ # @param [String] fields
32291
+ # Selector specifying which fields to include in a partial response.
32292
+ # @param [String] quota_user
32293
+ # Available to use for quota purposes for server-side applications. Can be any
32294
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
32295
+ # @param [String] user_ip
32296
+ # Legacy name for parameter that has been superseded by `quotaUser`.
32297
+ # @param [Google::Apis::RequestOptions] options
32298
+ # Request-specific options
32299
+ #
32300
+ # @yield [result, err] Result & error if block supplied
32301
+ # @yieldparam result [Google::Apis::ComputePreview::GlobalVmExtensionPolicy] parsed result object
32302
+ # @yieldparam err [StandardError] error object if request failed
32303
+ #
32304
+ # @return [Google::Apis::ComputePreview::GlobalVmExtensionPolicy]
32305
+ #
32306
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32307
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32308
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
32309
+ def get_organization_global_vm_extension_policy(organization, global_vm_extension_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32310
+ command = make_simple_command(:get, '{+organization}/global/vmExtensionPolicies/{globalVmExtensionPolicy}', options)
32311
+ command.response_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicy::Representation
32312
+ command.response_class = Google::Apis::ComputePreview::GlobalVmExtensionPolicy
32313
+ command.params['organization'] = organization unless organization.nil?
32314
+ command.params['globalVmExtensionPolicy'] = global_vm_extension_policy unless global_vm_extension_policy.nil?
32315
+ command.query['fields'] = fields unless fields.nil?
32316
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
32317
+ command.query['userIp'] = user_ip unless user_ip.nil?
32318
+ command.set_api_version_header "2026-10-01-preview"
32319
+ execute_or_queue_command(command, &block)
32320
+ end
32321
+
32322
+ # Retrieves details of a specific VM extension.
32323
+ # @param [String] organization
32324
+ # Organization ID for this request.
32325
+ # @param [String] extension_name
32326
+ # Required. Name of the VM extension for this request.
32327
+ # @param [String] fields
32328
+ # Selector specifying which fields to include in a partial response.
32329
+ # @param [String] quota_user
32330
+ # Available to use for quota purposes for server-side applications. Can be any
32331
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
32332
+ # @param [String] user_ip
32333
+ # Legacy name for parameter that has been superseded by `quotaUser`.
32334
+ # @param [Google::Apis::RequestOptions] options
32335
+ # Request-specific options
32336
+ #
32337
+ # @yield [result, err] Result & error if block supplied
32338
+ # @yieldparam result [Google::Apis::ComputePreview::GlobalVmExtension] parsed result object
32339
+ # @yieldparam err [StandardError] error object if request failed
32340
+ #
32341
+ # @return [Google::Apis::ComputePreview::GlobalVmExtension]
32342
+ #
32343
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32344
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32345
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
32346
+ def get_organization_global_vm_extension_policy_vm_extension(organization, extension_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32347
+ command = make_simple_command(:get, '{+organization}/global/vmExtensions/{extensionName}', options)
32348
+ command.response_representation = Google::Apis::ComputePreview::GlobalVmExtension::Representation
32349
+ command.response_class = Google::Apis::ComputePreview::GlobalVmExtension
32350
+ command.params['organization'] = organization unless organization.nil?
32351
+ command.params['extensionName'] = extension_name unless extension_name.nil?
32352
+ command.query['fields'] = fields unless fields.nil?
32353
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
32354
+ command.query['userIp'] = user_ip unless user_ip.nil?
32355
+ command.set_api_version_header "2026-10-01-preview"
32356
+ execute_or_queue_command(command, &block)
32357
+ end
32358
+
32359
+ # Creates a new organization level GlobalVmExtensionPolicy.
32360
+ # @param [String] organization
32361
+ # Organization ID for this request.
32362
+ # @param [Google::Apis::ComputePreview::GlobalVmExtensionPolicy] global_vm_extension_policy_object
32363
+ # @param [String] request_id
32364
+ # An optional request ID to identify requests. Specify a unique request ID so
32365
+ # that if you must retry your request, the server will know to ignore the
32366
+ # request if it has already been completed.
32367
+ # For example, consider a situation where you make an initial request and
32368
+ # the request times out. If you make the request again with the same
32369
+ # request ID, the server can check if original operation with the same
32370
+ # request ID was received, and if so, will ignore the second request. This
32371
+ # prevents clients from accidentally creating duplicate commitments.
32372
+ # The request ID must be
32373
+ # a valid UUID with the exception that zero UUID is not supported
32374
+ # (00000000-0000-0000-0000-000000000000).
32375
+ # @param [String] fields
32376
+ # Selector specifying which fields to include in a partial response.
32377
+ # @param [String] quota_user
32378
+ # Available to use for quota purposes for server-side applications. Can be any
32379
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
32380
+ # @param [String] user_ip
32381
+ # Legacy name for parameter that has been superseded by `quotaUser`.
32382
+ # @param [Google::Apis::RequestOptions] options
32383
+ # Request-specific options
32384
+ #
32385
+ # @yield [result, err] Result & error if block supplied
32386
+ # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
32387
+ # @yieldparam err [StandardError] error object if request failed
32388
+ #
32389
+ # @return [Google::Apis::ComputePreview::Operation]
32390
+ #
32391
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32392
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32393
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
32394
+ def insert_organization_global_vm_extension_policy(organization, global_vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32395
+ command = make_simple_command(:post, '{+organization}/global/vmExtensionPolicies', options)
32396
+ command.request_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicy::Representation
32397
+ command.request_object = global_vm_extension_policy_object
32398
+ command.response_representation = Google::Apis::ComputePreview::Operation::Representation
32399
+ command.response_class = Google::Apis::ComputePreview::Operation
32400
+ command.params['organization'] = organization unless organization.nil?
32401
+ command.query['requestId'] = request_id unless request_id.nil?
32402
+ command.query['fields'] = fields unless fields.nil?
32403
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
32404
+ command.query['userIp'] = user_ip unless user_ip.nil?
32405
+ command.set_api_version_header "2026-10-01-preview"
32406
+ execute_or_queue_command(command, &block)
32407
+ end
32408
+
32409
+ # Lists organization level GlobalVmExtensionPolicies.
32410
+ # @param [String] organization
32411
+ # Organization ID for this request.
32412
+ # @param [String] filter
32413
+ # A filter expression that filters resources listed in the response. Most
32414
+ # Compute resources support two types of filter expressions:
32415
+ # expressions that support regular expressions and expressions that follow
32416
+ # API improvement proposal AIP-160.
32417
+ # These two types of filter expressions cannot be mixed in one request.
32418
+ # If you want to use AIP-160, your expression must specify the field name, an
32419
+ # operator, and the value that you want to use for filtering. The value
32420
+ # must be a string, a number, or a boolean. The operator
32421
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
32422
+ # For example, if you are filtering Compute Engine instances, you can
32423
+ # exclude instances named `example-instance` by specifying
32424
+ # `name != example-instance`.
32425
+ # The `:*` comparison can be used to test whether a key has been defined.
32426
+ # For example, to find all objects with `owner` label use:
32427
+ # ```
32428
+ # labels.owner:*
32429
+ # ```
32430
+ # You can also filter nested fields. For example, you could specify
32431
+ # `scheduling.automaticRestart = false` to include instances only
32432
+ # if they are not scheduled for automatic restarts. You can use filtering
32433
+ # on nested fields to filter based onresource labels.
32434
+ # To filter on multiple expressions, provide each separate expression within
32435
+ # parentheses. For example:
32436
+ # ```
32437
+ # (scheduling.automaticRestart = true)
32438
+ # (cpuPlatform = "Intel Skylake")
32439
+ # ```
32440
+ # By default, each expression is an `AND` expression. However, you
32441
+ # can include `AND` and `OR` expressions explicitly.
32442
+ # For example:
32443
+ # ```
32444
+ # (cpuPlatform = "Intel Skylake") OR
32445
+ # (cpuPlatform = "Intel Broadwell") AND
32446
+ # (scheduling.automaticRestart = true)
32447
+ # ```
32448
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
32449
+ # (not equal) operator against a single un-parenthesized expression with or
32450
+ # without quotes or against multiple parenthesized expressions. Examples:
32451
+ # `fieldname eq unquoted literal`
32452
+ # `fieldname eq 'single quoted literal'`
32453
+ # `fieldname eq "double quoted literal"`
32454
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
32455
+ # The literal value is interpreted as a regular expression using GoogleRE2
32456
+ # library syntax.
32457
+ # The literal value must match the entire field.
32458
+ # For example, to filter for instances that do not end with name "instance",
32459
+ # you would use `name ne .*instance`.
32460
+ # You cannot combine constraints on multiple fields using regular
32461
+ # expressions.
32462
+ # @param [Fixnum] max_results
32463
+ # The maximum number of results per page that should be returned.
32464
+ # If the number of available results is larger than `maxResults`,
32465
+ # Compute Engine returns a `nextPageToken` that can be used to get
32466
+ # the next page of results in subsequent list requests. Acceptable values are
32467
+ # `0` to `500`, inclusive. (Default: `500`)
32468
+ # @param [String] order_by
32469
+ # Sorts list results by a certain order. By default, results
32470
+ # are returned in alphanumerical order based on the resource name.
32471
+ # You can also sort results in descending order based on the creation
32472
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
32473
+ # results based on the `creationTimestamp` field in
32474
+ # reverse chronological order (newest result first). Use this to sort
32475
+ # resources like operations so that the newest operation is returned first.
32476
+ # Currently, only sorting by `name` or
32477
+ # `creationTimestamp desc` is supported.
32478
+ # @param [String] page_token
32479
+ # Specifies a page token to use. Set `pageToken` to the
32480
+ # `nextPageToken` returned by a previous list request to get
32481
+ # the next page of results.
32482
+ # @param [String] fields
32483
+ # Selector specifying which fields to include in a partial response.
32484
+ # @param [String] quota_user
32485
+ # Available to use for quota purposes for server-side applications. Can be any
32486
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
32487
+ # @param [String] user_ip
32488
+ # Legacy name for parameter that has been superseded by `quotaUser`.
32489
+ # @param [Google::Apis::RequestOptions] options
32490
+ # Request-specific options
32491
+ #
32492
+ # @yield [result, err] Result & error if block supplied
32493
+ # @yieldparam result [Google::Apis::ComputePreview::GlobalVmExtensionPolicyList] parsed result object
32494
+ # @yieldparam err [StandardError] error object if request failed
32495
+ #
32496
+ # @return [Google::Apis::ComputePreview::GlobalVmExtensionPolicyList]
32497
+ #
32498
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32499
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32500
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
32501
+ def list_organization_global_vm_extension_policies(organization, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32502
+ command = make_simple_command(:get, '{+organization}/global/vmExtensionPolicies', options)
32503
+ command.response_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicyList::Representation
32504
+ command.response_class = Google::Apis::ComputePreview::GlobalVmExtensionPolicyList
32505
+ command.params['organization'] = organization unless organization.nil?
32506
+ command.query['filter'] = filter unless filter.nil?
32507
+ command.query['maxResults'] = max_results unless max_results.nil?
32508
+ command.query['orderBy'] = order_by unless order_by.nil?
32509
+ command.query['pageToken'] = page_token unless page_token.nil?
32510
+ command.query['fields'] = fields unless fields.nil?
32511
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
32512
+ command.query['userIp'] = user_ip unless user_ip.nil?
32513
+ command.set_api_version_header "2026-10-01-preview"
32514
+ execute_or_queue_command(command, &block)
32515
+ end
32516
+
32517
+ # Lists all VM extensions within an organization.
32518
+ # This is a read-only API.
32519
+ # @param [String] organization
32520
+ # Required. Organization ID for this request.
32521
+ # @param [String] filter
32522
+ # A filter expression that filters resources listed in the response. Most
32523
+ # Compute resources support two types of filter expressions:
32524
+ # expressions that support regular expressions and expressions that follow
32525
+ # API improvement proposal AIP-160.
32526
+ # These two types of filter expressions cannot be mixed in one request.
32527
+ # If you want to use AIP-160, your expression must specify the field name, an
32528
+ # operator, and the value that you want to use for filtering. The value
32529
+ # must be a string, a number, or a boolean. The operator
32530
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
32531
+ # For example, if you are filtering Compute Engine instances, you can
32532
+ # exclude instances named `example-instance` by specifying
32533
+ # `name != example-instance`.
32534
+ # The `:*` comparison can be used to test whether a key has been defined.
32535
+ # For example, to find all objects with `owner` label use:
32536
+ # ```
32537
+ # labels.owner:*
32538
+ # ```
32539
+ # You can also filter nested fields. For example, you could specify
32540
+ # `scheduling.automaticRestart = false` to include instances only
32541
+ # if they are not scheduled for automatic restarts. You can use filtering
32542
+ # on nested fields to filter based onresource labels.
32543
+ # To filter on multiple expressions, provide each separate expression within
32544
+ # parentheses. For example:
32545
+ # ```
32546
+ # (scheduling.automaticRestart = true)
32547
+ # (cpuPlatform = "Intel Skylake")
32548
+ # ```
32549
+ # By default, each expression is an `AND` expression. However, you
32550
+ # can include `AND` and `OR` expressions explicitly.
32551
+ # For example:
32552
+ # ```
32553
+ # (cpuPlatform = "Intel Skylake") OR
32554
+ # (cpuPlatform = "Intel Broadwell") AND
32555
+ # (scheduling.automaticRestart = true)
32556
+ # ```
32557
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
32558
+ # (not equal) operator against a single un-parenthesized expression with or
32559
+ # without quotes or against multiple parenthesized expressions. Examples:
32560
+ # `fieldname eq unquoted literal`
32561
+ # `fieldname eq 'single quoted literal'`
32562
+ # `fieldname eq "double quoted literal"`
32563
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
32564
+ # The literal value is interpreted as a regular expression using GoogleRE2
32565
+ # library syntax.
32566
+ # The literal value must match the entire field.
32567
+ # For example, to filter for instances that do not end with name "instance",
32568
+ # you would use `name ne .*instance`.
32569
+ # You cannot combine constraints on multiple fields using regular
32570
+ # expressions.
32571
+ # @param [Fixnum] max_results
32572
+ # The maximum number of results per page that should be returned.
32573
+ # If the number of available results is larger than `maxResults`,
32574
+ # Compute Engine returns a `nextPageToken` that can be used to get
32575
+ # the next page of results in subsequent list requests. Acceptable values are
32576
+ # `0` to `500`, inclusive. (Default: `500`)
32577
+ # @param [String] order_by
32578
+ # Sorts list results by a certain order. By default, results
32579
+ # are returned in alphanumerical order based on the resource name.
32580
+ # You can also sort results in descending order based on the creation
32581
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
32582
+ # results based on the `creationTimestamp` field in
32583
+ # reverse chronological order (newest result first). Use this to sort
32584
+ # resources like operations so that the newest operation is returned first.
32585
+ # Currently, only sorting by `name` or
32586
+ # `creationTimestamp desc` is supported.
32587
+ # @param [String] page_token
32588
+ # Specifies a page token to use. Set `pageToken` to the
32589
+ # `nextPageToken` returned by a previous list request to get
32590
+ # the next page of results.
32591
+ # @param [String] fields
32592
+ # Selector specifying which fields to include in a partial response.
32593
+ # @param [String] quota_user
32594
+ # Available to use for quota purposes for server-side applications. Can be any
32595
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
32596
+ # @param [String] user_ip
32597
+ # Legacy name for parameter that has been superseded by `quotaUser`.
32598
+ # @param [Google::Apis::RequestOptions] options
32599
+ # Request-specific options
32600
+ #
32601
+ # @yield [result, err] Result & error if block supplied
32602
+ # @yieldparam result [Google::Apis::ComputePreview::GlobalListVmExtensionsResponse] parsed result object
30755
32603
  # @yieldparam err [StandardError] error object if request failed
30756
32604
  #
30757
- # @return [Google::Apis::ComputePreview::NodeTypeList]
32605
+ # @return [Google::Apis::ComputePreview::GlobalListVmExtensionsResponse]
30758
32606
  #
30759
32607
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30760
32608
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30761
32609
  # @raise [Google::Apis::AuthorizationError] Authorization is required
30762
- def list_node_types(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30763
- command = make_simple_command(:get, 'projects/{project}/zones/{zone}/nodeTypes', options)
30764
- command.response_representation = Google::Apis::ComputePreview::NodeTypeList::Representation
30765
- command.response_class = Google::Apis::ComputePreview::NodeTypeList
30766
- command.params['project'] = project unless project.nil?
30767
- command.params['zone'] = zone unless zone.nil?
32610
+ def list_organization_global_vm_extension_policy_vm_extensions(organization, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32611
+ command = make_simple_command(:get, '{+organization}/global/vmExtensions', options)
32612
+ command.response_representation = Google::Apis::ComputePreview::GlobalListVmExtensionsResponse::Representation
32613
+ command.response_class = Google::Apis::ComputePreview::GlobalListVmExtensionsResponse
32614
+ command.params['organization'] = organization unless organization.nil?
30768
32615
  command.query['filter'] = filter unless filter.nil?
30769
32616
  command.query['maxResults'] = max_results unless max_results.nil?
30770
32617
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -30776,6 +32623,59 @@ module Google
30776
32623
  execute_or_queue_command(command, &block)
30777
32624
  end
30778
32625
 
32626
+ # Updates an organization level GlobalVmExtensionPolicy.
32627
+ # @param [String] organization
32628
+ # Organization ID for this request.
32629
+ # @param [String] global_vm_extension_policy
32630
+ # Name of the global VM extension policy to update.
32631
+ # @param [Google::Apis::ComputePreview::GlobalVmExtensionPolicy] global_vm_extension_policy_object
32632
+ # @param [String] request_id
32633
+ # An optional request ID to identify requests. Specify a unique request ID so
32634
+ # that if you must retry your request, the server will know to ignore the
32635
+ # request if it has already been completed.
32636
+ # For example, consider a situation where you make an initial request and
32637
+ # the request times out. If you make the request again with the same
32638
+ # request ID, the server can check if original operation with the same
32639
+ # request ID was received, and if so, will ignore the second request. This
32640
+ # prevents clients from accidentally creating duplicate commitments.
32641
+ # The request ID must be
32642
+ # a valid UUID with the exception that zero UUID is not supported
32643
+ # (00000000-0000-0000-0000-000000000000).
32644
+ # @param [String] fields
32645
+ # Selector specifying which fields to include in a partial response.
32646
+ # @param [String] quota_user
32647
+ # Available to use for quota purposes for server-side applications. Can be any
32648
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
32649
+ # @param [String] user_ip
32650
+ # Legacy name for parameter that has been superseded by `quotaUser`.
32651
+ # @param [Google::Apis::RequestOptions] options
32652
+ # Request-specific options
32653
+ #
32654
+ # @yield [result, err] Result & error if block supplied
32655
+ # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
32656
+ # @yieldparam err [StandardError] error object if request failed
32657
+ #
32658
+ # @return [Google::Apis::ComputePreview::Operation]
32659
+ #
32660
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32661
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32662
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
32663
+ def update_organization_global_vm_extension_policy(organization, global_vm_extension_policy, global_vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32664
+ command = make_simple_command(:patch, '{+organization}/global/vmExtensionPolicies/{globalVmExtensionPolicy}', options)
32665
+ command.request_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicy::Representation
32666
+ command.request_object = global_vm_extension_policy_object
32667
+ command.response_representation = Google::Apis::ComputePreview::Operation::Representation
32668
+ command.response_class = Google::Apis::ComputePreview::Operation
32669
+ command.params['organization'] = organization unless organization.nil?
32670
+ command.params['globalVmExtensionPolicy'] = global_vm_extension_policy unless global_vm_extension_policy.nil?
32671
+ command.query['requestId'] = request_id unless request_id.nil?
32672
+ command.query['fields'] = fields unless fields.nil?
32673
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
32674
+ command.query['userIp'] = user_ip unless user_ip.nil?
32675
+ command.set_api_version_header "2026-10-01-preview"
32676
+ execute_or_queue_command(command, &block)
32677
+ end
32678
+
30779
32679
  # Inserts an association for the specified security policy.
30780
32680
  # This has billing implications. Projects in the hierarchy with effective
30781
32681
  # hierarchical security policies will be automatically enrolled into Cloud
@@ -31632,12 +33532,253 @@ module Google
31632
33532
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
31633
33533
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
31634
33534
  # @raise [Google::Apis::AuthorizationError] Authorization is required
31635
- def remove_organization_security_policy_association(security_policy, name: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
31636
- command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/removeAssociation', options)
33535
+ def remove_organization_security_policy_association(security_policy, name: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33536
+ command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/removeAssociation', options)
33537
+ command.response_representation = Google::Apis::ComputePreview::Operation::Representation
33538
+ command.response_class = Google::Apis::ComputePreview::Operation
33539
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
33540
+ command.query['name'] = name unless name.nil?
33541
+ command.query['requestId'] = request_id unless request_id.nil?
33542
+ command.query['fields'] = fields unless fields.nil?
33543
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33544
+ command.query['userIp'] = user_ip unless user_ip.nil?
33545
+ command.set_api_version_header "2026-10-01-preview"
33546
+ execute_or_queue_command(command, &block)
33547
+ end
33548
+
33549
+ # Deletes a rule at the specified priority.
33550
+ # Use this API to modify Cloud Armor policies. Previously, alpha and beta
33551
+ # versions of this API were used to modify firewall policies. This usage is
33552
+ # now disabled for most organizations. Use firewallPolicies.removeRule
33553
+ # instead.
33554
+ # @param [String] security_policy
33555
+ # Name of the security policy to update.
33556
+ # @param [Fixnum] priority
33557
+ # The priority of the rule to remove from the security policy.
33558
+ # @param [String] request_id
33559
+ # An optional request ID to identify requests. Specify a unique request ID so
33560
+ # that if you must retry your request, the server will know to ignore the
33561
+ # request if it has already been completed.
33562
+ # For example, consider a situation where you make an initial request and
33563
+ # the request times out. If you make the request again with the same
33564
+ # request ID, the server can check if original operation with the same
33565
+ # request ID was received, and if so, will ignore the second request. This
33566
+ # prevents clients from accidentally creating duplicate commitments.
33567
+ # The request ID must be
33568
+ # a valid UUID with the exception that zero UUID is not supported
33569
+ # (00000000-0000-0000-0000-000000000000).
33570
+ # @param [String] fields
33571
+ # Selector specifying which fields to include in a partial response.
33572
+ # @param [String] quota_user
33573
+ # Available to use for quota purposes for server-side applications. Can be any
33574
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33575
+ # @param [String] user_ip
33576
+ # Legacy name for parameter that has been superseded by `quotaUser`.
33577
+ # @param [Google::Apis::RequestOptions] options
33578
+ # Request-specific options
33579
+ #
33580
+ # @yield [result, err] Result & error if block supplied
33581
+ # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
33582
+ # @yieldparam err [StandardError] error object if request failed
33583
+ #
33584
+ # @return [Google::Apis::ComputePreview::Operation]
33585
+ #
33586
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33587
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33588
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33589
+ def remove_organization_security_policy_rule(security_policy, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33590
+ command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/removeRule', options)
33591
+ command.response_representation = Google::Apis::ComputePreview::Operation::Representation
33592
+ command.response_class = Google::Apis::ComputePreview::Operation
33593
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
33594
+ command.query['priority'] = priority unless priority.nil?
33595
+ command.query['requestId'] = request_id unless request_id.nil?
33596
+ command.query['fields'] = fields unless fields.nil?
33597
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33598
+ command.query['userIp'] = user_ip unless user_ip.nil?
33599
+ command.set_api_version_header "2026-10-01-preview"
33600
+ execute_or_queue_command(command, &block)
33601
+ end
33602
+
33603
+ # Deletes a specified zone VM extension policy within an organization.
33604
+ # @param [String] organization
33605
+ # Organization ID for this request.
33606
+ # @param [String] zone
33607
+ # Name of the zone for this request.
33608
+ # @param [String] vm_extension_policy
33609
+ # Name of the zone VM extension policy to delete.
33610
+ # @param [String] request_id
33611
+ # An optional request ID to identify requests. Specify a unique request ID so
33612
+ # that if you must retry your request, the server will know to ignore the
33613
+ # request if it has already been completed.
33614
+ # For example, consider a situation where you make an initial request and
33615
+ # the request times out. If you make the request again with the same
33616
+ # request ID, the server can check if original operation with the same
33617
+ # request ID was received, and if so, will ignore the second request. This
33618
+ # prevents clients from accidentally creating duplicate commitments.
33619
+ # The request ID must be
33620
+ # a valid UUID with the exception that zero UUID is not supported
33621
+ # (00000000-0000-0000-0000-000000000000).
33622
+ # @param [String] fields
33623
+ # Selector specifying which fields to include in a partial response.
33624
+ # @param [String] quota_user
33625
+ # Available to use for quota purposes for server-side applications. Can be any
33626
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33627
+ # @param [String] user_ip
33628
+ # Legacy name for parameter that has been superseded by `quotaUser`.
33629
+ # @param [Google::Apis::RequestOptions] options
33630
+ # Request-specific options
33631
+ #
33632
+ # @yield [result, err] Result & error if block supplied
33633
+ # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
33634
+ # @yieldparam err [StandardError] error object if request failed
33635
+ #
33636
+ # @return [Google::Apis::ComputePreview::Operation]
33637
+ #
33638
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33639
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33640
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33641
+ def delete_organization_zone_vm_extension_policy(organization, zone, vm_extension_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33642
+ command = make_simple_command(:delete, '{+organization}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}', options)
33643
+ command.response_representation = Google::Apis::ComputePreview::Operation::Representation
33644
+ command.response_class = Google::Apis::ComputePreview::Operation
33645
+ command.params['organization'] = organization unless organization.nil?
33646
+ command.params['zone'] = zone unless zone.nil?
33647
+ command.params['vmExtensionPolicy'] = vm_extension_policy unless vm_extension_policy.nil?
33648
+ command.query['requestId'] = request_id unless request_id.nil?
33649
+ command.query['fields'] = fields unless fields.nil?
33650
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33651
+ command.query['userIp'] = user_ip unless user_ip.nil?
33652
+ command.set_api_version_header "2026-10-01-preview"
33653
+ execute_or_queue_command(command, &block)
33654
+ end
33655
+
33656
+ # Retrieves details of a specific zone VM extension policy within an
33657
+ # organization.
33658
+ # @param [String] organization
33659
+ # Organization ID for this request.
33660
+ # @param [String] zone
33661
+ # Name of the zone for this request.
33662
+ # @param [String] vm_extension_policy
33663
+ # Name of the VM extension policy resource to return.
33664
+ # @param [String] fields
33665
+ # Selector specifying which fields to include in a partial response.
33666
+ # @param [String] quota_user
33667
+ # Available to use for quota purposes for server-side applications. Can be any
33668
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33669
+ # @param [String] user_ip
33670
+ # Legacy name for parameter that has been superseded by `quotaUser`.
33671
+ # @param [Google::Apis::RequestOptions] options
33672
+ # Request-specific options
33673
+ #
33674
+ # @yield [result, err] Result & error if block supplied
33675
+ # @yieldparam result [Google::Apis::ComputePreview::VmExtensionPolicy] parsed result object
33676
+ # @yieldparam err [StandardError] error object if request failed
33677
+ #
33678
+ # @return [Google::Apis::ComputePreview::VmExtensionPolicy]
33679
+ #
33680
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33681
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33682
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33683
+ def get_organization_zone_vm_extension_policy(organization, zone, vm_extension_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33684
+ command = make_simple_command(:get, '{+organization}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}', options)
33685
+ command.response_representation = Google::Apis::ComputePreview::VmExtensionPolicy::Representation
33686
+ command.response_class = Google::Apis::ComputePreview::VmExtensionPolicy
33687
+ command.params['organization'] = organization unless organization.nil?
33688
+ command.params['zone'] = zone unless zone.nil?
33689
+ command.params['vmExtensionPolicy'] = vm_extension_policy unless vm_extension_policy.nil?
33690
+ command.query['fields'] = fields unless fields.nil?
33691
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33692
+ command.query['userIp'] = user_ip unless user_ip.nil?
33693
+ command.set_api_version_header "2026-10-01-preview"
33694
+ execute_or_queue_command(command, &block)
33695
+ end
33696
+
33697
+ # Retrieves details of a specific VM extension within an organization.
33698
+ # @param [String] organization
33699
+ # Organization ID for this request.
33700
+ # @param [String] zone
33701
+ # Name of the zone for this request.
33702
+ # @param [String] extension_name
33703
+ # Required. Name of the VM extension for this request.
33704
+ # @param [String] fields
33705
+ # Selector specifying which fields to include in a partial response.
33706
+ # @param [String] quota_user
33707
+ # Available to use for quota purposes for server-side applications. Can be any
33708
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33709
+ # @param [String] user_ip
33710
+ # Legacy name for parameter that has been superseded by `quotaUser`.
33711
+ # @param [Google::Apis::RequestOptions] options
33712
+ # Request-specific options
33713
+ #
33714
+ # @yield [result, err] Result & error if block supplied
33715
+ # @yieldparam result [Google::Apis::ComputePreview::VmExtension] parsed result object
33716
+ # @yieldparam err [StandardError] error object if request failed
33717
+ #
33718
+ # @return [Google::Apis::ComputePreview::VmExtension]
33719
+ #
33720
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33721
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33722
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33723
+ def get_organization_zone_vm_extension_policy_vm_extension(organization, zone, extension_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33724
+ command = make_simple_command(:get, '{+organization}/zones/{zone}/vmExtensions/{extensionName}', options)
33725
+ command.response_representation = Google::Apis::ComputePreview::VmExtension::Representation
33726
+ command.response_class = Google::Apis::ComputePreview::VmExtension
33727
+ command.params['organization'] = organization unless organization.nil?
33728
+ command.params['zone'] = zone unless zone.nil?
33729
+ command.params['extensionName'] = extension_name unless extension_name.nil?
33730
+ command.query['fields'] = fields unless fields.nil?
33731
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33732
+ command.query['userIp'] = user_ip unless user_ip.nil?
33733
+ command.set_api_version_header "2026-10-01-preview"
33734
+ execute_or_queue_command(command, &block)
33735
+ end
33736
+
33737
+ # Creates a new zone-level VM extension policy within an organization.
33738
+ # @param [String] organization
33739
+ # Organization ID for this request.
33740
+ # @param [String] zone
33741
+ # Name of the zone for this request.
33742
+ # @param [Google::Apis::ComputePreview::VmExtensionPolicy] vm_extension_policy_object
33743
+ # @param [String] request_id
33744
+ # An optional request ID to identify requests. Specify a unique request ID so
33745
+ # that if you must retry your request, the server will know to ignore the
33746
+ # request if it has already been completed.
33747
+ # For example, consider a situation where you make an initial request and
33748
+ # the request times out. If you make the request again with the same
33749
+ # request ID, the server can check if original operation with the same
33750
+ # request ID was received, and if so, will ignore the second request. This
33751
+ # prevents clients from accidentally creating duplicate commitments.
33752
+ # The request ID must be
33753
+ # a valid UUID with the exception that zero UUID is not supported
33754
+ # (00000000-0000-0000-0000-000000000000).
33755
+ # @param [String] fields
33756
+ # Selector specifying which fields to include in a partial response.
33757
+ # @param [String] quota_user
33758
+ # Available to use for quota purposes for server-side applications. Can be any
33759
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33760
+ # @param [String] user_ip
33761
+ # Legacy name for parameter that has been superseded by `quotaUser`.
33762
+ # @param [Google::Apis::RequestOptions] options
33763
+ # Request-specific options
33764
+ #
33765
+ # @yield [result, err] Result & error if block supplied
33766
+ # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
33767
+ # @yieldparam err [StandardError] error object if request failed
33768
+ #
33769
+ # @return [Google::Apis::ComputePreview::Operation]
33770
+ #
33771
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33772
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33773
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33774
+ def insert_organization_zone_vm_extension_policy(organization, zone, vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33775
+ command = make_simple_command(:post, '{+organization}/zones/{zone}/vmExtensionPolicies', options)
33776
+ command.request_representation = Google::Apis::ComputePreview::VmExtensionPolicy::Representation
33777
+ command.request_object = vm_extension_policy_object
31637
33778
  command.response_representation = Google::Apis::ComputePreview::Operation::Representation
31638
33779
  command.response_class = Google::Apis::ComputePreview::Operation
31639
- command.params['securityPolicy'] = security_policy unless security_policy.nil?
31640
- command.query['name'] = name unless name.nil?
33780
+ command.params['organization'] = organization unless organization.nil?
33781
+ command.params['zone'] = zone unless zone.nil?
31641
33782
  command.query['requestId'] = request_id unless request_id.nil?
31642
33783
  command.query['fields'] = fields unless fields.nil?
31643
33784
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -31646,15 +33787,237 @@ module Google
31646
33787
  execute_or_queue_command(command, &block)
31647
33788
  end
31648
33789
 
31649
- # Deletes a rule at the specified priority.
31650
- # Use this API to modify Cloud Armor policies. Previously, alpha and beta
31651
- # versions of this API were used to modify firewall policies. This usage is
31652
- # now disabled for most organizations. Use firewallPolicies.removeRule
31653
- # instead.
31654
- # @param [String] security_policy
31655
- # Name of the security policy to update.
31656
- # @param [Fixnum] priority
31657
- # The priority of the rule to remove from the security policy.
33790
+ # Lists all VM extension policies within a specific zone for an organization.
33791
+ # @param [String] organization
33792
+ # Organization ID for this request.
33793
+ # @param [String] zone
33794
+ # Name of the zone for this request.
33795
+ # @param [String] filter
33796
+ # A filter expression that filters resources listed in the response. Most
33797
+ # Compute resources support two types of filter expressions:
33798
+ # expressions that support regular expressions and expressions that follow
33799
+ # API improvement proposal AIP-160.
33800
+ # These two types of filter expressions cannot be mixed in one request.
33801
+ # If you want to use AIP-160, your expression must specify the field name, an
33802
+ # operator, and the value that you want to use for filtering. The value
33803
+ # must be a string, a number, or a boolean. The operator
33804
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
33805
+ # For example, if you are filtering Compute Engine instances, you can
33806
+ # exclude instances named `example-instance` by specifying
33807
+ # `name != example-instance`.
33808
+ # The `:*` comparison can be used to test whether a key has been defined.
33809
+ # For example, to find all objects with `owner` label use:
33810
+ # ```
33811
+ # labels.owner:*
33812
+ # ```
33813
+ # You can also filter nested fields. For example, you could specify
33814
+ # `scheduling.automaticRestart = false` to include instances only
33815
+ # if they are not scheduled for automatic restarts. You can use filtering
33816
+ # on nested fields to filter based onresource labels.
33817
+ # To filter on multiple expressions, provide each separate expression within
33818
+ # parentheses. For example:
33819
+ # ```
33820
+ # (scheduling.automaticRestart = true)
33821
+ # (cpuPlatform = "Intel Skylake")
33822
+ # ```
33823
+ # By default, each expression is an `AND` expression. However, you
33824
+ # can include `AND` and `OR` expressions explicitly.
33825
+ # For example:
33826
+ # ```
33827
+ # (cpuPlatform = "Intel Skylake") OR
33828
+ # (cpuPlatform = "Intel Broadwell") AND
33829
+ # (scheduling.automaticRestart = true)
33830
+ # ```
33831
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
33832
+ # (not equal) operator against a single un-parenthesized expression with or
33833
+ # without quotes or against multiple parenthesized expressions. Examples:
33834
+ # `fieldname eq unquoted literal`
33835
+ # `fieldname eq 'single quoted literal'`
33836
+ # `fieldname eq "double quoted literal"`
33837
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
33838
+ # The literal value is interpreted as a regular expression using GoogleRE2
33839
+ # library syntax.
33840
+ # The literal value must match the entire field.
33841
+ # For example, to filter for instances that do not end with name "instance",
33842
+ # you would use `name ne .*instance`.
33843
+ # You cannot combine constraints on multiple fields using regular
33844
+ # expressions.
33845
+ # @param [Fixnum] max_results
33846
+ # The maximum number of results per page that should be returned.
33847
+ # If the number of available results is larger than `maxResults`,
33848
+ # Compute Engine returns a `nextPageToken` that can be used to get
33849
+ # the next page of results in subsequent list requests. Acceptable values are
33850
+ # `0` to `500`, inclusive. (Default: `500`)
33851
+ # @param [String] order_by
33852
+ # Sorts list results by a certain order. By default, results
33853
+ # are returned in alphanumerical order based on the resource name.
33854
+ # You can also sort results in descending order based on the creation
33855
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
33856
+ # results based on the `creationTimestamp` field in
33857
+ # reverse chronological order (newest result first). Use this to sort
33858
+ # resources like operations so that the newest operation is returned first.
33859
+ # Currently, only sorting by `name` or
33860
+ # `creationTimestamp desc` is supported.
33861
+ # @param [String] page_token
33862
+ # Specifies a page token to use. Set `pageToken` to the
33863
+ # `nextPageToken` returned by a previous list request to get
33864
+ # the next page of results.
33865
+ # @param [String] fields
33866
+ # Selector specifying which fields to include in a partial response.
33867
+ # @param [String] quota_user
33868
+ # Available to use for quota purposes for server-side applications. Can be any
33869
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33870
+ # @param [String] user_ip
33871
+ # Legacy name for parameter that has been superseded by `quotaUser`.
33872
+ # @param [Google::Apis::RequestOptions] options
33873
+ # Request-specific options
33874
+ #
33875
+ # @yield [result, err] Result & error if block supplied
33876
+ # @yieldparam result [Google::Apis::ComputePreview::VmExtensionPolicyList] parsed result object
33877
+ # @yieldparam err [StandardError] error object if request failed
33878
+ #
33879
+ # @return [Google::Apis::ComputePreview::VmExtensionPolicyList]
33880
+ #
33881
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33882
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33883
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33884
+ def list_organization_zone_vm_extension_policies(organization, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33885
+ command = make_simple_command(:get, '{+organization}/zones/{zone}/vmExtensionPolicies', options)
33886
+ command.response_representation = Google::Apis::ComputePreview::VmExtensionPolicyList::Representation
33887
+ command.response_class = Google::Apis::ComputePreview::VmExtensionPolicyList
33888
+ command.params['organization'] = organization unless organization.nil?
33889
+ command.params['zone'] = zone unless zone.nil?
33890
+ command.query['filter'] = filter unless filter.nil?
33891
+ command.query['maxResults'] = max_results unless max_results.nil?
33892
+ command.query['orderBy'] = order_by unless order_by.nil?
33893
+ command.query['pageToken'] = page_token unless page_token.nil?
33894
+ command.query['fields'] = fields unless fields.nil?
33895
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33896
+ command.query['userIp'] = user_ip unless user_ip.nil?
33897
+ command.set_api_version_header "2026-10-01-preview"
33898
+ execute_or_queue_command(command, &block)
33899
+ end
33900
+
33901
+ # Lists all VM extensions within a specific zone for an organization.
33902
+ # This is a read-only API.
33903
+ # @param [String] organization
33904
+ # Organization ID for this request.
33905
+ # @param [String] zone
33906
+ # Name of the zone for this request.
33907
+ # @param [String] filter
33908
+ # A filter expression that filters resources listed in the response. Most
33909
+ # Compute resources support two types of filter expressions:
33910
+ # expressions that support regular expressions and expressions that follow
33911
+ # API improvement proposal AIP-160.
33912
+ # These two types of filter expressions cannot be mixed in one request.
33913
+ # If you want to use AIP-160, your expression must specify the field name, an
33914
+ # operator, and the value that you want to use for filtering. The value
33915
+ # must be a string, a number, or a boolean. The operator
33916
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
33917
+ # For example, if you are filtering Compute Engine instances, you can
33918
+ # exclude instances named `example-instance` by specifying
33919
+ # `name != example-instance`.
33920
+ # The `:*` comparison can be used to test whether a key has been defined.
33921
+ # For example, to find all objects with `owner` label use:
33922
+ # ```
33923
+ # labels.owner:*
33924
+ # ```
33925
+ # You can also filter nested fields. For example, you could specify
33926
+ # `scheduling.automaticRestart = false` to include instances only
33927
+ # if they are not scheduled for automatic restarts. You can use filtering
33928
+ # on nested fields to filter based onresource labels.
33929
+ # To filter on multiple expressions, provide each separate expression within
33930
+ # parentheses. For example:
33931
+ # ```
33932
+ # (scheduling.automaticRestart = true)
33933
+ # (cpuPlatform = "Intel Skylake")
33934
+ # ```
33935
+ # By default, each expression is an `AND` expression. However, you
33936
+ # can include `AND` and `OR` expressions explicitly.
33937
+ # For example:
33938
+ # ```
33939
+ # (cpuPlatform = "Intel Skylake") OR
33940
+ # (cpuPlatform = "Intel Broadwell") AND
33941
+ # (scheduling.automaticRestart = true)
33942
+ # ```
33943
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
33944
+ # (not equal) operator against a single un-parenthesized expression with or
33945
+ # without quotes or against multiple parenthesized expressions. Examples:
33946
+ # `fieldname eq unquoted literal`
33947
+ # `fieldname eq 'single quoted literal'`
33948
+ # `fieldname eq "double quoted literal"`
33949
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
33950
+ # The literal value is interpreted as a regular expression using GoogleRE2
33951
+ # library syntax.
33952
+ # The literal value must match the entire field.
33953
+ # For example, to filter for instances that do not end with name "instance",
33954
+ # you would use `name ne .*instance`.
33955
+ # You cannot combine constraints on multiple fields using regular
33956
+ # expressions.
33957
+ # @param [Fixnum] max_results
33958
+ # The maximum number of results per page that should be returned.
33959
+ # If the number of available results is larger than `maxResults`,
33960
+ # Compute Engine returns a `nextPageToken` that can be used to get
33961
+ # the next page of results in subsequent list requests. Acceptable values are
33962
+ # `0` to `500`, inclusive. (Default: `500`)
33963
+ # @param [String] order_by
33964
+ # Sorts list results by a certain order. By default, results
33965
+ # are returned in alphanumerical order based on the resource name.
33966
+ # You can also sort results in descending order based on the creation
33967
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
33968
+ # results based on the `creationTimestamp` field in
33969
+ # reverse chronological order (newest result first). Use this to sort
33970
+ # resources like operations so that the newest operation is returned first.
33971
+ # Currently, only sorting by `name` or
33972
+ # `creationTimestamp desc` is supported.
33973
+ # @param [String] page_token
33974
+ # Specifies a page token to use. Set `pageToken` to the
33975
+ # `nextPageToken` returned by a previous list request to get
33976
+ # the next page of results.
33977
+ # @param [String] fields
33978
+ # Selector specifying which fields to include in a partial response.
33979
+ # @param [String] quota_user
33980
+ # Available to use for quota purposes for server-side applications. Can be any
33981
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33982
+ # @param [String] user_ip
33983
+ # Legacy name for parameter that has been superseded by `quotaUser`.
33984
+ # @param [Google::Apis::RequestOptions] options
33985
+ # Request-specific options
33986
+ #
33987
+ # @yield [result, err] Result & error if block supplied
33988
+ # @yieldparam result [Google::Apis::ComputePreview::ListVmExtensionsResponse] parsed result object
33989
+ # @yieldparam err [StandardError] error object if request failed
33990
+ #
33991
+ # @return [Google::Apis::ComputePreview::ListVmExtensionsResponse]
33992
+ #
33993
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33994
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33995
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33996
+ def list_organization_zone_vm_extension_policy_vm_extensions(organization, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33997
+ command = make_simple_command(:get, '{+organization}/zones/{zone}/vmExtensions', options)
33998
+ command.response_representation = Google::Apis::ComputePreview::ListVmExtensionsResponse::Representation
33999
+ command.response_class = Google::Apis::ComputePreview::ListVmExtensionsResponse
34000
+ command.params['organization'] = organization unless organization.nil?
34001
+ command.params['zone'] = zone unless zone.nil?
34002
+ command.query['filter'] = filter unless filter.nil?
34003
+ command.query['maxResults'] = max_results unless max_results.nil?
34004
+ command.query['orderBy'] = order_by unless order_by.nil?
34005
+ command.query['pageToken'] = page_token unless page_token.nil?
34006
+ command.query['fields'] = fields unless fields.nil?
34007
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
34008
+ command.query['userIp'] = user_ip unless user_ip.nil?
34009
+ command.set_api_version_header "2026-10-01-preview"
34010
+ execute_or_queue_command(command, &block)
34011
+ end
34012
+
34013
+ # Modifies an existing zone VM extension policy within an organization.
34014
+ # @param [String] organization
34015
+ # Organization ID for this request.
34016
+ # @param [String] zone
34017
+ # Name of the zone for this request.
34018
+ # @param [String] vm_extension_policy
34019
+ # Name of the zone VM extension policy to update.
34020
+ # @param [Google::Apis::ComputePreview::VmExtensionPolicy] vm_extension_policy_object
31658
34021
  # @param [String] request_id
31659
34022
  # An optional request ID to identify requests. Specify a unique request ID so
31660
34023
  # that if you must retry your request, the server will know to ignore the
@@ -31686,12 +34049,15 @@ module Google
31686
34049
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
31687
34050
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
31688
34051
  # @raise [Google::Apis::AuthorizationError] Authorization is required
31689
- def remove_organization_security_policy_rule(security_policy, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
31690
- command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/removeRule', options)
34052
+ def update_organization_zone_vm_extension_policy(organization, zone, vm_extension_policy, vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
34053
+ command = make_simple_command(:patch, '{+organization}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}', options)
34054
+ command.request_representation = Google::Apis::ComputePreview::VmExtensionPolicy::Representation
34055
+ command.request_object = vm_extension_policy_object
31691
34056
  command.response_representation = Google::Apis::ComputePreview::Operation::Representation
31692
34057
  command.response_class = Google::Apis::ComputePreview::Operation
31693
- command.params['securityPolicy'] = security_policy unless security_policy.nil?
31694
- command.query['priority'] = priority unless priority.nil?
34058
+ command.params['organization'] = organization unless organization.nil?
34059
+ command.params['zone'] = zone unless zone.nil?
34060
+ command.params['vmExtensionPolicy'] = vm_extension_policy unless vm_extension_policy.nil?
31695
34061
  command.query['requestId'] = request_id unless request_id.nil?
31696
34062
  command.query['fields'] = fields unless fields.nil?
31697
34063
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -46851,6 +49217,44 @@ module Google
46851
49217
  execute_or_queue_command(command, &block)
46852
49218
  end
46853
49219
 
49220
+ # Returns the public encryption key used to encrypt the TLS private key
49221
+ # before upload.
49222
+ # @param [String] project
49223
+ # Project ID for this request.
49224
+ # @param [String] region
49225
+ # Name of the region scoping this request.
49226
+ # @param [String] fields
49227
+ # Selector specifying which fields to include in a partial response.
49228
+ # @param [String] quota_user
49229
+ # Available to use for quota purposes for server-side applications. Can be any
49230
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
49231
+ # @param [String] user_ip
49232
+ # Legacy name for parameter that has been superseded by `quotaUser`.
49233
+ # @param [Google::Apis::RequestOptions] options
49234
+ # Request-specific options
49235
+ #
49236
+ # @yield [result, err] Result & error if block supplied
49237
+ # @yieldparam result [Google::Apis::ComputePreview::SslCertificatesFetchEncryptionKeyResponse] parsed result object
49238
+ # @yieldparam err [StandardError] error object if request failed
49239
+ #
49240
+ # @return [Google::Apis::ComputePreview::SslCertificatesFetchEncryptionKeyResponse]
49241
+ #
49242
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
49243
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
49244
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
49245
+ def fetch_region_ssl_certificate_encryption_key(project, region, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
49246
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/sslCertificates/encryptionKey', options)
49247
+ command.response_representation = Google::Apis::ComputePreview::SslCertificatesFetchEncryptionKeyResponse::Representation
49248
+ command.response_class = Google::Apis::ComputePreview::SslCertificatesFetchEncryptionKeyResponse
49249
+ command.params['project'] = project unless project.nil?
49250
+ command.params['region'] = region unless region.nil?
49251
+ command.query['fields'] = fields unless fields.nil?
49252
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
49253
+ command.query['userIp'] = user_ip unless user_ip.nil?
49254
+ command.set_api_version_header "2026-10-01-preview"
49255
+ execute_or_queue_command(command, &block)
49256
+ end
49257
+
46854
49258
  # Returns the specified SslCertificate resource in the specified region. Get
46855
49259
  # a list of available SSL certificates by making a list()
46856
49260
  # request.
@@ -56295,6 +58699,41 @@ module Google
56295
58699
  execute_or_queue_command(command, &block)
56296
58700
  end
56297
58701
 
58702
+ # Returns the public encryption key used to encrypt the TLS private key
58703
+ # before upload.
58704
+ # @param [String] project
58705
+ # Project ID for this request.
58706
+ # @param [String] fields
58707
+ # Selector specifying which fields to include in a partial response.
58708
+ # @param [String] quota_user
58709
+ # Available to use for quota purposes for server-side applications. Can be any
58710
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
58711
+ # @param [String] user_ip
58712
+ # Legacy name for parameter that has been superseded by `quotaUser`.
58713
+ # @param [Google::Apis::RequestOptions] options
58714
+ # Request-specific options
58715
+ #
58716
+ # @yield [result, err] Result & error if block supplied
58717
+ # @yieldparam result [Google::Apis::ComputePreview::SslCertificatesFetchEncryptionKeyResponse] parsed result object
58718
+ # @yieldparam err [StandardError] error object if request failed
58719
+ #
58720
+ # @return [Google::Apis::ComputePreview::SslCertificatesFetchEncryptionKeyResponse]
58721
+ #
58722
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
58723
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
58724
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
58725
+ def fetch_ssl_certificate_encryption_key(project, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
58726
+ command = make_simple_command(:get, 'projects/{project}/global/sslCertificates/encryptionKey', options)
58727
+ command.response_representation = Google::Apis::ComputePreview::SslCertificatesFetchEncryptionKeyResponse::Representation
58728
+ command.response_class = Google::Apis::ComputePreview::SslCertificatesFetchEncryptionKeyResponse
58729
+ command.params['project'] = project unless project.nil?
58730
+ command.query['fields'] = fields unless fields.nil?
58731
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
58732
+ command.query['userIp'] = user_ip unless user_ip.nil?
58733
+ command.set_api_version_header "2026-10-01-preview"
58734
+ execute_or_queue_command(command, &block)
58735
+ end
58736
+
56298
58737
  # Returns the specified SslCertificate resource.
56299
58738
  # @param [String] project
56300
58739
  # Project ID for this request.
@@ -64938,20 +67377,429 @@ module Google
64938
67377
  # Request-specific options
64939
67378
  #
64940
67379
  # @yield [result, err] Result & error if block supplied
64941
- # @yieldparam result [Google::Apis::ComputePreview::WireGroupList] parsed result object
67380
+ # @yieldparam result [Google::Apis::ComputePreview::WireGroupList] parsed result object
67381
+ # @yieldparam err [StandardError] error object if request failed
67382
+ #
67383
+ # @return [Google::Apis::ComputePreview::WireGroupList]
67384
+ #
67385
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
67386
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
67387
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
67388
+ def list_wire_groups(project, cross_site_network, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
67389
+ command = make_simple_command(:get, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups', options)
67390
+ command.response_representation = Google::Apis::ComputePreview::WireGroupList::Representation
67391
+ command.response_class = Google::Apis::ComputePreview::WireGroupList
67392
+ command.params['project'] = project unless project.nil?
67393
+ command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
67394
+ command.query['filter'] = filter unless filter.nil?
67395
+ command.query['maxResults'] = max_results unless max_results.nil?
67396
+ command.query['orderBy'] = order_by unless order_by.nil?
67397
+ command.query['pageToken'] = page_token unless page_token.nil?
67398
+ command.query['fields'] = fields unless fields.nil?
67399
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
67400
+ command.query['userIp'] = user_ip unless user_ip.nil?
67401
+ command.set_api_version_header "2026-10-01-preview"
67402
+ execute_or_queue_command(command, &block)
67403
+ end
67404
+
67405
+ # Updates the specified wire group resource with the data included in the
67406
+ # request. This method supportsPATCH
67407
+ # semantics and usesJSON merge
67408
+ # patch format and processing rules.
67409
+ # @param [String] project
67410
+ # Project ID for this request.
67411
+ # @param [String] cross_site_network
67412
+ # @param [String] wire_group
67413
+ # Name of the WireGroups resource to patch.
67414
+ # @param [Google::Apis::ComputePreview::WireGroup] wire_group_object
67415
+ # @param [String] request_id
67416
+ # An optional request ID to identify requests. Specify a unique request ID so
67417
+ # that if you must retry your request, the server will know to ignore the
67418
+ # request if it has already been completed.
67419
+ # For example, consider a situation where you make an initial request and
67420
+ # the request times out. If you make the request again with the same
67421
+ # request ID, the server can check if original operation with the same
67422
+ # request ID was received, and if so, will ignore the second request. This
67423
+ # prevents clients from accidentally creating duplicate commitments.
67424
+ # The request ID must be
67425
+ # a valid UUID with the exception that zero UUID is not supported
67426
+ # (00000000-0000-0000-0000-000000000000).
67427
+ # end_interface: MixerMutationRequestBuilder
67428
+ # @param [String] update_mask
67429
+ # update_mask indicates fields to be updated as part of this request.
67430
+ # @param [Boolean] validate_only
67431
+ # [Input Only] Validate the new configuration, but don't update it.
67432
+ # @param [String] fields
67433
+ # Selector specifying which fields to include in a partial response.
67434
+ # @param [String] quota_user
67435
+ # Available to use for quota purposes for server-side applications. Can be any
67436
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
67437
+ # @param [String] user_ip
67438
+ # Legacy name for parameter that has been superseded by `quotaUser`.
67439
+ # @param [Google::Apis::RequestOptions] options
67440
+ # Request-specific options
67441
+ #
67442
+ # @yield [result, err] Result & error if block supplied
67443
+ # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
67444
+ # @yieldparam err [StandardError] error object if request failed
67445
+ #
67446
+ # @return [Google::Apis::ComputePreview::Operation]
67447
+ #
67448
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
67449
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
67450
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
67451
+ def patch_wire_group(project, cross_site_network, wire_group, wire_group_object = nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
67452
+ command = make_simple_command(:patch, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}', options)
67453
+ command.request_representation = Google::Apis::ComputePreview::WireGroup::Representation
67454
+ command.request_object = wire_group_object
67455
+ command.response_representation = Google::Apis::ComputePreview::Operation::Representation
67456
+ command.response_class = Google::Apis::ComputePreview::Operation
67457
+ command.params['project'] = project unless project.nil?
67458
+ command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
67459
+ command.params['wireGroup'] = wire_group unless wire_group.nil?
67460
+ command.query['requestId'] = request_id unless request_id.nil?
67461
+ command.query['updateMask'] = update_mask unless update_mask.nil?
67462
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
67463
+ command.query['fields'] = fields unless fields.nil?
67464
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
67465
+ command.query['userIp'] = user_ip unless user_ip.nil?
67466
+ command.set_api_version_header "2026-10-01-preview"
67467
+ execute_or_queue_command(command, &block)
67468
+ end
67469
+
67470
+ # Retrieves the specified Operations resource.
67471
+ # @param [String] folder
67472
+ # Folder ID for this request.
67473
+ # @param [String] zone
67474
+ # Name of the zone for this request.
67475
+ # @param [String] operation
67476
+ # Name of the Operations resource to return.
67477
+ # @param [String] fields
67478
+ # Selector specifying which fields to include in a partial response.
67479
+ # @param [String] quota_user
67480
+ # Available to use for quota purposes for server-side applications. Can be any
67481
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
67482
+ # @param [String] user_ip
67483
+ # Legacy name for parameter that has been superseded by `quotaUser`.
67484
+ # @param [Google::Apis::RequestOptions] options
67485
+ # Request-specific options
67486
+ #
67487
+ # @yield [result, err] Result & error if block supplied
67488
+ # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
67489
+ # @yieldparam err [StandardError] error object if request failed
67490
+ #
67491
+ # @return [Google::Apis::ComputePreview::Operation]
67492
+ #
67493
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
67494
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
67495
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
67496
+ def get_zone_folder_operation(folder, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
67497
+ command = make_simple_command(:get, '{+folder}/zones/{zone}/operations/{operation}', options)
67498
+ command.response_representation = Google::Apis::ComputePreview::Operation::Representation
67499
+ command.response_class = Google::Apis::ComputePreview::Operation
67500
+ command.params['folder'] = folder unless folder.nil?
67501
+ command.params['zone'] = zone unless zone.nil?
67502
+ command.params['operation'] = operation unless operation.nil?
67503
+ command.query['fields'] = fields unless fields.nil?
67504
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
67505
+ command.query['userIp'] = user_ip unless user_ip.nil?
67506
+ command.set_api_version_header "2026-10-01-preview"
67507
+ execute_or_queue_command(command, &block)
67508
+ end
67509
+
67510
+ # Retrieves a list of Operation resources contained within the specified
67511
+ # folder.
67512
+ # @param [String] folder
67513
+ # Folder ID for this request.
67514
+ # @param [String] zone
67515
+ # Name of the zone for request.
67516
+ # @param [String] filter
67517
+ # A filter expression that filters resources listed in the response. Most
67518
+ # Compute resources support two types of filter expressions:
67519
+ # expressions that support regular expressions and expressions that follow
67520
+ # API improvement proposal AIP-160.
67521
+ # These two types of filter expressions cannot be mixed in one request.
67522
+ # If you want to use AIP-160, your expression must specify the field name, an
67523
+ # operator, and the value that you want to use for filtering. The value
67524
+ # must be a string, a number, or a boolean. The operator
67525
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
67526
+ # For example, if you are filtering Compute Engine instances, you can
67527
+ # exclude instances named `example-instance` by specifying
67528
+ # `name != example-instance`.
67529
+ # The `:*` comparison can be used to test whether a key has been defined.
67530
+ # For example, to find all objects with `owner` label use:
67531
+ # ```
67532
+ # labels.owner:*
67533
+ # ```
67534
+ # You can also filter nested fields. For example, you could specify
67535
+ # `scheduling.automaticRestart = false` to include instances only
67536
+ # if they are not scheduled for automatic restarts. You can use filtering
67537
+ # on nested fields to filter based onresource labels.
67538
+ # To filter on multiple expressions, provide each separate expression within
67539
+ # parentheses. For example:
67540
+ # ```
67541
+ # (scheduling.automaticRestart = true)
67542
+ # (cpuPlatform = "Intel Skylake")
67543
+ # ```
67544
+ # By default, each expression is an `AND` expression. However, you
67545
+ # can include `AND` and `OR` expressions explicitly.
67546
+ # For example:
67547
+ # ```
67548
+ # (cpuPlatform = "Intel Skylake") OR
67549
+ # (cpuPlatform = "Intel Broadwell") AND
67550
+ # (scheduling.automaticRestart = true)
67551
+ # ```
67552
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
67553
+ # (not equal) operator against a single un-parenthesized expression with or
67554
+ # without quotes or against multiple parenthesized expressions. Examples:
67555
+ # `fieldname eq unquoted literal`
67556
+ # `fieldname eq 'single quoted literal'`
67557
+ # `fieldname eq "double quoted literal"`
67558
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
67559
+ # The literal value is interpreted as a regular expression using GoogleRE2
67560
+ # library syntax.
67561
+ # The literal value must match the entire field.
67562
+ # For example, to filter for instances that do not end with name "instance",
67563
+ # you would use `name ne .*instance`.
67564
+ # You cannot combine constraints on multiple fields using regular
67565
+ # expressions.
67566
+ # @param [Fixnum] max_results
67567
+ # The maximum number of results per page that should be returned.
67568
+ # If the number of available results is larger than `maxResults`,
67569
+ # Compute Engine returns a `nextPageToken` that can be used to get
67570
+ # the next page of results in subsequent list requests. Acceptable values are
67571
+ # `0` to `500`, inclusive. (Default: `500`)
67572
+ # @param [String] order_by
67573
+ # Sorts list results by a certain order. By default, results
67574
+ # are returned in alphanumerical order based on the resource name.
67575
+ # You can also sort results in descending order based on the creation
67576
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
67577
+ # results based on the `creationTimestamp` field in
67578
+ # reverse chronological order (newest result first). Use this to sort
67579
+ # resources like operations so that the newest operation is returned first.
67580
+ # Currently, only sorting by `name` or
67581
+ # `creationTimestamp desc` is supported.
67582
+ # @param [String] page_token
67583
+ # Specifies a page token to use. Set `pageToken` to the
67584
+ # `nextPageToken` returned by a previous list request to get
67585
+ # the next page of results.
67586
+ # @param [String] fields
67587
+ # Selector specifying which fields to include in a partial response.
67588
+ # @param [String] quota_user
67589
+ # Available to use for quota purposes for server-side applications. Can be any
67590
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
67591
+ # @param [String] user_ip
67592
+ # Legacy name for parameter that has been superseded by `quotaUser`.
67593
+ # @param [Google::Apis::RequestOptions] options
67594
+ # Request-specific options
67595
+ #
67596
+ # @yield [result, err] Result & error if block supplied
67597
+ # @yieldparam result [Google::Apis::ComputePreview::OperationList] parsed result object
67598
+ # @yieldparam err [StandardError] error object if request failed
67599
+ #
67600
+ # @return [Google::Apis::ComputePreview::OperationList]
67601
+ #
67602
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
67603
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
67604
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
67605
+ def list_zone_folder_operations(folder, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
67606
+ command = make_simple_command(:get, '{+folder}/zones/{zone}/operations', options)
67607
+ command.response_representation = Google::Apis::ComputePreview::OperationList::Representation
67608
+ command.response_class = Google::Apis::ComputePreview::OperationList
67609
+ command.params['folder'] = folder unless folder.nil?
67610
+ command.params['zone'] = zone unless zone.nil?
67611
+ command.query['filter'] = filter unless filter.nil?
67612
+ command.query['maxResults'] = max_results unless max_results.nil?
67613
+ command.query['orderBy'] = order_by unless order_by.nil?
67614
+ command.query['pageToken'] = page_token unless page_token.nil?
67615
+ command.query['fields'] = fields unless fields.nil?
67616
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
67617
+ command.query['userIp'] = user_ip unless user_ip.nil?
67618
+ command.set_api_version_header "2026-10-01-preview"
67619
+ execute_or_queue_command(command, &block)
67620
+ end
67621
+
67622
+ # Deletes the specified zone-specific Operations resource.
67623
+ # @param [String] project
67624
+ # Project ID for this request.
67625
+ # @param [String] zone
67626
+ # Name of the zone for this request.
67627
+ # @param [String] operation
67628
+ # Name of the Operations resource to delete, or its unique numeric
67629
+ # identifier.
67630
+ # @param [String] fields
67631
+ # Selector specifying which fields to include in a partial response.
67632
+ # @param [String] quota_user
67633
+ # Available to use for quota purposes for server-side applications. Can be any
67634
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
67635
+ # @param [String] user_ip
67636
+ # Legacy name for parameter that has been superseded by `quotaUser`.
67637
+ # @param [Google::Apis::RequestOptions] options
67638
+ # Request-specific options
67639
+ #
67640
+ # @yield [result, err] Result & error if block supplied
67641
+ # @yieldparam result [NilClass] No result returned for this method
67642
+ # @yieldparam err [StandardError] error object if request failed
67643
+ #
67644
+ # @return [void]
67645
+ #
67646
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
67647
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
67648
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
67649
+ def delete_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
67650
+ command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/operations/{operation}', options)
67651
+ command.params['project'] = project unless project.nil?
67652
+ command.params['zone'] = zone unless zone.nil?
67653
+ command.params['operation'] = operation unless operation.nil?
67654
+ command.query['fields'] = fields unless fields.nil?
67655
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
67656
+ command.query['userIp'] = user_ip unless user_ip.nil?
67657
+ command.set_api_version_header "2026-10-01-preview"
67658
+ execute_or_queue_command(command, &block)
67659
+ end
67660
+
67661
+ # Retrieves the specified zone-specific Operations resource.
67662
+ # @param [String] project
67663
+ # Project ID for this request.
67664
+ # @param [String] zone
67665
+ # Name of the zone for this request.
67666
+ # @param [String] operation
67667
+ # Name of the Operations resource to return, or its unique numeric
67668
+ # identifier.
67669
+ # @param [String] fields
67670
+ # Selector specifying which fields to include in a partial response.
67671
+ # @param [String] quota_user
67672
+ # Available to use for quota purposes for server-side applications. Can be any
67673
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
67674
+ # @param [String] user_ip
67675
+ # Legacy name for parameter that has been superseded by `quotaUser`.
67676
+ # @param [Google::Apis::RequestOptions] options
67677
+ # Request-specific options
67678
+ #
67679
+ # @yield [result, err] Result & error if block supplied
67680
+ # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
67681
+ # @yieldparam err [StandardError] error object if request failed
67682
+ #
67683
+ # @return [Google::Apis::ComputePreview::Operation]
67684
+ #
67685
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
67686
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
67687
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
67688
+ def get_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
67689
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/operations/{operation}', options)
67690
+ command.response_representation = Google::Apis::ComputePreview::Operation::Representation
67691
+ command.response_class = Google::Apis::ComputePreview::Operation
67692
+ command.params['project'] = project unless project.nil?
67693
+ command.params['zone'] = zone unless zone.nil?
67694
+ command.params['operation'] = operation unless operation.nil?
67695
+ command.query['fields'] = fields unless fields.nil?
67696
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
67697
+ command.query['userIp'] = user_ip unless user_ip.nil?
67698
+ command.set_api_version_header "2026-10-01-preview"
67699
+ execute_or_queue_command(command, &block)
67700
+ end
67701
+
67702
+ # Retrieves a list of Operation resources contained within
67703
+ # the specified zone.
67704
+ # @param [String] project
67705
+ # Project ID for this request.
67706
+ # @param [String] zone
67707
+ # Name of the zone for request.
67708
+ # @param [String] filter
67709
+ # A filter expression that filters resources listed in the response. Most
67710
+ # Compute resources support two types of filter expressions:
67711
+ # expressions that support regular expressions and expressions that follow
67712
+ # API improvement proposal AIP-160.
67713
+ # These two types of filter expressions cannot be mixed in one request.
67714
+ # If you want to use AIP-160, your expression must specify the field name, an
67715
+ # operator, and the value that you want to use for filtering. The value
67716
+ # must be a string, a number, or a boolean. The operator
67717
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
67718
+ # For example, if you are filtering Compute Engine instances, you can
67719
+ # exclude instances named `example-instance` by specifying
67720
+ # `name != example-instance`.
67721
+ # The `:*` comparison can be used to test whether a key has been defined.
67722
+ # For example, to find all objects with `owner` label use:
67723
+ # ```
67724
+ # labels.owner:*
67725
+ # ```
67726
+ # You can also filter nested fields. For example, you could specify
67727
+ # `scheduling.automaticRestart = false` to include instances only
67728
+ # if they are not scheduled for automatic restarts. You can use filtering
67729
+ # on nested fields to filter based onresource labels.
67730
+ # To filter on multiple expressions, provide each separate expression within
67731
+ # parentheses. For example:
67732
+ # ```
67733
+ # (scheduling.automaticRestart = true)
67734
+ # (cpuPlatform = "Intel Skylake")
67735
+ # ```
67736
+ # By default, each expression is an `AND` expression. However, you
67737
+ # can include `AND` and `OR` expressions explicitly.
67738
+ # For example:
67739
+ # ```
67740
+ # (cpuPlatform = "Intel Skylake") OR
67741
+ # (cpuPlatform = "Intel Broadwell") AND
67742
+ # (scheduling.automaticRestart = true)
67743
+ # ```
67744
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
67745
+ # (not equal) operator against a single un-parenthesized expression with or
67746
+ # without quotes or against multiple parenthesized expressions. Examples:
67747
+ # `fieldname eq unquoted literal`
67748
+ # `fieldname eq 'single quoted literal'`
67749
+ # `fieldname eq "double quoted literal"`
67750
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
67751
+ # The literal value is interpreted as a regular expression using GoogleRE2
67752
+ # library syntax.
67753
+ # The literal value must match the entire field.
67754
+ # For example, to filter for instances that do not end with name "instance",
67755
+ # you would use `name ne .*instance`.
67756
+ # You cannot combine constraints on multiple fields using regular
67757
+ # expressions.
67758
+ # @param [Fixnum] max_results
67759
+ # The maximum number of results per page that should be returned.
67760
+ # If the number of available results is larger than `maxResults`,
67761
+ # Compute Engine returns a `nextPageToken` that can be used to get
67762
+ # the next page of results in subsequent list requests. Acceptable values are
67763
+ # `0` to `500`, inclusive. (Default: `500`)
67764
+ # @param [String] order_by
67765
+ # Sorts list results by a certain order. By default, results
67766
+ # are returned in alphanumerical order based on the resource name.
67767
+ # You can also sort results in descending order based on the creation
67768
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
67769
+ # results based on the `creationTimestamp` field in
67770
+ # reverse chronological order (newest result first). Use this to sort
67771
+ # resources like operations so that the newest operation is returned first.
67772
+ # Currently, only sorting by `name` or
67773
+ # `creationTimestamp desc` is supported.
67774
+ # @param [String] page_token
67775
+ # Specifies a page token to use. Set `pageToken` to the
67776
+ # `nextPageToken` returned by a previous list request to get
67777
+ # the next page of results.
67778
+ # @param [String] fields
67779
+ # Selector specifying which fields to include in a partial response.
67780
+ # @param [String] quota_user
67781
+ # Available to use for quota purposes for server-side applications. Can be any
67782
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
67783
+ # @param [String] user_ip
67784
+ # Legacy name for parameter that has been superseded by `quotaUser`.
67785
+ # @param [Google::Apis::RequestOptions] options
67786
+ # Request-specific options
67787
+ #
67788
+ # @yield [result, err] Result & error if block supplied
67789
+ # @yieldparam result [Google::Apis::ComputePreview::OperationList] parsed result object
64942
67790
  # @yieldparam err [StandardError] error object if request failed
64943
67791
  #
64944
- # @return [Google::Apis::ComputePreview::WireGroupList]
67792
+ # @return [Google::Apis::ComputePreview::OperationList]
64945
67793
  #
64946
67794
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
64947
67795
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
64948
67796
  # @raise [Google::Apis::AuthorizationError] Authorization is required
64949
- def list_wire_groups(project, cross_site_network, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
64950
- command = make_simple_command(:get, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups', options)
64951
- command.response_representation = Google::Apis::ComputePreview::WireGroupList::Representation
64952
- command.response_class = Google::Apis::ComputePreview::WireGroupList
67797
+ def list_zone_operations(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
67798
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/operations', options)
67799
+ command.response_representation = Google::Apis::ComputePreview::OperationList::Representation
67800
+ command.response_class = Google::Apis::ComputePreview::OperationList
64953
67801
  command.params['project'] = project unless project.nil?
64954
- command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
67802
+ command.params['zone'] = zone unless zone.nil?
64955
67803
  command.query['filter'] = filter unless filter.nil?
64956
67804
  command.query['maxResults'] = max_results unless max_results.nil?
64957
67805
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -64963,78 +67811,26 @@ module Google
64963
67811
  execute_or_queue_command(command, &block)
64964
67812
  end
64965
67813
 
64966
- # Updates the specified wire group resource with the data included in the
64967
- # request. This method supportsPATCH
64968
- # semantics and usesJSON merge
64969
- # patch format and processing rules.
64970
- # @param [String] project
64971
- # Project ID for this request.
64972
- # @param [String] cross_site_network
64973
- # @param [String] wire_group
64974
- # Name of the WireGroups resource to patch.
64975
- # @param [Google::Apis::ComputePreview::WireGroup] wire_group_object
64976
- # @param [String] request_id
64977
- # An optional request ID to identify requests. Specify a unique request ID so
64978
- # that if you must retry your request, the server will know to ignore the
64979
- # request if it has already been completed.
64980
- # For example, consider a situation where you make an initial request and
64981
- # the request times out. If you make the request again with the same
64982
- # request ID, the server can check if original operation with the same
64983
- # request ID was received, and if so, will ignore the second request. This
64984
- # prevents clients from accidentally creating duplicate commitments.
64985
- # The request ID must be
64986
- # a valid UUID with the exception that zero UUID is not supported
64987
- # (00000000-0000-0000-0000-000000000000).
64988
- # end_interface: MixerMutationRequestBuilder
64989
- # @param [String] update_mask
64990
- # update_mask indicates fields to be updated as part of this request.
64991
- # @param [Boolean] validate_only
64992
- # [Input Only] Validate the new configuration, but don't update it.
64993
- # @param [String] fields
64994
- # Selector specifying which fields to include in a partial response.
64995
- # @param [String] quota_user
64996
- # Available to use for quota purposes for server-side applications. Can be any
64997
- # arbitrary string assigned to a user, but should not exceed 40 characters.
64998
- # @param [String] user_ip
64999
- # Legacy name for parameter that has been superseded by `quotaUser`.
65000
- # @param [Google::Apis::RequestOptions] options
65001
- # Request-specific options
65002
- #
65003
- # @yield [result, err] Result & error if block supplied
65004
- # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
65005
- # @yieldparam err [StandardError] error object if request failed
65006
- #
65007
- # @return [Google::Apis::ComputePreview::Operation]
65008
- #
65009
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
65010
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
65011
- # @raise [Google::Apis::AuthorizationError] Authorization is required
65012
- def patch_wire_group(project, cross_site_network, wire_group, wire_group_object = nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
65013
- command = make_simple_command(:patch, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}', options)
65014
- command.request_representation = Google::Apis::ComputePreview::WireGroup::Representation
65015
- command.request_object = wire_group_object
65016
- command.response_representation = Google::Apis::ComputePreview::Operation::Representation
65017
- command.response_class = Google::Apis::ComputePreview::Operation
65018
- command.params['project'] = project unless project.nil?
65019
- command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
65020
- command.params['wireGroup'] = wire_group unless wire_group.nil?
65021
- command.query['requestId'] = request_id unless request_id.nil?
65022
- command.query['updateMask'] = update_mask unless update_mask.nil?
65023
- command.query['validateOnly'] = validate_only unless validate_only.nil?
65024
- command.query['fields'] = fields unless fields.nil?
65025
- command.query['quotaUser'] = quota_user unless quota_user.nil?
65026
- command.query['userIp'] = user_ip unless user_ip.nil?
65027
- command.set_api_version_header "2026-10-01-preview"
65028
- execute_or_queue_command(command, &block)
65029
- end
65030
-
65031
- # Deletes the specified zone-specific Operations resource.
67814
+ # Waits for the specified Operation resource to return as `DONE`
67815
+ # or for the request to approach the 2 minute deadline, and retrieves the
67816
+ # specified Operation resource. This method waits for no more than the
67817
+ # 2 minutes and then returns the current state of the
67818
+ # operation, which might be `DONE` or still in progress.
67819
+ # This method is called on a best-effort basis. Specifically:
67820
+ #
67821
+ #
67822
+ # - In uncommon cases, when the server is overloaded, the request might
67823
+ # return before the default deadline is reached, or might return after zero
67824
+ # seconds.
67825
+ # - If the default deadline is reached, there is no guarantee that the
67826
+ # operation is actually done when the method returns. Be prepared to retry
67827
+ # if the operation is not `DONE`.
65032
67828
  # @param [String] project
65033
67829
  # Project ID for this request.
65034
67830
  # @param [String] zone
65035
67831
  # Name of the zone for this request.
65036
67832
  # @param [String] operation
65037
- # Name of the Operations resource to delete, or its unique numeric
67833
+ # Name of the Operations resource to return, or its unique numeric
65038
67834
  # identifier.
65039
67835
  # @param [String] fields
65040
67836
  # Selector specifying which fields to include in a partial response.
@@ -65047,16 +67843,18 @@ module Google
65047
67843
  # Request-specific options
65048
67844
  #
65049
67845
  # @yield [result, err] Result & error if block supplied
65050
- # @yieldparam result [NilClass] No result returned for this method
67846
+ # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
65051
67847
  # @yieldparam err [StandardError] error object if request failed
65052
67848
  #
65053
- # @return [void]
67849
+ # @return [Google::Apis::ComputePreview::Operation]
65054
67850
  #
65055
67851
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
65056
67852
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
65057
67853
  # @raise [Google::Apis::AuthorizationError] Authorization is required
65058
- def delete_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
65059
- command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/operations/{operation}', options)
67854
+ def wait_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
67855
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/operations/{operation}/wait', options)
67856
+ command.response_representation = Google::Apis::ComputePreview::Operation::Representation
67857
+ command.response_class = Google::Apis::ComputePreview::Operation
65060
67858
  command.params['project'] = project unless project.nil?
65061
67859
  command.params['zone'] = zone unless zone.nil?
65062
67860
  command.params['operation'] = operation unless operation.nil?
@@ -65067,14 +67865,14 @@ module Google
65067
67865
  execute_or_queue_command(command, &block)
65068
67866
  end
65069
67867
 
65070
- # Retrieves the specified zone-specific Operations resource.
65071
- # @param [String] project
65072
- # Project ID for this request.
67868
+ # Retrieves the specified Operations resource.
67869
+ # @param [String] organization
67870
+ # Organization ID for this request.
65073
67871
  # @param [String] zone
65074
67872
  # Name of the zone for this request.
65075
67873
  # @param [String] operation
65076
- # Name of the Operations resource to return, or its unique numeric
65077
- # identifier.
67874
+ # Name of the Operations resource to return. Parent is derived from this
67875
+ # field.
65078
67876
  # @param [String] fields
65079
67877
  # Selector specifying which fields to include in a partial response.
65080
67878
  # @param [String] quota_user
@@ -65094,11 +67892,11 @@ module Google
65094
67892
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
65095
67893
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
65096
67894
  # @raise [Google::Apis::AuthorizationError] Authorization is required
65097
- def get_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
65098
- command = make_simple_command(:get, 'projects/{project}/zones/{zone}/operations/{operation}', options)
67895
+ def get_zone_organization_operation(organization, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
67896
+ command = make_simple_command(:get, '{+organization}/zones/{zone}/operations/{operation}', options)
65099
67897
  command.response_representation = Google::Apis::ComputePreview::Operation::Representation
65100
67898
  command.response_class = Google::Apis::ComputePreview::Operation
65101
- command.params['project'] = project unless project.nil?
67899
+ command.params['organization'] = organization unless organization.nil?
65102
67900
  command.params['zone'] = zone unless zone.nil?
65103
67901
  command.params['operation'] = operation unless operation.nil?
65104
67902
  command.query['fields'] = fields unless fields.nil?
@@ -65108,10 +67906,10 @@ module Google
65108
67906
  execute_or_queue_command(command, &block)
65109
67907
  end
65110
67908
 
65111
- # Retrieves a list of Operation resources contained within
65112
- # the specified zone.
65113
- # @param [String] project
65114
- # Project ID for this request.
67909
+ # Retrieves a list of Operation resources contained within the specified
67910
+ # organization.
67911
+ # @param [String] organization
67912
+ # Organization ID for this request.
65115
67913
  # @param [String] zone
65116
67914
  # Name of the zone for request.
65117
67915
  # @param [String] filter
@@ -65203,11 +68001,11 @@ module Google
65203
68001
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
65204
68002
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
65205
68003
  # @raise [Google::Apis::AuthorizationError] Authorization is required
65206
- def list_zone_operations(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
65207
- command = make_simple_command(:get, 'projects/{project}/zones/{zone}/operations', options)
68004
+ def list_zone_organization_operations(organization, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
68005
+ command = make_simple_command(:get, '{+organization}/zones/{zone}/operations', options)
65208
68006
  command.response_representation = Google::Apis::ComputePreview::OperationList::Representation
65209
68007
  command.response_class = Google::Apis::ComputePreview::OperationList
65210
- command.params['project'] = project unless project.nil?
68008
+ command.params['organization'] = organization unless organization.nil?
65211
68009
  command.params['zone'] = zone unless zone.nil?
65212
68010
  command.query['filter'] = filter unless filter.nil?
65213
68011
  command.query['maxResults'] = max_results unless max_results.nil?
@@ -65220,27 +68018,25 @@ module Google
65220
68018
  execute_or_queue_command(command, &block)
65221
68019
  end
65222
68020
 
65223
- # Waits for the specified Operation resource to return as `DONE`
65224
- # or for the request to approach the 2 minute deadline, and retrieves the
65225
- # specified Operation resource. This method waits for no more than the
65226
- # 2 minutes and then returns the current state of the
65227
- # operation, which might be `DONE` or still in progress.
65228
- # This method is called on a best-effort basis. Specifically:
65229
- #
65230
- #
65231
- # - In uncommon cases, when the server is overloaded, the request might
65232
- # return before the default deadline is reached, or might return after zero
65233
- # seconds.
65234
- # - If the default deadline is reached, there is no guarantee that the
65235
- # operation is actually done when the method returns. Be prepared to retry
65236
- # if the operation is not `DONE`.
68021
+ # Deletes a specified zone VM extension policy within a project.
65237
68022
  # @param [String] project
65238
68023
  # Project ID for this request.
65239
68024
  # @param [String] zone
65240
68025
  # Name of the zone for this request.
65241
- # @param [String] operation
65242
- # Name of the Operations resource to return, or its unique numeric
65243
- # identifier.
68026
+ # @param [String] vm_extension_policy
68027
+ # Name of the zone VM extension policy to delete.
68028
+ # @param [String] request_id
68029
+ # An optional request ID to identify requests. Specify a unique request ID so
68030
+ # that if you must retry your request, the server will know to ignore the
68031
+ # request if it has already been completed.
68032
+ # For example, consider a situation where you make an initial request and
68033
+ # the request times out. If you make the request again with the same
68034
+ # request ID, the server can check if original operation with the same
68035
+ # request ID was received, and if so, will ignore the second request. This
68036
+ # prevents clients from accidentally creating duplicate commitments.
68037
+ # The request ID must be
68038
+ # a valid UUID with the exception that zero UUID is not supported
68039
+ # (00000000-0000-0000-0000-000000000000).
65244
68040
  # @param [String] fields
65245
68041
  # Selector specifying which fields to include in a partial response.
65246
68042
  # @param [String] quota_user
@@ -65260,13 +68056,14 @@ module Google
65260
68056
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
65261
68057
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
65262
68058
  # @raise [Google::Apis::AuthorizationError] Authorization is required
65263
- def wait_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
65264
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/operations/{operation}/wait', options)
68059
+ def delete_zone_vm_extension_policy(project, zone, vm_extension_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
68060
+ command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}', options)
65265
68061
  command.response_representation = Google::Apis::ComputePreview::Operation::Representation
65266
68062
  command.response_class = Google::Apis::ComputePreview::Operation
65267
68063
  command.params['project'] = project unless project.nil?
65268
68064
  command.params['zone'] = zone unless zone.nil?
65269
- command.params['operation'] = operation unless operation.nil?
68065
+ command.params['vmExtensionPolicy'] = vm_extension_policy unless vm_extension_policy.nil?
68066
+ command.query['requestId'] = request_id unless request_id.nil?
65270
68067
  command.query['fields'] = fields unless fields.nil?
65271
68068
  command.query['quotaUser'] = quota_user unless quota_user.nil?
65272
68069
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -65274,25 +68071,13 @@ module Google
65274
68071
  execute_or_queue_command(command, &block)
65275
68072
  end
65276
68073
 
65277
- # Deletes a specified zone VM extension policy within a project.
68074
+ # Retrieves details of a specific zone VM extension policy within a project.
65278
68075
  # @param [String] project
65279
68076
  # Project ID for this request.
65280
68077
  # @param [String] zone
65281
68078
  # Name of the zone for this request.
65282
68079
  # @param [String] vm_extension_policy
65283
- # Name of the zone VM extension policy to delete.
65284
- # @param [String] request_id
65285
- # An optional request ID to identify requests. Specify a unique request ID so
65286
- # that if you must retry your request, the server will know to ignore the
65287
- # request if it has already been completed.
65288
- # For example, consider a situation where you make an initial request and
65289
- # the request times out. If you make the request again with the same
65290
- # request ID, the server can check if original operation with the same
65291
- # request ID was received, and if so, will ignore the second request. This
65292
- # prevents clients from accidentally creating duplicate commitments.
65293
- # The request ID must be
65294
- # a valid UUID with the exception that zero UUID is not supported
65295
- # (00000000-0000-0000-0000-000000000000).
68080
+ # Name of the VM extension policy resource to return.
65296
68081
  # @param [String] fields
65297
68082
  # Selector specifying which fields to include in a partial response.
65298
68083
  # @param [String] quota_user
@@ -65304,22 +68089,21 @@ module Google
65304
68089
  # Request-specific options
65305
68090
  #
65306
68091
  # @yield [result, err] Result & error if block supplied
65307
- # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
68092
+ # @yieldparam result [Google::Apis::ComputePreview::VmExtensionPolicy] parsed result object
65308
68093
  # @yieldparam err [StandardError] error object if request failed
65309
68094
  #
65310
- # @return [Google::Apis::ComputePreview::Operation]
68095
+ # @return [Google::Apis::ComputePreview::VmExtensionPolicy]
65311
68096
  #
65312
68097
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
65313
68098
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
65314
68099
  # @raise [Google::Apis::AuthorizationError] Authorization is required
65315
- def delete_zone_vm_extension_policy(project, zone, vm_extension_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
65316
- command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}', options)
65317
- command.response_representation = Google::Apis::ComputePreview::Operation::Representation
65318
- command.response_class = Google::Apis::ComputePreview::Operation
68100
+ def get_zone_vm_extension_policy(project, zone, vm_extension_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
68101
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}', options)
68102
+ command.response_representation = Google::Apis::ComputePreview::VmExtensionPolicy::Representation
68103
+ command.response_class = Google::Apis::ComputePreview::VmExtensionPolicy
65319
68104
  command.params['project'] = project unless project.nil?
65320
68105
  command.params['zone'] = zone unless zone.nil?
65321
68106
  command.params['vmExtensionPolicy'] = vm_extension_policy unless vm_extension_policy.nil?
65322
- command.query['requestId'] = request_id unless request_id.nil?
65323
68107
  command.query['fields'] = fields unless fields.nil?
65324
68108
  command.query['quotaUser'] = quota_user unless quota_user.nil?
65325
68109
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -65327,13 +68111,13 @@ module Google
65327
68111
  execute_or_queue_command(command, &block)
65328
68112
  end
65329
68113
 
65330
- # Retrieves details of a specific zone VM extension policy within a project.
68114
+ # Retrieves details of a specific VM extension within a project.
65331
68115
  # @param [String] project
65332
68116
  # Project ID for this request.
65333
68117
  # @param [String] zone
65334
68118
  # Name of the zone for this request.
65335
- # @param [String] vm_extension_policy
65336
- # Name of the VM extension policy resource to return.
68119
+ # @param [String] extension_name
68120
+ # Required. Name of the VM extension for this request.
65337
68121
  # @param [String] fields
65338
68122
  # Selector specifying which fields to include in a partial response.
65339
68123
  # @param [String] quota_user
@@ -65345,21 +68129,21 @@ module Google
65345
68129
  # Request-specific options
65346
68130
  #
65347
68131
  # @yield [result, err] Result & error if block supplied
65348
- # @yieldparam result [Google::Apis::ComputePreview::VmExtensionPolicy] parsed result object
68132
+ # @yieldparam result [Google::Apis::ComputePreview::VmExtension] parsed result object
65349
68133
  # @yieldparam err [StandardError] error object if request failed
65350
68134
  #
65351
- # @return [Google::Apis::ComputePreview::VmExtensionPolicy]
68135
+ # @return [Google::Apis::ComputePreview::VmExtension]
65352
68136
  #
65353
68137
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
65354
68138
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
65355
68139
  # @raise [Google::Apis::AuthorizationError] Authorization is required
65356
- def get_zone_vm_extension_policy(project, zone, vm_extension_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
65357
- command = make_simple_command(:get, 'projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}', options)
65358
- command.response_representation = Google::Apis::ComputePreview::VmExtensionPolicy::Representation
65359
- command.response_class = Google::Apis::ComputePreview::VmExtensionPolicy
68140
+ def get_zone_vm_extension_policy_vm_extension(project, zone, extension_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
68141
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/vmExtensions/{extensionName}', options)
68142
+ command.response_representation = Google::Apis::ComputePreview::VmExtension::Representation
68143
+ command.response_class = Google::Apis::ComputePreview::VmExtension
65360
68144
  command.params['project'] = project unless project.nil?
65361
68145
  command.params['zone'] = zone unless zone.nil?
65362
- command.params['vmExtensionPolicy'] = vm_extension_policy unless vm_extension_policy.nil?
68146
+ command.params['extensionName'] = extension_name unless extension_name.nil?
65363
68147
  command.query['fields'] = fields unless fields.nil?
65364
68148
  command.query['quotaUser'] = quota_user unless quota_user.nil?
65365
68149
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -65531,6 +68315,118 @@ module Google
65531
68315
  execute_or_queue_command(command, &block)
65532
68316
  end
65533
68317
 
68318
+ # Lists all VM extensions within a specific zone for a project.
68319
+ # This is a read-only API.
68320
+ # @param [String] project
68321
+ # Required. Project ID for this request.
68322
+ # @param [String] zone
68323
+ # Name of the zone for this request.
68324
+ # @param [String] filter
68325
+ # A filter expression that filters resources listed in the response. Most
68326
+ # Compute resources support two types of filter expressions:
68327
+ # expressions that support regular expressions and expressions that follow
68328
+ # API improvement proposal AIP-160.
68329
+ # These two types of filter expressions cannot be mixed in one request.
68330
+ # If you want to use AIP-160, your expression must specify the field name, an
68331
+ # operator, and the value that you want to use for filtering. The value
68332
+ # must be a string, a number, or a boolean. The operator
68333
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
68334
+ # For example, if you are filtering Compute Engine instances, you can
68335
+ # exclude instances named `example-instance` by specifying
68336
+ # `name != example-instance`.
68337
+ # The `:*` comparison can be used to test whether a key has been defined.
68338
+ # For example, to find all objects with `owner` label use:
68339
+ # ```
68340
+ # labels.owner:*
68341
+ # ```
68342
+ # You can also filter nested fields. For example, you could specify
68343
+ # `scheduling.automaticRestart = false` to include instances only
68344
+ # if they are not scheduled for automatic restarts. You can use filtering
68345
+ # on nested fields to filter based onresource labels.
68346
+ # To filter on multiple expressions, provide each separate expression within
68347
+ # parentheses. For example:
68348
+ # ```
68349
+ # (scheduling.automaticRestart = true)
68350
+ # (cpuPlatform = "Intel Skylake")
68351
+ # ```
68352
+ # By default, each expression is an `AND` expression. However, you
68353
+ # can include `AND` and `OR` expressions explicitly.
68354
+ # For example:
68355
+ # ```
68356
+ # (cpuPlatform = "Intel Skylake") OR
68357
+ # (cpuPlatform = "Intel Broadwell") AND
68358
+ # (scheduling.automaticRestart = true)
68359
+ # ```
68360
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
68361
+ # (not equal) operator against a single un-parenthesized expression with or
68362
+ # without quotes or against multiple parenthesized expressions. Examples:
68363
+ # `fieldname eq unquoted literal`
68364
+ # `fieldname eq 'single quoted literal'`
68365
+ # `fieldname eq "double quoted literal"`
68366
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
68367
+ # The literal value is interpreted as a regular expression using GoogleRE2
68368
+ # library syntax.
68369
+ # The literal value must match the entire field.
68370
+ # For example, to filter for instances that do not end with name "instance",
68371
+ # you would use `name ne .*instance`.
68372
+ # You cannot combine constraints on multiple fields using regular
68373
+ # expressions.
68374
+ # @param [Fixnum] max_results
68375
+ # The maximum number of results per page that should be returned.
68376
+ # If the number of available results is larger than `maxResults`,
68377
+ # Compute Engine returns a `nextPageToken` that can be used to get
68378
+ # the next page of results in subsequent list requests. Acceptable values are
68379
+ # `0` to `500`, inclusive. (Default: `500`)
68380
+ # @param [String] order_by
68381
+ # Sorts list results by a certain order. By default, results
68382
+ # are returned in alphanumerical order based on the resource name.
68383
+ # You can also sort results in descending order based on the creation
68384
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
68385
+ # results based on the `creationTimestamp` field in
68386
+ # reverse chronological order (newest result first). Use this to sort
68387
+ # resources like operations so that the newest operation is returned first.
68388
+ # Currently, only sorting by `name` or
68389
+ # `creationTimestamp desc` is supported.
68390
+ # @param [String] page_token
68391
+ # Specifies a page token to use. Set `pageToken` to the
68392
+ # `nextPageToken` returned by a previous list request to get
68393
+ # the next page of results.
68394
+ # @param [String] fields
68395
+ # Selector specifying which fields to include in a partial response.
68396
+ # @param [String] quota_user
68397
+ # Available to use for quota purposes for server-side applications. Can be any
68398
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
68399
+ # @param [String] user_ip
68400
+ # Legacy name for parameter that has been superseded by `quotaUser`.
68401
+ # @param [Google::Apis::RequestOptions] options
68402
+ # Request-specific options
68403
+ #
68404
+ # @yield [result, err] Result & error if block supplied
68405
+ # @yieldparam result [Google::Apis::ComputePreview::ListVmExtensionsResponse] parsed result object
68406
+ # @yieldparam err [StandardError] error object if request failed
68407
+ #
68408
+ # @return [Google::Apis::ComputePreview::ListVmExtensionsResponse]
68409
+ #
68410
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
68411
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
68412
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
68413
+ def list_zone_vm_extension_policy_vm_extensions(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
68414
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/vmExtensions', options)
68415
+ command.response_representation = Google::Apis::ComputePreview::ListVmExtensionsResponse::Representation
68416
+ command.response_class = Google::Apis::ComputePreview::ListVmExtensionsResponse
68417
+ command.params['project'] = project unless project.nil?
68418
+ command.params['zone'] = zone unless zone.nil?
68419
+ command.query['filter'] = filter unless filter.nil?
68420
+ command.query['maxResults'] = max_results unless max_results.nil?
68421
+ command.query['orderBy'] = order_by unless order_by.nil?
68422
+ command.query['pageToken'] = page_token unless page_token.nil?
68423
+ command.query['fields'] = fields unless fields.nil?
68424
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
68425
+ command.query['userIp'] = user_ip unless user_ip.nil?
68426
+ command.set_api_version_header "2026-10-01-preview"
68427
+ execute_or_queue_command(command, &block)
68428
+ end
68429
+
65534
68430
  # Modifies an existing zone VM extension policy within a project.
65535
68431
  # @param [String] project
65536
68432
  # Project ID for this request.