google-cloud-compute-v1 0.3.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +4 -4
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +4 -24
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +6 -34
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +8 -44
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +85 -42
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +46 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +91 -66
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +46 -0
- data/lib/google/cloud/compute/v1/compute_pb.rb +8335 -7443
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +4 -24
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +12 -60
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +4 -22
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +13 -63
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +6 -32
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +9 -49
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +4 -22
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +7 -33
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +8 -44
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +6 -30
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +2 -12
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +5 -27
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +8 -44
- data/lib/google/cloud/compute/v1/image_family_views/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +318 -0
- data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +89 -0
- data/lib/google/cloud/compute/v1/image_family_views/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/image_family_views.rb +44 -0
- data/lib/google/cloud/compute/v1/images/rest/client.rb +7 -35
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +30 -150
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +16 -72
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +4 -22
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +272 -197
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +134 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +7 -39
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +2 -12
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +5 -27
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +11 -29
- data/lib/google/cloud/compute/v1/machine_images/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +777 -0
- data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +363 -0
- data/lib/google/cloud/compute/v1/machine_images/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/machine_images.rb +44 -0
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +4 -24
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +10 -56
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +14 -61
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +12 -66
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +6 -34
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +4 -24
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +7 -39
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +15 -71
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +5 -27
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +7 -39
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +6 -32
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +9 -35
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +88 -30
- data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +48 -0
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +2 -12
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +10 -48
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +5 -27
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +6 -32
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +27 -133
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +5 -29
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +1 -5
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +4 -22
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +4 -22
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +3 -17
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +4 -22
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +5 -27
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +6 -32
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +2 -12
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +4 -14
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +89 -39
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +48 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +6 -34
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +10 -56
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +4 -22
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +7 -39
- data/lib/google/cloud/compute/v1/service_attachments/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +954 -0
- data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +458 -0
- data/lib/google/cloud/compute/v1/service_attachments/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/service_attachments.rb +44 -0
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +79 -20
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +46 -0
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +6 -34
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +7 -39
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +11 -61
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +5 -27
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +9 -45
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +12 -60
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +6 -34
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +11 -59
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +8 -42
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +6 -32
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +6 -34
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +10 -52
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +7 -39
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +6 -34
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +3 -17
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +2 -12
- data/lib/google/cloud/compute/v1.rb +3 -0
- data/proto_docs/README.md +1 -1
- data/proto_docs/google/api/field_behavior.rb +6 -0
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/compute/v1/compute.rb +20013 -21099
- data/proto_docs/google/cloud/extended_operations.rb +51 -0
- metadata +34 -4
@@ -766,6 +766,7 @@ module Google
|
|
766
766
|
query_string_params = {}
|
767
767
|
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
768
768
|
query_string_params["sourceInstanceTemplate"] = request_pb.source_instance_template.to_s if request_pb.has_source_instance_template?
|
769
|
+
query_string_params["sourceMachineImage"] = request_pb.source_machine_image.to_s if request_pb.has_source_machine_image?
|
769
770
|
|
770
771
|
[uri, body, query_string_params]
|
771
772
|
end
|
@@ -959,6 +960,94 @@ module Google
|
|
959
960
|
[uri, body, query_string_params]
|
960
961
|
end
|
961
962
|
|
963
|
+
##
|
964
|
+
# Baseline implementation for the resume REST call
|
965
|
+
#
|
966
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ResumeInstanceRequest]
|
967
|
+
# A request object representing the call parameters. Required.
|
968
|
+
# @param options [::Gapic::CallOptions]
|
969
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
970
|
+
#
|
971
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
972
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
973
|
+
# @yieldparam response [::Faraday::Response]
|
974
|
+
#
|
975
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
976
|
+
# A result object deserialized from the server's reply
|
977
|
+
def resume request_pb, options = nil
|
978
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
979
|
+
|
980
|
+
uri, _body, query_string_params = transcode_resume_request request_pb
|
981
|
+
response = @client_stub.make_post_request(
|
982
|
+
uri: uri,
|
983
|
+
params: query_string_params,
|
984
|
+
options: options
|
985
|
+
)
|
986
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
987
|
+
|
988
|
+
yield result, response if block_given?
|
989
|
+
result
|
990
|
+
end
|
991
|
+
|
992
|
+
##
|
993
|
+
# GRPC transcoding helper method for the resume REST call
|
994
|
+
#
|
995
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ResumeInstanceRequest]
|
996
|
+
# A request object representing the call parameters. Required.
|
997
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
998
|
+
# Uri, Body, Query string parameters
|
999
|
+
def transcode_resume_request request_pb
|
1000
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/resume"
|
1001
|
+
body = nil
|
1002
|
+
query_string_params = {}
|
1003
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
1004
|
+
|
1005
|
+
[uri, body, query_string_params]
|
1006
|
+
end
|
1007
|
+
|
1008
|
+
##
|
1009
|
+
# Baseline implementation for the send_diagnostic_interrupt REST call
|
1010
|
+
#
|
1011
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SendDiagnosticInterruptInstanceRequest]
|
1012
|
+
# A request object representing the call parameters. Required.
|
1013
|
+
# @param options [::Gapic::CallOptions]
|
1014
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1015
|
+
#
|
1016
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
1017
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::SendDiagnosticInterruptInstanceResponse]
|
1018
|
+
# @yieldparam response [::Faraday::Response]
|
1019
|
+
#
|
1020
|
+
# @return [::Google::Cloud::Compute::V1::SendDiagnosticInterruptInstanceResponse]
|
1021
|
+
# A result object deserialized from the server's reply
|
1022
|
+
def send_diagnostic_interrupt request_pb, options = nil
|
1023
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1024
|
+
|
1025
|
+
uri, _body, _query_string_params = transcode_send_diagnostic_interrupt_request request_pb
|
1026
|
+
response = @client_stub.make_post_request(
|
1027
|
+
uri: uri,
|
1028
|
+
options: options
|
1029
|
+
)
|
1030
|
+
result = ::Google::Cloud::Compute::V1::SendDiagnosticInterruptInstanceResponse.decode_json response.body, ignore_unknown_fields: true
|
1031
|
+
|
1032
|
+
yield result, response if block_given?
|
1033
|
+
result
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
##
|
1037
|
+
# GRPC transcoding helper method for the send_diagnostic_interrupt REST call
|
1038
|
+
#
|
1039
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SendDiagnosticInterruptInstanceRequest]
|
1040
|
+
# A request object representing the call parameters. Required.
|
1041
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1042
|
+
# Uri, Body, Query string parameters
|
1043
|
+
def transcode_send_diagnostic_interrupt_request request_pb
|
1044
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/sendDiagnosticInterrupt"
|
1045
|
+
body = nil
|
1046
|
+
query_string_params = {}
|
1047
|
+
|
1048
|
+
[uri, body, query_string_params]
|
1049
|
+
end
|
1050
|
+
|
962
1051
|
##
|
963
1052
|
# Baseline implementation for the set_deletion_protection REST call
|
964
1053
|
#
|
@@ -1689,6 +1778,51 @@ module Google
|
|
1689
1778
|
[uri, body, query_string_params]
|
1690
1779
|
end
|
1691
1780
|
|
1781
|
+
##
|
1782
|
+
# Baseline implementation for the suspend REST call
|
1783
|
+
#
|
1784
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SuspendInstanceRequest]
|
1785
|
+
# A request object representing the call parameters. Required.
|
1786
|
+
# @param options [::Gapic::CallOptions]
|
1787
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1788
|
+
#
|
1789
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
1790
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
1791
|
+
# @yieldparam response [::Faraday::Response]
|
1792
|
+
#
|
1793
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
1794
|
+
# A result object deserialized from the server's reply
|
1795
|
+
def suspend request_pb, options = nil
|
1796
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1797
|
+
|
1798
|
+
uri, _body, query_string_params = transcode_suspend_request request_pb
|
1799
|
+
response = @client_stub.make_post_request(
|
1800
|
+
uri: uri,
|
1801
|
+
params: query_string_params,
|
1802
|
+
options: options
|
1803
|
+
)
|
1804
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
1805
|
+
|
1806
|
+
yield result, response if block_given?
|
1807
|
+
result
|
1808
|
+
end
|
1809
|
+
|
1810
|
+
##
|
1811
|
+
# GRPC transcoding helper method for the suspend REST call
|
1812
|
+
#
|
1813
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SuspendInstanceRequest]
|
1814
|
+
# A request object representing the call parameters. Required.
|
1815
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1816
|
+
# Uri, Body, Query string parameters
|
1817
|
+
def transcode_suspend_request request_pb
|
1818
|
+
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/instances/#{request_pb.instance}/suspend"
|
1819
|
+
body = nil
|
1820
|
+
query_string_params = {}
|
1821
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
1822
|
+
|
1823
|
+
[uri, body, query_string_params]
|
1824
|
+
end
|
1825
|
+
|
1692
1826
|
##
|
1693
1827
|
# Baseline implementation for the test_iam_permissions REST call
|
1694
1828
|
#
|
@@ -167,23 +167,13 @@ module Google
|
|
167
167
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
168
168
|
#
|
169
169
|
# @param filter [::String]
|
170
|
-
# A filter expression that filters resources listed in the response. The expression must specify the field name,
|
171
|
-
#
|
172
|
-
# For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
|
173
|
-
#
|
174
|
-
# You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.
|
175
|
-
#
|
176
|
-
# To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
170
|
+
# A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
177
171
|
# @param include_all_scopes [::Boolean]
|
178
172
|
# Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
|
179
173
|
# @param max_results [::Integer]
|
180
174
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
181
175
|
# @param order_by [::String]
|
182
|
-
# Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
|
183
|
-
#
|
184
|
-
# You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.
|
185
|
-
#
|
186
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
176
|
+
# Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
187
177
|
# @param page_token [::String]
|
188
178
|
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
|
189
179
|
# @param project [::String]
|
@@ -257,11 +247,7 @@ module Google
|
|
257
247
|
# @param region [::String]
|
258
248
|
# Name of the region for this request.
|
259
249
|
# @param request_id [::String]
|
260
|
-
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
|
261
|
-
#
|
262
|
-
# For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
|
263
|
-
#
|
264
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
250
|
+
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
265
251
|
# @yield [result, response] Access the result along with the Faraday response object
|
266
252
|
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
267
253
|
# @yieldparam response [::Faraday::Response]
|
@@ -394,11 +380,7 @@ module Google
|
|
394
380
|
# @param region [::String]
|
395
381
|
# Name of the region for this request.
|
396
382
|
# @param request_id [::String]
|
397
|
-
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
|
398
|
-
#
|
399
|
-
# For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
|
400
|
-
#
|
401
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
383
|
+
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
402
384
|
# @param validate_only [::Boolean]
|
403
385
|
# If true, the request will not be committed.
|
404
386
|
# @yield [result, response] Access the result along with the Faraday response object
|
@@ -462,21 +444,11 @@ module Google
|
|
462
444
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
463
445
|
#
|
464
446
|
# @param filter [::String]
|
465
|
-
# A filter expression that filters resources listed in the response. The expression must specify the field name,
|
466
|
-
#
|
467
|
-
# For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
|
468
|
-
#
|
469
|
-
# You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.
|
470
|
-
#
|
471
|
-
# To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
447
|
+
# A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
472
448
|
# @param max_results [::Integer]
|
473
449
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
474
450
|
# @param order_by [::String]
|
475
|
-
# Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
|
476
|
-
#
|
477
|
-
# You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.
|
478
|
-
#
|
479
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
451
|
+
# Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
480
452
|
# @param page_token [::String]
|
481
453
|
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
|
482
454
|
# @param project [::String]
|
@@ -554,11 +526,7 @@ module Google
|
|
554
526
|
# @param region [::String]
|
555
527
|
# Name of the region scoping this request.
|
556
528
|
# @param request_id [::String]
|
557
|
-
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
|
558
|
-
#
|
559
|
-
# For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
|
560
|
-
#
|
561
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
529
|
+
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
562
530
|
# @yield [result, response] Access the result along with the Faraday response object
|
563
531
|
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
564
532
|
# @yieldparam response [::Faraday::Response]
|
@@ -219,21 +219,11 @@ module Google
|
|
219
219
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
220
220
|
#
|
221
221
|
# @param filter [::String]
|
222
|
-
# A filter expression that filters resources listed in the response. The expression must specify the field name,
|
223
|
-
#
|
224
|
-
# For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
|
225
|
-
#
|
226
|
-
# You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.
|
227
|
-
#
|
228
|
-
# To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
222
|
+
# A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
229
223
|
# @param max_results [::Integer]
|
230
224
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
231
225
|
# @param order_by [::String]
|
232
|
-
# Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
|
233
|
-
#
|
234
|
-
# You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.
|
235
|
-
#
|
236
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
226
|
+
# Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
237
227
|
# @param page_token [::String]
|
238
228
|
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
|
239
229
|
# @param project [::String]
|
@@ -171,11 +171,7 @@ module Google
|
|
171
171
|
# @param project [::String]
|
172
172
|
# Project ID for this request.
|
173
173
|
# @param request_id [::String]
|
174
|
-
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
|
175
|
-
#
|
176
|
-
# For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
|
177
|
-
#
|
178
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
174
|
+
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
179
175
|
# @yield [result, response] Access the result along with the Faraday response object
|
180
176
|
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
181
177
|
# @yieldparam response [::Faraday::Response]
|
@@ -367,11 +363,7 @@ module Google
|
|
367
363
|
# @param project [::String]
|
368
364
|
# Project ID for this request.
|
369
365
|
# @param request_id [::String]
|
370
|
-
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
|
371
|
-
#
|
372
|
-
# For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
|
373
|
-
#
|
374
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
366
|
+
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
375
367
|
# @yield [result, response] Access the result along with the Faraday response object
|
376
368
|
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
377
369
|
# @yieldparam response [::Faraday::Response]
|
@@ -433,21 +425,11 @@ module Google
|
|
433
425
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
434
426
|
#
|
435
427
|
# @param filter [::String]
|
436
|
-
# A filter expression that filters resources listed in the response. The expression must specify the field name,
|
437
|
-
#
|
438
|
-
# For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
|
439
|
-
#
|
440
|
-
# You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.
|
441
|
-
#
|
442
|
-
# To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
428
|
+
# A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
443
429
|
# @param max_results [::Integer]
|
444
430
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
445
431
|
# @param order_by [::String]
|
446
|
-
# Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
|
447
|
-
#
|
448
|
-
# You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.
|
449
|
-
#
|
450
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
432
|
+
# Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
451
433
|
# @param page_token [::String]
|
452
434
|
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
|
453
435
|
# @param project [::String]
|
@@ -521,11 +503,7 @@ module Google
|
|
521
503
|
# @param project [::String]
|
522
504
|
# Project ID for this request.
|
523
505
|
# @param request_id [::String]
|
524
|
-
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
|
525
|
-
#
|
526
|
-
# For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
|
527
|
-
#
|
528
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
506
|
+
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
529
507
|
# @yield [result, response] Access the result along with the Faraday response object
|
530
508
|
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
531
509
|
# @yieldparam response [::Faraday::Response]
|
@@ -133,7 +133,7 @@ module Google
|
|
133
133
|
# Service calls
|
134
134
|
|
135
135
|
##
|
136
|
-
# Return a specified license code. License codes are mirrored across all projects that have permissions to read the License Code.
|
136
|
+
# Return a specified license code. License codes are mirrored across all projects that have permissions to read the License Code. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
|
137
137
|
#
|
138
138
|
# @overload get(request, options = nil)
|
139
139
|
# Pass arguments to `get` via a request object, either of type
|
@@ -196,7 +196,7 @@ module Google
|
|
196
196
|
end
|
197
197
|
|
198
198
|
##
|
199
|
-
# Returns permissions that a caller has on the specified resource.
|
199
|
+
# Returns permissions that a caller has on the specified resource. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
|
200
200
|
#
|
201
201
|
# @overload test_iam_permissions(request, options = nil)
|
202
202
|
# Pass arguments to `test_iam_permissions` via a request object, either of type
|
@@ -149,7 +149,7 @@ module Google
|
|
149
149
|
# Service calls
|
150
150
|
|
151
151
|
##
|
152
|
-
# Deletes the specified license.
|
152
|
+
# Deletes the specified license. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
|
153
153
|
#
|
154
154
|
# @overload delete(request, options = nil)
|
155
155
|
# Pass arguments to `delete` via a request object, either of type
|
@@ -173,11 +173,7 @@ module Google
|
|
173
173
|
# @param project [::String]
|
174
174
|
# Project ID for this request.
|
175
175
|
# @param request_id [::String]
|
176
|
-
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
|
177
|
-
#
|
178
|
-
# For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
|
179
|
-
#
|
180
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
176
|
+
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
181
177
|
# @yield [result, response] Access the result along with the Faraday response object
|
182
178
|
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
183
179
|
# @yieldparam response [::Faraday::Response]
|
@@ -219,7 +215,7 @@ module Google
|
|
219
215
|
end
|
220
216
|
|
221
217
|
##
|
222
|
-
# Returns the specified License resource.
|
218
|
+
# Returns the specified License resource. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
|
223
219
|
#
|
224
220
|
# @overload get(request, options = nil)
|
225
221
|
# Pass arguments to `get` via a request object, either of type
|
@@ -282,7 +278,7 @@ module Google
|
|
282
278
|
end
|
283
279
|
|
284
280
|
##
|
285
|
-
# Gets the access control policy for a resource. May be empty if no such policy or resource exists.
|
281
|
+
# Gets the access control policy for a resource. May be empty if no such policy or resource exists. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
|
286
282
|
#
|
287
283
|
# @overload get_iam_policy(request, options = nil)
|
288
284
|
# Pass arguments to `get_iam_policy` via a request object, either of type
|
@@ -347,7 +343,7 @@ module Google
|
|
347
343
|
end
|
348
344
|
|
349
345
|
##
|
350
|
-
# Create a License resource in the specified project.
|
346
|
+
# Create a License resource in the specified project. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
|
351
347
|
#
|
352
348
|
# @overload insert(request, options = nil)
|
353
349
|
# Pass arguments to `insert` via a request object, either of type
|
@@ -371,11 +367,7 @@ module Google
|
|
371
367
|
# @param project [::String]
|
372
368
|
# Project ID for this request.
|
373
369
|
# @param request_id [::String]
|
374
|
-
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
|
375
|
-
#
|
376
|
-
# For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
|
377
|
-
#
|
378
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
370
|
+
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
379
371
|
# @yield [result, response] Access the result along with the Faraday response object
|
380
372
|
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
381
373
|
# @yieldparam response [::Faraday::Response]
|
@@ -417,7 +409,7 @@ module Google
|
|
417
409
|
end
|
418
410
|
|
419
411
|
##
|
420
|
-
# Retrieves the list of licenses available in the specified project. This method does not get any licenses that belong to other projects, including licenses attached to publicly-available images, like Debian 9. If you want to get a list of publicly-available licenses, use this method to make a request to the respective image project, such as debian-cloud or windows-cloud.
|
412
|
+
# Retrieves the list of licenses available in the specified project. This method does not get any licenses that belong to other projects, including licenses attached to publicly-available images, like Debian 9. If you want to get a list of publicly-available licenses, use this method to make a request to the respective image project, such as debian-cloud or windows-cloud. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
|
421
413
|
#
|
422
414
|
# @overload list(request, options = nil)
|
423
415
|
# Pass arguments to `list` via a request object, either of type
|
@@ -437,21 +429,11 @@ module Google
|
|
437
429
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
438
430
|
#
|
439
431
|
# @param filter [::String]
|
440
|
-
# A filter expression that filters resources listed in the response. The expression must specify the field name,
|
441
|
-
#
|
442
|
-
# For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
|
443
|
-
#
|
444
|
-
# You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.
|
445
|
-
#
|
446
|
-
# To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
432
|
+
# A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
447
433
|
# @param max_results [::Integer]
|
448
434
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
449
435
|
# @param order_by [::String]
|
450
|
-
# Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
|
451
|
-
#
|
452
|
-
# You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.
|
453
|
-
#
|
454
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
436
|
+
# Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
455
437
|
# @param page_token [::String]
|
456
438
|
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
|
457
439
|
# @param project [::String]
|
@@ -499,7 +481,7 @@ module Google
|
|
499
481
|
end
|
500
482
|
|
501
483
|
##
|
502
|
-
# Sets the access control policy on the specified resource. Replaces any existing policy.
|
484
|
+
# Sets the access control policy on the specified resource. Replaces any existing policy. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
|
503
485
|
#
|
504
486
|
# @overload set_iam_policy(request, options = nil)
|
505
487
|
# Pass arguments to `set_iam_policy` via a request object, either of type
|
@@ -564,7 +546,7 @@ module Google
|
|
564
546
|
end
|
565
547
|
|
566
548
|
##
|
567
|
-
# Returns permissions that a caller has on the specified resource.
|
549
|
+
# Returns permissions that a caller has on the specified resource. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
|
568
550
|
#
|
569
551
|
# @overload test_iam_permissions(request, options = nil)
|
570
552
|
# Pass arguments to `test_iam_permissions` via a request object, either of type
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "googleauth"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module Compute
|
24
|
+
module V1
|
25
|
+
module MachineImages
|
26
|
+
# Credentials for the MachineImages API.
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
28
|
+
self.scope = [
|
29
|
+
"https://www.googleapis.com/auth/compute",
|
30
|
+
"https://www.googleapis.com/auth/cloud-platform"
|
31
|
+
]
|
32
|
+
self.env_vars = [
|
33
|
+
"COMPUTE_CREDENTIALS",
|
34
|
+
"COMPUTE_KEYFILE",
|
35
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
36
|
+
"GOOGLE_CLOUD_KEYFILE",
|
37
|
+
"GCLOUD_KEYFILE",
|
38
|
+
"COMPUTE_CREDENTIALS_JSON",
|
39
|
+
"COMPUTE_KEYFILE_JSON",
|
40
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
41
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
42
|
+
"GCLOUD_KEYFILE_JSON"
|
43
|
+
]
|
44
|
+
self.paths = [
|
45
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
46
|
+
]
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|