google-cloud-compute-v1 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/compute/v1/compute_pb.rb +577 -1
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +1 -1
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +3 -1
- data/lib/google/cloud/compute/v1/network_edge_security_services/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +679 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +279 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services.rb +44 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +1552 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +778 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies.rb +44 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +1670 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +823 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies.rb +44 -0
- data/lib/google/cloud/compute/v1/region_security_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +676 -0
- data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +276 -0
- data/lib/google/cloud/compute/v1/region_security_policies/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/region_security_policies.rb +44 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +87 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +46 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +86 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +50 -0
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1.rb +4 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +1562 -65
- metadata +22 -2
@@ -82,6 +82,56 @@ module Google
|
|
82
82
|
[uri, body, query_string_params]
|
83
83
|
end
|
84
84
|
|
85
|
+
##
|
86
|
+
# Baseline implementation for the aggregated_list REST call
|
87
|
+
#
|
88
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AggregatedListSecurityPoliciesRequest]
|
89
|
+
# A request object representing the call parameters. Required.
|
90
|
+
# @param options [::Gapic::CallOptions]
|
91
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
92
|
+
#
|
93
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
94
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::SecurityPoliciesAggregatedList]
|
95
|
+
# @yieldparam response [::Faraday::Response]
|
96
|
+
#
|
97
|
+
# @return [::Google::Cloud::Compute::V1::SecurityPoliciesAggregatedList]
|
98
|
+
# A result object deserialized from the server's reply
|
99
|
+
def aggregated_list request_pb, options = nil
|
100
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
101
|
+
|
102
|
+
uri, _body, query_string_params = transcode_aggregated_list_request request_pb
|
103
|
+
response = @client_stub.make_get_request(
|
104
|
+
uri: uri,
|
105
|
+
params: query_string_params,
|
106
|
+
options: options
|
107
|
+
)
|
108
|
+
result = ::Google::Cloud::Compute::V1::SecurityPoliciesAggregatedList.decode_json response.body, ignore_unknown_fields: true
|
109
|
+
|
110
|
+
yield result, response if block_given?
|
111
|
+
result
|
112
|
+
end
|
113
|
+
|
114
|
+
##
|
115
|
+
# GRPC transcoding helper method for the aggregated_list REST call
|
116
|
+
#
|
117
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AggregatedListSecurityPoliciesRequest]
|
118
|
+
# A request object representing the call parameters. Required.
|
119
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
120
|
+
# Uri, Body, Query string parameters
|
121
|
+
def transcode_aggregated_list_request request_pb
|
122
|
+
uri = "/compute/v1/projects/#{request_pb.project}/aggregated/securityPolicies"
|
123
|
+
body = nil
|
124
|
+
query_string_params = {}
|
125
|
+
query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
|
126
|
+
query_string_params["includeAllScopes"] = request_pb.include_all_scopes.to_s if request_pb.has_include_all_scopes?
|
127
|
+
query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
|
128
|
+
query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
|
129
|
+
query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
|
130
|
+
query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
|
131
|
+
|
132
|
+
[uri, body, query_string_params]
|
133
|
+
end
|
134
|
+
|
85
135
|
##
|
86
136
|
# Baseline implementation for the delete REST call
|
87
137
|
#
|
@@ -47,7 +47,9 @@ require "google/cloud/compute/v1/license_codes"
|
|
47
47
|
require "google/cloud/compute/v1/licenses"
|
48
48
|
require "google/cloud/compute/v1/machine_images"
|
49
49
|
require "google/cloud/compute/v1/machine_types"
|
50
|
+
require "google/cloud/compute/v1/network_edge_security_services"
|
50
51
|
require "google/cloud/compute/v1/network_endpoint_groups"
|
52
|
+
require "google/cloud/compute/v1/network_firewall_policies"
|
51
53
|
require "google/cloud/compute/v1/networks"
|
52
54
|
require "google/cloud/compute/v1/node_groups"
|
53
55
|
require "google/cloud/compute/v1/node_templates"
|
@@ -67,8 +69,10 @@ require "google/cloud/compute/v1/region_instance_group_managers"
|
|
67
69
|
require "google/cloud/compute/v1/region_instance_groups"
|
68
70
|
require "google/cloud/compute/v1/region_instances"
|
69
71
|
require "google/cloud/compute/v1/region_network_endpoint_groups"
|
72
|
+
require "google/cloud/compute/v1/region_network_firewall_policies"
|
70
73
|
require "google/cloud/compute/v1/region_notification_endpoints"
|
71
74
|
require "google/cloud/compute/v1/region_operations"
|
75
|
+
require "google/cloud/compute/v1/region_security_policies"
|
72
76
|
require "google/cloud/compute/v1/region_ssl_certificates"
|
73
77
|
require "google/cloud/compute/v1/region_target_http_proxies"
|
74
78
|
require "google/cloud/compute/v1/region_target_https_proxies"
|