google-apis-compute_beta 0.109.0 → 0.111.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/compute_beta/classes.rb +1998 -122
- data/lib/google/apis/compute_beta/gem_version.rb +2 -2
- data/lib/google/apis/compute_beta/representations.rb +878 -48
- data/lib/google/apis/compute_beta/service.rb +2504 -701
- metadata +4 -4
@@ -780,6 +780,47 @@ module Google
|
|
780
780
|
execute_or_queue_command(command, &block)
|
781
781
|
end
|
782
782
|
|
783
|
+
# Advise how, where and when to create the requested amount of instances with
|
784
|
+
# specified accelerators, within the specified time and location limits. The
|
785
|
+
# method recommends creating future reservations for the requested resources.
|
786
|
+
# @param [String] project
|
787
|
+
# Project ID for this request.
|
788
|
+
# @param [String] region
|
789
|
+
# Name of the region for this request.
|
790
|
+
# @param [Google::Apis::ComputeBeta::CalendarModeAdviceRequest] calendar_mode_advice_request_object
|
791
|
+
# @param [String] fields
|
792
|
+
# Selector specifying which fields to include in a partial response.
|
793
|
+
# @param [String] quota_user
|
794
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
795
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
796
|
+
# @param [String] user_ip
|
797
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
798
|
+
# @param [Google::Apis::RequestOptions] options
|
799
|
+
# Request-specific options
|
800
|
+
#
|
801
|
+
# @yield [result, err] Result & error if block supplied
|
802
|
+
# @yieldparam result [Google::Apis::ComputeBeta::CalendarModeAdviceResponse] parsed result object
|
803
|
+
# @yieldparam err [StandardError] error object if request failed
|
804
|
+
#
|
805
|
+
# @return [Google::Apis::ComputeBeta::CalendarModeAdviceResponse]
|
806
|
+
#
|
807
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
808
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
809
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
810
|
+
def calendar_mode_advice(project, region, calendar_mode_advice_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
811
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/advice/calendarMode', options)
|
812
|
+
command.request_representation = Google::Apis::ComputeBeta::CalendarModeAdviceRequest::Representation
|
813
|
+
command.request_object = calendar_mode_advice_request_object
|
814
|
+
command.response_representation = Google::Apis::ComputeBeta::CalendarModeAdviceResponse::Representation
|
815
|
+
command.response_class = Google::Apis::ComputeBeta::CalendarModeAdviceResponse
|
816
|
+
command.params['project'] = project unless project.nil?
|
817
|
+
command.params['region'] = region unless region.nil?
|
818
|
+
command.query['fields'] = fields unless fields.nil?
|
819
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
820
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
821
|
+
execute_or_queue_command(command, &block)
|
822
|
+
end
|
823
|
+
|
783
824
|
# Retrieves an aggregated list of autoscalers. To prevent failure, Google
|
784
825
|
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
785
826
|
# @param [String] project
|
@@ -1634,155 +1675,62 @@ module Google
|
|
1634
1675
|
execute_or_queue_command(command, &block)
|
1635
1676
|
end
|
1636
1677
|
|
1637
|
-
#
|
1638
|
-
# request. This method supports PATCH semantics and uses the JSON merge patch
|
1639
|
-
# format and processing rules.
|
1640
|
-
# @param [String] project
|
1641
|
-
# Project ID for this request.
|
1642
|
-
# @param [String] backend_bucket
|
1643
|
-
# Name of the BackendBucket resource to patch.
|
1644
|
-
# @param [Google::Apis::ComputeBeta::BackendBucket] backend_bucket_object
|
1645
|
-
# @param [String] request_id
|
1646
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
1647
|
-
# that if you must retry your request, the server will know to ignore the
|
1648
|
-
# request if it has already been completed. For example, consider a situation
|
1649
|
-
# where you make an initial request and the request times out. If you make the
|
1650
|
-
# request again with the same request ID, the server can check if original
|
1651
|
-
# operation with the same request ID was received, and if so, will ignore the
|
1652
|
-
# second request. This prevents clients from accidentally creating duplicate
|
1653
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
1654
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
1655
|
-
# @param [String] fields
|
1656
|
-
# Selector specifying which fields to include in a partial response.
|
1657
|
-
# @param [String] quota_user
|
1658
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1659
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1660
|
-
# @param [String] user_ip
|
1661
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
1662
|
-
# @param [Google::Apis::RequestOptions] options
|
1663
|
-
# Request-specific options
|
1664
|
-
#
|
1665
|
-
# @yield [result, err] Result & error if block supplied
|
1666
|
-
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
1667
|
-
# @yieldparam err [StandardError] error object if request failed
|
1668
|
-
#
|
1669
|
-
# @return [Google::Apis::ComputeBeta::Operation]
|
1670
|
-
#
|
1671
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1672
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1673
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1674
|
-
def patch_backend_bucket(project, backend_bucket, backend_bucket_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1675
|
-
command = make_simple_command(:patch, 'projects/{project}/global/backendBuckets/{backendBucket}', options)
|
1676
|
-
command.request_representation = Google::Apis::ComputeBeta::BackendBucket::Representation
|
1677
|
-
command.request_object = backend_bucket_object
|
1678
|
-
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
1679
|
-
command.response_class = Google::Apis::ComputeBeta::Operation
|
1680
|
-
command.params['project'] = project unless project.nil?
|
1681
|
-
command.params['backendBucket'] = backend_bucket unless backend_bucket.nil?
|
1682
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
1683
|
-
command.query['fields'] = fields unless fields.nil?
|
1684
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1685
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1686
|
-
execute_or_queue_command(command, &block)
|
1687
|
-
end
|
1688
|
-
|
1689
|
-
# Sets the edge security policy for the specified backend bucket.
|
1690
|
-
# @param [String] project
|
1691
|
-
# Project ID for this request.
|
1692
|
-
# @param [String] backend_bucket
|
1693
|
-
# Name of the BackendBucket resource to which the security policy should be set.
|
1694
|
-
# The name should conform to RFC1035.
|
1695
|
-
# @param [Google::Apis::ComputeBeta::SecurityPolicyReference] security_policy_reference_object
|
1696
|
-
# @param [String] request_id
|
1697
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
1698
|
-
# that if you must retry your request, the server will know to ignore the
|
1699
|
-
# request if it has already been completed. For example, consider a situation
|
1700
|
-
# where you make an initial request and the request times out. If you make the
|
1701
|
-
# request again with the same request ID, the server can check if original
|
1702
|
-
# operation with the same request ID was received, and if so, will ignore the
|
1703
|
-
# second request. This prevents clients from accidentally creating duplicate
|
1704
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
1705
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
1706
|
-
# @param [String] fields
|
1707
|
-
# Selector specifying which fields to include in a partial response.
|
1708
|
-
# @param [String] quota_user
|
1709
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1710
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1711
|
-
# @param [String] user_ip
|
1712
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
1713
|
-
# @param [Google::Apis::RequestOptions] options
|
1714
|
-
# Request-specific options
|
1715
|
-
#
|
1716
|
-
# @yield [result, err] Result & error if block supplied
|
1717
|
-
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
1718
|
-
# @yieldparam err [StandardError] error object if request failed
|
1719
|
-
#
|
1720
|
-
# @return [Google::Apis::ComputeBeta::Operation]
|
1721
|
-
#
|
1722
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1723
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1724
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1725
|
-
def set_backend_bucket_edge_security_policy(project, backend_bucket, security_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1726
|
-
command = make_simple_command(:post, 'projects/{project}/global/backendBuckets/{backendBucket}/setEdgeSecurityPolicy', options)
|
1727
|
-
command.request_representation = Google::Apis::ComputeBeta::SecurityPolicyReference::Representation
|
1728
|
-
command.request_object = security_policy_reference_object
|
1729
|
-
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
1730
|
-
command.response_class = Google::Apis::ComputeBeta::Operation
|
1731
|
-
command.params['project'] = project unless project.nil?
|
1732
|
-
command.params['backendBucket'] = backend_bucket unless backend_bucket.nil?
|
1733
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
1734
|
-
command.query['fields'] = fields unless fields.nil?
|
1735
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1736
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1737
|
-
execute_or_queue_command(command, &block)
|
1738
|
-
end
|
1739
|
-
|
1740
|
-
# Sets the access control policy on the specified resource. Replaces any
|
1741
|
-
# existing policy.
|
1742
|
-
# @param [String] project
|
1743
|
-
# Project ID for this request.
|
1744
|
-
# @param [String] resource
|
1745
|
-
# Name or id of the resource for this request.
|
1746
|
-
# @param [Google::Apis::ComputeBeta::GlobalSetPolicyRequest] global_set_policy_request_object
|
1747
|
-
# @param [String] fields
|
1748
|
-
# Selector specifying which fields to include in a partial response.
|
1749
|
-
# @param [String] quota_user
|
1750
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1751
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1752
|
-
# @param [String] user_ip
|
1753
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
1754
|
-
# @param [Google::Apis::RequestOptions] options
|
1755
|
-
# Request-specific options
|
1756
|
-
#
|
1757
|
-
# @yield [result, err] Result & error if block supplied
|
1758
|
-
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
1759
|
-
# @yieldparam err [StandardError] error object if request failed
|
1760
|
-
#
|
1761
|
-
# @return [Google::Apis::ComputeBeta::Policy]
|
1762
|
-
#
|
1763
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1764
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1765
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1766
|
-
def set_backend_bucket_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1767
|
-
command = make_simple_command(:post, 'projects/{project}/global/backendBuckets/{resource}/setIamPolicy', options)
|
1768
|
-
command.request_representation = Google::Apis::ComputeBeta::GlobalSetPolicyRequest::Representation
|
1769
|
-
command.request_object = global_set_policy_request_object
|
1770
|
-
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
1771
|
-
command.response_class = Google::Apis::ComputeBeta::Policy
|
1772
|
-
command.params['project'] = project unless project.nil?
|
1773
|
-
command.params['resource'] = resource unless resource.nil?
|
1774
|
-
command.query['fields'] = fields unless fields.nil?
|
1775
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1776
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1777
|
-
execute_or_queue_command(command, &block)
|
1778
|
-
end
|
1779
|
-
|
1780
|
-
# Returns permissions that a caller has on the specified resource.
|
1678
|
+
# Retrieves a list of all usable backend buckets in the specified project.
|
1781
1679
|
# @param [String] project
|
1782
1680
|
# Project ID for this request.
|
1783
|
-
# @param [String]
|
1784
|
-
#
|
1785
|
-
#
|
1681
|
+
# @param [String] filter
|
1682
|
+
# A filter expression that filters resources listed in the response. Most
|
1683
|
+
# Compute resources support two types of filter expressions: expressions that
|
1684
|
+
# support regular expressions and expressions that follow API improvement
|
1685
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
1686
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
1687
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
1688
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
1689
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
1690
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
1691
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
1692
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
1693
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
1694
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
1695
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
1696
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
1697
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
1698
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
1699
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
1700
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
1701
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
1702
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
1703
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
1704
|
+
# un-parenthesized expression with or without quotes or against multiple
|
1705
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
1706
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
1707
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
1708
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
1709
|
+
# literal value must match the entire field. For example, to filter for
|
1710
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
1711
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
1712
|
+
# expressions.
|
1713
|
+
# @param [Fixnum] max_results
|
1714
|
+
# The maximum number of results per page that should be returned. If the number
|
1715
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
1716
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
1717
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
1718
|
+
# @param [String] order_by
|
1719
|
+
# Sorts list results by a certain order. By default, results are returned in
|
1720
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
1721
|
+
# descending order based on the creation timestamp using `orderBy="
|
1722
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
1723
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
1724
|
+
# resources like operations so that the newest operation is returned first.
|
1725
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
1726
|
+
# @param [String] page_token
|
1727
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
1728
|
+
# by a previous list request to get the next page of results.
|
1729
|
+
# @param [Boolean] return_partial_success
|
1730
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
1731
|
+
# failure. The default value is false. For example, when partial success
|
1732
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
1733
|
+
# resources in the zone or no resources, with an error code.
|
1786
1734
|
# @param [String] fields
|
1787
1735
|
# Selector specifying which fields to include in a partial response.
|
1788
1736
|
# @param [String] quota_user
|
@@ -1794,22 +1742,24 @@ module Google
|
|
1794
1742
|
# Request-specific options
|
1795
1743
|
#
|
1796
1744
|
# @yield [result, err] Result & error if block supplied
|
1797
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
1745
|
+
# @yieldparam result [Google::Apis::ComputeBeta::BackendBucketListUsable] parsed result object
|
1798
1746
|
# @yieldparam err [StandardError] error object if request failed
|
1799
1747
|
#
|
1800
|
-
# @return [Google::Apis::ComputeBeta::
|
1748
|
+
# @return [Google::Apis::ComputeBeta::BackendBucketListUsable]
|
1801
1749
|
#
|
1802
1750
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1803
1751
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1804
1752
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1805
|
-
def
|
1806
|
-
command = make_simple_command(:
|
1807
|
-
command.
|
1808
|
-
command.
|
1809
|
-
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
1810
|
-
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
1753
|
+
def list_backend_bucket_usable(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1754
|
+
command = make_simple_command(:get, 'projects/{project}/global/backendBuckets/listUsable', options)
|
1755
|
+
command.response_representation = Google::Apis::ComputeBeta::BackendBucketListUsable::Representation
|
1756
|
+
command.response_class = Google::Apis::ComputeBeta::BackendBucketListUsable
|
1811
1757
|
command.params['project'] = project unless project.nil?
|
1812
|
-
command.
|
1758
|
+
command.query['filter'] = filter unless filter.nil?
|
1759
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
1760
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1761
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1762
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
1813
1763
|
command.query['fields'] = fields unless fields.nil?
|
1814
1764
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1815
1765
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -1817,11 +1767,12 @@ module Google
|
|
1817
1767
|
end
|
1818
1768
|
|
1819
1769
|
# Updates the specified BackendBucket resource with the data included in the
|
1820
|
-
# request.
|
1770
|
+
# request. This method supports PATCH semantics and uses the JSON merge patch
|
1771
|
+
# format and processing rules.
|
1821
1772
|
# @param [String] project
|
1822
1773
|
# Project ID for this request.
|
1823
1774
|
# @param [String] backend_bucket
|
1824
|
-
# Name of the BackendBucket resource to
|
1775
|
+
# Name of the BackendBucket resource to patch.
|
1825
1776
|
# @param [Google::Apis::ComputeBeta::BackendBucket] backend_bucket_object
|
1826
1777
|
# @param [String] request_id
|
1827
1778
|
# An optional request ID to identify requests. Specify a unique request ID so
|
@@ -1852,8 +1803,8 @@ module Google
|
|
1852
1803
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1853
1804
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1854
1805
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1855
|
-
def
|
1856
|
-
command = make_simple_command(:
|
1806
|
+
def patch_backend_bucket(project, backend_bucket, backend_bucket_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1807
|
+
command = make_simple_command(:patch, 'projects/{project}/global/backendBuckets/{backendBucket}', options)
|
1857
1808
|
command.request_representation = Google::Apis::ComputeBeta::BackendBucket::Representation
|
1858
1809
|
command.request_object = backend_bucket_object
|
1859
1810
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
@@ -1867,13 +1818,194 @@ module Google
|
|
1867
1818
|
execute_or_queue_command(command, &block)
|
1868
1819
|
end
|
1869
1820
|
|
1870
|
-
#
|
1821
|
+
# Sets the edge security policy for the specified backend bucket.
|
1871
1822
|
# @param [String] project
|
1872
1823
|
# Project ID for this request.
|
1873
|
-
# @param [String]
|
1874
|
-
# Name of the
|
1875
|
-
#
|
1876
|
-
# @param [Google::Apis::ComputeBeta::
|
1824
|
+
# @param [String] backend_bucket
|
1825
|
+
# Name of the BackendBucket resource to which the security policy should be set.
|
1826
|
+
# The name should conform to RFC1035.
|
1827
|
+
# @param [Google::Apis::ComputeBeta::SecurityPolicyReference] security_policy_reference_object
|
1828
|
+
# @param [String] request_id
|
1829
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
1830
|
+
# that if you must retry your request, the server will know to ignore the
|
1831
|
+
# request if it has already been completed. For example, consider a situation
|
1832
|
+
# where you make an initial request and the request times out. If you make the
|
1833
|
+
# request again with the same request ID, the server can check if original
|
1834
|
+
# operation with the same request ID was received, and if so, will ignore the
|
1835
|
+
# second request. This prevents clients from accidentally creating duplicate
|
1836
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
1837
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
1838
|
+
# @param [String] fields
|
1839
|
+
# Selector specifying which fields to include in a partial response.
|
1840
|
+
# @param [String] quota_user
|
1841
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1842
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1843
|
+
# @param [String] user_ip
|
1844
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
1845
|
+
# @param [Google::Apis::RequestOptions] options
|
1846
|
+
# Request-specific options
|
1847
|
+
#
|
1848
|
+
# @yield [result, err] Result & error if block supplied
|
1849
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
1850
|
+
# @yieldparam err [StandardError] error object if request failed
|
1851
|
+
#
|
1852
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
1853
|
+
#
|
1854
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1855
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1856
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1857
|
+
def set_backend_bucket_edge_security_policy(project, backend_bucket, security_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1858
|
+
command = make_simple_command(:post, 'projects/{project}/global/backendBuckets/{backendBucket}/setEdgeSecurityPolicy', options)
|
1859
|
+
command.request_representation = Google::Apis::ComputeBeta::SecurityPolicyReference::Representation
|
1860
|
+
command.request_object = security_policy_reference_object
|
1861
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
1862
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
1863
|
+
command.params['project'] = project unless project.nil?
|
1864
|
+
command.params['backendBucket'] = backend_bucket unless backend_bucket.nil?
|
1865
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1866
|
+
command.query['fields'] = fields unless fields.nil?
|
1867
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1868
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1869
|
+
execute_or_queue_command(command, &block)
|
1870
|
+
end
|
1871
|
+
|
1872
|
+
# Sets the access control policy on the specified resource. Replaces any
|
1873
|
+
# existing policy.
|
1874
|
+
# @param [String] project
|
1875
|
+
# Project ID for this request.
|
1876
|
+
# @param [String] resource
|
1877
|
+
# Name or id of the resource for this request.
|
1878
|
+
# @param [Google::Apis::ComputeBeta::GlobalSetPolicyRequest] global_set_policy_request_object
|
1879
|
+
# @param [String] fields
|
1880
|
+
# Selector specifying which fields to include in a partial response.
|
1881
|
+
# @param [String] quota_user
|
1882
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1883
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1884
|
+
# @param [String] user_ip
|
1885
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
1886
|
+
# @param [Google::Apis::RequestOptions] options
|
1887
|
+
# Request-specific options
|
1888
|
+
#
|
1889
|
+
# @yield [result, err] Result & error if block supplied
|
1890
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
1891
|
+
# @yieldparam err [StandardError] error object if request failed
|
1892
|
+
#
|
1893
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
1894
|
+
#
|
1895
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1896
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1897
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1898
|
+
def set_backend_bucket_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1899
|
+
command = make_simple_command(:post, 'projects/{project}/global/backendBuckets/{resource}/setIamPolicy', options)
|
1900
|
+
command.request_representation = Google::Apis::ComputeBeta::GlobalSetPolicyRequest::Representation
|
1901
|
+
command.request_object = global_set_policy_request_object
|
1902
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
1903
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
1904
|
+
command.params['project'] = project unless project.nil?
|
1905
|
+
command.params['resource'] = resource unless resource.nil?
|
1906
|
+
command.query['fields'] = fields unless fields.nil?
|
1907
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1908
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1909
|
+
execute_or_queue_command(command, &block)
|
1910
|
+
end
|
1911
|
+
|
1912
|
+
# Returns permissions that a caller has on the specified resource.
|
1913
|
+
# @param [String] project
|
1914
|
+
# Project ID for this request.
|
1915
|
+
# @param [String] resource
|
1916
|
+
# Name or id of the resource for this request.
|
1917
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
1918
|
+
# @param [String] fields
|
1919
|
+
# Selector specifying which fields to include in a partial response.
|
1920
|
+
# @param [String] quota_user
|
1921
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1922
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1923
|
+
# @param [String] user_ip
|
1924
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
1925
|
+
# @param [Google::Apis::RequestOptions] options
|
1926
|
+
# Request-specific options
|
1927
|
+
#
|
1928
|
+
# @yield [result, err] Result & error if block supplied
|
1929
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
1930
|
+
# @yieldparam err [StandardError] error object if request failed
|
1931
|
+
#
|
1932
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
1933
|
+
#
|
1934
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1935
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1936
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1937
|
+
def test_backend_bucket_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1938
|
+
command = make_simple_command(:post, 'projects/{project}/global/backendBuckets/{resource}/testIamPermissions', options)
|
1939
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
1940
|
+
command.request_object = test_permissions_request_object
|
1941
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
1942
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
1943
|
+
command.params['project'] = project unless project.nil?
|
1944
|
+
command.params['resource'] = resource unless resource.nil?
|
1945
|
+
command.query['fields'] = fields unless fields.nil?
|
1946
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1947
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1948
|
+
execute_or_queue_command(command, &block)
|
1949
|
+
end
|
1950
|
+
|
1951
|
+
# Updates the specified BackendBucket resource with the data included in the
|
1952
|
+
# request.
|
1953
|
+
# @param [String] project
|
1954
|
+
# Project ID for this request.
|
1955
|
+
# @param [String] backend_bucket
|
1956
|
+
# Name of the BackendBucket resource to update.
|
1957
|
+
# @param [Google::Apis::ComputeBeta::BackendBucket] backend_bucket_object
|
1958
|
+
# @param [String] request_id
|
1959
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
1960
|
+
# that if you must retry your request, the server will know to ignore the
|
1961
|
+
# request if it has already been completed. For example, consider a situation
|
1962
|
+
# where you make an initial request and the request times out. If you make the
|
1963
|
+
# request again with the same request ID, the server can check if original
|
1964
|
+
# operation with the same request ID was received, and if so, will ignore the
|
1965
|
+
# second request. This prevents clients from accidentally creating duplicate
|
1966
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
1967
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
1968
|
+
# @param [String] fields
|
1969
|
+
# Selector specifying which fields to include in a partial response.
|
1970
|
+
# @param [String] quota_user
|
1971
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1972
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1973
|
+
# @param [String] user_ip
|
1974
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
1975
|
+
# @param [Google::Apis::RequestOptions] options
|
1976
|
+
# Request-specific options
|
1977
|
+
#
|
1978
|
+
# @yield [result, err] Result & error if block supplied
|
1979
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
1980
|
+
# @yieldparam err [StandardError] error object if request failed
|
1981
|
+
#
|
1982
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
1983
|
+
#
|
1984
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1985
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1986
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1987
|
+
def update_backend_bucket(project, backend_bucket, backend_bucket_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1988
|
+
command = make_simple_command(:put, 'projects/{project}/global/backendBuckets/{backendBucket}', options)
|
1989
|
+
command.request_representation = Google::Apis::ComputeBeta::BackendBucket::Representation
|
1990
|
+
command.request_object = backend_bucket_object
|
1991
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
1992
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
1993
|
+
command.params['project'] = project unless project.nil?
|
1994
|
+
command.params['backendBucket'] = backend_bucket unless backend_bucket.nil?
|
1995
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1996
|
+
command.query['fields'] = fields unless fields.nil?
|
1997
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1998
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1999
|
+
execute_or_queue_command(command, &block)
|
2000
|
+
end
|
2001
|
+
|
2002
|
+
# Adds a key for validating requests with signed URLs for this backend service.
|
2003
|
+
# @param [String] project
|
2004
|
+
# Project ID for this request.
|
2005
|
+
# @param [String] backend_service
|
2006
|
+
# Name of the BackendService resource to which the Signed URL Key should be
|
2007
|
+
# added. The name should conform to RFC1035.
|
2008
|
+
# @param [Google::Apis::ComputeBeta::SignedUrlKey] signed_url_key_object
|
1877
2009
|
# @param [String] request_id
|
1878
2010
|
# An optional request ID to identify requests. Specify a unique request ID so
|
1879
2011
|
# that if you must retry your request, the server will know to ignore the
|
@@ -2791,8 +2923,383 @@ module Google
|
|
2791
2923
|
execute_or_queue_command(command, &block)
|
2792
2924
|
end
|
2793
2925
|
|
2794
|
-
#
|
2795
|
-
#
|
2926
|
+
# Deletes the specified cross-site network in the given scope.
|
2927
|
+
# @param [String] project
|
2928
|
+
# Project ID for this request.
|
2929
|
+
# @param [String] cross_site_network
|
2930
|
+
# Name of the cross-site network to delete.
|
2931
|
+
# @param [String] request_id
|
2932
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
2933
|
+
# that if you must retry your request, the server will know to ignore the
|
2934
|
+
# request if it has already been completed. For example, consider a situation
|
2935
|
+
# where you make an initial request and the request times out. If you make the
|
2936
|
+
# request again with the same request ID, the server can check if original
|
2937
|
+
# operation with the same request ID was received, and if so, will ignore the
|
2938
|
+
# second request. This prevents clients from accidentally creating duplicate
|
2939
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
2940
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
|
2941
|
+
# MixerMutationRequestBuilder
|
2942
|
+
# @param [String] fields
|
2943
|
+
# Selector specifying which fields to include in a partial response.
|
2944
|
+
# @param [String] quota_user
|
2945
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2946
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2947
|
+
# @param [String] user_ip
|
2948
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
2949
|
+
# @param [Google::Apis::RequestOptions] options
|
2950
|
+
# Request-specific options
|
2951
|
+
#
|
2952
|
+
# @yield [result, err] Result & error if block supplied
|
2953
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
2954
|
+
# @yieldparam err [StandardError] error object if request failed
|
2955
|
+
#
|
2956
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
2957
|
+
#
|
2958
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2959
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2960
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2961
|
+
def delete_cross_site_network(project, cross_site_network, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2962
|
+
command = make_simple_command(:delete, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}', options)
|
2963
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
2964
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
2965
|
+
command.params['project'] = project unless project.nil?
|
2966
|
+
command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
|
2967
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
2968
|
+
command.query['fields'] = fields unless fields.nil?
|
2969
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2970
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
2971
|
+
execute_or_queue_command(command, &block)
|
2972
|
+
end
|
2973
|
+
|
2974
|
+
# Returns the specified cross-site network in the given scope.
|
2975
|
+
# @param [String] project
|
2976
|
+
# Project ID for this request.
|
2977
|
+
# @param [String] cross_site_network
|
2978
|
+
# Name of the cross-site network to return.
|
2979
|
+
# @param [String] fields
|
2980
|
+
# Selector specifying which fields to include in a partial response.
|
2981
|
+
# @param [String] quota_user
|
2982
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2983
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2984
|
+
# @param [String] user_ip
|
2985
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
2986
|
+
# @param [Google::Apis::RequestOptions] options
|
2987
|
+
# Request-specific options
|
2988
|
+
#
|
2989
|
+
# @yield [result, err] Result & error if block supplied
|
2990
|
+
# @yieldparam result [Google::Apis::ComputeBeta::CrossSiteNetwork] parsed result object
|
2991
|
+
# @yieldparam err [StandardError] error object if request failed
|
2992
|
+
#
|
2993
|
+
# @return [Google::Apis::ComputeBeta::CrossSiteNetwork]
|
2994
|
+
#
|
2995
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2996
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2997
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2998
|
+
def get_cross_site_network(project, cross_site_network, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2999
|
+
command = make_simple_command(:get, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}', options)
|
3000
|
+
command.response_representation = Google::Apis::ComputeBeta::CrossSiteNetwork::Representation
|
3001
|
+
command.response_class = Google::Apis::ComputeBeta::CrossSiteNetwork
|
3002
|
+
command.params['project'] = project unless project.nil?
|
3003
|
+
command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
|
3004
|
+
command.query['fields'] = fields unless fields.nil?
|
3005
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3006
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3007
|
+
execute_or_queue_command(command, &block)
|
3008
|
+
end
|
3009
|
+
|
3010
|
+
# Creates a cross-site network in the specified project in the given scope using
|
3011
|
+
# the parameters that are included in the request.
|
3012
|
+
# @param [String] project
|
3013
|
+
# Project ID for this request.
|
3014
|
+
# @param [Google::Apis::ComputeBeta::CrossSiteNetwork] cross_site_network_object
|
3015
|
+
# @param [String] request_id
|
3016
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
3017
|
+
# that if you must retry your request, the server will know to ignore the
|
3018
|
+
# request if it has already been completed. For example, consider a situation
|
3019
|
+
# where you make an initial request and the request times out. If you make the
|
3020
|
+
# request again with the same request ID, the server can check if original
|
3021
|
+
# operation with the same request ID was received, and if so, will ignore the
|
3022
|
+
# second request. This prevents clients from accidentally creating duplicate
|
3023
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
3024
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
|
3025
|
+
# MixerMutationRequestBuilder
|
3026
|
+
# @param [Boolean] validate_only
|
3027
|
+
# [Input Only] Validate the new configuration, but don't create it.
|
3028
|
+
# @param [String] fields
|
3029
|
+
# Selector specifying which fields to include in a partial response.
|
3030
|
+
# @param [String] quota_user
|
3031
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3032
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3033
|
+
# @param [String] user_ip
|
3034
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
3035
|
+
# @param [Google::Apis::RequestOptions] options
|
3036
|
+
# Request-specific options
|
3037
|
+
#
|
3038
|
+
# @yield [result, err] Result & error if block supplied
|
3039
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
3040
|
+
# @yieldparam err [StandardError] error object if request failed
|
3041
|
+
#
|
3042
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
3043
|
+
#
|
3044
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3045
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3046
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3047
|
+
def insert_cross_site_network(project, cross_site_network_object = nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3048
|
+
command = make_simple_command(:post, 'projects/{project}/global/crossSiteNetworks', options)
|
3049
|
+
command.request_representation = Google::Apis::ComputeBeta::CrossSiteNetwork::Representation
|
3050
|
+
command.request_object = cross_site_network_object
|
3051
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
3052
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
3053
|
+
command.params['project'] = project unless project.nil?
|
3054
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
3055
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
3056
|
+
command.query['fields'] = fields unless fields.nil?
|
3057
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3058
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3059
|
+
execute_or_queue_command(command, &block)
|
3060
|
+
end
|
3061
|
+
|
3062
|
+
# Lists the cross-site networks for a project in the given scope.
|
3063
|
+
# @param [String] project
|
3064
|
+
# Project ID for this request.
|
3065
|
+
# @param [String] filter
|
3066
|
+
# A filter expression that filters resources listed in the response. Most
|
3067
|
+
# Compute resources support two types of filter expressions: expressions that
|
3068
|
+
# support regular expressions and expressions that follow API improvement
|
3069
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
3070
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
3071
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
3072
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
3073
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
3074
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
3075
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
3076
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
3077
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
3078
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
3079
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
3080
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
3081
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
3082
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
3083
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
3084
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
3085
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
3086
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
3087
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
3088
|
+
# un-parenthesized expression with or without quotes or against multiple
|
3089
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
3090
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
3091
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
3092
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
3093
|
+
# literal value must match the entire field. For example, to filter for
|
3094
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
3095
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
3096
|
+
# expressions.
|
3097
|
+
# @param [Fixnum] max_results
|
3098
|
+
# The maximum number of results per page that should be returned. If the number
|
3099
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
3100
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
3101
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
3102
|
+
# @param [String] order_by
|
3103
|
+
# Sorts list results by a certain order. By default, results are returned in
|
3104
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
3105
|
+
# descending order based on the creation timestamp using `orderBy="
|
3106
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
3107
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
3108
|
+
# resources like operations so that the newest operation is returned first.
|
3109
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
3110
|
+
# @param [String] page_token
|
3111
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
3112
|
+
# by a previous list request to get the next page of results.
|
3113
|
+
# @param [Boolean] return_partial_success
|
3114
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
3115
|
+
# failure. The default value is false. For example, when partial success
|
3116
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
3117
|
+
# resources in the zone or no resources, with an error code.
|
3118
|
+
# @param [String] fields
|
3119
|
+
# Selector specifying which fields to include in a partial response.
|
3120
|
+
# @param [String] quota_user
|
3121
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3122
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3123
|
+
# @param [String] user_ip
|
3124
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
3125
|
+
# @param [Google::Apis::RequestOptions] options
|
3126
|
+
# Request-specific options
|
3127
|
+
#
|
3128
|
+
# @yield [result, err] Result & error if block supplied
|
3129
|
+
# @yieldparam result [Google::Apis::ComputeBeta::CrossSiteNetworkList] parsed result object
|
3130
|
+
# @yieldparam err [StandardError] error object if request failed
|
3131
|
+
#
|
3132
|
+
# @return [Google::Apis::ComputeBeta::CrossSiteNetworkList]
|
3133
|
+
#
|
3134
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3135
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3136
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3137
|
+
def list_cross_site_networks(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3138
|
+
command = make_simple_command(:get, 'projects/{project}/global/crossSiteNetworks', options)
|
3139
|
+
command.response_representation = Google::Apis::ComputeBeta::CrossSiteNetworkList::Representation
|
3140
|
+
command.response_class = Google::Apis::ComputeBeta::CrossSiteNetworkList
|
3141
|
+
command.params['project'] = project unless project.nil?
|
3142
|
+
command.query['filter'] = filter unless filter.nil?
|
3143
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
3144
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
3145
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
3146
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
3147
|
+
command.query['fields'] = fields unless fields.nil?
|
3148
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3149
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3150
|
+
execute_or_queue_command(command, &block)
|
3151
|
+
end
|
3152
|
+
|
3153
|
+
# Updates the specified cross-site network with the data included in the request.
|
3154
|
+
# This method supports PATCH semantics and uses the JSON merge patch format and
|
3155
|
+
# processing rules.
|
3156
|
+
# @param [String] project
|
3157
|
+
# Project ID for this request.
|
3158
|
+
# @param [String] cross_site_network
|
3159
|
+
# Name of the cross-site network to update.
|
3160
|
+
# @param [Google::Apis::ComputeBeta::CrossSiteNetwork] cross_site_network_object
|
3161
|
+
# @param [String] request_id
|
3162
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
3163
|
+
# that if you must retry your request, the server will know to ignore the
|
3164
|
+
# request if it has already been completed. For example, consider a situation
|
3165
|
+
# where you make an initial request and the request times out. If you make the
|
3166
|
+
# request again with the same request ID, the server can check if original
|
3167
|
+
# operation with the same request ID was received, and if so, will ignore the
|
3168
|
+
# second request. This prevents clients from accidentally creating duplicate
|
3169
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
3170
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
|
3171
|
+
# MixerMutationRequestBuilder
|
3172
|
+
# @param [String] update_mask
|
3173
|
+
# update_mask indicates fields to be updated as part of this request.
|
3174
|
+
# @param [Boolean] validate_only
|
3175
|
+
# [Input Only] Validate the new configuration, but don't update it.
|
3176
|
+
# @param [String] fields
|
3177
|
+
# Selector specifying which fields to include in a partial response.
|
3178
|
+
# @param [String] quota_user
|
3179
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3180
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3181
|
+
# @param [String] user_ip
|
3182
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
3183
|
+
# @param [Google::Apis::RequestOptions] options
|
3184
|
+
# Request-specific options
|
3185
|
+
#
|
3186
|
+
# @yield [result, err] Result & error if block supplied
|
3187
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
3188
|
+
# @yieldparam err [StandardError] error object if request failed
|
3189
|
+
#
|
3190
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
3191
|
+
#
|
3192
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3193
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3194
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3195
|
+
def patch_cross_site_network(project, cross_site_network, cross_site_network_object = nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3196
|
+
command = make_simple_command(:patch, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}', options)
|
3197
|
+
command.request_representation = Google::Apis::ComputeBeta::CrossSiteNetwork::Representation
|
3198
|
+
command.request_object = cross_site_network_object
|
3199
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
3200
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
3201
|
+
command.params['project'] = project unless project.nil?
|
3202
|
+
command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
|
3203
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
3204
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
3205
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
3206
|
+
command.query['fields'] = fields unless fields.nil?
|
3207
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3208
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3209
|
+
execute_or_queue_command(command, &block)
|
3210
|
+
end
|
3211
|
+
|
3212
|
+
# Get Zonal Disk Settings.
|
3213
|
+
# @param [String] project
|
3214
|
+
# Project ID for this request.
|
3215
|
+
# @param [String] zone
|
3216
|
+
# Name of the zone for this request.
|
3217
|
+
# @param [String] fields
|
3218
|
+
# Selector specifying which fields to include in a partial response.
|
3219
|
+
# @param [String] quota_user
|
3220
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3221
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3222
|
+
# @param [String] user_ip
|
3223
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
3224
|
+
# @param [Google::Apis::RequestOptions] options
|
3225
|
+
# Request-specific options
|
3226
|
+
#
|
3227
|
+
# @yield [result, err] Result & error if block supplied
|
3228
|
+
# @yieldparam result [Google::Apis::ComputeBeta::DiskSettings] parsed result object
|
3229
|
+
# @yieldparam err [StandardError] error object if request failed
|
3230
|
+
#
|
3231
|
+
# @return [Google::Apis::ComputeBeta::DiskSettings]
|
3232
|
+
#
|
3233
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3234
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3235
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3236
|
+
def get_disk_setting(project, zone, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3237
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/diskSettings', options)
|
3238
|
+
command.response_representation = Google::Apis::ComputeBeta::DiskSettings::Representation
|
3239
|
+
command.response_class = Google::Apis::ComputeBeta::DiskSettings
|
3240
|
+
command.params['project'] = project unless project.nil?
|
3241
|
+
command.params['zone'] = zone unless zone.nil?
|
3242
|
+
command.query['fields'] = fields unless fields.nil?
|
3243
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3244
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3245
|
+
execute_or_queue_command(command, &block)
|
3246
|
+
end
|
3247
|
+
|
3248
|
+
# Patch Zonal Disk Settings
|
3249
|
+
# @param [String] project
|
3250
|
+
# Project ID for this request.
|
3251
|
+
# @param [String] zone
|
3252
|
+
# The name of the zone for this request.
|
3253
|
+
# @param [Google::Apis::ComputeBeta::DiskSettings] disk_settings_object
|
3254
|
+
# @param [String] request_id
|
3255
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
3256
|
+
# that if you must retry your request, the server will know to ignore the
|
3257
|
+
# request if it has already been completed. For example, consider a situation
|
3258
|
+
# where you make an initial request and the request times out. If you make the
|
3259
|
+
# request again with the same request ID, the server can check if original
|
3260
|
+
# operation with the same request ID was received, and if so, will ignore the
|
3261
|
+
# second request. This prevents clients from accidentally creating duplicate
|
3262
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
3263
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
3264
|
+
# @param [String] update_mask
|
3265
|
+
# update_mask indicates fields to be updated as part of this request.
|
3266
|
+
# @param [String] fields
|
3267
|
+
# Selector specifying which fields to include in a partial response.
|
3268
|
+
# @param [String] quota_user
|
3269
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3270
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3271
|
+
# @param [String] user_ip
|
3272
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
3273
|
+
# @param [Google::Apis::RequestOptions] options
|
3274
|
+
# Request-specific options
|
3275
|
+
#
|
3276
|
+
# @yield [result, err] Result & error if block supplied
|
3277
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
3278
|
+
# @yieldparam err [StandardError] error object if request failed
|
3279
|
+
#
|
3280
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
3281
|
+
#
|
3282
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3283
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3284
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3285
|
+
def patch_disk_setting(project, zone, disk_settings_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3286
|
+
command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/diskSettings', options)
|
3287
|
+
command.request_representation = Google::Apis::ComputeBeta::DiskSettings::Representation
|
3288
|
+
command.request_object = disk_settings_object
|
3289
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
3290
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
3291
|
+
command.params['project'] = project unless project.nil?
|
3292
|
+
command.params['zone'] = zone unless zone.nil?
|
3293
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
3294
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
3295
|
+
command.query['fields'] = fields unless fields.nil?
|
3296
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3297
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3298
|
+
execute_or_queue_command(command, &block)
|
3299
|
+
end
|
3300
|
+
|
3301
|
+
# Retrieves an aggregated list of disk types. To prevent failure, Google
|
3302
|
+
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
2796
3303
|
# @param [String] project
|
2797
3304
|
# Project ID for this request.
|
2798
3305
|
# @param [String] filter
|
@@ -13801,6 +14308,60 @@ module Google
|
|
13801
14308
|
execute_or_queue_command(command, &block)
|
13802
14309
|
end
|
13803
14310
|
|
14311
|
+
# Adds one dynamic network interface to an active instance.
|
14312
|
+
# @param [String] project
|
14313
|
+
# Project ID for this request.
|
14314
|
+
# @param [String] zone
|
14315
|
+
# The name of the zone for this request.
|
14316
|
+
# @param [String] instance
|
14317
|
+
# The instance name for this request stored as resource_id. Name should conform
|
14318
|
+
# to RFC1035 or be an unsigned long integer.
|
14319
|
+
# @param [Google::Apis::ComputeBeta::NetworkInterface] network_interface_object
|
14320
|
+
# @param [String] request_id
|
14321
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
14322
|
+
# that if you must retry your request, the server will know to ignore the
|
14323
|
+
# request if it has already been completed. For example, consider a situation
|
14324
|
+
# where you make an initial request and the request times out. If you make the
|
14325
|
+
# request again with the same request ID, the server can check if original
|
14326
|
+
# operation with the same request ID was received, and if so, will ignore the
|
14327
|
+
# second request. This prevents clients from accidentally creating duplicate
|
14328
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
14329
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
14330
|
+
# @param [String] fields
|
14331
|
+
# Selector specifying which fields to include in a partial response.
|
14332
|
+
# @param [String] quota_user
|
14333
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
14334
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
14335
|
+
# @param [String] user_ip
|
14336
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
14337
|
+
# @param [Google::Apis::RequestOptions] options
|
14338
|
+
# Request-specific options
|
14339
|
+
#
|
14340
|
+
# @yield [result, err] Result & error if block supplied
|
14341
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
14342
|
+
# @yieldparam err [StandardError] error object if request failed
|
14343
|
+
#
|
14344
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
14345
|
+
#
|
14346
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
14347
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
14348
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
14349
|
+
def add_instance_network_interface(project, zone, instance, network_interface_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
14350
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/addNetworkInterface', options)
|
14351
|
+
command.request_representation = Google::Apis::ComputeBeta::NetworkInterface::Representation
|
14352
|
+
command.request_object = network_interface_object
|
14353
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
14354
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
14355
|
+
command.params['project'] = project unless project.nil?
|
14356
|
+
command.params['zone'] = zone unless zone.nil?
|
14357
|
+
command.params['instance'] = instance unless instance.nil?
|
14358
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
14359
|
+
command.query['fields'] = fields unless fields.nil?
|
14360
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
14361
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
14362
|
+
execute_or_queue_command(command, &block)
|
14363
|
+
end
|
14364
|
+
|
13804
14365
|
# Adds existing resource policies to an instance. You can only add one policy
|
13805
14366
|
# right now which will be applied to this instance for scheduling live
|
13806
14367
|
# migrations.
|
@@ -14185,6 +14746,63 @@ module Google
|
|
14185
14746
|
execute_or_queue_command(command, &block)
|
14186
14747
|
end
|
14187
14748
|
|
14749
|
+
# Deletes one dynamic network interface from an active instance.
|
14750
|
+
# InstancesDeleteNetworkInterfaceRequest indicates: - instance from which to
|
14751
|
+
# delete, using project+zone+resource_id fields; - dynamic network interface to
|
14752
|
+
# be deleted, using network_interface_name field;
|
14753
|
+
# @param [String] project
|
14754
|
+
# Project ID for this request.
|
14755
|
+
# @param [String] zone
|
14756
|
+
# The name of the zone for this request.
|
14757
|
+
# @param [String] instance
|
14758
|
+
# The instance name for this request stored as resource_id. Name should conform
|
14759
|
+
# to RFC1035 or be an unsigned long integer.
|
14760
|
+
# @param [String] network_interface_name
|
14761
|
+
# The name of the dynamic network interface to be deleted from the instance.
|
14762
|
+
# @param [String] request_id
|
14763
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
14764
|
+
# that if you must retry your request, the server will know to ignore the
|
14765
|
+
# request if it has already been completed. For example, consider a situation
|
14766
|
+
# where you make an initial request and the request times out. If you make the
|
14767
|
+
# request again with the same request ID, the server can check if original
|
14768
|
+
# operation with the same request ID was received, and if so, will ignore the
|
14769
|
+
# second request. This prevents clients from accidentally creating duplicate
|
14770
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
14771
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
14772
|
+
# @param [String] fields
|
14773
|
+
# Selector specifying which fields to include in a partial response.
|
14774
|
+
# @param [String] quota_user
|
14775
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
14776
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
14777
|
+
# @param [String] user_ip
|
14778
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
14779
|
+
# @param [Google::Apis::RequestOptions] options
|
14780
|
+
# Request-specific options
|
14781
|
+
#
|
14782
|
+
# @yield [result, err] Result & error if block supplied
|
14783
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
14784
|
+
# @yieldparam err [StandardError] error object if request failed
|
14785
|
+
#
|
14786
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
14787
|
+
#
|
14788
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
14789
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
14790
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
14791
|
+
def delete_instance_network_interface(project, zone, instance, network_interface_name, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
14792
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/deleteNetworkInterface', options)
|
14793
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
14794
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
14795
|
+
command.params['project'] = project unless project.nil?
|
14796
|
+
command.params['zone'] = zone unless zone.nil?
|
14797
|
+
command.params['instance'] = instance unless instance.nil?
|
14798
|
+
command.query['networkInterfaceName'] = network_interface_name unless network_interface_name.nil?
|
14799
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
14800
|
+
command.query['fields'] = fields unless fields.nil?
|
14801
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
14802
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
14803
|
+
execute_or_queue_command(command, &block)
|
14804
|
+
end
|
14805
|
+
|
14188
14806
|
# Detaches a disk from an instance.
|
14189
14807
|
# @param [String] project
|
14190
14808
|
# Project ID for this request.
|
@@ -15046,14 +15664,14 @@ module Google
|
|
15046
15664
|
execute_or_queue_command(command, &block)
|
15047
15665
|
end
|
15048
15666
|
|
15049
|
-
#
|
15050
|
-
# graceful shutdown. For more information, see Resetting an instance.
|
15667
|
+
# Mark the host as faulty and try to restart the instance on a new host.
|
15051
15668
|
# @param [String] project
|
15052
15669
|
# Project ID for this request.
|
15053
15670
|
# @param [String] zone
|
15054
15671
|
# The name of the zone for this request.
|
15055
15672
|
# @param [String] instance
|
15056
15673
|
# Name of the instance scoping this request.
|
15674
|
+
# @param [Google::Apis::ComputeBeta::InstancesReportHostAsFaultyRequest] instances_report_host_as_faulty_request_object
|
15057
15675
|
# @param [String] request_id
|
15058
15676
|
# An optional request ID to identify requests. Specify a unique request ID so
|
15059
15677
|
# that if you must retry your request, the server will know to ignore the
|
@@ -15083,8 +15701,10 @@ module Google
|
|
15083
15701
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15084
15702
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15085
15703
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15086
|
-
def
|
15087
|
-
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/
|
15704
|
+
def report_instance_host_as_faulty(project, zone, instance, instances_report_host_as_faulty_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15705
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/reportHostAsFaulty', options)
|
15706
|
+
command.request_representation = Google::Apis::ComputeBeta::InstancesReportHostAsFaultyRequest::Representation
|
15707
|
+
command.request_object = instances_report_host_as_faulty_request_object
|
15088
15708
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
15089
15709
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
15090
15710
|
command.params['project'] = project unless project.nil?
|
@@ -15097,161 +15717,14 @@ module Google
|
|
15097
15717
|
execute_or_queue_command(command, &block)
|
15098
15718
|
end
|
15099
15719
|
|
15100
|
-
#
|
15101
|
-
#
|
15102
|
-
# Project ID for this request.
|
15103
|
-
# @param [String] zone
|
15104
|
-
# The name of the zone for this request.
|
15105
|
-
# @param [String] instance
|
15106
|
-
# Name of the instance resource to resume.
|
15107
|
-
# @param [Google::Apis::ComputeBeta::InstancesResumeRequest] instances_resume_request_object
|
15108
|
-
# @param [String] request_id
|
15109
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
15110
|
-
# that if you must retry your request, the server will know to ignore the
|
15111
|
-
# request if it has already been completed. For example, consider a situation
|
15112
|
-
# where you make an initial request and the request times out. If you make the
|
15113
|
-
# request again with the same request ID, the server can check if original
|
15114
|
-
# operation with the same request ID was received, and if so, will ignore the
|
15115
|
-
# second request. This prevents clients from accidentally creating duplicate
|
15116
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
15117
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
15118
|
-
# @param [String] fields
|
15119
|
-
# Selector specifying which fields to include in a partial response.
|
15120
|
-
# @param [String] quota_user
|
15121
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
15122
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
15123
|
-
# @param [String] user_ip
|
15124
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
15125
|
-
# @param [Google::Apis::RequestOptions] options
|
15126
|
-
# Request-specific options
|
15127
|
-
#
|
15128
|
-
# @yield [result, err] Result & error if block supplied
|
15129
|
-
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
15130
|
-
# @yieldparam err [StandardError] error object if request failed
|
15131
|
-
#
|
15132
|
-
# @return [Google::Apis::ComputeBeta::Operation]
|
15133
|
-
#
|
15134
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15135
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15136
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15137
|
-
def resume_instance(project, zone, instance, instances_resume_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15138
|
-
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/resume', options)
|
15139
|
-
command.request_representation = Google::Apis::ComputeBeta::InstancesResumeRequest::Representation
|
15140
|
-
command.request_object = instances_resume_request_object
|
15141
|
-
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
15142
|
-
command.response_class = Google::Apis::ComputeBeta::Operation
|
15143
|
-
command.params['project'] = project unless project.nil?
|
15144
|
-
command.params['zone'] = zone unless zone.nil?
|
15145
|
-
command.params['instance'] = instance unless instance.nil?
|
15146
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
15147
|
-
command.query['fields'] = fields unless fields.nil?
|
15148
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15149
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
15150
|
-
execute_or_queue_command(command, &block)
|
15151
|
-
end
|
15152
|
-
|
15153
|
-
# Sends diagnostic interrupt to the instance.
|
15720
|
+
# Performs a reset on the instance. This is a hard reset. The VM does not do a
|
15721
|
+
# graceful shutdown. For more information, see Resetting an instance.
|
15154
15722
|
# @param [String] project
|
15155
15723
|
# Project ID for this request.
|
15156
15724
|
# @param [String] zone
|
15157
15725
|
# The name of the zone for this request.
|
15158
15726
|
# @param [String] instance
|
15159
15727
|
# Name of the instance scoping this request.
|
15160
|
-
# @param [String] fields
|
15161
|
-
# Selector specifying which fields to include in a partial response.
|
15162
|
-
# @param [String] quota_user
|
15163
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
15164
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
15165
|
-
# @param [String] user_ip
|
15166
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
15167
|
-
# @param [Google::Apis::RequestOptions] options
|
15168
|
-
# Request-specific options
|
15169
|
-
#
|
15170
|
-
# @yield [result, err] Result & error if block supplied
|
15171
|
-
# @yieldparam result [NilClass] No result returned for this method
|
15172
|
-
# @yieldparam err [StandardError] error object if request failed
|
15173
|
-
#
|
15174
|
-
# @return [void]
|
15175
|
-
#
|
15176
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15177
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15178
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15179
|
-
def send_instance_diagnostic_interrupt(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15180
|
-
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/sendDiagnosticInterrupt', options)
|
15181
|
-
command.params['project'] = project unless project.nil?
|
15182
|
-
command.params['zone'] = zone unless zone.nil?
|
15183
|
-
command.params['instance'] = instance unless instance.nil?
|
15184
|
-
command.query['fields'] = fields unless fields.nil?
|
15185
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15186
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
15187
|
-
execute_or_queue_command(command, &block)
|
15188
|
-
end
|
15189
|
-
|
15190
|
-
# Sets deletion protection on the instance.
|
15191
|
-
# @param [String] project
|
15192
|
-
# Project ID for this request.
|
15193
|
-
# @param [String] zone
|
15194
|
-
# The name of the zone for this request.
|
15195
|
-
# @param [String] resource
|
15196
|
-
# Name or id of the resource for this request.
|
15197
|
-
# @param [Boolean] deletion_protection
|
15198
|
-
# Whether the resource should be protected against deletion.
|
15199
|
-
# @param [String] request_id
|
15200
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
15201
|
-
# that if you must retry your request, the server will know to ignore the
|
15202
|
-
# request if it has already been completed. For example, consider a situation
|
15203
|
-
# where you make an initial request and the request times out. If you make the
|
15204
|
-
# request again with the same request ID, the server can check if original
|
15205
|
-
# operation with the same request ID was received, and if so, will ignore the
|
15206
|
-
# second request. This prevents clients from accidentally creating duplicate
|
15207
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
15208
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
15209
|
-
# @param [String] fields
|
15210
|
-
# Selector specifying which fields to include in a partial response.
|
15211
|
-
# @param [String] quota_user
|
15212
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
15213
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
15214
|
-
# @param [String] user_ip
|
15215
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
15216
|
-
# @param [Google::Apis::RequestOptions] options
|
15217
|
-
# Request-specific options
|
15218
|
-
#
|
15219
|
-
# @yield [result, err] Result & error if block supplied
|
15220
|
-
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
15221
|
-
# @yieldparam err [StandardError] error object if request failed
|
15222
|
-
#
|
15223
|
-
# @return [Google::Apis::ComputeBeta::Operation]
|
15224
|
-
#
|
15225
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15226
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15227
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15228
|
-
def set_instance_deletion_protection(project, zone, resource, deletion_protection: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15229
|
-
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{resource}/setDeletionProtection', options)
|
15230
|
-
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
15231
|
-
command.response_class = Google::Apis::ComputeBeta::Operation
|
15232
|
-
command.params['project'] = project unless project.nil?
|
15233
|
-
command.params['zone'] = zone unless zone.nil?
|
15234
|
-
command.params['resource'] = resource unless resource.nil?
|
15235
|
-
command.query['deletionProtection'] = deletion_protection unless deletion_protection.nil?
|
15236
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
15237
|
-
command.query['fields'] = fields unless fields.nil?
|
15238
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15239
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
15240
|
-
execute_or_queue_command(command, &block)
|
15241
|
-
end
|
15242
|
-
|
15243
|
-
# Sets the auto-delete flag for a disk attached to an instance.
|
15244
|
-
# @param [String] project
|
15245
|
-
# Project ID for this request.
|
15246
|
-
# @param [String] zone
|
15247
|
-
# The name of the zone for this request.
|
15248
|
-
# @param [String] instance
|
15249
|
-
# The instance name for this request.
|
15250
|
-
# @param [Boolean] auto_delete
|
15251
|
-
# Whether to auto-delete the disk when the instance is deleted.
|
15252
|
-
# @param [String] device_name
|
15253
|
-
# The device name of the disk to modify. Make a get() request on the instance to
|
15254
|
-
# view currently attached disks and device names.
|
15255
15728
|
# @param [String] request_id
|
15256
15729
|
# An optional request ID to identify requests. Specify a unique request ID so
|
15257
15730
|
# that if you must retry your request, the server will know to ignore the
|
@@ -15281,15 +15754,13 @@ module Google
|
|
15281
15754
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15282
15755
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15283
15756
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15284
|
-
def
|
15285
|
-
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/
|
15757
|
+
def reset_instance(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15758
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/reset', options)
|
15286
15759
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
15287
15760
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
15288
15761
|
command.params['project'] = project unless project.nil?
|
15289
15762
|
command.params['zone'] = zone unless zone.nil?
|
15290
15763
|
command.params['instance'] = instance unless instance.nil?
|
15291
|
-
command.query['autoDelete'] = auto_delete unless auto_delete.nil?
|
15292
|
-
command.query['deviceName'] = device_name unless device_name.nil?
|
15293
15764
|
command.query['requestId'] = request_id unless request_id.nil?
|
15294
15765
|
command.query['fields'] = fields unless fields.nil?
|
15295
15766
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -15297,58 +15768,14 @@ module Google
|
|
15297
15768
|
execute_or_queue_command(command, &block)
|
15298
15769
|
end
|
15299
15770
|
|
15300
|
-
#
|
15301
|
-
# existing policy.
|
15302
|
-
# @param [String] project
|
15303
|
-
# Project ID for this request.
|
15304
|
-
# @param [String] zone
|
15305
|
-
# The name of the zone for this request.
|
15306
|
-
# @param [String] resource
|
15307
|
-
# Name or id of the resource for this request.
|
15308
|
-
# @param [Google::Apis::ComputeBeta::ZoneSetPolicyRequest] zone_set_policy_request_object
|
15309
|
-
# @param [String] fields
|
15310
|
-
# Selector specifying which fields to include in a partial response.
|
15311
|
-
# @param [String] quota_user
|
15312
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
15313
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
15314
|
-
# @param [String] user_ip
|
15315
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
15316
|
-
# @param [Google::Apis::RequestOptions] options
|
15317
|
-
# Request-specific options
|
15318
|
-
#
|
15319
|
-
# @yield [result, err] Result & error if block supplied
|
15320
|
-
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
15321
|
-
# @yieldparam err [StandardError] error object if request failed
|
15322
|
-
#
|
15323
|
-
# @return [Google::Apis::ComputeBeta::Policy]
|
15324
|
-
#
|
15325
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15326
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15327
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15328
|
-
def set_instance_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15329
|
-
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{resource}/setIamPolicy', options)
|
15330
|
-
command.request_representation = Google::Apis::ComputeBeta::ZoneSetPolicyRequest::Representation
|
15331
|
-
command.request_object = zone_set_policy_request_object
|
15332
|
-
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
15333
|
-
command.response_class = Google::Apis::ComputeBeta::Policy
|
15334
|
-
command.params['project'] = project unless project.nil?
|
15335
|
-
command.params['zone'] = zone unless zone.nil?
|
15336
|
-
command.params['resource'] = resource unless resource.nil?
|
15337
|
-
command.query['fields'] = fields unless fields.nil?
|
15338
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15339
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
15340
|
-
execute_or_queue_command(command, &block)
|
15341
|
-
end
|
15342
|
-
|
15343
|
-
# Sets labels on an instance. To learn more about labels, read the Labeling
|
15344
|
-
# Resources documentation.
|
15771
|
+
# Resumes an instance that was suspended using the instances().suspend method.
|
15345
15772
|
# @param [String] project
|
15346
15773
|
# Project ID for this request.
|
15347
15774
|
# @param [String] zone
|
15348
15775
|
# The name of the zone for this request.
|
15349
15776
|
# @param [String] instance
|
15350
|
-
# Name of the instance
|
15351
|
-
# @param [Google::Apis::ComputeBeta::
|
15777
|
+
# Name of the instance resource to resume.
|
15778
|
+
# @param [Google::Apis::ComputeBeta::InstancesResumeRequest] instances_resume_request_object
|
15352
15779
|
# @param [String] request_id
|
15353
15780
|
# An optional request ID to identify requests. Specify a unique request ID so
|
15354
15781
|
# that if you must retry your request, the server will know to ignore the
|
@@ -15378,10 +15805,10 @@ module Google
|
|
15378
15805
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15379
15806
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15380
15807
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15381
|
-
def
|
15382
|
-
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/
|
15383
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
15384
|
-
command.request_object =
|
15808
|
+
def resume_instance(project, zone, instance, instances_resume_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15809
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/resume', options)
|
15810
|
+
command.request_representation = Google::Apis::ComputeBeta::InstancesResumeRequest::Representation
|
15811
|
+
command.request_object = instances_resume_request_object
|
15385
15812
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
15386
15813
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
15387
15814
|
command.params['project'] = project unless project.nil?
|
@@ -15394,25 +15821,13 @@ module Google
|
|
15394
15821
|
execute_or_queue_command(command, &block)
|
15395
15822
|
end
|
15396
15823
|
|
15397
|
-
#
|
15398
|
-
# values specified in the request.
|
15824
|
+
# Sends diagnostic interrupt to the instance.
|
15399
15825
|
# @param [String] project
|
15400
15826
|
# Project ID for this request.
|
15401
15827
|
# @param [String] zone
|
15402
15828
|
# The name of the zone for this request.
|
15403
15829
|
# @param [String] instance
|
15404
15830
|
# Name of the instance scoping this request.
|
15405
|
-
# @param [Google::Apis::ComputeBeta::InstancesSetMachineResourcesRequest] instances_set_machine_resources_request_object
|
15406
|
-
# @param [String] request_id
|
15407
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
15408
|
-
# that if you must retry your request, the server will know to ignore the
|
15409
|
-
# request if it has already been completed. For example, consider a situation
|
15410
|
-
# where you make an initial request and the request times out. If you make the
|
15411
|
-
# request again with the same request ID, the server can check if original
|
15412
|
-
# operation with the same request ID was received, and if so, will ignore the
|
15413
|
-
# second request. This prevents clients from accidentally creating duplicate
|
15414
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
15415
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
15416
15831
|
# @param [String] fields
|
15417
15832
|
# Selector specifying which fields to include in a partial response.
|
15418
15833
|
# @param [String] quota_user
|
@@ -15424,39 +15839,34 @@ module Google
|
|
15424
15839
|
# Request-specific options
|
15425
15840
|
#
|
15426
15841
|
# @yield [result, err] Result & error if block supplied
|
15427
|
-
# @yieldparam result [
|
15842
|
+
# @yieldparam result [NilClass] No result returned for this method
|
15428
15843
|
# @yieldparam err [StandardError] error object if request failed
|
15429
15844
|
#
|
15430
|
-
# @return [
|
15845
|
+
# @return [void]
|
15431
15846
|
#
|
15432
15847
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15433
15848
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15434
15849
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15435
|
-
def
|
15436
|
-
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/
|
15437
|
-
command.request_representation = Google::Apis::ComputeBeta::InstancesSetMachineResourcesRequest::Representation
|
15438
|
-
command.request_object = instances_set_machine_resources_request_object
|
15439
|
-
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
15440
|
-
command.response_class = Google::Apis::ComputeBeta::Operation
|
15850
|
+
def send_instance_diagnostic_interrupt(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15851
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/sendDiagnosticInterrupt', options)
|
15441
15852
|
command.params['project'] = project unless project.nil?
|
15442
15853
|
command.params['zone'] = zone unless zone.nil?
|
15443
15854
|
command.params['instance'] = instance unless instance.nil?
|
15444
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
15445
15855
|
command.query['fields'] = fields unless fields.nil?
|
15446
15856
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15447
15857
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
15448
15858
|
execute_or_queue_command(command, &block)
|
15449
15859
|
end
|
15450
15860
|
|
15451
|
-
#
|
15452
|
-
# in the request.
|
15861
|
+
# Sets deletion protection on the instance.
|
15453
15862
|
# @param [String] project
|
15454
15863
|
# Project ID for this request.
|
15455
15864
|
# @param [String] zone
|
15456
15865
|
# The name of the zone for this request.
|
15457
|
-
# @param [String]
|
15458
|
-
# Name of the
|
15459
|
-
# @param [
|
15866
|
+
# @param [String] resource
|
15867
|
+
# Name or id of the resource for this request.
|
15868
|
+
# @param [Boolean] deletion_protection
|
15869
|
+
# Whether the resource should be protected against deletion.
|
15460
15870
|
# @param [String] request_id
|
15461
15871
|
# An optional request ID to identify requests. Specify a unique request ID so
|
15462
15872
|
# that if you must retry your request, the server will know to ignore the
|
@@ -15486,15 +15896,14 @@ module Google
|
|
15486
15896
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15487
15897
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15488
15898
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15489
|
-
def
|
15490
|
-
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{
|
15491
|
-
command.request_representation = Google::Apis::ComputeBeta::InstancesSetMachineTypeRequest::Representation
|
15492
|
-
command.request_object = instances_set_machine_type_request_object
|
15899
|
+
def set_instance_deletion_protection(project, zone, resource, deletion_protection: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15900
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{resource}/setDeletionProtection', options)
|
15493
15901
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
15494
15902
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
15495
15903
|
command.params['project'] = project unless project.nil?
|
15496
15904
|
command.params['zone'] = zone unless zone.nil?
|
15497
|
-
command.params['
|
15905
|
+
command.params['resource'] = resource unless resource.nil?
|
15906
|
+
command.query['deletionProtection'] = deletion_protection unless deletion_protection.nil?
|
15498
15907
|
command.query['requestId'] = request_id unless request_id.nil?
|
15499
15908
|
command.query['fields'] = fields unless fields.nil?
|
15500
15909
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -15502,14 +15911,18 @@ module Google
|
|
15502
15911
|
execute_or_queue_command(command, &block)
|
15503
15912
|
end
|
15504
15913
|
|
15505
|
-
# Sets
|
15914
|
+
# Sets the auto-delete flag for a disk attached to an instance.
|
15506
15915
|
# @param [String] project
|
15507
15916
|
# Project ID for this request.
|
15508
15917
|
# @param [String] zone
|
15509
15918
|
# The name of the zone for this request.
|
15510
15919
|
# @param [String] instance
|
15511
|
-
#
|
15512
|
-
# @param [
|
15920
|
+
# The instance name for this request.
|
15921
|
+
# @param [Boolean] auto_delete
|
15922
|
+
# Whether to auto-delete the disk when the instance is deleted.
|
15923
|
+
# @param [String] device_name
|
15924
|
+
# The device name of the disk to modify. Make a get() request on the instance to
|
15925
|
+
# view currently attached disks and device names.
|
15513
15926
|
# @param [String] request_id
|
15514
15927
|
# An optional request ID to identify requests. Specify a unique request ID so
|
15515
15928
|
# that if you must retry your request, the server will know to ignore the
|
@@ -15539,15 +15952,15 @@ module Google
|
|
15539
15952
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15540
15953
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15541
15954
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15542
|
-
def
|
15543
|
-
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/
|
15544
|
-
command.request_representation = Google::Apis::ComputeBeta::Metadata::Representation
|
15545
|
-
command.request_object = metadata_object
|
15955
|
+
def set_disk_auto_delete(project, zone, instance, auto_delete, device_name, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15956
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete', options)
|
15546
15957
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
15547
15958
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
15548
15959
|
command.params['project'] = project unless project.nil?
|
15549
15960
|
command.params['zone'] = zone unless zone.nil?
|
15550
15961
|
command.params['instance'] = instance unless instance.nil?
|
15962
|
+
command.query['autoDelete'] = auto_delete unless auto_delete.nil?
|
15963
|
+
command.query['deviceName'] = device_name unless device_name.nil?
|
15551
15964
|
command.query['requestId'] = request_id unless request_id.nil?
|
15552
15965
|
command.query['fields'] = fields unless fields.nil?
|
15553
15966
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -15555,26 +15968,15 @@ module Google
|
|
15555
15968
|
execute_or_queue_command(command, &block)
|
15556
15969
|
end
|
15557
15970
|
|
15558
|
-
#
|
15559
|
-
#
|
15560
|
-
# Specifying a Minimum CPU Platform.
|
15971
|
+
# Sets the access control policy on the specified resource. Replaces any
|
15972
|
+
# existing policy.
|
15561
15973
|
# @param [String] project
|
15562
15974
|
# Project ID for this request.
|
15563
15975
|
# @param [String] zone
|
15564
15976
|
# The name of the zone for this request.
|
15565
|
-
# @param [String]
|
15566
|
-
# Name of the
|
15567
|
-
# @param [Google::Apis::ComputeBeta::
|
15568
|
-
# @param [String] request_id
|
15569
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
15570
|
-
# that if you must retry your request, the server will know to ignore the
|
15571
|
-
# request if it has already been completed. For example, consider a situation
|
15572
|
-
# where you make an initial request and the request times out. If you make the
|
15573
|
-
# request again with the same request ID, the server can check if original
|
15574
|
-
# operation with the same request ID was received, and if so, will ignore the
|
15575
|
-
# second request. This prevents clients from accidentally creating duplicate
|
15576
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
15577
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
15977
|
+
# @param [String] resource
|
15978
|
+
# Name or id of the resource for this request.
|
15979
|
+
# @param [Google::Apis::ComputeBeta::ZoneSetPolicyRequest] zone_set_policy_request_object
|
15578
15980
|
# @param [String] fields
|
15579
15981
|
# Selector specifying which fields to include in a partial response.
|
15580
15982
|
# @param [String] quota_user
|
@@ -15586,38 +15988,38 @@ module Google
|
|
15586
15988
|
# Request-specific options
|
15587
15989
|
#
|
15588
15990
|
# @yield [result, err] Result & error if block supplied
|
15589
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
15991
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
15590
15992
|
# @yieldparam err [StandardError] error object if request failed
|
15591
15993
|
#
|
15592
|
-
# @return [Google::Apis::ComputeBeta::
|
15994
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
15593
15995
|
#
|
15594
15996
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15595
15997
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15596
15998
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15597
|
-
def
|
15598
|
-
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{
|
15599
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
15600
|
-
command.request_object =
|
15601
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
15602
|
-
command.response_class = Google::Apis::ComputeBeta::
|
15999
|
+
def set_instance_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16000
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{resource}/setIamPolicy', options)
|
16001
|
+
command.request_representation = Google::Apis::ComputeBeta::ZoneSetPolicyRequest::Representation
|
16002
|
+
command.request_object = zone_set_policy_request_object
|
16003
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
16004
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
15603
16005
|
command.params['project'] = project unless project.nil?
|
15604
16006
|
command.params['zone'] = zone unless zone.nil?
|
15605
|
-
command.params['
|
15606
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
16007
|
+
command.params['resource'] = resource unless resource.nil?
|
15607
16008
|
command.query['fields'] = fields unless fields.nil?
|
15608
16009
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15609
16010
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
15610
16011
|
execute_or_queue_command(command, &block)
|
15611
16012
|
end
|
15612
16013
|
|
15613
|
-
# Sets
|
16014
|
+
# Sets labels on an instance. To learn more about labels, read the Labeling
|
16015
|
+
# Resources documentation.
|
15614
16016
|
# @param [String] project
|
15615
16017
|
# Project ID for this request.
|
15616
16018
|
# @param [String] zone
|
15617
16019
|
# The name of the zone for this request.
|
15618
16020
|
# @param [String] instance
|
15619
|
-
#
|
15620
|
-
# @param [Google::Apis::ComputeBeta::
|
16021
|
+
# Name of the instance scoping this request.
|
16022
|
+
# @param [Google::Apis::ComputeBeta::InstancesSetLabelsRequest] instances_set_labels_request_object
|
15621
16023
|
# @param [String] request_id
|
15622
16024
|
# An optional request ID to identify requests. Specify a unique request ID so
|
15623
16025
|
# that if you must retry your request, the server will know to ignore the
|
@@ -15647,10 +16049,10 @@ module Google
|
|
15647
16049
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15648
16050
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15649
16051
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15650
|
-
def
|
15651
|
-
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/
|
15652
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
15653
|
-
command.request_object =
|
16052
|
+
def set_instance_labels(project, zone, instance, instances_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16053
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setLabels', options)
|
16054
|
+
command.request_representation = Google::Apis::ComputeBeta::InstancesSetLabelsRequest::Representation
|
16055
|
+
command.request_object = instances_set_labels_request_object
|
15654
16056
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
15655
16057
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
15656
16058
|
command.params['project'] = project unless project.nil?
|
@@ -15663,18 +16065,15 @@ module Google
|
|
15663
16065
|
execute_or_queue_command(command, &block)
|
15664
16066
|
end
|
15665
16067
|
|
15666
|
-
#
|
15667
|
-
#
|
15668
|
-
# Instance Life Cycle for more information on the possible instance states. For
|
15669
|
-
# more information about setting scheduling options for a VM, see Set VM host
|
15670
|
-
# maintenance policy.
|
16068
|
+
# Changes the number and/or type of accelerator for a stopped instance to the
|
16069
|
+
# values specified in the request.
|
15671
16070
|
# @param [String] project
|
15672
16071
|
# Project ID for this request.
|
15673
16072
|
# @param [String] zone
|
15674
16073
|
# The name of the zone for this request.
|
15675
16074
|
# @param [String] instance
|
15676
|
-
#
|
15677
|
-
# @param [Google::Apis::ComputeBeta::
|
16075
|
+
# Name of the instance scoping this request.
|
16076
|
+
# @param [Google::Apis::ComputeBeta::InstancesSetMachineResourcesRequest] instances_set_machine_resources_request_object
|
15678
16077
|
# @param [String] request_id
|
15679
16078
|
# An optional request ID to identify requests. Specify a unique request ID so
|
15680
16079
|
# that if you must retry your request, the server will know to ignore the
|
@@ -15704,10 +16103,10 @@ module Google
|
|
15704
16103
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15705
16104
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15706
16105
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15707
|
-
def
|
15708
|
-
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/
|
15709
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
15710
|
-
command.request_object =
|
16106
|
+
def set_instance_machine_resources(project, zone, instance, instances_set_machine_resources_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16107
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setMachineResources', options)
|
16108
|
+
command.request_representation = Google::Apis::ComputeBeta::InstancesSetMachineResourcesRequest::Representation
|
16109
|
+
command.request_object = instances_set_machine_resources_request_object
|
15711
16110
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
15712
16111
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
15713
16112
|
command.params['project'] = project unless project.nil?
|
@@ -15720,16 +16119,15 @@ module Google
|
|
15720
16119
|
execute_or_queue_command(command, &block)
|
15721
16120
|
end
|
15722
16121
|
|
15723
|
-
#
|
15724
|
-
#
|
16122
|
+
# Changes the machine type for a stopped instance to the machine type specified
|
16123
|
+
# in the request.
|
15725
16124
|
# @param [String] project
|
15726
16125
|
# Project ID for this request.
|
15727
16126
|
# @param [String] zone
|
15728
|
-
#
|
16127
|
+
# The name of the zone for this request.
|
15729
16128
|
# @param [String] instance
|
15730
|
-
# Name of the
|
15731
|
-
#
|
15732
|
-
# @param [Google::Apis::ComputeBeta::InstancesSetSecurityPolicyRequest] instances_set_security_policy_request_object
|
16129
|
+
# Name of the instance scoping this request.
|
16130
|
+
# @param [Google::Apis::ComputeBeta::InstancesSetMachineTypeRequest] instances_set_machine_type_request_object
|
15733
16131
|
# @param [String] request_id
|
15734
16132
|
# An optional request ID to identify requests. Specify a unique request ID so
|
15735
16133
|
# that if you must retry your request, the server will know to ignore the
|
@@ -15759,10 +16157,10 @@ module Google
|
|
15759
16157
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15760
16158
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15761
16159
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15762
|
-
def
|
15763
|
-
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/
|
15764
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
15765
|
-
command.request_object =
|
16160
|
+
def set_instance_machine_type(project, zone, instance, instances_set_machine_type_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16161
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setMachineType', options)
|
16162
|
+
command.request_representation = Google::Apis::ComputeBeta::InstancesSetMachineTypeRequest::Representation
|
16163
|
+
command.request_object = instances_set_machine_type_request_object
|
15766
16164
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
15767
16165
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
15768
16166
|
command.params['project'] = project unless project.nil?
|
@@ -15775,15 +16173,14 @@ module Google
|
|
15775
16173
|
execute_or_queue_command(command, &block)
|
15776
16174
|
end
|
15777
16175
|
|
15778
|
-
# Sets the
|
15779
|
-
# the service account and access scopes for an instance.
|
16176
|
+
# Sets metadata for the specified instance to the data included in the request.
|
15780
16177
|
# @param [String] project
|
15781
16178
|
# Project ID for this request.
|
15782
16179
|
# @param [String] zone
|
15783
16180
|
# The name of the zone for this request.
|
15784
16181
|
# @param [String] instance
|
15785
|
-
# Name of the instance
|
15786
|
-
# @param [Google::Apis::ComputeBeta::
|
16182
|
+
# Name of the instance scoping this request.
|
16183
|
+
# @param [Google::Apis::ComputeBeta::Metadata] metadata_object
|
15787
16184
|
# @param [String] request_id
|
15788
16185
|
# An optional request ID to identify requests. Specify a unique request ID so
|
15789
16186
|
# that if you must retry your request, the server will know to ignore the
|
@@ -15813,10 +16210,10 @@ module Google
|
|
15813
16210
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15814
16211
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15815
16212
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15816
|
-
def
|
15817
|
-
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/
|
15818
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
15819
|
-
command.request_object =
|
16213
|
+
def set_instance_metadata(project, zone, instance, metadata_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16214
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setMetadata', options)
|
16215
|
+
command.request_representation = Google::Apis::ComputeBeta::Metadata::Representation
|
16216
|
+
command.request_object = metadata_object
|
15820
16217
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
15821
16218
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
15822
16219
|
command.params['project'] = project unless project.nil?
|
@@ -15829,16 +16226,16 @@ module Google
|
|
15829
16226
|
execute_or_queue_command(command, &block)
|
15830
16227
|
end
|
15831
16228
|
|
15832
|
-
#
|
15833
|
-
#
|
15834
|
-
#
|
16229
|
+
# Changes the minimum CPU platform that this instance should use. This method
|
16230
|
+
# can only be called on a stopped instance. For more information, read
|
16231
|
+
# Specifying a Minimum CPU Platform.
|
15835
16232
|
# @param [String] project
|
15836
16233
|
# Project ID for this request.
|
15837
16234
|
# @param [String] zone
|
15838
16235
|
# The name of the zone for this request.
|
15839
16236
|
# @param [String] instance
|
15840
|
-
# Name
|
15841
|
-
# @param [Google::Apis::ComputeBeta::
|
16237
|
+
# Name of the instance scoping this request.
|
16238
|
+
# @param [Google::Apis::ComputeBeta::InstancesSetMinCpuPlatformRequest] instances_set_min_cpu_platform_request_object
|
15842
16239
|
# @param [String] request_id
|
15843
16240
|
# An optional request ID to identify requests. Specify a unique request ID so
|
15844
16241
|
# that if you must retry your request, the server will know to ignore the
|
@@ -15868,10 +16265,10 @@ module Google
|
|
15868
16265
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15869
16266
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15870
16267
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15871
|
-
def
|
15872
|
-
command = make_simple_command(:
|
15873
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
15874
|
-
command.request_object =
|
16268
|
+
def set_instance_min_cpu_platform(project, zone, instance, instances_set_min_cpu_platform_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16269
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setMinCpuPlatform', options)
|
16270
|
+
command.request_representation = Google::Apis::ComputeBeta::InstancesSetMinCpuPlatformRequest::Representation
|
16271
|
+
command.request_object = instances_set_min_cpu_platform_request_object
|
15875
16272
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
15876
16273
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
15877
16274
|
command.params['project'] = project unless project.nil?
|
@@ -15884,16 +16281,14 @@ module Google
|
|
15884
16281
|
execute_or_queue_command(command, &block)
|
15885
16282
|
end
|
15886
16283
|
|
15887
|
-
# Sets
|
15888
|
-
# method on a running VM instance. This method supports PATCH semantics and uses
|
15889
|
-
# the JSON merge patch format and processing rules.
|
16284
|
+
# Sets name of an instance.
|
15890
16285
|
# @param [String] project
|
15891
16286
|
# Project ID for this request.
|
15892
16287
|
# @param [String] zone
|
15893
16288
|
# The name of the zone for this request.
|
15894
16289
|
# @param [String] instance
|
15895
|
-
#
|
15896
|
-
# @param [Google::Apis::ComputeBeta::
|
16290
|
+
# The instance name for this request.
|
16291
|
+
# @param [Google::Apis::ComputeBeta::InstancesSetNameRequest] instances_set_name_request_object
|
15897
16292
|
# @param [String] request_id
|
15898
16293
|
# An optional request ID to identify requests. Specify a unique request ID so
|
15899
16294
|
# that if you must retry your request, the server will know to ignore the
|
@@ -15923,10 +16318,10 @@ module Google
|
|
15923
16318
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15924
16319
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15925
16320
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15926
|
-
def
|
15927
|
-
command = make_simple_command(:
|
15928
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
15929
|
-
command.request_object =
|
16321
|
+
def set_instance_name(project, zone, instance, instances_set_name_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16322
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setName', options)
|
16323
|
+
command.request_representation = Google::Apis::ComputeBeta::InstancesSetNameRequest::Representation
|
16324
|
+
command.request_object = instances_set_name_request_object
|
15930
16325
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
15931
16326
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
15932
16327
|
command.params['project'] = project unless project.nil?
|
@@ -15939,15 +16334,18 @@ module Google
|
|
15939
16334
|
execute_or_queue_command(command, &block)
|
15940
16335
|
end
|
15941
16336
|
|
15942
|
-
# Sets
|
15943
|
-
#
|
16337
|
+
# Sets an instance's scheduling options. You can only call this method on a
|
16338
|
+
# stopped instance, that is, a VM instance that is in a `TERMINATED` state. See
|
16339
|
+
# Instance Life Cycle for more information on the possible instance states. For
|
16340
|
+
# more information about setting scheduling options for a VM, see Set VM host
|
16341
|
+
# maintenance policy.
|
15944
16342
|
# @param [String] project
|
15945
16343
|
# Project ID for this request.
|
15946
16344
|
# @param [String] zone
|
15947
16345
|
# The name of the zone for this request.
|
15948
16346
|
# @param [String] instance
|
15949
|
-
#
|
15950
|
-
# @param [Google::Apis::ComputeBeta::
|
16347
|
+
# Instance name for this request.
|
16348
|
+
# @param [Google::Apis::ComputeBeta::Scheduling] scheduling_object
|
15951
16349
|
# @param [String] request_id
|
15952
16350
|
# An optional request ID to identify requests. Specify a unique request ID so
|
15953
16351
|
# that if you must retry your request, the server will know to ignore the
|
@@ -15977,10 +16375,10 @@ module Google
|
|
15977
16375
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15978
16376
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15979
16377
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15980
|
-
def
|
15981
|
-
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/
|
15982
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
15983
|
-
command.request_object =
|
16378
|
+
def set_instance_scheduling(project, zone, instance, scheduling_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16379
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setScheduling', options)
|
16380
|
+
command.request_representation = Google::Apis::ComputeBeta::Scheduling::Representation
|
16381
|
+
command.request_object = scheduling_object
|
15984
16382
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
15985
16383
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
15986
16384
|
command.params['project'] = project unless project.nil?
|
@@ -15993,14 +16391,16 @@ module Google
|
|
15993
16391
|
execute_or_queue_command(command, &block)
|
15994
16392
|
end
|
15995
16393
|
|
15996
|
-
#
|
15997
|
-
#
|
16394
|
+
# Sets the Google Cloud Armor security policy for the specified instance. For
|
16395
|
+
# more information, see Google Cloud Armor Overview
|
15998
16396
|
# @param [String] project
|
15999
16397
|
# Project ID for this request.
|
16000
16398
|
# @param [String] zone
|
16001
|
-
#
|
16399
|
+
# Name of the zone scoping this request.
|
16002
16400
|
# @param [String] instance
|
16003
|
-
# Name of the
|
16401
|
+
# Name of the Instance resource to which the security policy should be set. The
|
16402
|
+
# name should conform to RFC1035.
|
16403
|
+
# @param [Google::Apis::ComputeBeta::InstancesSetSecurityPolicyRequest] instances_set_security_policy_request_object
|
16004
16404
|
# @param [String] request_id
|
16005
16405
|
# An optional request ID to identify requests. Specify a unique request ID so
|
16006
16406
|
# that if you must retry your request, the server will know to ignore the
|
@@ -16011,9 +16411,6 @@ module Google
|
|
16011
16411
|
# second request. This prevents clients from accidentally creating duplicate
|
16012
16412
|
# commitments. The request ID must be a valid UUID with the exception that zero
|
16013
16413
|
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
16014
|
-
# @param [Boolean] with_extended_notifications
|
16015
|
-
# Determines whether the customers receive notifications before migration. Only
|
16016
|
-
# applicable to SF vms.
|
16017
16414
|
# @param [String] fields
|
16018
16415
|
# Selector specifying which fields to include in a partial response.
|
16019
16416
|
# @param [String] quota_user
|
@@ -16033,29 +16430,31 @@ module Google
|
|
16033
16430
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16034
16431
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16035
16432
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16036
|
-
def
|
16037
|
-
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/
|
16433
|
+
def set_instance_security_policy(project, zone, instance, instances_set_security_policy_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16434
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setSecurityPolicy', options)
|
16435
|
+
command.request_representation = Google::Apis::ComputeBeta::InstancesSetSecurityPolicyRequest::Representation
|
16436
|
+
command.request_object = instances_set_security_policy_request_object
|
16038
16437
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
16039
16438
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
16040
16439
|
command.params['project'] = project unless project.nil?
|
16041
16440
|
command.params['zone'] = zone unless zone.nil?
|
16042
16441
|
command.params['instance'] = instance unless instance.nil?
|
16043
16442
|
command.query['requestId'] = request_id unless request_id.nil?
|
16044
|
-
command.query['withExtendedNotifications'] = with_extended_notifications unless with_extended_notifications.nil?
|
16045
16443
|
command.query['fields'] = fields unless fields.nil?
|
16046
16444
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16047
16445
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
16048
16446
|
execute_or_queue_command(command, &block)
|
16049
16447
|
end
|
16050
16448
|
|
16051
|
-
#
|
16052
|
-
#
|
16449
|
+
# Sets the service account on the instance. For more information, read Changing
|
16450
|
+
# the service account and access scopes for an instance.
|
16053
16451
|
# @param [String] project
|
16054
16452
|
# Project ID for this request.
|
16055
16453
|
# @param [String] zone
|
16056
16454
|
# The name of the zone for this request.
|
16057
16455
|
# @param [String] instance
|
16058
16456
|
# Name of the instance resource to start.
|
16457
|
+
# @param [Google::Apis::ComputeBeta::InstancesSetServiceAccountRequest] instances_set_service_account_request_object
|
16059
16458
|
# @param [String] request_id
|
16060
16459
|
# An optional request ID to identify requests. Specify a unique request ID so
|
16061
16460
|
# that if you must retry your request, the server will know to ignore the
|
@@ -16085,8 +16484,10 @@ module Google
|
|
16085
16484
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16086
16485
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16087
16486
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16088
|
-
def
|
16089
|
-
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/
|
16487
|
+
def set_instance_service_account(project, zone, instance, instances_set_service_account_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16488
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount', options)
|
16489
|
+
command.request_representation = Google::Apis::ComputeBeta::InstancesSetServiceAccountRequest::Representation
|
16490
|
+
command.request_object = instances_set_service_account_request_object
|
16090
16491
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
16091
16492
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
16092
16493
|
command.params['project'] = project unless project.nil?
|
@@ -16099,15 +16500,16 @@ module Google
|
|
16099
16500
|
execute_or_queue_command(command, &block)
|
16100
16501
|
end
|
16101
16502
|
|
16102
|
-
#
|
16103
|
-
#
|
16503
|
+
# Sets the Shielded Instance integrity policy for an instance. You can only use
|
16504
|
+
# this method on a running instance. This method supports PATCH semantics and
|
16505
|
+
# uses the JSON merge patch format and processing rules.
|
16104
16506
|
# @param [String] project
|
16105
16507
|
# Project ID for this request.
|
16106
16508
|
# @param [String] zone
|
16107
16509
|
# The name of the zone for this request.
|
16108
16510
|
# @param [String] instance
|
16109
|
-
# Name of the instance
|
16110
|
-
# @param [Google::Apis::ComputeBeta::
|
16511
|
+
# Name or id of the instance scoping this request.
|
16512
|
+
# @param [Google::Apis::ComputeBeta::ShieldedInstanceIntegrityPolicy] shielded_instance_integrity_policy_object
|
16111
16513
|
# @param [String] request_id
|
16112
16514
|
# An optional request ID to identify requests. Specify a unique request ID so
|
16113
16515
|
# that if you must retry your request, the server will know to ignore the
|
@@ -16137,10 +16539,10 @@ module Google
|
|
16137
16539
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16138
16540
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16139
16541
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16140
|
-
def
|
16141
|
-
command = make_simple_command(:
|
16142
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
16143
|
-
command.request_object =
|
16542
|
+
def set_instance_shielded_instance_integrity_policy(project, zone, instance, shielded_instance_integrity_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16543
|
+
command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy', options)
|
16544
|
+
command.request_representation = Google::Apis::ComputeBeta::ShieldedInstanceIntegrityPolicy::Representation
|
16545
|
+
command.request_object = shielded_instance_integrity_policy_object
|
16144
16546
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
16145
16547
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
16146
16548
|
command.params['project'] = project unless project.nil?
|
@@ -16153,23 +16555,16 @@ module Google
|
|
16153
16555
|
execute_or_queue_command(command, &block)
|
16154
16556
|
end
|
16155
16557
|
|
16156
|
-
#
|
16157
|
-
#
|
16158
|
-
#
|
16159
|
-
# persistent disks and static IP addresses, will continue to be charged until
|
16160
|
-
# they are deleted. For more information, see Stopping an instance.
|
16558
|
+
# Sets the Shielded VM integrity policy for a VM instance. You can only use this
|
16559
|
+
# method on a running VM instance. This method supports PATCH semantics and uses
|
16560
|
+
# the JSON merge patch format and processing rules.
|
16161
16561
|
# @param [String] project
|
16162
16562
|
# Project ID for this request.
|
16163
16563
|
# @param [String] zone
|
16164
16564
|
# The name of the zone for this request.
|
16165
16565
|
# @param [String] instance
|
16166
|
-
# Name of the instance
|
16167
|
-
# @param [
|
16168
|
-
# This property is required if the instance has any attached Local SSD disks. If
|
16169
|
-
# false, Local SSD data will be preserved when the instance is suspended. If
|
16170
|
-
# true, the contents of any attached Local SSD disks will be discarded.
|
16171
|
-
# @param [Boolean] no_graceful_shutdown
|
16172
|
-
# If set to true, Graceful Shutdown is skipped.
|
16566
|
+
# Name of the instance scoping this request.
|
16567
|
+
# @param [Google::Apis::ComputeBeta::ShieldedVmIntegrityPolicy] shielded_vm_integrity_policy_object
|
16173
16568
|
# @param [String] request_id
|
16174
16569
|
# An optional request ID to identify requests. Specify a unique request ID so
|
16175
16570
|
# that if you must retry your request, the server will know to ignore the
|
@@ -16199,15 +16594,15 @@ module Google
|
|
16199
16594
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16200
16595
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16201
16596
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16202
|
-
def
|
16203
|
-
command = make_simple_command(:
|
16597
|
+
def set_instance_shielded_vm_integrity_policy(project, zone, instance, shielded_vm_integrity_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16598
|
+
command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy', options)
|
16599
|
+
command.request_representation = Google::Apis::ComputeBeta::ShieldedVmIntegrityPolicy::Representation
|
16600
|
+
command.request_object = shielded_vm_integrity_policy_object
|
16204
16601
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
16205
16602
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
16206
16603
|
command.params['project'] = project unless project.nil?
|
16207
16604
|
command.params['zone'] = zone unless zone.nil?
|
16208
16605
|
command.params['instance'] = instance unless instance.nil?
|
16209
|
-
command.query['discardLocalSsd'] = discard_local_ssd unless discard_local_ssd.nil?
|
16210
|
-
command.query['noGracefulShutdown'] = no_graceful_shutdown unless no_graceful_shutdown.nil?
|
16211
16606
|
command.query['requestId'] = request_id unless request_id.nil?
|
16212
16607
|
command.query['fields'] = fields unless fields.nil?
|
16213
16608
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -16215,23 +16610,15 @@ module Google
|
|
16215
16610
|
execute_or_queue_command(command, &block)
|
16216
16611
|
end
|
16217
16612
|
|
16218
|
-
#
|
16219
|
-
#
|
16220
|
-
# instances have no compute costs (cores or RAM), and incur only storage charges
|
16221
|
-
# for the saved VM memory and localSSD data. Any charged resources the virtual
|
16222
|
-
# machine was using, such as persistent disks and static IP addresses, will
|
16223
|
-
# continue to be charged while the instance is suspended. For more information,
|
16224
|
-
# see Suspending and resuming an instance.
|
16613
|
+
# Sets network tags for the specified instance to the data included in the
|
16614
|
+
# request.
|
16225
16615
|
# @param [String] project
|
16226
16616
|
# Project ID for this request.
|
16227
16617
|
# @param [String] zone
|
16228
16618
|
# The name of the zone for this request.
|
16229
16619
|
# @param [String] instance
|
16230
|
-
# Name of the instance
|
16231
|
-
# @param [
|
16232
|
-
# This property is required if the instance has any attached Local SSD disks. If
|
16233
|
-
# false, Local SSD data will be preserved when the instance is suspended. If
|
16234
|
-
# true, the contents of any attached Local SSD disks will be discarded.
|
16620
|
+
# Name of the instance scoping this request.
|
16621
|
+
# @param [Google::Apis::ComputeBeta::Tags] tags_object
|
16235
16622
|
# @param [String] request_id
|
16236
16623
|
# An optional request ID to identify requests. Specify a unique request ID so
|
16237
16624
|
# that if you must retry your request, the server will know to ignore the
|
@@ -16261,14 +16648,15 @@ module Google
|
|
16261
16648
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16262
16649
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16263
16650
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16264
|
-
def
|
16265
|
-
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/
|
16651
|
+
def set_instance_tags(project, zone, instance, tags_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16652
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setTags', options)
|
16653
|
+
command.request_representation = Google::Apis::ComputeBeta::Tags::Representation
|
16654
|
+
command.request_object = tags_object
|
16266
16655
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
16267
16656
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
16268
16657
|
command.params['project'] = project unless project.nil?
|
16269
16658
|
command.params['zone'] = zone unless zone.nil?
|
16270
16659
|
command.params['instance'] = instance unless instance.nil?
|
16271
|
-
command.query['discardLocalSsd'] = discard_local_ssd unless discard_local_ssd.nil?
|
16272
16660
|
command.query['requestId'] = request_id unless request_id.nil?
|
16273
16661
|
command.query['fields'] = fields unless fields.nil?
|
16274
16662
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -16276,14 +16664,27 @@ module Google
|
|
16276
16664
|
execute_or_queue_command(command, &block)
|
16277
16665
|
end
|
16278
16666
|
|
16279
|
-
#
|
16667
|
+
# Simulates a host maintenance event on a VM. For more information, see Simulate
|
16668
|
+
# a host maintenance event.
|
16280
16669
|
# @param [String] project
|
16281
16670
|
# Project ID for this request.
|
16282
16671
|
# @param [String] zone
|
16283
16672
|
# The name of the zone for this request.
|
16284
|
-
# @param [String]
|
16285
|
-
# Name
|
16286
|
-
# @param [
|
16673
|
+
# @param [String] instance
|
16674
|
+
# Name of the instance scoping this request.
|
16675
|
+
# @param [String] request_id
|
16676
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
16677
|
+
# that if you must retry your request, the server will know to ignore the
|
16678
|
+
# request if it has already been completed. For example, consider a situation
|
16679
|
+
# where you make an initial request and the request times out. If you make the
|
16680
|
+
# request again with the same request ID, the server can check if original
|
16681
|
+
# operation with the same request ID was received, and if so, will ignore the
|
16682
|
+
# second request. This prevents clients from accidentally creating duplicate
|
16683
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
16684
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
16685
|
+
# @param [Boolean] with_extended_notifications
|
16686
|
+
# Determines whether the customers receive notifications before migration. Only
|
16687
|
+
# applicable to SF vms.
|
16287
16688
|
# @param [String] fields
|
16288
16689
|
# Selector specifying which fields to include in a partial response.
|
16289
16690
|
# @param [String] quota_user
|
@@ -16295,48 +16696,37 @@ module Google
|
|
16295
16696
|
# Request-specific options
|
16296
16697
|
#
|
16297
16698
|
# @yield [result, err] Result & error if block supplied
|
16298
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
16699
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
16299
16700
|
# @yieldparam err [StandardError] error object if request failed
|
16300
16701
|
#
|
16301
|
-
# @return [Google::Apis::ComputeBeta::
|
16702
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
16302
16703
|
#
|
16303
16704
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16304
16705
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16305
16706
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16306
|
-
def
|
16307
|
-
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{
|
16308
|
-
command.
|
16309
|
-
command.
|
16310
|
-
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
16311
|
-
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
16707
|
+
def simulate_instance_maintenance_event(project, zone, instance, request_id: nil, with_extended_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16708
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent', options)
|
16709
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
16710
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
16312
16711
|
command.params['project'] = project unless project.nil?
|
16313
16712
|
command.params['zone'] = zone unless zone.nil?
|
16314
|
-
command.params['
|
16713
|
+
command.params['instance'] = instance unless instance.nil?
|
16714
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
16715
|
+
command.query['withExtendedNotifications'] = with_extended_notifications unless with_extended_notifications.nil?
|
16315
16716
|
command.query['fields'] = fields unless fields.nil?
|
16316
16717
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16317
16718
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
16318
16719
|
execute_or_queue_command(command, &block)
|
16319
16720
|
end
|
16320
16721
|
|
16321
|
-
#
|
16322
|
-
#
|
16323
|
-
# instance for a list of updatable instance properties.
|
16722
|
+
# Starts an instance that was stopped using the instances().stop method. For
|
16723
|
+
# more information, see Restart an instance.
|
16324
16724
|
# @param [String] project
|
16325
16725
|
# Project ID for this request.
|
16326
16726
|
# @param [String] zone
|
16327
16727
|
# The name of the zone for this request.
|
16328
16728
|
# @param [String] instance
|
16329
|
-
# Name of the instance resource to
|
16330
|
-
# @param [Google::Apis::ComputeBeta::Instance] instance_object
|
16331
|
-
# @param [String] minimal_action
|
16332
|
-
# Specifies the action to take when updating an instance even if the updated
|
16333
|
-
# properties do not require it. If not specified, then Compute Engine acts based
|
16334
|
-
# on the minimum action that the updated properties require.
|
16335
|
-
# @param [String] most_disruptive_allowed_action
|
16336
|
-
# Specifies the most disruptive action that can be taken on the instance as part
|
16337
|
-
# of the update. Compute Engine returns an error if the instance properties
|
16338
|
-
# require a more disruptive action as part of the instance update. Valid options
|
16339
|
-
# from lowest to highest are NO_EFFECT, REFRESH, and RESTART.
|
16729
|
+
# Name of the instance resource to start.
|
16340
16730
|
# @param [String] request_id
|
16341
16731
|
# An optional request ID to identify requests. Specify a unique request ID so
|
16342
16732
|
# that if you must retry your request, the server will know to ignore the
|
@@ -16366,17 +16756,13 @@ module Google
|
|
16366
16756
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16367
16757
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16368
16758
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16369
|
-
def
|
16370
|
-
command = make_simple_command(:
|
16371
|
-
command.request_representation = Google::Apis::ComputeBeta::Instance::Representation
|
16372
|
-
command.request_object = instance_object
|
16759
|
+
def start_instance(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16760
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/start', options)
|
16373
16761
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
16374
16762
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
16375
16763
|
command.params['project'] = project unless project.nil?
|
16376
16764
|
command.params['zone'] = zone unless zone.nil?
|
16377
16765
|
command.params['instance'] = instance unless instance.nil?
|
16378
|
-
command.query['minimalAction'] = minimal_action unless minimal_action.nil?
|
16379
|
-
command.query['mostDisruptiveAllowedAction'] = most_disruptive_allowed_action unless most_disruptive_allowed_action.nil?
|
16380
16766
|
command.query['requestId'] = request_id unless request_id.nil?
|
16381
16767
|
command.query['fields'] = fields unless fields.nil?
|
16382
16768
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -16384,18 +16770,15 @@ module Google
|
|
16384
16770
|
execute_or_queue_command(command, &block)
|
16385
16771
|
end
|
16386
16772
|
|
16387
|
-
#
|
16388
|
-
#
|
16389
|
-
# uses the JSON merge patch format and processing rules.
|
16773
|
+
# Starts an instance that was stopped using the instances().stop method. For
|
16774
|
+
# more information, see Restart an instance.
|
16390
16775
|
# @param [String] project
|
16391
16776
|
# Project ID for this request.
|
16392
16777
|
# @param [String] zone
|
16393
16778
|
# The name of the zone for this request.
|
16394
16779
|
# @param [String] instance
|
16395
|
-
#
|
16396
|
-
# @param [
|
16397
|
-
# The name of the network interface where the access config is attached.
|
16398
|
-
# @param [Google::Apis::ComputeBeta::AccessConfig] access_config_object
|
16780
|
+
# Name of the instance resource to start.
|
16781
|
+
# @param [Google::Apis::ComputeBeta::InstancesStartWithEncryptionKeyRequest] instances_start_with_encryption_key_request_object
|
16399
16782
|
# @param [String] request_id
|
16400
16783
|
# An optional request ID to identify requests. Specify a unique request ID so
|
16401
16784
|
# that if you must retry your request, the server will know to ignore the
|
@@ -16425,16 +16808,15 @@ module Google
|
|
16425
16808
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16426
16809
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16427
16810
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16428
|
-
def
|
16429
|
-
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/
|
16430
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
16431
|
-
command.request_object =
|
16811
|
+
def start_instance_with_encryption_key(project, zone, instance, instances_start_with_encryption_key_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16812
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey', options)
|
16813
|
+
command.request_representation = Google::Apis::ComputeBeta::InstancesStartWithEncryptionKeyRequest::Representation
|
16814
|
+
command.request_object = instances_start_with_encryption_key_request_object
|
16432
16815
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
16433
16816
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
16434
16817
|
command.params['project'] = project unless project.nil?
|
16435
16818
|
command.params['zone'] = zone unless zone.nil?
|
16436
16819
|
command.params['instance'] = instance unless instance.nil?
|
16437
|
-
command.query['networkInterface'] = network_interface unless network_interface.nil?
|
16438
16820
|
command.query['requestId'] = request_id unless request_id.nil?
|
16439
16821
|
command.query['fields'] = fields unless fields.nil?
|
16440
16822
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -16442,16 +16824,23 @@ module Google
|
|
16442
16824
|
execute_or_queue_command(command, &block)
|
16443
16825
|
end
|
16444
16826
|
|
16445
|
-
#
|
16446
|
-
# a
|
16447
|
-
#
|
16827
|
+
# Stops a running instance, shutting it down cleanly, and allows you to restart
|
16828
|
+
# the instance at a later time. Stopped instances do not incur VM usage charges
|
16829
|
+
# while they are stopped. However, resources that the VM is using, such as
|
16830
|
+
# persistent disks and static IP addresses, will continue to be charged until
|
16831
|
+
# they are deleted. For more information, see Stopping an instance.
|
16448
16832
|
# @param [String] project
|
16449
16833
|
# Project ID for this request.
|
16450
16834
|
# @param [String] zone
|
16451
16835
|
# The name of the zone for this request.
|
16452
16836
|
# @param [String] instance
|
16453
|
-
# Name of the instance
|
16454
|
-
# @param [
|
16837
|
+
# Name of the instance resource to stop.
|
16838
|
+
# @param [Boolean] discard_local_ssd
|
16839
|
+
# This property is required if the instance has any attached Local SSD disks. If
|
16840
|
+
# false, Local SSD data will be preserved when the instance is suspended. If
|
16841
|
+
# true, the contents of any attached Local SSD disks will be discarded.
|
16842
|
+
# @param [Boolean] no_graceful_shutdown
|
16843
|
+
# If set to true, Graceful Shutdown is skipped.
|
16455
16844
|
# @param [String] request_id
|
16456
16845
|
# An optional request ID to identify requests. Specify a unique request ID so
|
16457
16846
|
# that if you must retry your request, the server will know to ignore the
|
@@ -16481,15 +16870,15 @@ module Google
|
|
16481
16870
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16482
16871
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16483
16872
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16484
|
-
def
|
16485
|
-
command = make_simple_command(:
|
16486
|
-
command.request_representation = Google::Apis::ComputeBeta::DisplayDevice::Representation
|
16487
|
-
command.request_object = display_device_object
|
16873
|
+
def stop_instance(project, zone, instance, discard_local_ssd: nil, no_graceful_shutdown: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16874
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/stop', options)
|
16488
16875
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
16489
16876
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
16490
16877
|
command.params['project'] = project unless project.nil?
|
16491
16878
|
command.params['zone'] = zone unless zone.nil?
|
16492
16879
|
command.params['instance'] = instance unless instance.nil?
|
16880
|
+
command.query['discardLocalSsd'] = discard_local_ssd unless discard_local_ssd.nil?
|
16881
|
+
command.query['noGracefulShutdown'] = no_graceful_shutdown unless no_graceful_shutdown.nil?
|
16493
16882
|
command.query['requestId'] = request_id unless request_id.nil?
|
16494
16883
|
command.query['fields'] = fields unless fields.nil?
|
16495
16884
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -16497,20 +16886,23 @@ module Google
|
|
16497
16886
|
execute_or_queue_command(command, &block)
|
16498
16887
|
end
|
16499
16888
|
|
16500
|
-
#
|
16501
|
-
#
|
16502
|
-
#
|
16503
|
-
#
|
16504
|
-
#
|
16889
|
+
# This method suspends a running instance, saving its state to persistent
|
16890
|
+
# storage, and allows you to resume the instance at a later time. Suspended
|
16891
|
+
# instances have no compute costs (cores or RAM), and incur only storage charges
|
16892
|
+
# for the saved VM memory and localSSD data. Any charged resources the virtual
|
16893
|
+
# machine was using, such as persistent disks and static IP addresses, will
|
16894
|
+
# continue to be charged while the instance is suspended. For more information,
|
16895
|
+
# see Suspending and resuming an instance.
|
16505
16896
|
# @param [String] project
|
16506
16897
|
# Project ID for this request.
|
16507
16898
|
# @param [String] zone
|
16508
16899
|
# The name of the zone for this request.
|
16509
16900
|
# @param [String] instance
|
16510
|
-
#
|
16511
|
-
# @param [
|
16512
|
-
#
|
16513
|
-
#
|
16901
|
+
# Name of the instance resource to suspend.
|
16902
|
+
# @param [Boolean] discard_local_ssd
|
16903
|
+
# This property is required if the instance has any attached Local SSD disks. If
|
16904
|
+
# false, Local SSD data will be preserved when the instance is suspended. If
|
16905
|
+
# true, the contents of any attached Local SSD disks will be discarded.
|
16514
16906
|
# @param [String] request_id
|
16515
16907
|
# An optional request ID to identify requests. Specify a unique request ID so
|
16516
16908
|
# that if you must retry your request, the server will know to ignore the
|
@@ -16540,16 +16932,14 @@ module Google
|
|
16540
16932
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16541
16933
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16542
16934
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16543
|
-
def
|
16544
|
-
command = make_simple_command(:
|
16545
|
-
command.request_representation = Google::Apis::ComputeBeta::NetworkInterface::Representation
|
16546
|
-
command.request_object = network_interface_object
|
16935
|
+
def suspend_instance(project, zone, instance, discard_local_ssd: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16936
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/suspend', options)
|
16547
16937
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
16548
16938
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
16549
16939
|
command.params['project'] = project unless project.nil?
|
16550
16940
|
command.params['zone'] = zone unless zone.nil?
|
16551
16941
|
command.params['instance'] = instance unless instance.nil?
|
16552
|
-
command.query['
|
16942
|
+
command.query['discardLocalSsd'] = discard_local_ssd unless discard_local_ssd.nil?
|
16553
16943
|
command.query['requestId'] = request_id unless request_id.nil?
|
16554
16944
|
command.query['fields'] = fields unless fields.nil?
|
16555
16945
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -16557,26 +16947,14 @@ module Google
|
|
16557
16947
|
execute_or_queue_command(command, &block)
|
16558
16948
|
end
|
16559
16949
|
|
16560
|
-
#
|
16561
|
-
# method on a stopped instance. This method supports PATCH semantics and uses
|
16562
|
-
# the JSON merge patch format and processing rules.
|
16950
|
+
# Returns permissions that a caller has on the specified resource.
|
16563
16951
|
# @param [String] project
|
16564
16952
|
# Project ID for this request.
|
16565
16953
|
# @param [String] zone
|
16566
16954
|
# The name of the zone for this request.
|
16567
|
-
# @param [String]
|
16568
|
-
# Name or id of the
|
16569
|
-
# @param [Google::Apis::ComputeBeta::
|
16570
|
-
# @param [String] request_id
|
16571
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
16572
|
-
# that if you must retry your request, the server will know to ignore the
|
16573
|
-
# request if it has already been completed. For example, consider a situation
|
16574
|
-
# where you make an initial request and the request times out. If you make the
|
16575
|
-
# request again with the same request ID, the server can check if original
|
16576
|
-
# operation with the same request ID was received, and if so, will ignore the
|
16577
|
-
# second request. This prevents clients from accidentally creating duplicate
|
16578
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
16579
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
16955
|
+
# @param [String] resource
|
16956
|
+
# Name or id of the resource for this request.
|
16957
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
16580
16958
|
# @param [String] fields
|
16581
16959
|
# Selector specifying which fields to include in a partial response.
|
16582
16960
|
# @param [String] quota_user
|
@@ -16588,40 +16966,333 @@ module Google
|
|
16588
16966
|
# Request-specific options
|
16589
16967
|
#
|
16590
16968
|
# @yield [result, err] Result & error if block supplied
|
16591
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
16969
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
16592
16970
|
# @yieldparam err [StandardError] error object if request failed
|
16593
16971
|
#
|
16594
|
-
# @return [Google::Apis::ComputeBeta::
|
16972
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
16595
16973
|
#
|
16596
16974
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16597
16975
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16598
16976
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16599
|
-
def
|
16600
|
-
command = make_simple_command(:
|
16601
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
16602
|
-
command.request_object =
|
16603
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
16604
|
-
command.response_class = Google::Apis::ComputeBeta::
|
16977
|
+
def test_instance_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16978
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{resource}/testIamPermissions', options)
|
16979
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
16980
|
+
command.request_object = test_permissions_request_object
|
16981
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
16982
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
16605
16983
|
command.params['project'] = project unless project.nil?
|
16606
16984
|
command.params['zone'] = zone unless zone.nil?
|
16607
|
-
command.params['
|
16608
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
16985
|
+
command.params['resource'] = resource unless resource.nil?
|
16609
16986
|
command.query['fields'] = fields unless fields.nil?
|
16610
16987
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16611
16988
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
16612
16989
|
execute_or_queue_command(command, &block)
|
16613
16990
|
end
|
16614
16991
|
|
16615
|
-
# Updates
|
16616
|
-
#
|
16617
|
-
#
|
16992
|
+
# Updates an instance only if the necessary resources are available. This method
|
16993
|
+
# can update only a specific set of instance properties. See Updating a running
|
16994
|
+
# instance for a list of updatable instance properties.
|
16618
16995
|
# @param [String] project
|
16619
16996
|
# Project ID for this request.
|
16620
16997
|
# @param [String] zone
|
16621
16998
|
# The name of the zone for this request.
|
16622
16999
|
# @param [String] instance
|
16623
|
-
# Name of the instance
|
16624
|
-
# @param [Google::Apis::ComputeBeta::
|
17000
|
+
# Name of the instance resource to update.
|
17001
|
+
# @param [Google::Apis::ComputeBeta::Instance] instance_object
|
17002
|
+
# @param [String] minimal_action
|
17003
|
+
# Specifies the action to take when updating an instance even if the updated
|
17004
|
+
# properties do not require it. If not specified, then Compute Engine acts based
|
17005
|
+
# on the minimum action that the updated properties require.
|
17006
|
+
# @param [String] most_disruptive_allowed_action
|
17007
|
+
# Specifies the most disruptive action that can be taken on the instance as part
|
17008
|
+
# of the update. Compute Engine returns an error if the instance properties
|
17009
|
+
# require a more disruptive action as part of the instance update. Valid options
|
17010
|
+
# from lowest to highest are NO_EFFECT, REFRESH, and RESTART.
|
17011
|
+
# @param [String] request_id
|
17012
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
17013
|
+
# that if you must retry your request, the server will know to ignore the
|
17014
|
+
# request if it has already been completed. For example, consider a situation
|
17015
|
+
# where you make an initial request and the request times out. If you make the
|
17016
|
+
# request again with the same request ID, the server can check if original
|
17017
|
+
# operation with the same request ID was received, and if so, will ignore the
|
17018
|
+
# second request. This prevents clients from accidentally creating duplicate
|
17019
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
17020
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
17021
|
+
# @param [String] fields
|
17022
|
+
# Selector specifying which fields to include in a partial response.
|
17023
|
+
# @param [String] quota_user
|
17024
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17025
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17026
|
+
# @param [String] user_ip
|
17027
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
17028
|
+
# @param [Google::Apis::RequestOptions] options
|
17029
|
+
# Request-specific options
|
17030
|
+
#
|
17031
|
+
# @yield [result, err] Result & error if block supplied
|
17032
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
17033
|
+
# @yieldparam err [StandardError] error object if request failed
|
17034
|
+
#
|
17035
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
17036
|
+
#
|
17037
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17038
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17039
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17040
|
+
def update_instance(project, zone, instance, instance_object = nil, minimal_action: nil, most_disruptive_allowed_action: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17041
|
+
command = make_simple_command(:put, 'projects/{project}/zones/{zone}/instances/{instance}', options)
|
17042
|
+
command.request_representation = Google::Apis::ComputeBeta::Instance::Representation
|
17043
|
+
command.request_object = instance_object
|
17044
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
17045
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
17046
|
+
command.params['project'] = project unless project.nil?
|
17047
|
+
command.params['zone'] = zone unless zone.nil?
|
17048
|
+
command.params['instance'] = instance unless instance.nil?
|
17049
|
+
command.query['minimalAction'] = minimal_action unless minimal_action.nil?
|
17050
|
+
command.query['mostDisruptiveAllowedAction'] = most_disruptive_allowed_action unless most_disruptive_allowed_action.nil?
|
17051
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
17052
|
+
command.query['fields'] = fields unless fields.nil?
|
17053
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17054
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17055
|
+
execute_or_queue_command(command, &block)
|
17056
|
+
end
|
17057
|
+
|
17058
|
+
# Updates the specified access config from an instance's network interface with
|
17059
|
+
# the data included in the request. This method supports PATCH semantics and
|
17060
|
+
# uses the JSON merge patch format and processing rules.
|
17061
|
+
# @param [String] project
|
17062
|
+
# Project ID for this request.
|
17063
|
+
# @param [String] zone
|
17064
|
+
# The name of the zone for this request.
|
17065
|
+
# @param [String] instance
|
17066
|
+
# The instance name for this request.
|
17067
|
+
# @param [String] network_interface
|
17068
|
+
# The name of the network interface where the access config is attached.
|
17069
|
+
# @param [Google::Apis::ComputeBeta::AccessConfig] access_config_object
|
17070
|
+
# @param [String] request_id
|
17071
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
17072
|
+
# that if you must retry your request, the server will know to ignore the
|
17073
|
+
# request if it has already been completed. For example, consider a situation
|
17074
|
+
# where you make an initial request and the request times out. If you make the
|
17075
|
+
# request again with the same request ID, the server can check if original
|
17076
|
+
# operation with the same request ID was received, and if so, will ignore the
|
17077
|
+
# second request. This prevents clients from accidentally creating duplicate
|
17078
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
17079
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
17080
|
+
# @param [String] fields
|
17081
|
+
# Selector specifying which fields to include in a partial response.
|
17082
|
+
# @param [String] quota_user
|
17083
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17084
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17085
|
+
# @param [String] user_ip
|
17086
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
17087
|
+
# @param [Google::Apis::RequestOptions] options
|
17088
|
+
# Request-specific options
|
17089
|
+
#
|
17090
|
+
# @yield [result, err] Result & error if block supplied
|
17091
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
17092
|
+
# @yieldparam err [StandardError] error object if request failed
|
17093
|
+
#
|
17094
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
17095
|
+
#
|
17096
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17097
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17098
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17099
|
+
def update_instance_access_config(project, zone, instance, network_interface, access_config_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17100
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/updateAccessConfig', options)
|
17101
|
+
command.request_representation = Google::Apis::ComputeBeta::AccessConfig::Representation
|
17102
|
+
command.request_object = access_config_object
|
17103
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
17104
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
17105
|
+
command.params['project'] = project unless project.nil?
|
17106
|
+
command.params['zone'] = zone unless zone.nil?
|
17107
|
+
command.params['instance'] = instance unless instance.nil?
|
17108
|
+
command.query['networkInterface'] = network_interface unless network_interface.nil?
|
17109
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
17110
|
+
command.query['fields'] = fields unless fields.nil?
|
17111
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17112
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17113
|
+
execute_or_queue_command(command, &block)
|
17114
|
+
end
|
17115
|
+
|
17116
|
+
# Updates the Display config for a VM instance. You can only use this method on
|
17117
|
+
# a stopped VM instance. This method supports PATCH semantics and uses the JSON
|
17118
|
+
# merge patch format and processing rules.
|
17119
|
+
# @param [String] project
|
17120
|
+
# Project ID for this request.
|
17121
|
+
# @param [String] zone
|
17122
|
+
# The name of the zone for this request.
|
17123
|
+
# @param [String] instance
|
17124
|
+
# Name of the instance scoping this request.
|
17125
|
+
# @param [Google::Apis::ComputeBeta::DisplayDevice] display_device_object
|
17126
|
+
# @param [String] request_id
|
17127
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
17128
|
+
# that if you must retry your request, the server will know to ignore the
|
17129
|
+
# request if it has already been completed. For example, consider a situation
|
17130
|
+
# where you make an initial request and the request times out. If you make the
|
17131
|
+
# request again with the same request ID, the server can check if original
|
17132
|
+
# operation with the same request ID was received, and if so, will ignore the
|
17133
|
+
# second request. This prevents clients from accidentally creating duplicate
|
17134
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
17135
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
17136
|
+
# @param [String] fields
|
17137
|
+
# Selector specifying which fields to include in a partial response.
|
17138
|
+
# @param [String] quota_user
|
17139
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17140
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17141
|
+
# @param [String] user_ip
|
17142
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
17143
|
+
# @param [Google::Apis::RequestOptions] options
|
17144
|
+
# Request-specific options
|
17145
|
+
#
|
17146
|
+
# @yield [result, err] Result & error if block supplied
|
17147
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
17148
|
+
# @yieldparam err [StandardError] error object if request failed
|
17149
|
+
#
|
17150
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
17151
|
+
#
|
17152
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17153
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17154
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17155
|
+
def update_instance_display_device(project, zone, instance, display_device_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17156
|
+
command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/instances/{instance}/updateDisplayDevice', options)
|
17157
|
+
command.request_representation = Google::Apis::ComputeBeta::DisplayDevice::Representation
|
17158
|
+
command.request_object = display_device_object
|
17159
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
17160
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
17161
|
+
command.params['project'] = project unless project.nil?
|
17162
|
+
command.params['zone'] = zone unless zone.nil?
|
17163
|
+
command.params['instance'] = instance unless instance.nil?
|
17164
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
17165
|
+
command.query['fields'] = fields unless fields.nil?
|
17166
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17167
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17168
|
+
execute_or_queue_command(command, &block)
|
17169
|
+
end
|
17170
|
+
|
17171
|
+
# Updates an instance's network interface. This method can only update an
|
17172
|
+
# interface's alias IP range and attached network. See Modifying alias IP ranges
|
17173
|
+
# for an existing instance for instructions on changing alias IP ranges. See
|
17174
|
+
# Migrating a VM between networks for instructions on migrating an interface.
|
17175
|
+
# This method follows PATCH semantics.
|
17176
|
+
# @param [String] project
|
17177
|
+
# Project ID for this request.
|
17178
|
+
# @param [String] zone
|
17179
|
+
# The name of the zone for this request.
|
17180
|
+
# @param [String] instance
|
17181
|
+
# The instance name for this request.
|
17182
|
+
# @param [String] network_interface
|
17183
|
+
# The name of the network interface to update.
|
17184
|
+
# @param [Google::Apis::ComputeBeta::NetworkInterface] network_interface_object
|
17185
|
+
# @param [String] request_id
|
17186
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
17187
|
+
# that if you must retry your request, the server will know to ignore the
|
17188
|
+
# request if it has already been completed. For example, consider a situation
|
17189
|
+
# where you make an initial request and the request times out. If you make the
|
17190
|
+
# request again with the same request ID, the server can check if original
|
17191
|
+
# operation with the same request ID was received, and if so, will ignore the
|
17192
|
+
# second request. This prevents clients from accidentally creating duplicate
|
17193
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
17194
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
17195
|
+
# @param [String] fields
|
17196
|
+
# Selector specifying which fields to include in a partial response.
|
17197
|
+
# @param [String] quota_user
|
17198
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17199
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17200
|
+
# @param [String] user_ip
|
17201
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
17202
|
+
# @param [Google::Apis::RequestOptions] options
|
17203
|
+
# Request-specific options
|
17204
|
+
#
|
17205
|
+
# @yield [result, err] Result & error if block supplied
|
17206
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
17207
|
+
# @yieldparam err [StandardError] error object if request failed
|
17208
|
+
#
|
17209
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
17210
|
+
#
|
17211
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17212
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17213
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17214
|
+
def update_instance_network_interface(project, zone, instance, network_interface, network_interface_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17215
|
+
command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/instances/{instance}/updateNetworkInterface', options)
|
17216
|
+
command.request_representation = Google::Apis::ComputeBeta::NetworkInterface::Representation
|
17217
|
+
command.request_object = network_interface_object
|
17218
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
17219
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
17220
|
+
command.params['project'] = project unless project.nil?
|
17221
|
+
command.params['zone'] = zone unless zone.nil?
|
17222
|
+
command.params['instance'] = instance unless instance.nil?
|
17223
|
+
command.query['networkInterface'] = network_interface unless network_interface.nil?
|
17224
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
17225
|
+
command.query['fields'] = fields unless fields.nil?
|
17226
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17227
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17228
|
+
execute_or_queue_command(command, &block)
|
17229
|
+
end
|
17230
|
+
|
17231
|
+
# Updates the Shielded Instance config for an instance. You can only use this
|
17232
|
+
# method on a stopped instance. This method supports PATCH semantics and uses
|
17233
|
+
# the JSON merge patch format and processing rules.
|
17234
|
+
# @param [String] project
|
17235
|
+
# Project ID for this request.
|
17236
|
+
# @param [String] zone
|
17237
|
+
# The name of the zone for this request.
|
17238
|
+
# @param [String] instance
|
17239
|
+
# Name or id of the instance scoping this request.
|
17240
|
+
# @param [Google::Apis::ComputeBeta::ShieldedInstanceConfig] shielded_instance_config_object
|
17241
|
+
# @param [String] request_id
|
17242
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
17243
|
+
# that if you must retry your request, the server will know to ignore the
|
17244
|
+
# request if it has already been completed. For example, consider a situation
|
17245
|
+
# where you make an initial request and the request times out. If you make the
|
17246
|
+
# request again with the same request ID, the server can check if original
|
17247
|
+
# operation with the same request ID was received, and if so, will ignore the
|
17248
|
+
# second request. This prevents clients from accidentally creating duplicate
|
17249
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
17250
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
17251
|
+
# @param [String] fields
|
17252
|
+
# Selector specifying which fields to include in a partial response.
|
17253
|
+
# @param [String] quota_user
|
17254
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17255
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17256
|
+
# @param [String] user_ip
|
17257
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
17258
|
+
# @param [Google::Apis::RequestOptions] options
|
17259
|
+
# Request-specific options
|
17260
|
+
#
|
17261
|
+
# @yield [result, err] Result & error if block supplied
|
17262
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
17263
|
+
# @yieldparam err [StandardError] error object if request failed
|
17264
|
+
#
|
17265
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
17266
|
+
#
|
17267
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17268
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17269
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17270
|
+
def update_instance_shielded_instance_config(project, zone, instance, shielded_instance_config_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17271
|
+
command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/instances/{instance}/updateShieldedInstanceConfig', options)
|
17272
|
+
command.request_representation = Google::Apis::ComputeBeta::ShieldedInstanceConfig::Representation
|
17273
|
+
command.request_object = shielded_instance_config_object
|
17274
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
17275
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
17276
|
+
command.params['project'] = project unless project.nil?
|
17277
|
+
command.params['zone'] = zone unless zone.nil?
|
17278
|
+
command.params['instance'] = instance unless instance.nil?
|
17279
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
17280
|
+
command.query['fields'] = fields unless fields.nil?
|
17281
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17282
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17283
|
+
execute_or_queue_command(command, &block)
|
17284
|
+
end
|
17285
|
+
|
17286
|
+
# Updates the Shielded VM config for a VM instance. You can only use this method
|
17287
|
+
# on a stopped VM instance. This method supports PATCH semantics and uses the
|
17288
|
+
# JSON merge patch format and processing rules.
|
17289
|
+
# @param [String] project
|
17290
|
+
# Project ID for this request.
|
17291
|
+
# @param [String] zone
|
17292
|
+
# The name of the zone for this request.
|
17293
|
+
# @param [String] instance
|
17294
|
+
# Name of the instance scoping this request.
|
17295
|
+
# @param [Google::Apis::ComputeBeta::ShieldedVmConfig] shielded_vm_config_object
|
16625
17296
|
# @param [String] request_id
|
16626
17297
|
# An optional request ID to identify requests. Specify a unique request ID so
|
16627
17298
|
# that if you must retry your request, the server will know to ignore the
|
@@ -24287,7 +24958,9 @@ module Google
|
|
24287
24958
|
execute_or_queue_command(command, &block)
|
24288
24959
|
end
|
24289
24960
|
|
24290
|
-
# Inserts an association for the specified security policy.
|
24961
|
+
# Inserts an association for the specified security policy. Use of this API to
|
24962
|
+
# modify firewall policies is deprecated. Use firewallPolicies.addAssociation
|
24963
|
+
# instead if possible.
|
24291
24964
|
# @param [String] security_policy
|
24292
24965
|
# Name of the security policy to update.
|
24293
24966
|
# @param [Google::Apis::ComputeBeta::SecurityPolicyAssociation] security_policy_association_object
|
@@ -24386,7 +25059,8 @@ module Google
|
|
24386
25059
|
execute_or_queue_command(command, &block)
|
24387
25060
|
end
|
24388
25061
|
|
24389
|
-
# Copies rules to the specified security policy.
|
25062
|
+
# Copies rules to the specified security policy. Use of this API to modify
|
25063
|
+
# firewall policies is deprecated. Use firewallPolicies.copyRules instead.
|
24390
25064
|
# @param [String] security_policy
|
24391
25065
|
# Name of the security policy to update.
|
24392
25066
|
# @param [String] request_id
|
@@ -24433,7 +25107,8 @@ module Google
|
|
24433
25107
|
execute_or_queue_command(command, &block)
|
24434
25108
|
end
|
24435
25109
|
|
24436
|
-
# Deletes the specified policy.
|
25110
|
+
# Deletes the specified policy. Use of this API to remove firewall policies is
|
25111
|
+
# deprecated. Use firewallPolicies.delete instead.
|
24437
25112
|
# @param [String] security_policy
|
24438
25113
|
# Name of the security policy to delete.
|
24439
25114
|
# @param [String] request_id
|
@@ -24477,7 +25152,9 @@ module Google
|
|
24477
25152
|
execute_or_queue_command(command, &block)
|
24478
25153
|
end
|
24479
25154
|
|
24480
|
-
# List all of the ordered rules present in a single specified policy.
|
25155
|
+
# List all of the ordered rules present in a single specified policy. Use of
|
25156
|
+
# this API to read firewall policies is deprecated. Use firewallPolicies.get
|
25157
|
+
# instead.
|
24481
25158
|
# @param [String] security_policy
|
24482
25159
|
# Name of the security policy to get.
|
24483
25160
|
# @param [String] fields
|
@@ -24510,7 +25187,9 @@ module Google
|
|
24510
25187
|
execute_or_queue_command(command, &block)
|
24511
25188
|
end
|
24512
25189
|
|
24513
|
-
# Gets an association with the specified name.
|
25190
|
+
# Gets an association with the specified name. Use of this API to read firewall
|
25191
|
+
# policies is deprecated. Use firewallPolicies.getAssociation instead if
|
25192
|
+
# possible.
|
24514
25193
|
# @param [String] security_policy
|
24515
25194
|
# Name of the security policy to which the queried rule belongs.
|
24516
25195
|
# @param [String] name
|
@@ -24546,7 +25225,8 @@ module Google
|
|
24546
25225
|
execute_or_queue_command(command, &block)
|
24547
25226
|
end
|
24548
25227
|
|
24549
|
-
# Gets a rule at the specified priority.
|
25228
|
+
# Gets a rule at the specified priority. Use of this API to read firewall
|
25229
|
+
# policies is deprecated. Use firewallPolicies.getRule instead.
|
24550
25230
|
# @param [String] security_policy
|
24551
25231
|
# Name of the security policy to which the queried rule belongs.
|
24552
25232
|
# @param [Fixnum] priority
|
@@ -24583,7 +25263,8 @@ module Google
|
|
24583
25263
|
end
|
24584
25264
|
|
24585
25265
|
# Creates a new policy in the specified project using the data included in the
|
24586
|
-
# request.
|
25266
|
+
# request. Use of this API to insert firewall policies is deprecated. Use
|
25267
|
+
# firewallPolicies.insert instead.
|
24587
25268
|
# @param [Google::Apis::ComputeBeta::SecurityPolicy] security_policy_object
|
24588
25269
|
# @param [String] parent_id
|
24589
25270
|
# Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if
|
@@ -24632,7 +25313,9 @@ module Google
|
|
24632
25313
|
execute_or_queue_command(command, &block)
|
24633
25314
|
end
|
24634
25315
|
|
24635
|
-
# List all the policies that have been configured for the specified project.
|
25316
|
+
# List all the policies that have been configured for the specified project. Use
|
25317
|
+
# of this API to read firewall policies is deprecated. Use firewallPolicies.list
|
25318
|
+
# instead.
|
24636
25319
|
# @param [String] filter
|
24637
25320
|
# A filter expression that filters resources listed in the response. Most
|
24638
25321
|
# Compute resources support two types of filter expressions: expressions that
|
@@ -24723,7 +25406,9 @@ module Google
|
|
24723
25406
|
execute_or_queue_command(command, &block)
|
24724
25407
|
end
|
24725
25408
|
|
24726
|
-
# Lists associations of a specified target, i.e., organization or folder.
|
25409
|
+
# Lists associations of a specified target, i.e., organization or folder. Use of
|
25410
|
+
# this API to read firewall policies is deprecated. Use firewallPolicies.
|
25411
|
+
# listAssociations instead if possible.
|
24727
25412
|
# @param [String] target_resource
|
24728
25413
|
# The target resource to list associations. It is an organization, or a folder.
|
24729
25414
|
# @param [String] fields
|
@@ -24848,7 +25533,8 @@ module Google
|
|
24848
25533
|
execute_or_queue_command(command, &block)
|
24849
25534
|
end
|
24850
25535
|
|
24851
|
-
# Moves the specified security policy.
|
25536
|
+
# Moves the specified security policy. Use of this API to modify firewall
|
25537
|
+
# policies is deprecated. Use firewallPolicies.move instead.
|
24852
25538
|
# @param [String] security_policy
|
24853
25539
|
# Name of the security policy to update.
|
24854
25540
|
# @param [String] parent_id
|
@@ -24895,7 +25581,9 @@ module Google
|
|
24895
25581
|
execute_or_queue_command(command, &block)
|
24896
25582
|
end
|
24897
25583
|
|
24898
|
-
# Patches the specified policy with the data included in the request.
|
25584
|
+
# Patches the specified policy with the data included in the request. Use of
|
25585
|
+
# this API to modify firewall policies is deprecated. Use firewallPolicies.patch
|
25586
|
+
# instead.
|
24899
25587
|
# @param [String] security_policy
|
24900
25588
|
# Name of the security policy to update.
|
24901
25589
|
# @param [Google::Apis::ComputeBeta::SecurityPolicy] security_policy_object
|
@@ -24942,7 +25630,8 @@ module Google
|
|
24942
25630
|
execute_or_queue_command(command, &block)
|
24943
25631
|
end
|
24944
25632
|
|
24945
|
-
# Patches a rule at the specified priority.
|
25633
|
+
# Patches a rule at the specified priority. Use of this API to modify firewall
|
25634
|
+
# policies is deprecated. Use firewallPolicies.patchRule instead.
|
24946
25635
|
# @param [String] security_policy
|
24947
25636
|
# Name of the security policy to update.
|
24948
25637
|
# @param [Google::Apis::ComputeBeta::SecurityPolicyRule] security_policy_rule_object
|
@@ -24992,7 +25681,9 @@ module Google
|
|
24992
25681
|
execute_or_queue_command(command, &block)
|
24993
25682
|
end
|
24994
25683
|
|
24995
|
-
# Removes an association for the specified security policy.
|
25684
|
+
# Removes an association for the specified security policy. Use of this API to
|
25685
|
+
# modify firewall policies is deprecated. Use firewallPolicies.removeAssociation
|
25686
|
+
# instead if possible.
|
24996
25687
|
# @param [String] security_policy
|
24997
25688
|
# Name of the security policy to update.
|
24998
25689
|
# @param [String] name
|
@@ -28557,13 +29248,13 @@ module Google
|
|
28557
29248
|
|
28558
29249
|
# Updates the specified commitment with the data included in the request. Update
|
28559
29250
|
# is performed only on selected fields included as part of update-mask. Only the
|
28560
|
-
# following fields can be
|
29251
|
+
# following fields can be updated: auto_renew and plan.
|
28561
29252
|
# @param [String] project
|
28562
29253
|
# Project ID for this request.
|
28563
29254
|
# @param [String] region
|
28564
29255
|
# Name of the region for this request.
|
28565
29256
|
# @param [String] commitment
|
28566
|
-
# Name of the commitment
|
29257
|
+
# Name of the commitment that you want to update.
|
28567
29258
|
# @param [Google::Apis::ComputeBeta::Commitment] commitment_object
|
28568
29259
|
# @param [Array<String>, String] paths
|
28569
29260
|
# @param [String] request_id
|
@@ -28615,13 +29306,14 @@ module Google
|
|
28615
29306
|
execute_or_queue_command(command, &block)
|
28616
29307
|
end
|
28617
29308
|
|
28618
|
-
# Transfers GPUs or
|
29309
|
+
# Transfers GPUs or Local SSD disks between reservations that are attached to
|
29310
|
+
# the same commitment.
|
28619
29311
|
# @param [String] project
|
28620
29312
|
# Project ID for this request.
|
28621
29313
|
# @param [String] region
|
28622
29314
|
# Name of the region for this request.
|
28623
29315
|
# @param [String] commitment
|
28624
|
-
# Name of the commitment for which the
|
29316
|
+
# Name of the commitment for which the reservations are being updated.
|
28625
29317
|
# @param [Google::Apis::ComputeBeta::RegionCommitmentsUpdateReservationsRequest] region_commitments_update_reservations_request_object
|
28626
29318
|
# @param [String] request_id
|
28627
29319
|
# An optional request ID to identify requests. Specify a unique request ID so
|
@@ -28668,6 +29360,95 @@ module Google
|
|
28668
29360
|
execute_or_queue_command(command, &block)
|
28669
29361
|
end
|
28670
29362
|
|
29363
|
+
# Get Regional Disk Settings.
|
29364
|
+
# @param [String] project
|
29365
|
+
# Project ID for this request.
|
29366
|
+
# @param [String] region
|
29367
|
+
# Name of the region for this request.
|
29368
|
+
# @param [String] fields
|
29369
|
+
# Selector specifying which fields to include in a partial response.
|
29370
|
+
# @param [String] quota_user
|
29371
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
29372
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
29373
|
+
# @param [String] user_ip
|
29374
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
29375
|
+
# @param [Google::Apis::RequestOptions] options
|
29376
|
+
# Request-specific options
|
29377
|
+
#
|
29378
|
+
# @yield [result, err] Result & error if block supplied
|
29379
|
+
# @yieldparam result [Google::Apis::ComputeBeta::DiskSettings] parsed result object
|
29380
|
+
# @yieldparam err [StandardError] error object if request failed
|
29381
|
+
#
|
29382
|
+
# @return [Google::Apis::ComputeBeta::DiskSettings]
|
29383
|
+
#
|
29384
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29385
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29386
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29387
|
+
def get_region_disk_setting(project, region, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29388
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/diskSettings', options)
|
29389
|
+
command.response_representation = Google::Apis::ComputeBeta::DiskSettings::Representation
|
29390
|
+
command.response_class = Google::Apis::ComputeBeta::DiskSettings
|
29391
|
+
command.params['project'] = project unless project.nil?
|
29392
|
+
command.params['region'] = region unless region.nil?
|
29393
|
+
command.query['fields'] = fields unless fields.nil?
|
29394
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29395
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
29396
|
+
execute_or_queue_command(command, &block)
|
29397
|
+
end
|
29398
|
+
|
29399
|
+
# Patch Regional Disk Settings
|
29400
|
+
# @param [String] project
|
29401
|
+
# Project ID for this request.
|
29402
|
+
# @param [String] region
|
29403
|
+
# Name of the region for this request.
|
29404
|
+
# @param [Google::Apis::ComputeBeta::DiskSettings] disk_settings_object
|
29405
|
+
# @param [String] request_id
|
29406
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
29407
|
+
# that if you must retry your request, the server will know to ignore the
|
29408
|
+
# request if it has already been completed. For example, consider a situation
|
29409
|
+
# where you make an initial request and the request times out. If you make the
|
29410
|
+
# request again with the same request ID, the server can check if original
|
29411
|
+
# operation with the same request ID was received, and if so, will ignore the
|
29412
|
+
# second request. This prevents clients from accidentally creating duplicate
|
29413
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
29414
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
29415
|
+
# @param [String] update_mask
|
29416
|
+
# update_mask indicates fields to be updated as part of this request.
|
29417
|
+
# @param [String] fields
|
29418
|
+
# Selector specifying which fields to include in a partial response.
|
29419
|
+
# @param [String] quota_user
|
29420
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
29421
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
29422
|
+
# @param [String] user_ip
|
29423
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
29424
|
+
# @param [Google::Apis::RequestOptions] options
|
29425
|
+
# Request-specific options
|
29426
|
+
#
|
29427
|
+
# @yield [result, err] Result & error if block supplied
|
29428
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
29429
|
+
# @yieldparam err [StandardError] error object if request failed
|
29430
|
+
#
|
29431
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
29432
|
+
#
|
29433
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29434
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29435
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29436
|
+
def patch_region_disk_setting(project, region, disk_settings_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29437
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/diskSettings', options)
|
29438
|
+
command.request_representation = Google::Apis::ComputeBeta::DiskSettings::Representation
|
29439
|
+
command.request_object = disk_settings_object
|
29440
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
29441
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
29442
|
+
command.params['project'] = project unless project.nil?
|
29443
|
+
command.params['region'] = region unless region.nil?
|
29444
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
29445
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
29446
|
+
command.query['fields'] = fields unless fields.nil?
|
29447
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29448
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
29449
|
+
execute_or_queue_command(command, &block)
|
29450
|
+
end
|
29451
|
+
|
28671
29452
|
# Returns the specified regional disk type.
|
28672
29453
|
# @param [String] project
|
28673
29454
|
# Project ID for this request.
|
@@ -36066,13 +36847,48 @@ module Google
|
|
36066
36847
|
execute_or_queue_command(command, &block)
|
36067
36848
|
end
|
36068
36849
|
|
36069
|
-
#
|
36850
|
+
# Get region snapshot settings.
|
36070
36851
|
# @param [String] project
|
36071
36852
|
# Project ID for this request.
|
36072
36853
|
# @param [String] region
|
36073
|
-
# Name of the region
|
36074
|
-
# @param [String]
|
36075
|
-
#
|
36854
|
+
# Name of the region for this request.
|
36855
|
+
# @param [String] fields
|
36856
|
+
# Selector specifying which fields to include in a partial response.
|
36857
|
+
# @param [String] quota_user
|
36858
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
36859
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
36860
|
+
# @param [String] user_ip
|
36861
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
36862
|
+
# @param [Google::Apis::RequestOptions] options
|
36863
|
+
# Request-specific options
|
36864
|
+
#
|
36865
|
+
# @yield [result, err] Result & error if block supplied
|
36866
|
+
# @yieldparam result [Google::Apis::ComputeBeta::SnapshotSettings] parsed result object
|
36867
|
+
# @yieldparam err [StandardError] error object if request failed
|
36868
|
+
#
|
36869
|
+
# @return [Google::Apis::ComputeBeta::SnapshotSettings]
|
36870
|
+
#
|
36871
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36872
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36873
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36874
|
+
def get_region_snapshot_setting(project, region, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
36875
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/snapshotSettings', options)
|
36876
|
+
command.response_representation = Google::Apis::ComputeBeta::SnapshotSettings::Representation
|
36877
|
+
command.response_class = Google::Apis::ComputeBeta::SnapshotSettings
|
36878
|
+
command.params['project'] = project unless project.nil?
|
36879
|
+
command.params['region'] = region unless region.nil?
|
36880
|
+
command.query['fields'] = fields unless fields.nil?
|
36881
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36882
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
36883
|
+
execute_or_queue_command(command, &block)
|
36884
|
+
end
|
36885
|
+
|
36886
|
+
# Patch region snapshot settings.
|
36887
|
+
# @param [String] project
|
36888
|
+
# Project ID for this request.
|
36889
|
+
# @param [String] region
|
36890
|
+
# Name of the region for this request.
|
36891
|
+
# @param [Google::Apis::ComputeBeta::SnapshotSettings] snapshot_settings_object
|
36076
36892
|
# @param [String] request_id
|
36077
36893
|
# An optional request ID to identify requests. Specify a unique request ID so
|
36078
36894
|
# that if you must retry your request, the server will know to ignore the
|
@@ -36083,6 +36899,8 @@ module Google
|
|
36083
36899
|
# second request. This prevents clients from accidentally creating duplicate
|
36084
36900
|
# commitments. The request ID must be a valid UUID with the exception that zero
|
36085
36901
|
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
36902
|
+
# @param [String] update_mask
|
36903
|
+
# update_mask indicates fields to be updated as part of this request.
|
36086
36904
|
# @param [String] fields
|
36087
36905
|
# Selector specifying which fields to include in a partial response.
|
36088
36906
|
# @param [String] quota_user
|
@@ -36102,28 +36920,43 @@ module Google
|
|
36102
36920
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36103
36921
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36104
36922
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36105
|
-
def
|
36106
|
-
command = make_simple_command(:
|
36923
|
+
def patch_region_snapshot_setting(project, region, snapshot_settings_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
36924
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/snapshotSettings', options)
|
36925
|
+
command.request_representation = Google::Apis::ComputeBeta::SnapshotSettings::Representation
|
36926
|
+
command.request_object = snapshot_settings_object
|
36107
36927
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
36108
36928
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
36109
36929
|
command.params['project'] = project unless project.nil?
|
36110
36930
|
command.params['region'] = region unless region.nil?
|
36111
|
-
command.params['sslCertificate'] = ssl_certificate unless ssl_certificate.nil?
|
36112
36931
|
command.query['requestId'] = request_id unless request_id.nil?
|
36932
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
36113
36933
|
command.query['fields'] = fields unless fields.nil?
|
36114
36934
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36115
36935
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
36116
36936
|
execute_or_queue_command(command, &block)
|
36117
36937
|
end
|
36118
36938
|
|
36119
|
-
#
|
36120
|
-
#
|
36939
|
+
# Deletes the specified Snapshot resource. Keep in mind that deleting a single
|
36940
|
+
# snapshot might not necessarily delete all the data on that snapshot. If any
|
36941
|
+
# data on the snapshot that is marked for deletion is needed for subsequent
|
36942
|
+
# snapshots, the data will be moved to the next corresponding snapshot. For more
|
36943
|
+
# information, see Deleting snapshots.
|
36121
36944
|
# @param [String] project
|
36122
36945
|
# Project ID for this request.
|
36123
36946
|
# @param [String] region
|
36124
|
-
#
|
36125
|
-
# @param [String]
|
36126
|
-
# Name of the
|
36947
|
+
# The name of the region for this request.
|
36948
|
+
# @param [String] snapshot
|
36949
|
+
# Name of the snapshot resource to delete.
|
36950
|
+
# @param [String] request_id
|
36951
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
36952
|
+
# that if you must retry your request, the server will know to ignore the
|
36953
|
+
# request if it has already been completed. For example, consider a situation
|
36954
|
+
# where you make an initial request and the request times out. If you make the
|
36955
|
+
# request again with the same request ID, the server can check if original
|
36956
|
+
# operation with the same request ID was received, and if so, will ignore the
|
36957
|
+
# second request. This prevents clients from accidentally creating duplicate
|
36958
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
36959
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
36127
36960
|
# @param [String] fields
|
36128
36961
|
# Selector specifying which fields to include in a partial response.
|
36129
36962
|
# @param [String] quota_user
|
@@ -36135,34 +36968,117 @@ module Google
|
|
36135
36968
|
# Request-specific options
|
36136
36969
|
#
|
36137
36970
|
# @yield [result, err] Result & error if block supplied
|
36138
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
36971
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
36139
36972
|
# @yieldparam err [StandardError] error object if request failed
|
36140
36973
|
#
|
36141
|
-
# @return [Google::Apis::ComputeBeta::
|
36974
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
36142
36975
|
#
|
36143
36976
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36144
36977
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36145
36978
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36146
|
-
def
|
36147
|
-
command = make_simple_command(:
|
36148
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
36149
|
-
command.response_class = Google::Apis::ComputeBeta::
|
36979
|
+
def delete_region_snapshot(project, region, snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
36980
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/snapshots/{snapshot}', options)
|
36981
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
36982
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
36150
36983
|
command.params['project'] = project unless project.nil?
|
36151
36984
|
command.params['region'] = region unless region.nil?
|
36152
|
-
command.params['
|
36985
|
+
command.params['snapshot'] = snapshot unless snapshot.nil?
|
36986
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
36153
36987
|
command.query['fields'] = fields unless fields.nil?
|
36154
36988
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36155
36989
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
36156
36990
|
execute_or_queue_command(command, &block)
|
36157
36991
|
end
|
36158
36992
|
|
36159
|
-
#
|
36160
|
-
# the data included in the request
|
36993
|
+
# Returns the specified Snapshot resource.
|
36161
36994
|
# @param [String] project
|
36162
36995
|
# Project ID for this request.
|
36163
36996
|
# @param [String] region
|
36164
|
-
# Name of the region
|
36165
|
-
# @param [
|
36997
|
+
# Name of the region for this request.
|
36998
|
+
# @param [String] snapshot
|
36999
|
+
# Name of the Snapshot resource to return.
|
37000
|
+
# @param [String] fields
|
37001
|
+
# Selector specifying which fields to include in a partial response.
|
37002
|
+
# @param [String] quota_user
|
37003
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
37004
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
37005
|
+
# @param [String] user_ip
|
37006
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
37007
|
+
# @param [Google::Apis::RequestOptions] options
|
37008
|
+
# Request-specific options
|
37009
|
+
#
|
37010
|
+
# @yield [result, err] Result & error if block supplied
|
37011
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Snapshot] parsed result object
|
37012
|
+
# @yieldparam err [StandardError] error object if request failed
|
37013
|
+
#
|
37014
|
+
# @return [Google::Apis::ComputeBeta::Snapshot]
|
37015
|
+
#
|
37016
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
37017
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
37018
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
37019
|
+
def get_region_snapshot(project, region, snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
37020
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/snapshots/{snapshot}', options)
|
37021
|
+
command.response_representation = Google::Apis::ComputeBeta::Snapshot::Representation
|
37022
|
+
command.response_class = Google::Apis::ComputeBeta::Snapshot
|
37023
|
+
command.params['project'] = project unless project.nil?
|
37024
|
+
command.params['region'] = region unless region.nil?
|
37025
|
+
command.params['snapshot'] = snapshot unless snapshot.nil?
|
37026
|
+
command.query['fields'] = fields unless fields.nil?
|
37027
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
37028
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
37029
|
+
execute_or_queue_command(command, &block)
|
37030
|
+
end
|
37031
|
+
|
37032
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
37033
|
+
# or resource exists.
|
37034
|
+
# @param [String] project
|
37035
|
+
# Project ID for this request.
|
37036
|
+
# @param [String] region
|
37037
|
+
# The name of the region for this request.
|
37038
|
+
# @param [String] resource
|
37039
|
+
# Name or id of the resource for this request.
|
37040
|
+
# @param [Fixnum] options_requested_policy_version
|
37041
|
+
# Requested IAM Policy version.
|
37042
|
+
# @param [String] fields
|
37043
|
+
# Selector specifying which fields to include in a partial response.
|
37044
|
+
# @param [String] quota_user
|
37045
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
37046
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
37047
|
+
# @param [String] user_ip
|
37048
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
37049
|
+
# @param [Google::Apis::RequestOptions] options
|
37050
|
+
# Request-specific options
|
37051
|
+
#
|
37052
|
+
# @yield [result, err] Result & error if block supplied
|
37053
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
37054
|
+
# @yieldparam err [StandardError] error object if request failed
|
37055
|
+
#
|
37056
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
37057
|
+
#
|
37058
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
37059
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
37060
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
37061
|
+
def get_region_snapshot_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
37062
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/snapshots/{resource}/getIamPolicy', options)
|
37063
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
37064
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
37065
|
+
command.params['project'] = project unless project.nil?
|
37066
|
+
command.params['region'] = region unless region.nil?
|
37067
|
+
command.params['resource'] = resource unless resource.nil?
|
37068
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
37069
|
+
command.query['fields'] = fields unless fields.nil?
|
37070
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
37071
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
37072
|
+
execute_or_queue_command(command, &block)
|
37073
|
+
end
|
37074
|
+
|
37075
|
+
# Creates a snapshot in the specified region using the data included in the
|
37076
|
+
# request.
|
37077
|
+
# @param [String] project
|
37078
|
+
# Project ID for this request.
|
37079
|
+
# @param [String] region
|
37080
|
+
# Name of the region for this request.
|
37081
|
+
# @param [Google::Apis::ComputeBeta::Snapshot] snapshot_object
|
36166
37082
|
# @param [String] request_id
|
36167
37083
|
# An optional request ID to identify requests. Specify a unique request ID so
|
36168
37084
|
# that if you must retry your request, the server will know to ignore the
|
@@ -36192,10 +37108,10 @@ module Google
|
|
36192
37108
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36193
37109
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36194
37110
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36195
|
-
def
|
36196
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/
|
36197
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
36198
|
-
command.request_object =
|
37111
|
+
def insert_region_snapshot(project, region, snapshot_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
37112
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/snapshots', options)
|
37113
|
+
command.request_representation = Google::Apis::ComputeBeta::Snapshot::Representation
|
37114
|
+
command.request_object = snapshot_object
|
36199
37115
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
36200
37116
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
36201
37117
|
command.params['project'] = project unless project.nil?
|
@@ -36207,12 +37123,386 @@ module Google
|
|
36207
37123
|
execute_or_queue_command(command, &block)
|
36208
37124
|
end
|
36209
37125
|
|
36210
|
-
# Retrieves the list of
|
36211
|
-
# project in the specified region.
|
37126
|
+
# Retrieves the list of Snapshot resources contained within the specified region.
|
36212
37127
|
# @param [String] project
|
36213
37128
|
# Project ID for this request.
|
36214
37129
|
# @param [String] region
|
36215
|
-
# Name of the region
|
37130
|
+
# Name of the region for this request.
|
37131
|
+
# @param [String] filter
|
37132
|
+
# A filter expression that filters resources listed in the response. Most
|
37133
|
+
# Compute resources support two types of filter expressions: expressions that
|
37134
|
+
# support regular expressions and expressions that follow API improvement
|
37135
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
37136
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
37137
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
37138
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
37139
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
37140
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
37141
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
37142
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
37143
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
37144
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
37145
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
37146
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
37147
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
37148
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
37149
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
37150
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
37151
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
37152
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
37153
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
37154
|
+
# un-parenthesized expression with or without quotes or against multiple
|
37155
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
37156
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
37157
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
37158
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
37159
|
+
# literal value must match the entire field. For example, to filter for
|
37160
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
37161
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
37162
|
+
# expressions.
|
37163
|
+
# @param [Fixnum] max_results
|
37164
|
+
# The maximum number of results per page that should be returned. If the number
|
37165
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
37166
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
37167
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
37168
|
+
# @param [String] order_by
|
37169
|
+
# Sorts list results by a certain order. By default, results are returned in
|
37170
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
37171
|
+
# descending order based on the creation timestamp using `orderBy="
|
37172
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
37173
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
37174
|
+
# resources like operations so that the newest operation is returned first.
|
37175
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
37176
|
+
# @param [String] page_token
|
37177
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
37178
|
+
# by a previous list request to get the next page of results.
|
37179
|
+
# @param [Boolean] return_partial_success
|
37180
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
37181
|
+
# failure. The default value is false. For example, when partial success
|
37182
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
37183
|
+
# resources in the zone or no resources, with an error code.
|
37184
|
+
# @param [String] fields
|
37185
|
+
# Selector specifying which fields to include in a partial response.
|
37186
|
+
# @param [String] quota_user
|
37187
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
37188
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
37189
|
+
# @param [String] user_ip
|
37190
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
37191
|
+
# @param [Google::Apis::RequestOptions] options
|
37192
|
+
# Request-specific options
|
37193
|
+
#
|
37194
|
+
# @yield [result, err] Result & error if block supplied
|
37195
|
+
# @yieldparam result [Google::Apis::ComputeBeta::SnapshotList] parsed result object
|
37196
|
+
# @yieldparam err [StandardError] error object if request failed
|
37197
|
+
#
|
37198
|
+
# @return [Google::Apis::ComputeBeta::SnapshotList]
|
37199
|
+
#
|
37200
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
37201
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
37202
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
37203
|
+
def list_region_snapshots(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
37204
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/snapshots', options)
|
37205
|
+
command.response_representation = Google::Apis::ComputeBeta::SnapshotList::Representation
|
37206
|
+
command.response_class = Google::Apis::ComputeBeta::SnapshotList
|
37207
|
+
command.params['project'] = project unless project.nil?
|
37208
|
+
command.params['region'] = region unless region.nil?
|
37209
|
+
command.query['filter'] = filter unless filter.nil?
|
37210
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
37211
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
37212
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
37213
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
37214
|
+
command.query['fields'] = fields unless fields.nil?
|
37215
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
37216
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
37217
|
+
execute_or_queue_command(command, &block)
|
37218
|
+
end
|
37219
|
+
|
37220
|
+
# Sets the access control policy on the specified resource. Replaces any
|
37221
|
+
# existing policy.
|
37222
|
+
# @param [String] project
|
37223
|
+
# Project ID for this request.
|
37224
|
+
# @param [String] region
|
37225
|
+
# The name of the region for this request.
|
37226
|
+
# @param [String] resource
|
37227
|
+
# Name or id of the resource for this request.
|
37228
|
+
# @param [Google::Apis::ComputeBeta::RegionSetPolicyRequest] region_set_policy_request_object
|
37229
|
+
# @param [String] fields
|
37230
|
+
# Selector specifying which fields to include in a partial response.
|
37231
|
+
# @param [String] quota_user
|
37232
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
37233
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
37234
|
+
# @param [String] user_ip
|
37235
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
37236
|
+
# @param [Google::Apis::RequestOptions] options
|
37237
|
+
# Request-specific options
|
37238
|
+
#
|
37239
|
+
# @yield [result, err] Result & error if block supplied
|
37240
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
37241
|
+
# @yieldparam err [StandardError] error object if request failed
|
37242
|
+
#
|
37243
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
37244
|
+
#
|
37245
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
37246
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
37247
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
37248
|
+
def set_region_snapshot_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
37249
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/snapshots/{resource}/setIamPolicy', options)
|
37250
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionSetPolicyRequest::Representation
|
37251
|
+
command.request_object = region_set_policy_request_object
|
37252
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
37253
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
37254
|
+
command.params['project'] = project unless project.nil?
|
37255
|
+
command.params['region'] = region unless region.nil?
|
37256
|
+
command.params['resource'] = resource unless resource.nil?
|
37257
|
+
command.query['fields'] = fields unless fields.nil?
|
37258
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
37259
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
37260
|
+
execute_or_queue_command(command, &block)
|
37261
|
+
end
|
37262
|
+
|
37263
|
+
# Sets the labels on a regional snapshot. To learn more about labels, read the
|
37264
|
+
# Labeling Resources documentation.
|
37265
|
+
# @param [String] project
|
37266
|
+
# Project ID for this request.
|
37267
|
+
# @param [String] region
|
37268
|
+
# The region for this request.
|
37269
|
+
# @param [String] resource
|
37270
|
+
# Name or id of the resource for this request.
|
37271
|
+
# @param [Google::Apis::ComputeBeta::RegionSetLabelsRequest] region_set_labels_request_object
|
37272
|
+
# @param [String] request_id
|
37273
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
37274
|
+
# that if you must retry your request, the server will know to ignore the
|
37275
|
+
# request if it has already been completed. For example, consider a situation
|
37276
|
+
# where you make an initial request and the request times out. If you make the
|
37277
|
+
# request again with the same request ID, the server can check if original
|
37278
|
+
# operation with the same request ID was received, and if so, will ignore the
|
37279
|
+
# second request. This prevents clients from accidentally creating duplicate
|
37280
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
37281
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
37282
|
+
# @param [String] fields
|
37283
|
+
# Selector specifying which fields to include in a partial response.
|
37284
|
+
# @param [String] quota_user
|
37285
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
37286
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
37287
|
+
# @param [String] user_ip
|
37288
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
37289
|
+
# @param [Google::Apis::RequestOptions] options
|
37290
|
+
# Request-specific options
|
37291
|
+
#
|
37292
|
+
# @yield [result, err] Result & error if block supplied
|
37293
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
37294
|
+
# @yieldparam err [StandardError] error object if request failed
|
37295
|
+
#
|
37296
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
37297
|
+
#
|
37298
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
37299
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
37300
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
37301
|
+
def set_region_snapshot_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
37302
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/snapshots/{resource}/setLabels', options)
|
37303
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionSetLabelsRequest::Representation
|
37304
|
+
command.request_object = region_set_labels_request_object
|
37305
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
37306
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
37307
|
+
command.params['project'] = project unless project.nil?
|
37308
|
+
command.params['region'] = region unless region.nil?
|
37309
|
+
command.params['resource'] = resource unless resource.nil?
|
37310
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
37311
|
+
command.query['fields'] = fields unless fields.nil?
|
37312
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
37313
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
37314
|
+
execute_or_queue_command(command, &block)
|
37315
|
+
end
|
37316
|
+
|
37317
|
+
# Returns permissions that a caller has on the specified resource.
|
37318
|
+
# @param [String] project
|
37319
|
+
# Project ID for this request.
|
37320
|
+
# @param [String] region
|
37321
|
+
# The name of the region for this request.
|
37322
|
+
# @param [String] resource
|
37323
|
+
# Name or id of the resource for this request.
|
37324
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
37325
|
+
# @param [String] fields
|
37326
|
+
# Selector specifying which fields to include in a partial response.
|
37327
|
+
# @param [String] quota_user
|
37328
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
37329
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
37330
|
+
# @param [String] user_ip
|
37331
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
37332
|
+
# @param [Google::Apis::RequestOptions] options
|
37333
|
+
# Request-specific options
|
37334
|
+
#
|
37335
|
+
# @yield [result, err] Result & error if block supplied
|
37336
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
37337
|
+
# @yieldparam err [StandardError] error object if request failed
|
37338
|
+
#
|
37339
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
37340
|
+
#
|
37341
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
37342
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
37343
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
37344
|
+
def test_region_snapshot_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
37345
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/snapshots/{resource}/testIamPermissions', options)
|
37346
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
37347
|
+
command.request_object = test_permissions_request_object
|
37348
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
37349
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
37350
|
+
command.params['project'] = project unless project.nil?
|
37351
|
+
command.params['region'] = region unless region.nil?
|
37352
|
+
command.params['resource'] = resource unless resource.nil?
|
37353
|
+
command.query['fields'] = fields unless fields.nil?
|
37354
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
37355
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
37356
|
+
execute_or_queue_command(command, &block)
|
37357
|
+
end
|
37358
|
+
|
37359
|
+
# Deletes the specified SslCertificate resource in the region.
|
37360
|
+
# @param [String] project
|
37361
|
+
# Project ID for this request.
|
37362
|
+
# @param [String] region
|
37363
|
+
# Name of the region scoping this request.
|
37364
|
+
# @param [String] ssl_certificate
|
37365
|
+
# Name of the SslCertificate resource to delete.
|
37366
|
+
# @param [String] request_id
|
37367
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
37368
|
+
# that if you must retry your request, the server will know to ignore the
|
37369
|
+
# request if it has already been completed. For example, consider a situation
|
37370
|
+
# where you make an initial request and the request times out. If you make the
|
37371
|
+
# request again with the same request ID, the server can check if original
|
37372
|
+
# operation with the same request ID was received, and if so, will ignore the
|
37373
|
+
# second request. This prevents clients from accidentally creating duplicate
|
37374
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
37375
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
37376
|
+
# @param [String] fields
|
37377
|
+
# Selector specifying which fields to include in a partial response.
|
37378
|
+
# @param [String] quota_user
|
37379
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
37380
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
37381
|
+
# @param [String] user_ip
|
37382
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
37383
|
+
# @param [Google::Apis::RequestOptions] options
|
37384
|
+
# Request-specific options
|
37385
|
+
#
|
37386
|
+
# @yield [result, err] Result & error if block supplied
|
37387
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
37388
|
+
# @yieldparam err [StandardError] error object if request failed
|
37389
|
+
#
|
37390
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
37391
|
+
#
|
37392
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
37393
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
37394
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
37395
|
+
def delete_region_ssl_certificate(project, region, ssl_certificate, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
37396
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/sslCertificates/{sslCertificate}', options)
|
37397
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
37398
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
37399
|
+
command.params['project'] = project unless project.nil?
|
37400
|
+
command.params['region'] = region unless region.nil?
|
37401
|
+
command.params['sslCertificate'] = ssl_certificate unless ssl_certificate.nil?
|
37402
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
37403
|
+
command.query['fields'] = fields unless fields.nil?
|
37404
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
37405
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
37406
|
+
execute_or_queue_command(command, &block)
|
37407
|
+
end
|
37408
|
+
|
37409
|
+
# Returns the specified SslCertificate resource in the specified region. Get a
|
37410
|
+
# list of available SSL certificates by making a list() request.
|
37411
|
+
# @param [String] project
|
37412
|
+
# Project ID for this request.
|
37413
|
+
# @param [String] region
|
37414
|
+
# Name of the region scoping this request.
|
37415
|
+
# @param [String] ssl_certificate
|
37416
|
+
# Name of the SslCertificate resource to return.
|
37417
|
+
# @param [String] fields
|
37418
|
+
# Selector specifying which fields to include in a partial response.
|
37419
|
+
# @param [String] quota_user
|
37420
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
37421
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
37422
|
+
# @param [String] user_ip
|
37423
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
37424
|
+
# @param [Google::Apis::RequestOptions] options
|
37425
|
+
# Request-specific options
|
37426
|
+
#
|
37427
|
+
# @yield [result, err] Result & error if block supplied
|
37428
|
+
# @yieldparam result [Google::Apis::ComputeBeta::SslCertificate] parsed result object
|
37429
|
+
# @yieldparam err [StandardError] error object if request failed
|
37430
|
+
#
|
37431
|
+
# @return [Google::Apis::ComputeBeta::SslCertificate]
|
37432
|
+
#
|
37433
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
37434
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
37435
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
37436
|
+
def get_region_ssl_certificate(project, region, ssl_certificate, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
37437
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/sslCertificates/{sslCertificate}', options)
|
37438
|
+
command.response_representation = Google::Apis::ComputeBeta::SslCertificate::Representation
|
37439
|
+
command.response_class = Google::Apis::ComputeBeta::SslCertificate
|
37440
|
+
command.params['project'] = project unless project.nil?
|
37441
|
+
command.params['region'] = region unless region.nil?
|
37442
|
+
command.params['sslCertificate'] = ssl_certificate unless ssl_certificate.nil?
|
37443
|
+
command.query['fields'] = fields unless fields.nil?
|
37444
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
37445
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
37446
|
+
execute_or_queue_command(command, &block)
|
37447
|
+
end
|
37448
|
+
|
37449
|
+
# Creates a SslCertificate resource in the specified project and region using
|
37450
|
+
# the data included in the request
|
37451
|
+
# @param [String] project
|
37452
|
+
# Project ID for this request.
|
37453
|
+
# @param [String] region
|
37454
|
+
# Name of the region scoping this request.
|
37455
|
+
# @param [Google::Apis::ComputeBeta::SslCertificate] ssl_certificate_object
|
37456
|
+
# @param [String] request_id
|
37457
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
37458
|
+
# that if you must retry your request, the server will know to ignore the
|
37459
|
+
# request if it has already been completed. For example, consider a situation
|
37460
|
+
# where you make an initial request and the request times out. If you make the
|
37461
|
+
# request again with the same request ID, the server can check if original
|
37462
|
+
# operation with the same request ID was received, and if so, will ignore the
|
37463
|
+
# second request. This prevents clients from accidentally creating duplicate
|
37464
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
37465
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
37466
|
+
# @param [String] fields
|
37467
|
+
# Selector specifying which fields to include in a partial response.
|
37468
|
+
# @param [String] quota_user
|
37469
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
37470
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
37471
|
+
# @param [String] user_ip
|
37472
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
37473
|
+
# @param [Google::Apis::RequestOptions] options
|
37474
|
+
# Request-specific options
|
37475
|
+
#
|
37476
|
+
# @yield [result, err] Result & error if block supplied
|
37477
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
37478
|
+
# @yieldparam err [StandardError] error object if request failed
|
37479
|
+
#
|
37480
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
37481
|
+
#
|
37482
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
37483
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
37484
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
37485
|
+
def insert_region_ssl_certificate(project, region, ssl_certificate_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
37486
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/sslCertificates', options)
|
37487
|
+
command.request_representation = Google::Apis::ComputeBeta::SslCertificate::Representation
|
37488
|
+
command.request_object = ssl_certificate_object
|
37489
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
37490
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
37491
|
+
command.params['project'] = project unless project.nil?
|
37492
|
+
command.params['region'] = region unless region.nil?
|
37493
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
37494
|
+
command.query['fields'] = fields unless fields.nil?
|
37495
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
37496
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
37497
|
+
execute_or_queue_command(command, &block)
|
37498
|
+
end
|
37499
|
+
|
37500
|
+
# Retrieves the list of SslCertificate resources available to the specified
|
37501
|
+
# project in the specified region.
|
37502
|
+
# @param [String] project
|
37503
|
+
# Project ID for this request.
|
37504
|
+
# @param [String] region
|
37505
|
+
# Name of the region scoping this request.
|
36216
37506
|
# @param [String] filter
|
36217
37507
|
# A filter expression that filters resources listed in the response. Most
|
36218
37508
|
# Compute resources support two types of filter expressions: expressions that
|
@@ -38650,6 +39940,64 @@ module Google
|
|
38650
39940
|
execute_or_queue_command(command, &block)
|
38651
39941
|
end
|
38652
39942
|
|
39943
|
+
# Allows customers to perform maintenance on a reservation block
|
39944
|
+
# @param [String] project
|
39945
|
+
# Project ID for this request.
|
39946
|
+
# @param [String] zone
|
39947
|
+
# Name of the zone for this request. Zone name should conform to RFC1035.
|
39948
|
+
# @param [String] reservation
|
39949
|
+
# The name of the reservation. Name should conform to RFC1035 or be a resource
|
39950
|
+
# ID.
|
39951
|
+
# @param [String] reservation_block
|
39952
|
+
# The name of the reservation block. Name should conform to RFC1035 or be a
|
39953
|
+
# resource ID.
|
39954
|
+
# @param [Google::Apis::ComputeBeta::ReservationsBlocksPerformMaintenanceRequest] reservations_blocks_perform_maintenance_request_object
|
39955
|
+
# @param [String] request_id
|
39956
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
39957
|
+
# that if you must retry your request, the server will know to ignore the
|
39958
|
+
# request if it has already been completed. For example, consider a situation
|
39959
|
+
# where you make an initial request and the request times out. If you make the
|
39960
|
+
# request again with the same request ID, the server can check if original
|
39961
|
+
# operation with the same request ID was received, and if so, will ignore the
|
39962
|
+
# second request. This prevents clients from accidentally creating duplicate
|
39963
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
39964
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
39965
|
+
# @param [String] fields
|
39966
|
+
# Selector specifying which fields to include in a partial response.
|
39967
|
+
# @param [String] quota_user
|
39968
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
39969
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
39970
|
+
# @param [String] user_ip
|
39971
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
39972
|
+
# @param [Google::Apis::RequestOptions] options
|
39973
|
+
# Request-specific options
|
39974
|
+
#
|
39975
|
+
# @yield [result, err] Result & error if block supplied
|
39976
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
39977
|
+
# @yieldparam err [StandardError] error object if request failed
|
39978
|
+
#
|
39979
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
39980
|
+
#
|
39981
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
39982
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
39983
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
39984
|
+
def perform_reservation_block_maintenance(project, zone, reservation, reservation_block, reservations_blocks_perform_maintenance_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
39985
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}/performMaintenance', options)
|
39986
|
+
command.request_representation = Google::Apis::ComputeBeta::ReservationsBlocksPerformMaintenanceRequest::Representation
|
39987
|
+
command.request_object = reservations_blocks_perform_maintenance_request_object
|
39988
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
39989
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
39990
|
+
command.params['project'] = project unless project.nil?
|
39991
|
+
command.params['zone'] = zone unless zone.nil?
|
39992
|
+
command.params['reservation'] = reservation unless reservation.nil?
|
39993
|
+
command.params['reservationBlock'] = reservation_block unless reservation_block.nil?
|
39994
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
39995
|
+
command.query['fields'] = fields unless fields.nil?
|
39996
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
39997
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
39998
|
+
execute_or_queue_command(command, &block)
|
39999
|
+
end
|
40000
|
+
|
38653
40001
|
# Retrieves an aggregated list of reservations. To prevent failure, Google
|
38654
40002
|
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
38655
40003
|
# @param [String] project
|
@@ -39032,6 +40380,60 @@ module Google
|
|
39032
40380
|
execute_or_queue_command(command, &block)
|
39033
40381
|
end
|
39034
40382
|
|
40383
|
+
# Perform maintenance on an extended reservation
|
40384
|
+
# @param [String] project
|
40385
|
+
# Project ID for this request.
|
40386
|
+
# @param [String] zone
|
40387
|
+
# Name of the zone for this request. Zone name should conform to RFC1035.
|
40388
|
+
# @param [String] reservation
|
40389
|
+
# The name of the reservation. Name should conform to RFC1035 or be a resource
|
40390
|
+
# ID.
|
40391
|
+
# @param [Google::Apis::ComputeBeta::ReservationsPerformMaintenanceRequest] reservations_perform_maintenance_request_object
|
40392
|
+
# @param [String] request_id
|
40393
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
40394
|
+
# that if you must retry your request, the server will know to ignore the
|
40395
|
+
# request if it has already been completed. For example, consider a situation
|
40396
|
+
# where you make an initial request and the request times out. If you make the
|
40397
|
+
# request again with the same request ID, the server can check if original
|
40398
|
+
# operation with the same request ID was received, and if so, will ignore the
|
40399
|
+
# second request. This prevents clients from accidentally creating duplicate
|
40400
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
40401
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
40402
|
+
# @param [String] fields
|
40403
|
+
# Selector specifying which fields to include in a partial response.
|
40404
|
+
# @param [String] quota_user
|
40405
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
40406
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
40407
|
+
# @param [String] user_ip
|
40408
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
40409
|
+
# @param [Google::Apis::RequestOptions] options
|
40410
|
+
# Request-specific options
|
40411
|
+
#
|
40412
|
+
# @yield [result, err] Result & error if block supplied
|
40413
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
40414
|
+
# @yieldparam err [StandardError] error object if request failed
|
40415
|
+
#
|
40416
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
40417
|
+
#
|
40418
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
40419
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
40420
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
40421
|
+
def perform_reservation_maintenance(project, zone, reservation, reservations_perform_maintenance_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
40422
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/reservations/{reservation}/performMaintenance', options)
|
40423
|
+
command.request_representation = Google::Apis::ComputeBeta::ReservationsPerformMaintenanceRequest::Representation
|
40424
|
+
command.request_object = reservations_perform_maintenance_request_object
|
40425
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
40426
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
40427
|
+
command.params['project'] = project unless project.nil?
|
40428
|
+
command.params['zone'] = zone unless zone.nil?
|
40429
|
+
command.params['reservation'] = reservation unless reservation.nil?
|
40430
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
40431
|
+
command.query['fields'] = fields unless fields.nil?
|
40432
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
40433
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
40434
|
+
execute_or_queue_command(command, &block)
|
40435
|
+
end
|
40436
|
+
|
39035
40437
|
# Resizes the reservation (applicable to standalone reservations only). For more
|
39036
40438
|
# information, read Modifying reservations.
|
39037
40439
|
# @param [String] project
|
@@ -42478,6 +43880,111 @@ module Google
|
|
42478
43880
|
execute_or_queue_command(command, &block)
|
42479
43881
|
end
|
42480
43882
|
|
43883
|
+
# Retrieves an aggregated list of all of the snapshots in your project across
|
43884
|
+
# all regions and global scope. To prevent failure, Google recommends that you
|
43885
|
+
# set the `returnPartialSuccess` parameter to `true`.
|
43886
|
+
# @param [String] project
|
43887
|
+
# Project ID for this request.
|
43888
|
+
# @param [String] filter
|
43889
|
+
# A filter expression that filters resources listed in the response. Most
|
43890
|
+
# Compute resources support two types of filter expressions: expressions that
|
43891
|
+
# support regular expressions and expressions that follow API improvement
|
43892
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
43893
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
43894
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
43895
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
43896
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
43897
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
43898
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
43899
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
43900
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
43901
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
43902
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
43903
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
43904
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
43905
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
43906
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
43907
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
43908
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
43909
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
43910
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
43911
|
+
# un-parenthesized expression with or without quotes or against multiple
|
43912
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
43913
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
43914
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
43915
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
43916
|
+
# literal value must match the entire field. For example, to filter for
|
43917
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
43918
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
43919
|
+
# expressions.
|
43920
|
+
# @param [Boolean] include_all_scopes
|
43921
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
43922
|
+
# global) should be included in the response. For new resource types added after
|
43923
|
+
# this field, the flag has no effect as new resource types will always include
|
43924
|
+
# every visible scope for each scope type in response. For resource types which
|
43925
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
43926
|
+
# types where the resource type is expected to be found will be included.
|
43927
|
+
# @param [Fixnum] max_results
|
43928
|
+
# The maximum number of results per page that should be returned. If the number
|
43929
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
43930
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
43931
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
43932
|
+
# @param [String] order_by
|
43933
|
+
# Sorts list results by a certain order. By default, results are returned in
|
43934
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
43935
|
+
# descending order based on the creation timestamp using `orderBy="
|
43936
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
43937
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
43938
|
+
# resources like operations so that the newest operation is returned first.
|
43939
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
43940
|
+
# @param [String] page_token
|
43941
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
43942
|
+
# by a previous list request to get the next page of results.
|
43943
|
+
# @param [Boolean] return_partial_success
|
43944
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
43945
|
+
# failure. The default value is false. For example, when partial success
|
43946
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
43947
|
+
# resources in the zone or no resources, with an error code.
|
43948
|
+
# @param [Fixnum] service_project_number
|
43949
|
+
# The Shared VPC service project id or service project number for which
|
43950
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
43951
|
+
# @param [String] fields
|
43952
|
+
# Selector specifying which fields to include in a partial response.
|
43953
|
+
# @param [String] quota_user
|
43954
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
43955
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43956
|
+
# @param [String] user_ip
|
43957
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
43958
|
+
# @param [Google::Apis::RequestOptions] options
|
43959
|
+
# Request-specific options
|
43960
|
+
#
|
43961
|
+
# @yield [result, err] Result & error if block supplied
|
43962
|
+
# @yieldparam result [Google::Apis::ComputeBeta::SnapshotAggregatedList] parsed result object
|
43963
|
+
# @yieldparam err [StandardError] error object if request failed
|
43964
|
+
#
|
43965
|
+
# @return [Google::Apis::ComputeBeta::SnapshotAggregatedList]
|
43966
|
+
#
|
43967
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
43968
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
43969
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
43970
|
+
def aggregated_snapshot_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
43971
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/snapshots', options)
|
43972
|
+
command.response_representation = Google::Apis::ComputeBeta::SnapshotAggregatedList::Representation
|
43973
|
+
command.response_class = Google::Apis::ComputeBeta::SnapshotAggregatedList
|
43974
|
+
command.params['project'] = project unless project.nil?
|
43975
|
+
command.query['filter'] = filter unless filter.nil?
|
43976
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
43977
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
43978
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
43979
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
43980
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
43981
|
+
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
43982
|
+
command.query['fields'] = fields unless fields.nil?
|
43983
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
43984
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
43985
|
+
execute_or_queue_command(command, &block)
|
43986
|
+
end
|
43987
|
+
|
42481
43988
|
# Deletes the specified Snapshot resource. Keep in mind that deleting a single
|
42482
43989
|
# snapshot might not necessarily delete all the data on that snapshot. If any
|
42483
43990
|
# data on the snapshot that is marked for deletion is needed for subsequent
|
@@ -50866,6 +52373,302 @@ module Google
|
|
50866
52373
|
execute_or_queue_command(command, &block)
|
50867
52374
|
end
|
50868
52375
|
|
52376
|
+
# Deletes the specified wire group in the given scope.
|
52377
|
+
# @param [String] project
|
52378
|
+
# Project ID for this request.
|
52379
|
+
# @param [String] cross_site_network
|
52380
|
+
# @param [String] wire_group
|
52381
|
+
# Name of the wire group resource to delete.
|
52382
|
+
# @param [String] request_id
|
52383
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
52384
|
+
# that if you must retry your request, the server will know to ignore the
|
52385
|
+
# request if it has already been completed. For example, consider a situation
|
52386
|
+
# where you make an initial request and the request times out. If you make the
|
52387
|
+
# request again with the same request ID, the server can check if original
|
52388
|
+
# operation with the same request ID was received, and if so, will ignore the
|
52389
|
+
# second request. This prevents clients from accidentally creating duplicate
|
52390
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
52391
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
|
52392
|
+
# MixerMutationRequestBuilder
|
52393
|
+
# @param [String] fields
|
52394
|
+
# Selector specifying which fields to include in a partial response.
|
52395
|
+
# @param [String] quota_user
|
52396
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
52397
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
52398
|
+
# @param [String] user_ip
|
52399
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
52400
|
+
# @param [Google::Apis::RequestOptions] options
|
52401
|
+
# Request-specific options
|
52402
|
+
#
|
52403
|
+
# @yield [result, err] Result & error if block supplied
|
52404
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
52405
|
+
# @yieldparam err [StandardError] error object if request failed
|
52406
|
+
#
|
52407
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
52408
|
+
#
|
52409
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
52410
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
52411
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
52412
|
+
def delete_wire_group(project, cross_site_network, wire_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
52413
|
+
command = make_simple_command(:delete, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}', options)
|
52414
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
52415
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
52416
|
+
command.params['project'] = project unless project.nil?
|
52417
|
+
command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
|
52418
|
+
command.params['wireGroup'] = wire_group unless wire_group.nil?
|
52419
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
52420
|
+
command.query['fields'] = fields unless fields.nil?
|
52421
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
52422
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
52423
|
+
execute_or_queue_command(command, &block)
|
52424
|
+
end
|
52425
|
+
|
52426
|
+
# Gets the specified wire group resource in the given scope.
|
52427
|
+
# @param [String] project
|
52428
|
+
# Project ID for this request.
|
52429
|
+
# @param [String] cross_site_network
|
52430
|
+
# @param [String] wire_group
|
52431
|
+
# Name of the wire group resource to return.
|
52432
|
+
# @param [String] fields
|
52433
|
+
# Selector specifying which fields to include in a partial response.
|
52434
|
+
# @param [String] quota_user
|
52435
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
52436
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
52437
|
+
# @param [String] user_ip
|
52438
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
52439
|
+
# @param [Google::Apis::RequestOptions] options
|
52440
|
+
# Request-specific options
|
52441
|
+
#
|
52442
|
+
# @yield [result, err] Result & error if block supplied
|
52443
|
+
# @yieldparam result [Google::Apis::ComputeBeta::WireGroup] parsed result object
|
52444
|
+
# @yieldparam err [StandardError] error object if request failed
|
52445
|
+
#
|
52446
|
+
# @return [Google::Apis::ComputeBeta::WireGroup]
|
52447
|
+
#
|
52448
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
52449
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
52450
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
52451
|
+
def get_wire_group(project, cross_site_network, wire_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
52452
|
+
command = make_simple_command(:get, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}', options)
|
52453
|
+
command.response_representation = Google::Apis::ComputeBeta::WireGroup::Representation
|
52454
|
+
command.response_class = Google::Apis::ComputeBeta::WireGroup
|
52455
|
+
command.params['project'] = project unless project.nil?
|
52456
|
+
command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
|
52457
|
+
command.params['wireGroup'] = wire_group unless wire_group.nil?
|
52458
|
+
command.query['fields'] = fields unless fields.nil?
|
52459
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
52460
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
52461
|
+
execute_or_queue_command(command, &block)
|
52462
|
+
end
|
52463
|
+
|
52464
|
+
# Creates a wire group in the specified project in the given scope using the
|
52465
|
+
# parameters that are included in the request.
|
52466
|
+
# @param [String] project
|
52467
|
+
# Project ID for this request.
|
52468
|
+
# @param [String] cross_site_network
|
52469
|
+
# @param [Google::Apis::ComputeBeta::WireGroup] wire_group_object
|
52470
|
+
# @param [String] request_id
|
52471
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
52472
|
+
# that if you must retry your request, the server will know to ignore the
|
52473
|
+
# request if it has already been completed. For example, consider a situation
|
52474
|
+
# where you make an initial request and the request times out. If you make the
|
52475
|
+
# request again with the same request ID, the server can check if original
|
52476
|
+
# operation with the same request ID was received, and if so, will ignore the
|
52477
|
+
# second request. This prevents clients from accidentally creating duplicate
|
52478
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
52479
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
|
52480
|
+
# MixerMutationRequestBuilder
|
52481
|
+
# @param [Boolean] validate_only
|
52482
|
+
# [Input Only] Validate the new configuration, but don't create it.
|
52483
|
+
# @param [String] fields
|
52484
|
+
# Selector specifying which fields to include in a partial response.
|
52485
|
+
# @param [String] quota_user
|
52486
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
52487
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
52488
|
+
# @param [String] user_ip
|
52489
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
52490
|
+
# @param [Google::Apis::RequestOptions] options
|
52491
|
+
# Request-specific options
|
52492
|
+
#
|
52493
|
+
# @yield [result, err] Result & error if block supplied
|
52494
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
52495
|
+
# @yieldparam err [StandardError] error object if request failed
|
52496
|
+
#
|
52497
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
52498
|
+
#
|
52499
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
52500
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
52501
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
52502
|
+
def insert_wire_group(project, cross_site_network, wire_group_object = nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
52503
|
+
command = make_simple_command(:post, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups', options)
|
52504
|
+
command.request_representation = Google::Apis::ComputeBeta::WireGroup::Representation
|
52505
|
+
command.request_object = wire_group_object
|
52506
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
52507
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
52508
|
+
command.params['project'] = project unless project.nil?
|
52509
|
+
command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
|
52510
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
52511
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
52512
|
+
command.query['fields'] = fields unless fields.nil?
|
52513
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
52514
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
52515
|
+
execute_or_queue_command(command, &block)
|
52516
|
+
end
|
52517
|
+
|
52518
|
+
# Lists the wire groups for a project in the given scope.
|
52519
|
+
# @param [String] project
|
52520
|
+
# Project ID for this request.
|
52521
|
+
# @param [String] cross_site_network
|
52522
|
+
# @param [String] filter
|
52523
|
+
# A filter expression that filters resources listed in the response. Most
|
52524
|
+
# Compute resources support two types of filter expressions: expressions that
|
52525
|
+
# support regular expressions and expressions that follow API improvement
|
52526
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
52527
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
52528
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
52529
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
52530
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
52531
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
52532
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
52533
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
52534
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
52535
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
52536
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
52537
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
52538
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
52539
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
52540
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
52541
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
52542
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
52543
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
52544
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
52545
|
+
# un-parenthesized expression with or without quotes or against multiple
|
52546
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
52547
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
52548
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
52549
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
52550
|
+
# literal value must match the entire field. For example, to filter for
|
52551
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
52552
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
52553
|
+
# expressions.
|
52554
|
+
# @param [Fixnum] max_results
|
52555
|
+
# The maximum number of results per page that should be returned. If the number
|
52556
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
52557
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
52558
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
52559
|
+
# @param [String] order_by
|
52560
|
+
# Sorts list results by a certain order. By default, results are returned in
|
52561
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
52562
|
+
# descending order based on the creation timestamp using `orderBy="
|
52563
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
52564
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
52565
|
+
# resources like operations so that the newest operation is returned first.
|
52566
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
52567
|
+
# @param [String] page_token
|
52568
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
52569
|
+
# by a previous list request to get the next page of results.
|
52570
|
+
# @param [Boolean] return_partial_success
|
52571
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
52572
|
+
# failure. The default value is false. For example, when partial success
|
52573
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
52574
|
+
# resources in the zone or no resources, with an error code.
|
52575
|
+
# @param [String] fields
|
52576
|
+
# Selector specifying which fields to include in a partial response.
|
52577
|
+
# @param [String] quota_user
|
52578
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
52579
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
52580
|
+
# @param [String] user_ip
|
52581
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
52582
|
+
# @param [Google::Apis::RequestOptions] options
|
52583
|
+
# Request-specific options
|
52584
|
+
#
|
52585
|
+
# @yield [result, err] Result & error if block supplied
|
52586
|
+
# @yieldparam result [Google::Apis::ComputeBeta::WireGroupList] parsed result object
|
52587
|
+
# @yieldparam err [StandardError] error object if request failed
|
52588
|
+
#
|
52589
|
+
# @return [Google::Apis::ComputeBeta::WireGroupList]
|
52590
|
+
#
|
52591
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
52592
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
52593
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
52594
|
+
def list_wire_groups(project, cross_site_network, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
52595
|
+
command = make_simple_command(:get, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups', options)
|
52596
|
+
command.response_representation = Google::Apis::ComputeBeta::WireGroupList::Representation
|
52597
|
+
command.response_class = Google::Apis::ComputeBeta::WireGroupList
|
52598
|
+
command.params['project'] = project unless project.nil?
|
52599
|
+
command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
|
52600
|
+
command.query['filter'] = filter unless filter.nil?
|
52601
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
52602
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
52603
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
52604
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
52605
|
+
command.query['fields'] = fields unless fields.nil?
|
52606
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
52607
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
52608
|
+
execute_or_queue_command(command, &block)
|
52609
|
+
end
|
52610
|
+
|
52611
|
+
# Updates the specified wire group resource with the data included in the
|
52612
|
+
# request. This method supports PATCH semantics and uses JSON merge patch format
|
52613
|
+
# and processing rules.
|
52614
|
+
# @param [String] project
|
52615
|
+
# Project ID for this request.
|
52616
|
+
# @param [String] cross_site_network
|
52617
|
+
# @param [String] wire_group
|
52618
|
+
# Name of the WireGroups resource to patch.
|
52619
|
+
# @param [Google::Apis::ComputeBeta::WireGroup] wire_group_object
|
52620
|
+
# @param [String] request_id
|
52621
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
52622
|
+
# that if you must retry your request, the server will know to ignore the
|
52623
|
+
# request if it has already been completed. For example, consider a situation
|
52624
|
+
# where you make an initial request and the request times out. If you make the
|
52625
|
+
# request again with the same request ID, the server can check if original
|
52626
|
+
# operation with the same request ID was received, and if so, will ignore the
|
52627
|
+
# second request. This prevents clients from accidentally creating duplicate
|
52628
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
52629
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
|
52630
|
+
# MixerMutationRequestBuilder
|
52631
|
+
# @param [String] update_mask
|
52632
|
+
# update_mask indicates fields to be updated as part of this request.
|
52633
|
+
# @param [Boolean] validate_only
|
52634
|
+
# [Input Only] Validate the new configuration, but don't update it.
|
52635
|
+
# @param [String] fields
|
52636
|
+
# Selector specifying which fields to include in a partial response.
|
52637
|
+
# @param [String] quota_user
|
52638
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
52639
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
52640
|
+
# @param [String] user_ip
|
52641
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
52642
|
+
# @param [Google::Apis::RequestOptions] options
|
52643
|
+
# Request-specific options
|
52644
|
+
#
|
52645
|
+
# @yield [result, err] Result & error if block supplied
|
52646
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
52647
|
+
# @yieldparam err [StandardError] error object if request failed
|
52648
|
+
#
|
52649
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
52650
|
+
#
|
52651
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
52652
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
52653
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
52654
|
+
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)
|
52655
|
+
command = make_simple_command(:patch, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}', options)
|
52656
|
+
command.request_representation = Google::Apis::ComputeBeta::WireGroup::Representation
|
52657
|
+
command.request_object = wire_group_object
|
52658
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
52659
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
52660
|
+
command.params['project'] = project unless project.nil?
|
52661
|
+
command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
|
52662
|
+
command.params['wireGroup'] = wire_group unless wire_group.nil?
|
52663
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
52664
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
52665
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
52666
|
+
command.query['fields'] = fields unless fields.nil?
|
52667
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
52668
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
52669
|
+
execute_or_queue_command(command, &block)
|
52670
|
+
end
|
52671
|
+
|
50869
52672
|
# Deletes the specified zone-specific Operations resource.
|
50870
52673
|
# @param [String] project
|
50871
52674
|
# Project ID for this request.
|