google-cloud-compute-v1 2.0.0 → 2.2.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/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +3 -3
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +6 -6
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +9 -9
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +14 -14
- data/lib/google/cloud/compute/v1/compute_pb.rb +42 -10746
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +3 -3
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +98 -5
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +75 -13
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +6 -6
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +8 -6
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +18 -18
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +6 -6
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +8 -8
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +3 -3
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/images/rest/client.rb +9 -7
- data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +11 -11
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +20 -20
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +9 -9
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +97 -8
- data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +66 -7
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +95 -5
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +107 -45
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +2 -2
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +2 -2
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +3 -3
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/network_attachments/rest/service_stub.rb +8 -8
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +9 -9
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +16 -16
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +11 -11
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +94 -4
- data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +75 -13
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +8 -8
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +3 -3
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +13 -13
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +6 -6
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +6 -6
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +9 -9
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +2 -2
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +97 -4
- data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +74 -12
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +6 -6
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +19 -19
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +4 -4
- data/lib/google/cloud/compute/v1/region_instance_templates/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +626 -0
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/service_stub.rb +291 -0
- data/lib/google/cloud/compute/v1/region_instance_templates/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_instance_templates.rb +47 -0
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +4 -4
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +17 -17
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +4 -4
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +4 -4
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +4 -4
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +6 -6
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +4 -4
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +2 -2
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +10 -10
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +8 -8
- data/lib/google/cloud/compute/v1/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +10 -10
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +4 -4
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +12 -12
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +9 -9
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +8 -8
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +12 -12
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +11 -11
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +11 -11
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +9 -9
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +6 -6
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +9 -9
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +8 -8
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +6 -6
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +6 -4
- data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +4 -4
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +7 -5
- data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +2 -2
- data/lib/google/cloud/compute/v1.rb +1 -0
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/cloud/compute/v1/compute.rb +414 -29
- metadata +9 -4
|
@@ -132,7 +132,7 @@ module Google
|
|
|
132
132
|
credentials = @config.credentials
|
|
133
133
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
134
134
|
# but only if the default endpoint does not have a region prefix.
|
|
135
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
135
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
136
136
|
!@config.endpoint.split(".").first.include?("-")
|
|
137
137
|
credentials ||= Credentials.default scope: @config.scope,
|
|
138
138
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -224,7 +224,7 @@ module Google
|
|
|
224
224
|
end
|
|
225
225
|
|
|
226
226
|
##
|
|
227
|
-
# Returns the specified disk type.
|
|
227
|
+
# Returns the specified disk type.
|
|
228
228
|
#
|
|
229
229
|
# @overload get(request, options = nil)
|
|
230
230
|
# Pass arguments to `get` via a request object, either of type
|
|
@@ -402,9 +402,9 @@ module Google
|
|
|
402
402
|
# * (`String`) The path to a service account key file in JSON format
|
|
403
403
|
# * (`Hash`) A service account key as a Hash
|
|
404
404
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
405
|
-
# (see the [googleauth docs](https://
|
|
405
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
406
406
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
407
|
-
# (see the [signet docs](https://
|
|
407
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
408
408
|
# * (`nil`) indicating no credentials
|
|
409
409
|
# @return [::Object]
|
|
410
410
|
# @!attribute [rw] scope
|
|
@@ -437,7 +437,9 @@ module Google
|
|
|
437
437
|
class Configuration
|
|
438
438
|
extend ::Gapic::Config
|
|
439
439
|
|
|
440
|
-
|
|
440
|
+
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
|
441
|
+
|
|
442
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
441
443
|
config_attr :credentials, nil do |value|
|
|
442
444
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
443
445
|
allowed.any? { |klass| klass === value }
|
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_aggregated_list_request request_pb
|
|
61
61
|
query_string_params = if query_string_params.any?
|
|
62
|
-
query_string_params.to_h { |p| p.split
|
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
63
63
|
else
|
|
64
64
|
{}
|
|
65
65
|
end
|
|
@@ -97,7 +97,7 @@ module Google
|
|
|
97
97
|
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_request request_pb
|
|
99
99
|
query_string_params = if query_string_params.any?
|
|
100
|
-
query_string_params.to_h { |p| p.split
|
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
101
101
|
else
|
|
102
102
|
{}
|
|
103
103
|
end
|
|
@@ -135,7 +135,7 @@ module Google
|
|
|
135
135
|
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_request request_pb
|
|
137
137
|
query_string_params = if query_string_params.any?
|
|
138
|
-
query_string_params.to_h { |p| p.split
|
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
139
139
|
else
|
|
140
140
|
{}
|
|
141
141
|
end
|
|
@@ -103,6 +103,8 @@ module Google
|
|
|
103
103
|
|
|
104
104
|
default_config.rpcs.test_iam_permissions.timeout = 600.0
|
|
105
105
|
|
|
106
|
+
default_config.rpcs.update.timeout = 600.0
|
|
107
|
+
|
|
106
108
|
default_config
|
|
107
109
|
end
|
|
108
110
|
yield @configure if block_given?
|
|
@@ -156,7 +158,7 @@ module Google
|
|
|
156
158
|
credentials = @config.credentials
|
|
157
159
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
158
160
|
# but only if the default endpoint does not have a region prefix.
|
|
159
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
161
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
160
162
|
!@config.endpoint.split(".").first.include?("-")
|
|
161
163
|
credentials ||= Credentials.default scope: @config.scope,
|
|
162
164
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -498,7 +500,7 @@ module Google
|
|
|
498
500
|
end
|
|
499
501
|
|
|
500
502
|
##
|
|
501
|
-
# Returns
|
|
503
|
+
# Returns the specified persistent disk.
|
|
502
504
|
#
|
|
503
505
|
# @overload get(request, options = nil)
|
|
504
506
|
# Pass arguments to `get` via a request object, either of type
|
|
@@ -1158,6 +1160,88 @@ module Google
|
|
|
1158
1160
|
raise ::Google::Cloud::Error.from_error(e)
|
|
1159
1161
|
end
|
|
1160
1162
|
|
|
1163
|
+
##
|
|
1164
|
+
# Updates the specified disk with the data included in the request. The update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license.
|
|
1165
|
+
#
|
|
1166
|
+
# @overload update(request, options = nil)
|
|
1167
|
+
# Pass arguments to `update` via a request object, either of type
|
|
1168
|
+
# {::Google::Cloud::Compute::V1::UpdateDiskRequest} or an equivalent Hash.
|
|
1169
|
+
#
|
|
1170
|
+
# @param request [::Google::Cloud::Compute::V1::UpdateDiskRequest, ::Hash]
|
|
1171
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1172
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1173
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1174
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1175
|
+
#
|
|
1176
|
+
# @overload update(disk: nil, disk_resource: nil, paths: nil, project: nil, request_id: nil, update_mask: nil, zone: nil)
|
|
1177
|
+
# Pass arguments to `update` via keyword arguments. Note that at
|
|
1178
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1179
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1180
|
+
#
|
|
1181
|
+
# @param disk [::String]
|
|
1182
|
+
# The disk name for this request.
|
|
1183
|
+
# @param disk_resource [::Google::Cloud::Compute::V1::Disk, ::Hash]
|
|
1184
|
+
# The body resource for this request
|
|
1185
|
+
# @param paths [::String]
|
|
1186
|
+
# @param project [::String]
|
|
1187
|
+
# Project ID for this request.
|
|
1188
|
+
# @param request_id [::String]
|
|
1189
|
+
# 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).
|
|
1190
|
+
# @param update_mask [::String]
|
|
1191
|
+
# update_mask indicates fields to be updated as part of this request.
|
|
1192
|
+
# @param zone [::String]
|
|
1193
|
+
# The name of the zone for this request.
|
|
1194
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1195
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
|
1196
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1197
|
+
#
|
|
1198
|
+
# @return [::Gapic::GenericLRO::Operation]
|
|
1199
|
+
#
|
|
1200
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1201
|
+
def update request, options = nil
|
|
1202
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1203
|
+
|
|
1204
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::UpdateDiskRequest
|
|
1205
|
+
|
|
1206
|
+
# Converts hash and nil to an options object
|
|
1207
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1208
|
+
|
|
1209
|
+
# Customize the options with defaults
|
|
1210
|
+
call_metadata = @config.rpcs.update.metadata.to_h
|
|
1211
|
+
|
|
1212
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
|
1213
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1214
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1215
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
1216
|
+
transports_version_send: [:rest]
|
|
1217
|
+
|
|
1218
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1219
|
+
|
|
1220
|
+
options.apply_defaults timeout: @config.rpcs.update.timeout,
|
|
1221
|
+
metadata: call_metadata,
|
|
1222
|
+
retry_policy: @config.rpcs.update.retry_policy
|
|
1223
|
+
|
|
1224
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1225
|
+
metadata: @config.metadata,
|
|
1226
|
+
retry_policy: @config.retry_policy
|
|
1227
|
+
|
|
1228
|
+
@disks_stub.update request, options do |result, response|
|
|
1229
|
+
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
|
1230
|
+
operation: result,
|
|
1231
|
+
client: zone_operations,
|
|
1232
|
+
request_values: {
|
|
1233
|
+
"project" => request.project,
|
|
1234
|
+
"zone" => request.zone
|
|
1235
|
+
},
|
|
1236
|
+
options: options
|
|
1237
|
+
)
|
|
1238
|
+
yield result, response if block_given?
|
|
1239
|
+
return result
|
|
1240
|
+
end
|
|
1241
|
+
rescue ::Gapic::Rest::Error => e
|
|
1242
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1243
|
+
end
|
|
1244
|
+
|
|
1161
1245
|
##
|
|
1162
1246
|
# Configuration class for the Disks REST API.
|
|
1163
1247
|
#
|
|
@@ -1196,9 +1280,9 @@ module Google
|
|
|
1196
1280
|
# * (`String`) The path to a service account key file in JSON format
|
|
1197
1281
|
# * (`Hash`) A service account key as a Hash
|
|
1198
1282
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
1199
|
-
# (see the [googleauth docs](https://
|
|
1283
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
1200
1284
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
1201
|
-
# (see the [signet docs](https://
|
|
1285
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
1202
1286
|
# * (`nil`) indicating no credentials
|
|
1203
1287
|
# @return [::Object]
|
|
1204
1288
|
# @!attribute [rw] scope
|
|
@@ -1231,7 +1315,9 @@ module Google
|
|
|
1231
1315
|
class Configuration
|
|
1232
1316
|
extend ::Gapic::Config
|
|
1233
1317
|
|
|
1234
|
-
|
|
1318
|
+
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
|
1319
|
+
|
|
1320
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
1235
1321
|
config_attr :credentials, nil do |value|
|
|
1236
1322
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
1237
1323
|
allowed.any? { |klass| klass === value }
|
|
@@ -1346,6 +1432,11 @@ module Google
|
|
|
1346
1432
|
# @return [::Gapic::Config::Method]
|
|
1347
1433
|
#
|
|
1348
1434
|
attr_reader :test_iam_permissions
|
|
1435
|
+
##
|
|
1436
|
+
# RPC-specific configuration for `update`
|
|
1437
|
+
# @return [::Gapic::Config::Method]
|
|
1438
|
+
#
|
|
1439
|
+
attr_reader :update
|
|
1349
1440
|
|
|
1350
1441
|
# @private
|
|
1351
1442
|
def initialize parent_rpcs = nil
|
|
@@ -1375,6 +1466,8 @@ module Google
|
|
|
1375
1466
|
@set_labels = ::Gapic::Config::Method.new set_labels_config
|
|
1376
1467
|
test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
|
|
1377
1468
|
@test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
|
|
1469
|
+
update_config = parent_rpcs.update if parent_rpcs.respond_to? :update
|
|
1470
|
+
@update = ::Gapic::Config::Method.new update_config
|
|
1378
1471
|
|
|
1379
1472
|
yield self if block_given?
|
|
1380
1473
|
end
|
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_add_resource_policies_request request_pb
|
|
61
61
|
query_string_params = if query_string_params.any?
|
|
62
|
-
query_string_params.to_h { |p| p.split
|
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
63
63
|
else
|
|
64
64
|
{}
|
|
65
65
|
end
|
|
@@ -97,7 +97,7 @@ module Google
|
|
|
97
97
|
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_aggregated_list_request request_pb
|
|
99
99
|
query_string_params = if query_string_params.any?
|
|
100
|
-
query_string_params.to_h { |p| p.split
|
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
101
101
|
else
|
|
102
102
|
{}
|
|
103
103
|
end
|
|
@@ -135,7 +135,7 @@ module Google
|
|
|
135
135
|
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_snapshot_request request_pb
|
|
137
137
|
query_string_params = if query_string_params.any?
|
|
138
|
-
query_string_params.to_h { |p| p.split
|
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
139
139
|
else
|
|
140
140
|
{}
|
|
141
141
|
end
|
|
@@ -173,7 +173,7 @@ module Google
|
|
|
173
173
|
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_request request_pb
|
|
175
175
|
query_string_params = if query_string_params.any?
|
|
176
|
-
query_string_params.to_h { |p| p.split
|
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
177
177
|
else
|
|
178
178
|
{}
|
|
179
179
|
end
|
|
@@ -211,7 +211,7 @@ module Google
|
|
|
211
211
|
|
|
212
212
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_request request_pb
|
|
213
213
|
query_string_params = if query_string_params.any?
|
|
214
|
-
query_string_params.to_h { |p| p.split
|
|
214
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
215
215
|
else
|
|
216
216
|
{}
|
|
217
217
|
end
|
|
@@ -249,7 +249,7 @@ module Google
|
|
|
249
249
|
|
|
250
250
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_iam_policy_request request_pb
|
|
251
251
|
query_string_params = if query_string_params.any?
|
|
252
|
-
query_string_params.to_h { |p| p.split
|
|
252
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
253
253
|
else
|
|
254
254
|
{}
|
|
255
255
|
end
|
|
@@ -287,7 +287,7 @@ module Google
|
|
|
287
287
|
|
|
288
288
|
verb, uri, query_string_params, body = ServiceStub.transcode_insert_request request_pb
|
|
289
289
|
query_string_params = if query_string_params.any?
|
|
290
|
-
query_string_params.to_h { |p| p.split
|
|
290
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
291
291
|
else
|
|
292
292
|
{}
|
|
293
293
|
end
|
|
@@ -325,7 +325,7 @@ module Google
|
|
|
325
325
|
|
|
326
326
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_request request_pb
|
|
327
327
|
query_string_params = if query_string_params.any?
|
|
328
|
-
query_string_params.to_h { |p| p.split
|
|
328
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
329
329
|
else
|
|
330
330
|
{}
|
|
331
331
|
end
|
|
@@ -363,7 +363,7 @@ module Google
|
|
|
363
363
|
|
|
364
364
|
verb, uri, query_string_params, body = ServiceStub.transcode_remove_resource_policies_request request_pb
|
|
365
365
|
query_string_params = if query_string_params.any?
|
|
366
|
-
query_string_params.to_h { |p| p.split
|
|
366
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
367
367
|
else
|
|
368
368
|
{}
|
|
369
369
|
end
|
|
@@ -401,7 +401,7 @@ module Google
|
|
|
401
401
|
|
|
402
402
|
verb, uri, query_string_params, body = ServiceStub.transcode_resize_request request_pb
|
|
403
403
|
query_string_params = if query_string_params.any?
|
|
404
|
-
query_string_params.to_h { |p| p.split
|
|
404
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
405
405
|
else
|
|
406
406
|
{}
|
|
407
407
|
end
|
|
@@ -439,7 +439,7 @@ module Google
|
|
|
439
439
|
|
|
440
440
|
verb, uri, query_string_params, body = ServiceStub.transcode_set_iam_policy_request request_pb
|
|
441
441
|
query_string_params = if query_string_params.any?
|
|
442
|
-
query_string_params.to_h { |p| p.split
|
|
442
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
443
443
|
else
|
|
444
444
|
{}
|
|
445
445
|
end
|
|
@@ -477,7 +477,7 @@ module Google
|
|
|
477
477
|
|
|
478
478
|
verb, uri, query_string_params, body = ServiceStub.transcode_set_labels_request request_pb
|
|
479
479
|
query_string_params = if query_string_params.any?
|
|
480
|
-
query_string_params.to_h { |p| p.split
|
|
480
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
481
481
|
else
|
|
482
482
|
{}
|
|
483
483
|
end
|
|
@@ -515,7 +515,7 @@ module Google
|
|
|
515
515
|
|
|
516
516
|
verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
|
|
517
517
|
query_string_params = if query_string_params.any?
|
|
518
|
-
query_string_params.to_h { |p| p.split
|
|
518
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
519
519
|
else
|
|
520
520
|
{}
|
|
521
521
|
end
|
|
@@ -534,6 +534,44 @@ module Google
|
|
|
534
534
|
result
|
|
535
535
|
end
|
|
536
536
|
|
|
537
|
+
##
|
|
538
|
+
# Baseline implementation for the update REST call
|
|
539
|
+
#
|
|
540
|
+
# @param request_pb [::Google::Cloud::Compute::V1::UpdateDiskRequest]
|
|
541
|
+
# A request object representing the call parameters. Required.
|
|
542
|
+
# @param options [::Gapic::CallOptions]
|
|
543
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
544
|
+
#
|
|
545
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
546
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
|
547
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
548
|
+
#
|
|
549
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
|
550
|
+
# A result object deserialized from the server's reply
|
|
551
|
+
def update request_pb, options = nil
|
|
552
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
553
|
+
|
|
554
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_request request_pb
|
|
555
|
+
query_string_params = if query_string_params.any?
|
|
556
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
557
|
+
else
|
|
558
|
+
{}
|
|
559
|
+
end
|
|
560
|
+
|
|
561
|
+
response = @client_stub.make_http_request(
|
|
562
|
+
verb,
|
|
563
|
+
uri: uri,
|
|
564
|
+
body: body || "",
|
|
565
|
+
params: query_string_params,
|
|
566
|
+
options: options
|
|
567
|
+
)
|
|
568
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
569
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
570
|
+
|
|
571
|
+
yield result, operation if block_given?
|
|
572
|
+
result
|
|
573
|
+
end
|
|
574
|
+
|
|
537
575
|
##
|
|
538
576
|
# @private
|
|
539
577
|
#
|
|
@@ -836,6 +874,30 @@ module Google
|
|
|
836
874
|
)
|
|
837
875
|
transcoder.transcode request_pb
|
|
838
876
|
end
|
|
877
|
+
|
|
878
|
+
##
|
|
879
|
+
# @private
|
|
880
|
+
#
|
|
881
|
+
# GRPC transcoding helper method for the update REST call
|
|
882
|
+
#
|
|
883
|
+
# @param request_pb [::Google::Cloud::Compute::V1::UpdateDiskRequest]
|
|
884
|
+
# A request object representing the call parameters. Required.
|
|
885
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
886
|
+
# Uri, Body, Query string parameters
|
|
887
|
+
def self.transcode_update_request request_pb
|
|
888
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
889
|
+
.with_bindings(
|
|
890
|
+
uri_method: :patch,
|
|
891
|
+
uri_template: "/compute/v1/projects/{project}/zones/{zone}/disks/{disk}",
|
|
892
|
+
body: "disk_resource",
|
|
893
|
+
matches: [
|
|
894
|
+
["project", %r{^[^/]+/?$}, false],
|
|
895
|
+
["zone", %r{^[^/]+/?$}, false],
|
|
896
|
+
["disk", %r{^[^/]+/?$}, false]
|
|
897
|
+
]
|
|
898
|
+
)
|
|
899
|
+
transcoder.transcode request_pb
|
|
900
|
+
end
|
|
839
901
|
end
|
|
840
902
|
end
|
|
841
903
|
end
|
|
@@ -136,7 +136,7 @@ module Google
|
|
|
136
136
|
credentials = @config.credentials
|
|
137
137
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
138
138
|
# but only if the default endpoint does not have a region prefix.
|
|
139
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
139
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
140
140
|
!@config.endpoint.split(".").first.include?("-")
|
|
141
141
|
credentials ||= Credentials.default scope: @config.scope,
|
|
142
142
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -628,9 +628,9 @@ module Google
|
|
|
628
628
|
# * (`String`) The path to a service account key file in JSON format
|
|
629
629
|
# * (`Hash`) A service account key as a Hash
|
|
630
630
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
631
|
-
# (see the [googleauth docs](https://
|
|
631
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
632
632
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
633
|
-
# (see the [signet docs](https://
|
|
633
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
634
634
|
# * (`nil`) indicating no credentials
|
|
635
635
|
# @return [::Object]
|
|
636
636
|
# @!attribute [rw] scope
|
|
@@ -663,7 +663,9 @@ module Google
|
|
|
663
663
|
class Configuration
|
|
664
664
|
extend ::Gapic::Config
|
|
665
665
|
|
|
666
|
-
|
|
666
|
+
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
|
667
|
+
|
|
668
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
667
669
|
config_attr :credentials, nil do |value|
|
|
668
670
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
669
671
|
allowed.any? { |klass| klass === value }
|
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_request request_pb
|
|
61
61
|
query_string_params = if query_string_params.any?
|
|
62
|
-
query_string_params.to_h { |p| p.split
|
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
63
63
|
else
|
|
64
64
|
{}
|
|
65
65
|
end
|
|
@@ -97,7 +97,7 @@ module Google
|
|
|
97
97
|
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_request request_pb
|
|
99
99
|
query_string_params = if query_string_params.any?
|
|
100
|
-
query_string_params.to_h { |p| p.split
|
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
101
101
|
else
|
|
102
102
|
{}
|
|
103
103
|
end
|
|
@@ -135,7 +135,7 @@ module Google
|
|
|
135
135
|
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_insert_request request_pb
|
|
137
137
|
query_string_params = if query_string_params.any?
|
|
138
|
-
query_string_params.to_h { |p| p.split
|
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
139
139
|
else
|
|
140
140
|
{}
|
|
141
141
|
end
|
|
@@ -173,7 +173,7 @@ module Google
|
|
|
173
173
|
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_request request_pb
|
|
175
175
|
query_string_params = if query_string_params.any?
|
|
176
|
-
query_string_params.to_h { |p| p.split
|
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
177
177
|
else
|
|
178
178
|
{}
|
|
179
179
|
end
|
|
@@ -211,7 +211,7 @@ module Google
|
|
|
211
211
|
|
|
212
212
|
verb, uri, query_string_params, body = ServiceStub.transcode_set_labels_request request_pb
|
|
213
213
|
query_string_params = if query_string_params.any?
|
|
214
|
-
query_string_params.to_h { |p| p.split
|
|
214
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
215
215
|
else
|
|
216
216
|
{}
|
|
217
217
|
end
|
|
@@ -249,7 +249,7 @@ module Google
|
|
|
249
249
|
|
|
250
250
|
verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
|
|
251
251
|
query_string_params = if query_string_params.any?
|
|
252
|
-
query_string_params.to_h { |p| p.split
|
|
252
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
253
253
|
else
|
|
254
254
|
{}
|
|
255
255
|
end
|
|
@@ -172,7 +172,7 @@ module Google
|
|
|
172
172
|
credentials = @config.credentials
|
|
173
173
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
174
174
|
# but only if the default endpoint does not have a region prefix.
|
|
175
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
175
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
176
176
|
!@config.endpoint.split(".").first.include?("-")
|
|
177
177
|
credentials ||= Credentials.default scope: @config.scope,
|
|
178
178
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -844,7 +844,7 @@ module Google
|
|
|
844
844
|
# @param page_token [::String]
|
|
845
845
|
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
|
|
846
846
|
# @param parent_id [::String]
|
|
847
|
-
# Parent ID for this request.
|
|
847
|
+
# Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization.
|
|
848
848
|
# @param return_partial_success [::Boolean]
|
|
849
849
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
|
850
850
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -973,7 +973,7 @@ module Google
|
|
|
973
973
|
# @param firewall_policy [::String]
|
|
974
974
|
# Name of the firewall policy to update.
|
|
975
975
|
# @param parent_id [::String]
|
|
976
|
-
# The new parent of the firewall policy.
|
|
976
|
+
# The new parent of the firewall policy. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization.
|
|
977
977
|
# @param request_id [::String]
|
|
978
978
|
# 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).
|
|
979
979
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -1482,9 +1482,9 @@ module Google
|
|
|
1482
1482
|
# * (`String`) The path to a service account key file in JSON format
|
|
1483
1483
|
# * (`Hash`) A service account key as a Hash
|
|
1484
1484
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
1485
|
-
# (see the [googleauth docs](https://
|
|
1485
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
1486
1486
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
1487
|
-
# (see the [signet docs](https://
|
|
1487
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
1488
1488
|
# * (`nil`) indicating no credentials
|
|
1489
1489
|
# @return [::Object]
|
|
1490
1490
|
# @!attribute [rw] scope
|
|
@@ -1517,7 +1517,9 @@ module Google
|
|
|
1517
1517
|
class Configuration
|
|
1518
1518
|
extend ::Gapic::Config
|
|
1519
1519
|
|
|
1520
|
-
|
|
1520
|
+
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
|
1521
|
+
|
|
1522
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
1521
1523
|
config_attr :credentials, nil do |value|
|
|
1522
1524
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
1523
1525
|
allowed.any? { |klass| klass === value }
|