google-cloud-compute-v1 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +78 -1
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +46 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +79 -2
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +46 -0
- data/lib/google/cloud/compute/v1/compute_pb.rb +534 -2
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +2 -2
- 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/firewall_policies/rest/service_stub.rb +2 -2
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +2 -2
- 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 +2 -2
- 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 +4 -4
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/images/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +5 -5
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +162 -6
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +91 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/interconnect_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/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +777 -0
- data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +363 -0
- data/lib/google/cloud/compute/v1/machine_images/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/machine_images.rb +44 -0
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +4 -4
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +4 -4
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +5 -5
- 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 +1 -1
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +84 -2
- data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +48 -0
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +2 -2
- 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_network_endpoint_groups/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +3 -3
- 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 +5 -5
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +84 -2
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +48 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +5 -5
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +76 -1
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +46 -0
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +4 -4
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +4 -4
- 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 +2 -2
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +2 -2
- 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 +1 -1
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +2 -2
- 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 +1 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +1647 -330
- metadata +8 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b2478e3a8908f40e8463fdc720ee7e6ceff687291646eecbb3dccc060d85af1
|
4
|
+
data.tar.gz: c8e79a6a7c1d7a479c4a7b80b1d62597ca003180bf5de6b76994f1342f982041
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4ac7b14d76a237794162b6e286fcf07024dec94b60490dd3f1b02997f066c1cd05214e85b95743dde00890c1ae7ff7cd8d2a81a366c164c10d1ae2c369b9660
|
7
|
+
data.tar.gz: 1734969d7c48eecfc6812cfb571fcccaa6ba99f93e65d75ac36256fdeaea00381eb067dcbcdb5e2af01e8589abe564048bc1734d4e1a322857df8204e9b4be01
|
data/README.md
CHANGED
@@ -31,7 +31,7 @@ request = ::Google::Cloud::Compute::V1::AggregatedListAcceleratorTypesRequest.ne
|
|
31
31
|
response = client.aggregated_list request
|
32
32
|
```
|
33
33
|
|
34
|
-
View the [Client Library Documentation](https://
|
34
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest)
|
35
35
|
for class and method documentation.
|
36
36
|
|
37
37
|
See also the [Product Documentation](https://cloud.google.com/compute/)
|
@@ -163,7 +163,7 @@ module Google
|
|
163
163
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
164
164
|
#
|
165
165
|
# @param filter [::String]
|
166
|
-
# A filter expression that filters resources listed in the response. The expression must specify the field name,
|
166
|
+
# A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
167
167
|
# @param include_all_scopes [::Boolean]
|
168
168
|
# 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.
|
169
169
|
# @param max_results [::Integer]
|
@@ -302,7 +302,7 @@ module Google
|
|
302
302
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
303
303
|
#
|
304
304
|
# @param filter [::String]
|
305
|
-
# A filter expression that filters resources listed in the response. The expression must specify the field name,
|
305
|
+
# A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
306
306
|
# @param max_results [::Integer]
|
307
307
|
# 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`)
|
308
308
|
# @param order_by [::String]
|
@@ -165,7 +165,7 @@ module Google
|
|
165
165
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
166
166
|
#
|
167
167
|
# @param filter [::String]
|
168
|
-
# A filter expression that filters resources listed in the response. The expression must specify the field name,
|
168
|
+
# A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
169
169
|
# @param include_all_scopes [::Boolean]
|
170
170
|
# 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.
|
171
171
|
# @param max_results [::Integer]
|
@@ -440,7 +440,7 @@ module Google
|
|
440
440
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
441
441
|
#
|
442
442
|
# @param filter [::String]
|
443
|
-
# A filter expression that filters resources listed in the response. The expression must specify the field name,
|
443
|
+
# A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
444
444
|
# @param max_results [::Integer]
|
445
445
|
# 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`)
|
446
446
|
# @param order_by [::String]
|
@@ -169,7 +169,7 @@ module Google
|
|
169
169
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
170
170
|
#
|
171
171
|
# @param filter [::String]
|
172
|
-
# A filter expression that filters resources listed in the response. The expression must specify the field name,
|
172
|
+
# A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
173
173
|
# @param include_all_scopes [::Boolean]
|
174
174
|
# 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.
|
175
175
|
# @param max_results [::Integer]
|
@@ -444,7 +444,7 @@ module Google
|
|
444
444
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
445
445
|
#
|
446
446
|
# @param filter [::String]
|
447
|
-
# A filter expression that filters resources listed in the response. The expression must specify the field name,
|
447
|
+
# A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
448
448
|
# @param max_results [::Integer]
|
449
449
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
450
450
|
# @param order_by [::String]
|
@@ -84,6 +84,8 @@ module Google
|
|
84
84
|
|
85
85
|
default_config.rpcs.patch.timeout = 600.0
|
86
86
|
|
87
|
+
default_config.rpcs.set_edge_security_policy.timeout = 600.0
|
88
|
+
|
87
89
|
default_config.rpcs.update.timeout = 600.0
|
88
90
|
|
89
91
|
default_config
|
@@ -499,7 +501,7 @@ module Google
|
|
499
501
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
500
502
|
#
|
501
503
|
# @param filter [::String]
|
502
|
-
# A filter expression that filters resources listed in the response. The expression must specify the field name,
|
504
|
+
# A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
503
505
|
# @param max_results [::Integer]
|
504
506
|
# 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`)
|
505
507
|
# @param order_by [::String]
|
@@ -618,6 +620,74 @@ module Google
|
|
618
620
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
619
621
|
end
|
620
622
|
|
623
|
+
##
|
624
|
+
# Sets the edge security policy for the specified backend bucket.
|
625
|
+
#
|
626
|
+
# @overload set_edge_security_policy(request, options = nil)
|
627
|
+
# Pass arguments to `set_edge_security_policy` via a request object, either of type
|
628
|
+
# {::Google::Cloud::Compute::V1::SetEdgeSecurityPolicyBackendBucketRequest} or an equivalent Hash.
|
629
|
+
#
|
630
|
+
# @param request [::Google::Cloud::Compute::V1::SetEdgeSecurityPolicyBackendBucketRequest, ::Hash]
|
631
|
+
# A request object representing the call parameters. Required. To specify no
|
632
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
633
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
634
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
635
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
636
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
637
|
+
#
|
638
|
+
# @overload set_edge_security_policy(backend_bucket: nil, project: nil, request_id: nil, security_policy_reference_resource: nil)
|
639
|
+
# Pass arguments to `set_edge_security_policy` via keyword arguments. Note that at
|
640
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
641
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
642
|
+
#
|
643
|
+
# @param backend_bucket [::String]
|
644
|
+
# Name of the BackendService resource to which the security policy should be set. The name should conform to RFC1035.
|
645
|
+
# @param project [::String]
|
646
|
+
# Project ID for this request.
|
647
|
+
# @param request_id [::String]
|
648
|
+
# 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).
|
649
|
+
# @param security_policy_reference_resource [::Google::Cloud::Compute::V1::SecurityPolicyReference, ::Hash]
|
650
|
+
# The body resource for this request
|
651
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
652
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
653
|
+
# @yieldparam response [::Faraday::Response]
|
654
|
+
#
|
655
|
+
# @return [::Gapic::Rest::BaseOperation]
|
656
|
+
#
|
657
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
658
|
+
def set_edge_security_policy request, options = nil
|
659
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
660
|
+
|
661
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::SetEdgeSecurityPolicyBackendBucketRequest
|
662
|
+
|
663
|
+
# Converts hash and nil to an options object
|
664
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
665
|
+
|
666
|
+
# Customize the options with defaults
|
667
|
+
call_metadata = @config.rpcs.set_edge_security_policy.metadata.to_h
|
668
|
+
|
669
|
+
# Set x-goog-api-client header
|
670
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
671
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
672
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
673
|
+
transports_version_send: [:rest]
|
674
|
+
|
675
|
+
options.apply_defaults timeout: @config.rpcs.set_edge_security_policy.timeout,
|
676
|
+
metadata: call_metadata
|
677
|
+
|
678
|
+
options.apply_defaults timeout: @config.timeout,
|
679
|
+
metadata: @config.metadata
|
680
|
+
|
681
|
+
@backend_buckets_stub.set_edge_security_policy request, options do |result, response|
|
682
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
683
|
+
yield result, response if block_given?
|
684
|
+
return result
|
685
|
+
end
|
686
|
+
rescue ::Faraday::Error => e
|
687
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
688
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
689
|
+
end
|
690
|
+
|
621
691
|
##
|
622
692
|
# Updates the specified BackendBucket resource with the data included in the request.
|
623
693
|
#
|
@@ -821,6 +891,11 @@ module Google
|
|
821
891
|
#
|
822
892
|
attr_reader :patch
|
823
893
|
##
|
894
|
+
# RPC-specific configuration for `set_edge_security_policy`
|
895
|
+
# @return [::Gapic::Config::Method]
|
896
|
+
#
|
897
|
+
attr_reader :set_edge_security_policy
|
898
|
+
##
|
824
899
|
# RPC-specific configuration for `update`
|
825
900
|
# @return [::Gapic::Config::Method]
|
826
901
|
#
|
@@ -842,6 +917,8 @@ module Google
|
|
842
917
|
@list = ::Gapic::Config::Method.new list_config
|
843
918
|
patch_config = parent_rpcs.patch if parent_rpcs.respond_to? :patch
|
844
919
|
@patch = ::Gapic::Config::Method.new patch_config
|
920
|
+
set_edge_security_policy_config = parent_rpcs.set_edge_security_policy if parent_rpcs.respond_to? :set_edge_security_policy
|
921
|
+
@set_edge_security_policy = ::Gapic::Config::Method.new set_edge_security_policy_config
|
845
922
|
update_config = parent_rpcs.update if parent_rpcs.respond_to? :update
|
846
923
|
@update = ::Gapic::Config::Method.new update_config
|
847
924
|
|
@@ -359,6 +359,52 @@ module Google
|
|
359
359
|
[uri, body, query_string_params]
|
360
360
|
end
|
361
361
|
|
362
|
+
##
|
363
|
+
# Baseline implementation for the set_edge_security_policy REST call
|
364
|
+
#
|
365
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetEdgeSecurityPolicyBackendBucketRequest]
|
366
|
+
# A request object representing the call parameters. Required.
|
367
|
+
# @param options [::Gapic::CallOptions]
|
368
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
369
|
+
#
|
370
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
371
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
372
|
+
# @yieldparam response [::Faraday::Response]
|
373
|
+
#
|
374
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
375
|
+
# A result object deserialized from the server's reply
|
376
|
+
def set_edge_security_policy request_pb, options = nil
|
377
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
378
|
+
|
379
|
+
uri, body, query_string_params = transcode_set_edge_security_policy_request request_pb
|
380
|
+
response = @client_stub.make_post_request(
|
381
|
+
uri: uri,
|
382
|
+
body: body,
|
383
|
+
params: query_string_params,
|
384
|
+
options: options
|
385
|
+
)
|
386
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
387
|
+
|
388
|
+
yield result, response if block_given?
|
389
|
+
result
|
390
|
+
end
|
391
|
+
|
392
|
+
##
|
393
|
+
# GRPC transcoding helper method for the set_edge_security_policy REST call
|
394
|
+
#
|
395
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetEdgeSecurityPolicyBackendBucketRequest]
|
396
|
+
# A request object representing the call parameters. Required.
|
397
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
398
|
+
# Uri, Body, Query string parameters
|
399
|
+
def transcode_set_edge_security_policy_request request_pb
|
400
|
+
uri = "/compute/v1/projects/#{request_pb.project}/global/backendBuckets/#{request_pb.backend_bucket}/setEdgeSecurityPolicy"
|
401
|
+
body = request_pb.security_policy_reference_resource.to_json
|
402
|
+
query_string_params = {}
|
403
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
404
|
+
|
405
|
+
[uri, body, query_string_params]
|
406
|
+
end
|
407
|
+
|
362
408
|
##
|
363
409
|
# Baseline implementation for the update REST call
|
364
410
|
#
|
@@ -91,6 +91,8 @@ module Google
|
|
91
91
|
|
92
92
|
default_config.rpcs.patch.timeout = 600.0
|
93
93
|
|
94
|
+
default_config.rpcs.set_edge_security_policy.timeout = 600.0
|
95
|
+
|
94
96
|
default_config.rpcs.set_security_policy.timeout = 600.0
|
95
97
|
|
96
98
|
default_config.rpcs.update.timeout = 600.0
|
@@ -245,7 +247,7 @@ module Google
|
|
245
247
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
246
248
|
#
|
247
249
|
# @param filter [::String]
|
248
|
-
# A filter expression that filters resources listed in the response. The expression must specify the field name,
|
250
|
+
# A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
249
251
|
# @param include_all_scopes [::Boolean]
|
250
252
|
# 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.
|
251
253
|
# @param max_results [::Integer]
|
@@ -646,7 +648,7 @@ module Google
|
|
646
648
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
647
649
|
#
|
648
650
|
# @param filter [::String]
|
649
|
-
# A filter expression that filters resources listed in the response. The expression must specify the field name,
|
651
|
+
# A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
650
652
|
# @param max_results [::Integer]
|
651
653
|
# 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`)
|
652
654
|
# @param order_by [::String]
|
@@ -765,6 +767,74 @@ module Google
|
|
765
767
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
766
768
|
end
|
767
769
|
|
770
|
+
##
|
771
|
+
# Sets the edge security policy for the specified backend service.
|
772
|
+
#
|
773
|
+
# @overload set_edge_security_policy(request, options = nil)
|
774
|
+
# Pass arguments to `set_edge_security_policy` via a request object, either of type
|
775
|
+
# {::Google::Cloud::Compute::V1::SetEdgeSecurityPolicyBackendServiceRequest} or an equivalent Hash.
|
776
|
+
#
|
777
|
+
# @param request [::Google::Cloud::Compute::V1::SetEdgeSecurityPolicyBackendServiceRequest, ::Hash]
|
778
|
+
# A request object representing the call parameters. Required. To specify no
|
779
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
780
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
781
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
782
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
783
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
784
|
+
#
|
785
|
+
# @overload set_edge_security_policy(backend_service: nil, project: nil, request_id: nil, security_policy_reference_resource: nil)
|
786
|
+
# Pass arguments to `set_edge_security_policy` via keyword arguments. Note that at
|
787
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
788
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
789
|
+
#
|
790
|
+
# @param backend_service [::String]
|
791
|
+
# Name of the BackendService resource to which the edge security policy should be set. The name should conform to RFC1035.
|
792
|
+
# @param project [::String]
|
793
|
+
# Project ID for this request.
|
794
|
+
# @param request_id [::String]
|
795
|
+
# 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).
|
796
|
+
# @param security_policy_reference_resource [::Google::Cloud::Compute::V1::SecurityPolicyReference, ::Hash]
|
797
|
+
# The body resource for this request
|
798
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
799
|
+
# @yieldparam result [::Gapic::Rest::BaseOperation]
|
800
|
+
# @yieldparam response [::Faraday::Response]
|
801
|
+
#
|
802
|
+
# @return [::Gapic::Rest::BaseOperation]
|
803
|
+
#
|
804
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
805
|
+
def set_edge_security_policy request, options = nil
|
806
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
807
|
+
|
808
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::SetEdgeSecurityPolicyBackendServiceRequest
|
809
|
+
|
810
|
+
# Converts hash and nil to an options object
|
811
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
812
|
+
|
813
|
+
# Customize the options with defaults
|
814
|
+
call_metadata = @config.rpcs.set_edge_security_policy.metadata.to_h
|
815
|
+
|
816
|
+
# Set x-goog-api-client header
|
817
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
818
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
819
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
820
|
+
transports_version_send: [:rest]
|
821
|
+
|
822
|
+
options.apply_defaults timeout: @config.rpcs.set_edge_security_policy.timeout,
|
823
|
+
metadata: call_metadata
|
824
|
+
|
825
|
+
options.apply_defaults timeout: @config.timeout,
|
826
|
+
metadata: @config.metadata
|
827
|
+
|
828
|
+
@backend_services_stub.set_edge_security_policy request, options do |result, response|
|
829
|
+
result = ::Gapic::Rest::BaseOperation.new result
|
830
|
+
yield result, response if block_given?
|
831
|
+
return result
|
832
|
+
end
|
833
|
+
rescue ::Faraday::Error => e
|
834
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
835
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
836
|
+
end
|
837
|
+
|
768
838
|
##
|
769
839
|
# Sets the Google Cloud Armor security policy for the specified backend service. For more information, see Google Cloud Armor Overview
|
770
840
|
#
|
@@ -1046,6 +1116,11 @@ module Google
|
|
1046
1116
|
#
|
1047
1117
|
attr_reader :patch
|
1048
1118
|
##
|
1119
|
+
# RPC-specific configuration for `set_edge_security_policy`
|
1120
|
+
# @return [::Gapic::Config::Method]
|
1121
|
+
#
|
1122
|
+
attr_reader :set_edge_security_policy
|
1123
|
+
##
|
1049
1124
|
# RPC-specific configuration for `set_security_policy`
|
1050
1125
|
# @return [::Gapic::Config::Method]
|
1051
1126
|
#
|
@@ -1076,6 +1151,8 @@ module Google
|
|
1076
1151
|
@list = ::Gapic::Config::Method.new list_config
|
1077
1152
|
patch_config = parent_rpcs.patch if parent_rpcs.respond_to? :patch
|
1078
1153
|
@patch = ::Gapic::Config::Method.new patch_config
|
1154
|
+
set_edge_security_policy_config = parent_rpcs.set_edge_security_policy if parent_rpcs.respond_to? :set_edge_security_policy
|
1155
|
+
@set_edge_security_policy = ::Gapic::Config::Method.new set_edge_security_policy_config
|
1079
1156
|
set_security_policy_config = parent_rpcs.set_security_policy if parent_rpcs.respond_to? :set_security_policy
|
1080
1157
|
@set_security_policy = ::Gapic::Config::Method.new set_security_policy_config
|
1081
1158
|
update_config = parent_rpcs.update if parent_rpcs.respond_to? :update
|
@@ -453,6 +453,52 @@ module Google
|
|
453
453
|
[uri, body, query_string_params]
|
454
454
|
end
|
455
455
|
|
456
|
+
##
|
457
|
+
# Baseline implementation for the set_edge_security_policy REST call
|
458
|
+
#
|
459
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetEdgeSecurityPolicyBackendServiceRequest]
|
460
|
+
# A request object representing the call parameters. Required.
|
461
|
+
# @param options [::Gapic::CallOptions]
|
462
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
463
|
+
#
|
464
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
465
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
466
|
+
# @yieldparam response [::Faraday::Response]
|
467
|
+
#
|
468
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
469
|
+
# A result object deserialized from the server's reply
|
470
|
+
def set_edge_security_policy request_pb, options = nil
|
471
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
472
|
+
|
473
|
+
uri, body, query_string_params = transcode_set_edge_security_policy_request request_pb
|
474
|
+
response = @client_stub.make_post_request(
|
475
|
+
uri: uri,
|
476
|
+
body: body,
|
477
|
+
params: query_string_params,
|
478
|
+
options: options
|
479
|
+
)
|
480
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
481
|
+
|
482
|
+
yield result, response if block_given?
|
483
|
+
result
|
484
|
+
end
|
485
|
+
|
486
|
+
##
|
487
|
+
# GRPC transcoding helper method for the set_edge_security_policy REST call
|
488
|
+
#
|
489
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetEdgeSecurityPolicyBackendServiceRequest]
|
490
|
+
# A request object representing the call parameters. Required.
|
491
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
492
|
+
# Uri, Body, Query string parameters
|
493
|
+
def transcode_set_edge_security_policy_request request_pb
|
494
|
+
uri = "/compute/v1/projects/#{request_pb.project}/global/backendServices/#{request_pb.backend_service}/setEdgeSecurityPolicy"
|
495
|
+
body = request_pb.security_policy_reference_resource.to_json
|
496
|
+
query_string_params = {}
|
497
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
498
|
+
|
499
|
+
[uri, body, query_string_params]
|
500
|
+
end
|
501
|
+
|
456
502
|
##
|
457
503
|
# Baseline implementation for the set_security_policy REST call
|
458
504
|
#
|