google-cloud-compute-v1 2.9.0 → 2.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +4 -4
- data/lib/google/cloud/compute/v1/compute_pb.rb +82 -1
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/images/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +829 -0
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/service_stub.rb +378 -0
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests.rb +47 -0
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +6 -6
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +4 -4
- data/lib/google/cloud/compute/v1/instance_settings_service/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +512 -0
- data/lib/google/cloud/compute/v1/instance_settings_service/rest/service_stub.rb +190 -0
- data/lib/google/cloud/compute/v1/instance_settings_service/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/instance_settings_service.rb +47 -0
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +4 -4
- data/lib/google/cloud/compute/v1/instant_snapshots/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +1208 -0
- data/lib/google/cloud/compute/v1/instant_snapshots/rest/service_stub.rb +618 -0
- data/lib/google/cloud/compute/v1/instant_snapshots/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/instant_snapshots.rb +47 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +4 -4
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +108 -4
- data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +101 -2
- data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +60 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +4 -4
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instant_snapshots/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +1103 -0
- data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/service_stub.rb +559 -0
- data/lib/google/cloud/compute/v1/region_instant_snapshots/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_instant_snapshots.rb +47 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/rest.rb +6 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +4 -4
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +4 -4
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +4 -4
- data/lib/google/cloud/compute/v1/storage_pool_types/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +603 -0
- data/lib/google/cloud/compute/v1/storage_pool_types/rest/service_stub.rb +249 -0
- data/lib/google/cloud/compute/v1/storage_pool_types/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/storage_pool_types.rb +47 -0
- data/lib/google/cloud/compute/v1/storage_pools/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +1313 -0
- data/lib/google/cloud/compute/v1/storage_pools/rest/service_stub.rb +679 -0
- data/lib/google/cloud/compute/v1/storage_pools/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/storage_pools.rb +47 -0
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +4 -4
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1.rb +6 -0
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +2128 -182
- metadata +32 -2
@@ -0,0 +1,190 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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 "google/cloud/compute/v1/compute_pb"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module Compute
|
24
|
+
module V1
|
25
|
+
module InstanceSettingsService
|
26
|
+
module Rest
|
27
|
+
##
|
28
|
+
# REST service stub for the InstanceSettingsService service.
|
29
|
+
# Service stub contains baseline method implementations
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
31
|
+
#
|
32
|
+
class ServiceStub
|
33
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
|
34
|
+
# These require statements are intentionally placed here to initialize
|
35
|
+
# the REST modules only when it's required.
|
36
|
+
require "gapic/rest"
|
37
|
+
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
39
|
+
endpoint_template: endpoint_template,
|
40
|
+
universe_domain: universe_domain,
|
41
|
+
credentials: credentials,
|
42
|
+
numeric_enums: false,
|
43
|
+
raise_faraday_errors: false
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# The effective universe domain
|
48
|
+
#
|
49
|
+
# @return [String]
|
50
|
+
#
|
51
|
+
def universe_domain
|
52
|
+
@client_stub.universe_domain
|
53
|
+
end
|
54
|
+
|
55
|
+
##
|
56
|
+
# The effective endpoint
|
57
|
+
#
|
58
|
+
# @return [String]
|
59
|
+
#
|
60
|
+
def endpoint
|
61
|
+
@client_stub.endpoint
|
62
|
+
end
|
63
|
+
|
64
|
+
##
|
65
|
+
# Baseline implementation for the get REST call
|
66
|
+
#
|
67
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetInstanceSettingRequest]
|
68
|
+
# A request object representing the call parameters. Required.
|
69
|
+
# @param options [::Gapic::CallOptions]
|
70
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
71
|
+
#
|
72
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
73
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::InstanceSettings]
|
74
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
75
|
+
#
|
76
|
+
# @return [::Google::Cloud::Compute::V1::InstanceSettings]
|
77
|
+
# A result object deserialized from the server's reply
|
78
|
+
def get request_pb, options = nil
|
79
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
80
|
+
|
81
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_request request_pb
|
82
|
+
query_string_params = if query_string_params.any?
|
83
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
84
|
+
else
|
85
|
+
{}
|
86
|
+
end
|
87
|
+
|
88
|
+
response = @client_stub.make_http_request(
|
89
|
+
verb,
|
90
|
+
uri: uri,
|
91
|
+
body: body || "",
|
92
|
+
params: query_string_params,
|
93
|
+
options: options
|
94
|
+
)
|
95
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
96
|
+
result = ::Google::Cloud::Compute::V1::InstanceSettings.decode_json response.body, ignore_unknown_fields: true
|
97
|
+
|
98
|
+
yield result, operation if block_given?
|
99
|
+
result
|
100
|
+
end
|
101
|
+
|
102
|
+
##
|
103
|
+
# Baseline implementation for the patch REST call
|
104
|
+
#
|
105
|
+
# @param request_pb [::Google::Cloud::Compute::V1::PatchInstanceSettingRequest]
|
106
|
+
# A request object representing the call parameters. Required.
|
107
|
+
# @param options [::Gapic::CallOptions]
|
108
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
109
|
+
#
|
110
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
111
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
112
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
113
|
+
#
|
114
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
115
|
+
# A result object deserialized from the server's reply
|
116
|
+
def patch request_pb, options = nil
|
117
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
118
|
+
|
119
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_patch_request request_pb
|
120
|
+
query_string_params = if query_string_params.any?
|
121
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
122
|
+
else
|
123
|
+
{}
|
124
|
+
end
|
125
|
+
|
126
|
+
response = @client_stub.make_http_request(
|
127
|
+
verb,
|
128
|
+
uri: uri,
|
129
|
+
body: body || "",
|
130
|
+
params: query_string_params,
|
131
|
+
options: options
|
132
|
+
)
|
133
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
134
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
135
|
+
|
136
|
+
yield result, operation if block_given?
|
137
|
+
result
|
138
|
+
end
|
139
|
+
|
140
|
+
##
|
141
|
+
# @private
|
142
|
+
#
|
143
|
+
# GRPC transcoding helper method for the get REST call
|
144
|
+
#
|
145
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetInstanceSettingRequest]
|
146
|
+
# A request object representing the call parameters. Required.
|
147
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
148
|
+
# Uri, Body, Query string parameters
|
149
|
+
def self.transcode_get_request request_pb
|
150
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
151
|
+
.with_bindings(
|
152
|
+
uri_method: :get,
|
153
|
+
uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceSettings",
|
154
|
+
matches: [
|
155
|
+
["project", %r{^[^/]+/?$}, false],
|
156
|
+
["zone", %r{^[^/]+/?$}, false]
|
157
|
+
]
|
158
|
+
)
|
159
|
+
transcoder.transcode request_pb
|
160
|
+
end
|
161
|
+
|
162
|
+
##
|
163
|
+
# @private
|
164
|
+
#
|
165
|
+
# GRPC transcoding helper method for the patch REST call
|
166
|
+
#
|
167
|
+
# @param request_pb [::Google::Cloud::Compute::V1::PatchInstanceSettingRequest]
|
168
|
+
# A request object representing the call parameters. Required.
|
169
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
170
|
+
# Uri, Body, Query string parameters
|
171
|
+
def self.transcode_patch_request request_pb
|
172
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
173
|
+
.with_bindings(
|
174
|
+
uri_method: :patch,
|
175
|
+
uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceSettings",
|
176
|
+
body: "instance_settings_resource",
|
177
|
+
matches: [
|
178
|
+
["project", %r{^[^/]+/?$}, false],
|
179
|
+
["zone", %r{^[^/]+/?$}, false]
|
180
|
+
]
|
181
|
+
)
|
182
|
+
transcoder.transcode request_pb
|
183
|
+
end
|
184
|
+
end
|
185
|
+
end
|
186
|
+
end
|
187
|
+
end
|
188
|
+
end
|
189
|
+
end
|
190
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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 "gapic/rest"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/compute/v1/version"
|
24
|
+
|
25
|
+
require "google/cloud/compute/v1/instance_settings_service/credentials"
|
26
|
+
require "google/cloud/compute/v1/instance_settings_service/rest/client"
|
27
|
+
|
28
|
+
module Google
|
29
|
+
module Cloud
|
30
|
+
module Compute
|
31
|
+
module V1
|
32
|
+
##
|
33
|
+
# The InstanceSettings API.
|
34
|
+
#
|
35
|
+
# To load this service and instantiate a REST client:
|
36
|
+
#
|
37
|
+
# require "google/cloud/compute/v1/instance_settings_service/rest"
|
38
|
+
# client = ::Google::Cloud::Compute::V1::InstanceSettingsService::Rest::Client.new
|
39
|
+
#
|
40
|
+
module InstanceSettingsService
|
41
|
+
# Client for the REST transport
|
42
|
+
module Rest
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
51
|
+
require "google/cloud/compute/v1/instance_settings_service/rest/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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 "gapic/config"
|
20
|
+
require "gapic/config/method"
|
21
|
+
|
22
|
+
require "google/cloud/compute/v1/version"
|
23
|
+
|
24
|
+
require "google/cloud/compute/v1/instance_settings_service/credentials"
|
25
|
+
require "google/cloud/compute/v1/instance_settings_service/rest"
|
26
|
+
|
27
|
+
module Google
|
28
|
+
module Cloud
|
29
|
+
module Compute
|
30
|
+
module V1
|
31
|
+
##
|
32
|
+
# The InstanceSettings API.
|
33
|
+
#
|
34
|
+
# @example Load this service and instantiate a REST client
|
35
|
+
#
|
36
|
+
# require "google/cloud/compute/v1/instance_settings_service/rest"
|
37
|
+
# client = ::Google::Cloud::Compute::V1::InstanceSettingsService::Rest::Client.new
|
38
|
+
#
|
39
|
+
module InstanceSettingsService
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
helper_path = ::File.join __dir__, "instance_settings_service", "helpers.rb"
|
47
|
+
require "google/cloud/compute/v1/instance_settings_service/helpers" if ::File.file? helper_path
|
@@ -195,7 +195,7 @@ module Google
|
|
195
195
|
# Service calls
|
196
196
|
|
197
197
|
##
|
198
|
-
# Retrieves the list of all InstanceTemplates resources, regional and global, available to the specified project.
|
198
|
+
# Retrieves the list of all InstanceTemplates resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
|
199
199
|
#
|
200
200
|
# @overload aggregated_list(request, options = nil)
|
201
201
|
# Pass arguments to `aggregated_list` via a request object, either of type
|
@@ -225,7 +225,7 @@ module Google
|
|
225
225
|
# @param project [::String]
|
226
226
|
# Name of the project scoping this request.
|
227
227
|
# @param return_partial_success [::Boolean]
|
228
|
-
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
228
|
+
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
|
229
229
|
# @param service_project_number [::Integer]
|
230
230
|
# The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
|
231
231
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
@@ -658,7 +658,7 @@ module Google
|
|
658
658
|
# @param project [::String]
|
659
659
|
# Project ID for this request.
|
660
660
|
# @param return_partial_success [::Boolean]
|
661
|
-
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
661
|
+
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
|
662
662
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
663
663
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InstanceTemplate>]
|
664
664
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -485,7 +485,7 @@ module Google
|
|
485
485
|
end
|
486
486
|
|
487
487
|
##
|
488
|
-
# Retrieves an aggregated list of all of the instances in your project across all regions and zones. The performance of this method degrades when a filter is specified on a project that has a very large number of instances.
|
488
|
+
# Retrieves an aggregated list of all of the instances in your project across all regions and zones. The performance of this method degrades when a filter is specified on a project that has a very large number of instances. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
|
489
489
|
#
|
490
490
|
# @overload aggregated_list(request, options = nil)
|
491
491
|
# Pass arguments to `aggregated_list` via a request object, either of type
|
@@ -515,7 +515,7 @@ module Google
|
|
515
515
|
# @param project [::String]
|
516
516
|
# Project ID for this request.
|
517
517
|
# @param return_partial_success [::Boolean]
|
518
|
-
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
518
|
+
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
|
519
519
|
# @param service_project_number [::Integer]
|
520
520
|
# The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
|
521
521
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
@@ -1764,7 +1764,7 @@ module Google
|
|
1764
1764
|
# @param project [::String]
|
1765
1765
|
# Project ID for this request.
|
1766
1766
|
# @param return_partial_success [::Boolean]
|
1767
|
-
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
1767
|
+
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
|
1768
1768
|
# @param zone [::String]
|
1769
1769
|
# The name of the zone for this request.
|
1770
1770
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
@@ -1857,7 +1857,7 @@ module Google
|
|
1857
1857
|
# @param project [::String]
|
1858
1858
|
# Project ID for this request.
|
1859
1859
|
# @param return_partial_success [::Boolean]
|
1860
|
-
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
1860
|
+
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
|
1861
1861
|
# @param zone [::String]
|
1862
1862
|
# The name of the zone for this request.
|
1863
1863
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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 InstantSnapshots
|
26
|
+
# Credentials for the InstantSnapshots 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
|