google-cloud-compute-v1 2.5.0 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +72 -101
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +37 -10
- data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +38 -10
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +38 -10
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +311 -8
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +196 -2
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +230 -10
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +134 -2
- data/lib/google/cloud/compute/v1/compute_pb.rb +79 -1
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +37 -10
- data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +38 -10
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +35 -8
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +35 -8
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +35 -8
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +38 -10
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +35 -8
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +35 -8
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +36 -9
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +37 -10
- data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +34 -8
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +35 -8
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +38 -10
- data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +33 -7
- data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/images/rest/client.rb +35 -8
- data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +41 -13
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +39 -11
- data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +38 -10
- data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +143 -11
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +76 -2
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +38 -10
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +34 -8
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +34 -8
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +128 -9
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +74 -2
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +33 -7
- data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +35 -8
- data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +35 -8
- data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +37 -10
- data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +142 -10
- data/lib/google/cloud/compute/v1/network_attachments/rest/service_stub.rb +76 -2
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +37 -9
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +39 -11
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +35 -8
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +36 -9
- data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +39 -11
- data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +38 -10
- data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +37 -10
- data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +38 -10
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +36 -9
- data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +236 -11
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +134 -2
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +242 -10
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +136 -2
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +35 -8
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +335 -8
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +198 -2
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +38 -10
- data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +34 -8
- data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +35 -8
- data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +35 -8
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +35 -8
- data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +38 -11
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +36 -9
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +35 -8
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +348 -11
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +199 -2
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +35 -8
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +35 -8
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +34 -8
- data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +451 -12
- data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +260 -2
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +35 -8
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +36 -9
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +35 -8
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +35 -8
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +35 -8
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +35 -8
- data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +34 -8
- data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +38 -10
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +38 -10
- data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +135 -11
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +75 -2
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +35 -8
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +45 -13
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +38 -10
- data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/snapshot_settings_service/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +507 -0
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/service_stub.rb +179 -0
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/snapshot_settings_service.rb +47 -0
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +35 -8
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +38 -10
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +39 -11
- data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +39 -11
- data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +35 -8
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +38 -10
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +38 -10
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +142 -10
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +76 -2
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +142 -10
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +76 -2
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +35 -8
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +38 -10
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +38 -10
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +38 -10
- data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +38 -10
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +38 -10
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +34 -8
- data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +34 -8
- data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1.rb +1 -0
- data/proto_docs/google/api/client.rb +14 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +1654 -196
- data/proto_docs/google/protobuf/any.rb +144 -0
- metadata +11 -5
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# The NetworkAttachments API.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
|
38
|
+
|
36
39
|
# @private
|
37
40
|
attr_reader :network_attachments_stub
|
38
41
|
|
@@ -89,6 +92,8 @@ module Google
|
|
89
92
|
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
90
93
|
}
|
91
94
|
|
95
|
+
default_config.rpcs.patch.timeout = 600.0
|
96
|
+
|
92
97
|
default_config.rpcs.set_iam_policy.timeout = 600.0
|
93
98
|
|
94
99
|
default_config.rpcs.test_iam_permissions.timeout = 600.0
|
@@ -119,6 +124,15 @@ module Google
|
|
119
124
|
@config
|
120
125
|
end
|
121
126
|
|
127
|
+
##
|
128
|
+
# The effective universe domain
|
129
|
+
#
|
130
|
+
# @return [String]
|
131
|
+
#
|
132
|
+
def universe_domain
|
133
|
+
@network_attachments_stub.universe_domain
|
134
|
+
end
|
135
|
+
|
122
136
|
##
|
123
137
|
# Create a new NetworkAttachments REST client object.
|
124
138
|
#
|
@@ -146,8 +160,9 @@ module Google
|
|
146
160
|
credentials = @config.credentials
|
147
161
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
148
162
|
# but only if the default endpoint does not have a region prefix.
|
149
|
-
enable_self_signed_jwt = @config.endpoint
|
150
|
-
|
163
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
164
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
165
|
+
!@config.endpoint.split(".").first.include?("-"))
|
151
166
|
credentials ||= Credentials.default scope: @config.scope,
|
152
167
|
enable_self_signed_jwt: enable_self_signed_jwt
|
153
168
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
@@ -161,9 +176,15 @@ module Google
|
|
161
176
|
config.credentials = credentials
|
162
177
|
config.quota_project = @quota_project_id
|
163
178
|
config.endpoint = @config.endpoint
|
179
|
+
config.universe_domain = @config.universe_domain
|
164
180
|
end
|
165
181
|
|
166
|
-
@network_attachments_stub = ::Google::Cloud::Compute::V1::NetworkAttachments::Rest::ServiceStub.new
|
182
|
+
@network_attachments_stub = ::Google::Cloud::Compute::V1::NetworkAttachments::Rest::ServiceStub.new(
|
183
|
+
endpoint: @config.endpoint,
|
184
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
185
|
+
universe_domain: @config.universe_domain,
|
186
|
+
credentials: credentials
|
187
|
+
)
|
167
188
|
end
|
168
189
|
|
169
190
|
##
|
@@ -188,13 +209,13 @@ module Google
|
|
188
209
|
# @param options [::Gapic::CallOptions, ::Hash]
|
189
210
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
190
211
|
#
|
191
|
-
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
212
|
+
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil, service_project_number: nil)
|
192
213
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
193
214
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
194
215
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
195
216
|
#
|
196
217
|
# @param filter [::String]
|
197
|
-
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your 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
|
218
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your 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 `:*` 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) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
|
198
219
|
# @param include_all_scopes [::Boolean]
|
199
220
|
# 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.
|
200
221
|
# @param max_results [::Integer]
|
@@ -207,6 +228,7 @@ module Google
|
|
207
228
|
# Project ID for this request.
|
208
229
|
# @param return_partial_success [::Boolean]
|
209
230
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
231
|
+
# @param service_project_number [::Integer]
|
210
232
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
211
233
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::NetworkAttachmentsScopedList>]
|
212
234
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -637,7 +659,7 @@ module Google
|
|
637
659
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
638
660
|
#
|
639
661
|
# @param filter [::String]
|
640
|
-
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your 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
|
662
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your 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 `:*` 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) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
|
641
663
|
# @param max_results [::Integer]
|
642
664
|
# 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`)
|
643
665
|
# @param order_by [::String]
|
@@ -709,6 +731,101 @@ module Google
|
|
709
731
|
raise ::Google::Cloud::Error.from_error(e)
|
710
732
|
end
|
711
733
|
|
734
|
+
##
|
735
|
+
# Patches the specified NetworkAttachment resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
|
736
|
+
#
|
737
|
+
# @overload patch(request, options = nil)
|
738
|
+
# Pass arguments to `patch` via a request object, either of type
|
739
|
+
# {::Google::Cloud::Compute::V1::PatchNetworkAttachmentRequest} or an equivalent Hash.
|
740
|
+
#
|
741
|
+
# @param request [::Google::Cloud::Compute::V1::PatchNetworkAttachmentRequest, ::Hash]
|
742
|
+
# A request object representing the call parameters. Required. To specify no
|
743
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
744
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
745
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
746
|
+
#
|
747
|
+
# @overload patch(network_attachment: nil, network_attachment_resource: nil, project: nil, region: nil, request_id: nil)
|
748
|
+
# Pass arguments to `patch` via keyword arguments. Note that at
|
749
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
750
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
751
|
+
#
|
752
|
+
# @param network_attachment [::String]
|
753
|
+
# Name of the NetworkAttachment resource to patch.
|
754
|
+
# @param network_attachment_resource [::Google::Cloud::Compute::V1::NetworkAttachment, ::Hash]
|
755
|
+
# The body resource for this request
|
756
|
+
# @param project [::String]
|
757
|
+
# Project ID for this request.
|
758
|
+
# @param region [::String]
|
759
|
+
# Name of the region for this request.
|
760
|
+
# @param request_id [::String]
|
761
|
+
# 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). end_interface: MixerMutationRequestBuilder
|
762
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
763
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
764
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
765
|
+
#
|
766
|
+
# @return [::Gapic::GenericLRO::Operation]
|
767
|
+
#
|
768
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
769
|
+
#
|
770
|
+
# @example Basic example
|
771
|
+
# require "google/cloud/compute/v1"
|
772
|
+
#
|
773
|
+
# # Create a client object. The client can be reused for multiple calls.
|
774
|
+
# client = Google::Cloud::Compute::V1::NetworkAttachments::Rest::Client.new
|
775
|
+
#
|
776
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
777
|
+
# request = Google::Cloud::Compute::V1::PatchNetworkAttachmentRequest.new
|
778
|
+
#
|
779
|
+
# # Call the patch method.
|
780
|
+
# result = client.patch request
|
781
|
+
#
|
782
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
783
|
+
# p result
|
784
|
+
#
|
785
|
+
def patch request, options = nil
|
786
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
787
|
+
|
788
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::PatchNetworkAttachmentRequest
|
789
|
+
|
790
|
+
# Converts hash and nil to an options object
|
791
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
792
|
+
|
793
|
+
# Customize the options with defaults
|
794
|
+
call_metadata = @config.rpcs.patch.metadata.to_h
|
795
|
+
|
796
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
797
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
798
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
799
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
800
|
+
transports_version_send: [:rest]
|
801
|
+
|
802
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
803
|
+
|
804
|
+
options.apply_defaults timeout: @config.rpcs.patch.timeout,
|
805
|
+
metadata: call_metadata,
|
806
|
+
retry_policy: @config.rpcs.patch.retry_policy
|
807
|
+
|
808
|
+
options.apply_defaults timeout: @config.timeout,
|
809
|
+
metadata: @config.metadata,
|
810
|
+
retry_policy: @config.retry_policy
|
811
|
+
|
812
|
+
@network_attachments_stub.patch request, options do |result, response|
|
813
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
814
|
+
operation: result,
|
815
|
+
client: region_operations,
|
816
|
+
request_values: {
|
817
|
+
"project" => request.project,
|
818
|
+
"region" => request.region
|
819
|
+
},
|
820
|
+
options: options
|
821
|
+
)
|
822
|
+
yield result, response if block_given?
|
823
|
+
return result
|
824
|
+
end
|
825
|
+
rescue ::Gapic::Rest::Error => e
|
826
|
+
raise ::Google::Cloud::Error.from_error(e)
|
827
|
+
end
|
828
|
+
|
712
829
|
##
|
713
830
|
# Sets the access control policy on the specified resource. Replaces any existing policy.
|
714
831
|
#
|
@@ -907,9 +1024,9 @@ module Google
|
|
907
1024
|
# end
|
908
1025
|
#
|
909
1026
|
# @!attribute [rw] endpoint
|
910
|
-
#
|
911
|
-
#
|
912
|
-
# @return [::String]
|
1027
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
1028
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
1029
|
+
# @return [::String,nil]
|
913
1030
|
# @!attribute [rw] credentials
|
914
1031
|
# Credentials to send with calls. You may provide any of the following types:
|
915
1032
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -946,13 +1063,20 @@ module Google
|
|
946
1063
|
# @!attribute [rw] quota_project
|
947
1064
|
# A separate project against which to charge quota.
|
948
1065
|
# @return [::String]
|
1066
|
+
# @!attribute [rw] universe_domain
|
1067
|
+
# The universe domain within which to make requests. This determines the
|
1068
|
+
# default endpoint URL. The default value of nil uses the environment
|
1069
|
+
# universe (usually the default "googleapis.com" universe).
|
1070
|
+
# @return [::String,nil]
|
949
1071
|
#
|
950
1072
|
class Configuration
|
951
1073
|
extend ::Gapic::Config
|
952
1074
|
|
1075
|
+
# @private
|
1076
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
953
1077
|
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
954
1078
|
|
955
|
-
config_attr :endpoint,
|
1079
|
+
config_attr :endpoint, nil, ::String, nil
|
956
1080
|
config_attr :credentials, nil do |value|
|
957
1081
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
958
1082
|
allowed.any? { |klass| klass === value }
|
@@ -964,6 +1088,7 @@ module Google
|
|
964
1088
|
config_attr :metadata, nil, ::Hash, nil
|
965
1089
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
966
1090
|
config_attr :quota_project, nil, ::String, nil
|
1091
|
+
config_attr :universe_domain, nil, ::String, nil
|
967
1092
|
|
968
1093
|
# @private
|
969
1094
|
def initialize parent_config = nil
|
@@ -1033,6 +1158,11 @@ module Google
|
|
1033
1158
|
#
|
1034
1159
|
attr_reader :list
|
1035
1160
|
##
|
1161
|
+
# RPC-specific configuration for `patch`
|
1162
|
+
# @return [::Gapic::Config::Method]
|
1163
|
+
#
|
1164
|
+
attr_reader :patch
|
1165
|
+
##
|
1036
1166
|
# RPC-specific configuration for `set_iam_policy`
|
1037
1167
|
# @return [::Gapic::Config::Method]
|
1038
1168
|
#
|
@@ -1057,6 +1187,8 @@ module Google
|
|
1057
1187
|
@insert = ::Gapic::Config::Method.new insert_config
|
1058
1188
|
list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
|
1059
1189
|
@list = ::Gapic::Config::Method.new list_config
|
1190
|
+
patch_config = parent_rpcs.patch if parent_rpcs.respond_to? :patch
|
1191
|
+
@patch = ::Gapic::Config::Method.new patch_config
|
1060
1192
|
set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
|
1061
1193
|
@set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
|
1062
1194
|
test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
|
@@ -30,16 +30,28 @@ module Google
|
|
30
30
|
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
|
-
def initialize endpoint:, credentials:
|
33
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
|
34
34
|
# These require statements are intentionally placed here to initialize
|
35
35
|
# the REST modules only when it's required.
|
36
36
|
require "gapic/rest"
|
37
37
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
39
|
+
endpoint_template: endpoint_template,
|
40
|
+
universe_domain: universe_domain,
|
41
|
+
credentials: credentials,
|
39
42
|
numeric_enums: false,
|
40
43
|
raise_faraday_errors: false
|
41
44
|
end
|
42
45
|
|
46
|
+
##
|
47
|
+
# The effective universe domain
|
48
|
+
#
|
49
|
+
# @return [String]
|
50
|
+
#
|
51
|
+
def universe_domain
|
52
|
+
@client_stub.universe_domain
|
53
|
+
end
|
54
|
+
|
43
55
|
##
|
44
56
|
# Baseline implementation for the aggregated_list REST call
|
45
57
|
#
|
@@ -268,6 +280,44 @@ module Google
|
|
268
280
|
result
|
269
281
|
end
|
270
282
|
|
283
|
+
##
|
284
|
+
# Baseline implementation for the patch REST call
|
285
|
+
#
|
286
|
+
# @param request_pb [::Google::Cloud::Compute::V1::PatchNetworkAttachmentRequest]
|
287
|
+
# A request object representing the call parameters. Required.
|
288
|
+
# @param options [::Gapic::CallOptions]
|
289
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
290
|
+
#
|
291
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
292
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
293
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
294
|
+
#
|
295
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
296
|
+
# A result object deserialized from the server's reply
|
297
|
+
def patch request_pb, options = nil
|
298
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
299
|
+
|
300
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_patch_request request_pb
|
301
|
+
query_string_params = if query_string_params.any?
|
302
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
303
|
+
else
|
304
|
+
{}
|
305
|
+
end
|
306
|
+
|
307
|
+
response = @client_stub.make_http_request(
|
308
|
+
verb,
|
309
|
+
uri: uri,
|
310
|
+
body: body || "",
|
311
|
+
params: query_string_params,
|
312
|
+
options: options
|
313
|
+
)
|
314
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
315
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
316
|
+
|
317
|
+
yield result, operation if block_given?
|
318
|
+
result
|
319
|
+
end
|
320
|
+
|
271
321
|
##
|
272
322
|
# Baseline implementation for the set_iam_policy REST call
|
273
323
|
#
|
@@ -479,6 +529,30 @@ module Google
|
|
479
529
|
transcoder.transcode request_pb
|
480
530
|
end
|
481
531
|
|
532
|
+
##
|
533
|
+
# @private
|
534
|
+
#
|
535
|
+
# GRPC transcoding helper method for the patch REST call
|
536
|
+
#
|
537
|
+
# @param request_pb [::Google::Cloud::Compute::V1::PatchNetworkAttachmentRequest]
|
538
|
+
# A request object representing the call parameters. Required.
|
539
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
540
|
+
# Uri, Body, Query string parameters
|
541
|
+
def self.transcode_patch_request request_pb
|
542
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
543
|
+
.with_bindings(
|
544
|
+
uri_method: :patch,
|
545
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/networkAttachments/{network_attachment}",
|
546
|
+
body: "network_attachment_resource",
|
547
|
+
matches: [
|
548
|
+
["project", %r{^[^/]+/?$}, false],
|
549
|
+
["region", %r{^[^/]+/?$}, false],
|
550
|
+
["network_attachment", %r{^[^/]+/?$}, false]
|
551
|
+
]
|
552
|
+
)
|
553
|
+
transcoder.transcode request_pb
|
554
|
+
end
|
555
|
+
|
482
556
|
##
|
483
557
|
# @private
|
484
558
|
#
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# The NetworkEdgeSecurityServices API.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
|
38
|
+
|
36
39
|
# @private
|
37
40
|
attr_reader :network_edge_security_services_stub
|
38
41
|
|
@@ -107,6 +110,15 @@ module Google
|
|
107
110
|
@config
|
108
111
|
end
|
109
112
|
|
113
|
+
##
|
114
|
+
# The effective universe domain
|
115
|
+
#
|
116
|
+
# @return [String]
|
117
|
+
#
|
118
|
+
def universe_domain
|
119
|
+
@network_edge_security_services_stub.universe_domain
|
120
|
+
end
|
121
|
+
|
110
122
|
##
|
111
123
|
# Create a new NetworkEdgeSecurityServices REST client object.
|
112
124
|
#
|
@@ -134,8 +146,9 @@ module Google
|
|
134
146
|
credentials = @config.credentials
|
135
147
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
136
148
|
# but only if the default endpoint does not have a region prefix.
|
137
|
-
enable_self_signed_jwt = @config.endpoint
|
138
|
-
|
149
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
150
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
151
|
+
!@config.endpoint.split(".").first.include?("-"))
|
139
152
|
credentials ||= Credentials.default scope: @config.scope,
|
140
153
|
enable_self_signed_jwt: enable_self_signed_jwt
|
141
154
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
@@ -149,9 +162,15 @@ module Google
|
|
149
162
|
config.credentials = credentials
|
150
163
|
config.quota_project = @quota_project_id
|
151
164
|
config.endpoint = @config.endpoint
|
165
|
+
config.universe_domain = @config.universe_domain
|
152
166
|
end
|
153
167
|
|
154
|
-
@network_edge_security_services_stub = ::Google::Cloud::Compute::V1::NetworkEdgeSecurityServices::Rest::ServiceStub.new
|
168
|
+
@network_edge_security_services_stub = ::Google::Cloud::Compute::V1::NetworkEdgeSecurityServices::Rest::ServiceStub.new(
|
169
|
+
endpoint: @config.endpoint,
|
170
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
171
|
+
universe_domain: @config.universe_domain,
|
172
|
+
credentials: credentials
|
173
|
+
)
|
155
174
|
end
|
156
175
|
|
157
176
|
##
|
@@ -176,13 +195,13 @@ module Google
|
|
176
195
|
# @param options [::Gapic::CallOptions, ::Hash]
|
177
196
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
178
197
|
#
|
179
|
-
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
198
|
+
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil, service_project_number: nil)
|
180
199
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
181
200
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
182
201
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
183
202
|
#
|
184
203
|
# @param filter [::String]
|
185
|
-
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your 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
|
204
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your 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 `:*` 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) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
|
186
205
|
# @param include_all_scopes [::Boolean]
|
187
206
|
# 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.
|
188
207
|
# @param max_results [::Integer]
|
@@ -195,6 +214,7 @@ module Google
|
|
195
214
|
# Name of the project scoping this request.
|
196
215
|
# @param return_partial_success [::Boolean]
|
197
216
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
217
|
+
# @param service_project_number [::Integer]
|
198
218
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
199
219
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::NetworkEdgeSecurityServicesScopedList>]
|
200
220
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -652,9 +672,9 @@ module Google
|
|
652
672
|
# end
|
653
673
|
#
|
654
674
|
# @!attribute [rw] endpoint
|
655
|
-
#
|
656
|
-
#
|
657
|
-
# @return [::String]
|
675
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
676
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
677
|
+
# @return [::String,nil]
|
658
678
|
# @!attribute [rw] credentials
|
659
679
|
# Credentials to send with calls. You may provide any of the following types:
|
660
680
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -691,13 +711,20 @@ module Google
|
|
691
711
|
# @!attribute [rw] quota_project
|
692
712
|
# A separate project against which to charge quota.
|
693
713
|
# @return [::String]
|
714
|
+
# @!attribute [rw] universe_domain
|
715
|
+
# The universe domain within which to make requests. This determines the
|
716
|
+
# default endpoint URL. The default value of nil uses the environment
|
717
|
+
# universe (usually the default "googleapis.com" universe).
|
718
|
+
# @return [::String,nil]
|
694
719
|
#
|
695
720
|
class Configuration
|
696
721
|
extend ::Gapic::Config
|
697
722
|
|
723
|
+
# @private
|
724
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
698
725
|
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
699
726
|
|
700
|
-
config_attr :endpoint,
|
727
|
+
config_attr :endpoint, nil, ::String, nil
|
701
728
|
config_attr :credentials, nil do |value|
|
702
729
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
703
730
|
allowed.any? { |klass| klass === value }
|
@@ -709,6 +736,7 @@ module Google
|
|
709
736
|
config_attr :metadata, nil, ::Hash, nil
|
710
737
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
711
738
|
config_attr :quota_project, nil, ::String, nil
|
739
|
+
config_attr :universe_domain, nil, ::String, nil
|
712
740
|
|
713
741
|
# @private
|
714
742
|
def initialize parent_config = nil
|
@@ -30,16 +30,28 @@ module Google
|
|
30
30
|
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
|
-
def initialize endpoint:, credentials:
|
33
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
|
34
34
|
# These require statements are intentionally placed here to initialize
|
35
35
|
# the REST modules only when it's required.
|
36
36
|
require "gapic/rest"
|
37
37
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
39
|
+
endpoint_template: endpoint_template,
|
40
|
+
universe_domain: universe_domain,
|
41
|
+
credentials: credentials,
|
39
42
|
numeric_enums: false,
|
40
43
|
raise_faraday_errors: false
|
41
44
|
end
|
42
45
|
|
46
|
+
##
|
47
|
+
# The effective universe domain
|
48
|
+
#
|
49
|
+
# @return [String]
|
50
|
+
#
|
51
|
+
def universe_domain
|
52
|
+
@client_stub.universe_domain
|
53
|
+
end
|
54
|
+
|
43
55
|
##
|
44
56
|
# Baseline implementation for the aggregated_list REST call
|
45
57
|
#
|