google-cloud-compute-v1 0.1.0 → 0.2.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 +1 -1
- data/README.md +10 -8
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +6 -3
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +12 -6
- data/lib/google/cloud/compute/v1/addresses/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/autoscalers/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +24 -12
- data/lib/google/cloud/compute/v1/backend_buckets/rest/grpc_transcoding.rb +4 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +32 -16
- data/lib/google/cloud/compute/v1/backend_services/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +6 -3
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +38 -19
- data/lib/google/cloud/compute/v1/disks/rest/grpc_transcoding.rb +8 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +14 -7
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/firewall_policies.rb +44 -0
- data/lib/google/cloud/compute/v1/firewall_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +1459 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest/grpc_transcoding.rb +269 -0
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/firewalls/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +10 -5
- data/lib/google/cloud/compute/v1/global_addresses/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +10 -5
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +6 -3
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes.rb +44 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +576 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/grpc_transcoding.rb +100 -0
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/health_checks/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/images/rest/client.rb +28 -14
- data/lib/google/cloud/compute/v1/images/rest/grpc_transcoding.rb +4 -0
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +60 -30
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/grpc_transcoding.rb +10 -0
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +28 -14
- data/lib/google/cloud/compute/v1/instance_groups/rest/grpc_transcoding.rb +9 -0
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +16 -8
- data/lib/google/cloud/compute/v1/instance_templates/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +120 -60
- data/lib/google/cloud/compute/v1/instances/rest/grpc_transcoding.rb +27 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +16 -8
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +16 -8
- data/lib/google/cloud/compute/v1/interconnects/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +16 -8
- data/lib/google/cloud/compute/v1/licenses/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +6 -3
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +26 -13
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/grpc_transcoding.rb +8 -0
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +30 -15
- data/lib/google/cloud/compute/v1/networks/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +36 -18
- data/lib/google/cloud/compute/v1/node_groups/rest/grpc_transcoding.rb +6 -0
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/node_templates/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +6 -3
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +42 -21
- data/lib/google/cloud/compute/v1/projects/rest/grpc_transcoding.rb +12 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes.rb +44 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +576 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/grpc_transcoding.rb +100 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes.rb +44 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +671 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/grpc_transcoding.rb +118 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/region_backend_services/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +10 -5
- data/lib/google/cloud/compute/v1/region_commitments/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +36 -18
- data/lib/google/cloud/compute/v1/region_disks/rest/grpc_transcoding.rb +7 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +14 -7
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/region_health_checks/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +58 -29
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb +10 -0
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +12 -6
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/grpc_transcoding.rb +6 -0
- data/lib/google/cloud/compute/v1/region_instances.rb +44 -0
- data/lib/google/cloud/compute/v1/region_instances/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_instances/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +287 -0
- data/lib/google/cloud/compute/v1/region_instances/rest/grpc_transcoding.rb +46 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +10 -5
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +10 -5
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +8 -4
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +10 -5
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +14 -7
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/region_url_maps/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +22 -11
- data/lib/google/cloud/compute/v1/reservations/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/resource_policies/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +26 -13
- data/lib/google/cloud/compute/v1/routers/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +10 -5
- data/lib/google/cloud/compute/v1/routes/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +26 -13
- data/lib/google/cloud/compute/v1/security_policies/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +14 -7
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +12 -6
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +16 -8
- data/lib/google/cloud/compute/v1/ssl_policies/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +32 -16
- data/lib/google/cloud/compute/v1/subnetworks/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +14 -7
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +28 -14
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +12 -6
- data/lib/google/cloud/compute/v1/target_instances/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +34 -17
- data/lib/google/cloud/compute/v1/target_pools/rest/grpc_transcoding.rb +7 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +26 -13
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +12 -6
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +26 -13
- data/lib/google/cloud/compute/v1/url_maps/rest/grpc_transcoding.rb +4 -0
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +12 -6
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +8 -4
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +4 -2
- metadata +37 -12
@@ -0,0 +1,269 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Compute
|
23
|
+
module V1
|
24
|
+
module FirewallPolicies
|
25
|
+
module Rest
|
26
|
+
# GRPC transcoding helper methods for the FirewallPolicies REST API.
|
27
|
+
module GrpcTranscoding
|
28
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AddAssociationFirewallPolicyRequest]
|
29
|
+
# A request object representing the call parameters. Required.
|
30
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
31
|
+
# Uri, Body, Query string parameters
|
32
|
+
def transcode_add_association request_pb
|
33
|
+
uri = "/compute/v1/locations/global/firewallPolicies/#{request_pb.firewall_policy}/addAssociation"
|
34
|
+
body = request_pb.firewall_policy_association_resource.to_json
|
35
|
+
query_string_params = {}
|
36
|
+
|
37
|
+
[uri, body, query_string_params]
|
38
|
+
end
|
39
|
+
|
40
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AddRuleFirewallPolicyRequest]
|
41
|
+
# A request object representing the call parameters. Required.
|
42
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
43
|
+
# Uri, Body, Query string parameters
|
44
|
+
def transcode_add_rule request_pb
|
45
|
+
uri = "/compute/v1/locations/global/firewallPolicies/#{request_pb.firewall_policy}/addRule"
|
46
|
+
body = request_pb.firewall_policy_rule_resource.to_json
|
47
|
+
query_string_params = {}
|
48
|
+
|
49
|
+
[uri, body, query_string_params]
|
50
|
+
end
|
51
|
+
|
52
|
+
# @param request_pb [::Google::Cloud::Compute::V1::CloneRulesFirewallPolicyRequest]
|
53
|
+
# A request object representing the call parameters. Required.
|
54
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
55
|
+
# Uri, Body, Query string parameters
|
56
|
+
def transcode_clone_rules request_pb
|
57
|
+
uri = "/compute/v1/locations/global/firewallPolicies/#{request_pb.firewall_policy}/cloneRules"
|
58
|
+
body = nil
|
59
|
+
query_string_params = {}
|
60
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
61
|
+
query_string_params["sourceFirewallPolicy"] = request_pb.source_firewall_policy.to_s if request_pb.has_source_firewall_policy?
|
62
|
+
|
63
|
+
[uri, body, query_string_params]
|
64
|
+
end
|
65
|
+
|
66
|
+
# @param request_pb [::Google::Cloud::Compute::V1::DeleteFirewallPolicyRequest]
|
67
|
+
# A request object representing the call parameters. Required.
|
68
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
69
|
+
# Uri, Body, Query string parameters
|
70
|
+
def transcode_delete request_pb
|
71
|
+
uri = "/compute/v1/locations/global/firewallPolicies/#{request_pb.firewall_policy}"
|
72
|
+
body = nil
|
73
|
+
query_string_params = {}
|
74
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
75
|
+
|
76
|
+
[uri, body, query_string_params]
|
77
|
+
end
|
78
|
+
|
79
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetFirewallPolicyRequest]
|
80
|
+
# A request object representing the call parameters. Required.
|
81
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
82
|
+
# Uri, Body, Query string parameters
|
83
|
+
def transcode_get request_pb
|
84
|
+
uri = "/compute/v1/locations/global/firewallPolicies/#{request_pb.firewall_policy}"
|
85
|
+
body = nil
|
86
|
+
query_string_params = {}
|
87
|
+
|
88
|
+
[uri, body, query_string_params]
|
89
|
+
end
|
90
|
+
|
91
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetAssociationFirewallPolicyRequest]
|
92
|
+
# A request object representing the call parameters. Required.
|
93
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
94
|
+
# Uri, Body, Query string parameters
|
95
|
+
def transcode_get_association request_pb
|
96
|
+
uri = "/compute/v1/locations/global/firewallPolicies/#{request_pb.firewall_policy}/getAssociation"
|
97
|
+
body = nil
|
98
|
+
query_string_params = {}
|
99
|
+
query_string_params["name"] = request_pb.name.to_s if request_pb.has_name?
|
100
|
+
|
101
|
+
[uri, body, query_string_params]
|
102
|
+
end
|
103
|
+
|
104
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetIamPolicyFirewallPolicyRequest]
|
105
|
+
# A request object representing the call parameters. Required.
|
106
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
107
|
+
# Uri, Body, Query string parameters
|
108
|
+
def transcode_get_iam_policy request_pb
|
109
|
+
uri = "/compute/v1/locations/global/firewallPolicies/#{request_pb.resource}/getIamPolicy"
|
110
|
+
body = nil
|
111
|
+
query_string_params = {}
|
112
|
+
query_string_params["optionsRequestedPolicyVersion"] = request_pb.options_requested_policy_version.to_s if request_pb.has_options_requested_policy_version?
|
113
|
+
|
114
|
+
[uri, body, query_string_params]
|
115
|
+
end
|
116
|
+
|
117
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetRuleFirewallPolicyRequest]
|
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_get_rule request_pb
|
122
|
+
uri = "/compute/v1/locations/global/firewallPolicies/#{request_pb.firewall_policy}/getRule"
|
123
|
+
body = nil
|
124
|
+
query_string_params = {}
|
125
|
+
query_string_params["priority"] = request_pb.priority.to_s if request_pb.has_priority?
|
126
|
+
|
127
|
+
[uri, body, query_string_params]
|
128
|
+
end
|
129
|
+
|
130
|
+
# @param request_pb [::Google::Cloud::Compute::V1::InsertFirewallPolicyRequest]
|
131
|
+
# A request object representing the call parameters. Required.
|
132
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
133
|
+
# Uri, Body, Query string parameters
|
134
|
+
def transcode_insert request_pb
|
135
|
+
uri = "/compute/v1/locations/global/firewallPolicies"
|
136
|
+
body = request_pb.firewall_policy_resource.to_json
|
137
|
+
query_string_params = {}
|
138
|
+
|
139
|
+
[uri, body, query_string_params]
|
140
|
+
end
|
141
|
+
|
142
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListFirewallPoliciesRequest]
|
143
|
+
# A request object representing the call parameters. Required.
|
144
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
145
|
+
# Uri, Body, Query string parameters
|
146
|
+
def transcode_list request_pb
|
147
|
+
uri = "/compute/v1/locations/global/firewallPolicies"
|
148
|
+
body = nil
|
149
|
+
query_string_params = {}
|
150
|
+
query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
|
151
|
+
query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
|
152
|
+
query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
|
153
|
+
query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
|
154
|
+
query_string_params["parentId"] = request_pb.parent_id.to_s if request_pb.has_parent_id?
|
155
|
+
query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
|
156
|
+
|
157
|
+
[uri, body, query_string_params]
|
158
|
+
end
|
159
|
+
|
160
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListAssociationsFirewallPolicyRequest]
|
161
|
+
# A request object representing the call parameters. Required.
|
162
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
163
|
+
# Uri, Body, Query string parameters
|
164
|
+
def transcode_list_associations request_pb
|
165
|
+
uri = "/compute/v1/locations/global/firewallPolicies/listAssociations"
|
166
|
+
body = nil
|
167
|
+
query_string_params = {}
|
168
|
+
query_string_params["targetResource"] = request_pb.target_resource.to_s if request_pb.has_target_resource?
|
169
|
+
|
170
|
+
[uri, body, query_string_params]
|
171
|
+
end
|
172
|
+
|
173
|
+
# @param request_pb [::Google::Cloud::Compute::V1::MoveFirewallPolicyRequest]
|
174
|
+
# A request object representing the call parameters. Required.
|
175
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
176
|
+
# Uri, Body, Query string parameters
|
177
|
+
def transcode_move request_pb
|
178
|
+
uri = "/compute/v1/locations/global/firewallPolicies/#{request_pb.firewall_policy}/move"
|
179
|
+
body = nil
|
180
|
+
query_string_params = {}
|
181
|
+
query_string_params["parentId"] = request_pb.parent_id.to_s if request_pb.has_parent_id?
|
182
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
183
|
+
|
184
|
+
[uri, body, query_string_params]
|
185
|
+
end
|
186
|
+
|
187
|
+
# @param request_pb [::Google::Cloud::Compute::V1::PatchFirewallPolicyRequest]
|
188
|
+
# A request object representing the call parameters. Required.
|
189
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
190
|
+
# Uri, Body, Query string parameters
|
191
|
+
def transcode_patch request_pb
|
192
|
+
uri = "/compute/v1/locations/global/firewallPolicies/#{request_pb.firewall_policy}"
|
193
|
+
body = request_pb.firewall_policy_resource.to_json
|
194
|
+
query_string_params = {}
|
195
|
+
|
196
|
+
[uri, body, query_string_params]
|
197
|
+
end
|
198
|
+
|
199
|
+
# @param request_pb [::Google::Cloud::Compute::V1::PatchRuleFirewallPolicyRequest]
|
200
|
+
# A request object representing the call parameters. Required.
|
201
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
202
|
+
# Uri, Body, Query string parameters
|
203
|
+
def transcode_patch_rule request_pb
|
204
|
+
uri = "/compute/v1/locations/global/firewallPolicies/#{request_pb.firewall_policy}/patchRule"
|
205
|
+
body = request_pb.firewall_policy_rule_resource.to_json
|
206
|
+
query_string_params = {}
|
207
|
+
|
208
|
+
[uri, body, query_string_params]
|
209
|
+
end
|
210
|
+
|
211
|
+
# @param request_pb [::Google::Cloud::Compute::V1::RemoveAssociationFirewallPolicyRequest]
|
212
|
+
# A request object representing the call parameters. Required.
|
213
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
214
|
+
# Uri, Body, Query string parameters
|
215
|
+
def transcode_remove_association request_pb
|
216
|
+
uri = "/compute/v1/locations/global/firewallPolicies/#{request_pb.firewall_policy}/removeAssociation"
|
217
|
+
body = nil
|
218
|
+
query_string_params = {}
|
219
|
+
query_string_params["name"] = request_pb.name.to_s if request_pb.has_name?
|
220
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
221
|
+
|
222
|
+
[uri, body, query_string_params]
|
223
|
+
end
|
224
|
+
|
225
|
+
# @param request_pb [::Google::Cloud::Compute::V1::RemoveRuleFirewallPolicyRequest]
|
226
|
+
# A request object representing the call parameters. Required.
|
227
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
228
|
+
# Uri, Body, Query string parameters
|
229
|
+
def transcode_remove_rule request_pb
|
230
|
+
uri = "/compute/v1/locations/global/firewallPolicies/#{request_pb.firewall_policy}/removeRule"
|
231
|
+
body = nil
|
232
|
+
query_string_params = {}
|
233
|
+
query_string_params["priority"] = request_pb.priority.to_s if request_pb.has_priority?
|
234
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
235
|
+
|
236
|
+
[uri, body, query_string_params]
|
237
|
+
end
|
238
|
+
|
239
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetIamPolicyFirewallPolicyRequest]
|
240
|
+
# A request object representing the call parameters. Required.
|
241
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
242
|
+
# Uri, Body, Query string parameters
|
243
|
+
def transcode_set_iam_policy request_pb
|
244
|
+
uri = "/compute/v1/locations/global/firewallPolicies/#{request_pb.resource}/setIamPolicy"
|
245
|
+
body = request_pb.global_organization_set_policy_request_resource.to_json
|
246
|
+
query_string_params = {}
|
247
|
+
|
248
|
+
[uri, body, query_string_params]
|
249
|
+
end
|
250
|
+
|
251
|
+
# @param request_pb [::Google::Cloud::Compute::V1::TestIamPermissionsFirewallPolicyRequest]
|
252
|
+
# A request object representing the call parameters. Required.
|
253
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
254
|
+
# Uri, Body, Query string parameters
|
255
|
+
def transcode_test_iam_permissions request_pb
|
256
|
+
uri = "/compute/v1/locations/global/firewallPolicies/#{request_pb.resource}/testIamPermissions"
|
257
|
+
body = request_pb.test_permissions_request_resource.to_json
|
258
|
+
query_string_params = {}
|
259
|
+
|
260
|
+
[uri, body, query_string_params]
|
261
|
+
end
|
262
|
+
extend self
|
263
|
+
end
|
264
|
+
end
|
265
|
+
end
|
266
|
+
end
|
267
|
+
end
|
268
|
+
end
|
269
|
+
end
|
@@ -186,7 +186,8 @@ module Google
|
|
186
186
|
# Set x-goog-api-client header
|
187
187
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
188
188
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
189
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
189
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
190
|
+
transports_version_send: [:rest]
|
190
191
|
|
191
192
|
options.apply_defaults timeout: @config.timeout,
|
192
193
|
metadata: call_metadata
|
@@ -251,7 +252,8 @@ module Google
|
|
251
252
|
# Set x-goog-api-client header
|
252
253
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
253
254
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
254
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
255
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
256
|
+
transports_version_send: [:rest]
|
255
257
|
|
256
258
|
options.apply_defaults timeout: @config.timeout,
|
257
259
|
metadata: call_metadata
|
@@ -321,15 +323,17 @@ module Google
|
|
321
323
|
# Set x-goog-api-client header
|
322
324
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
323
325
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
324
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
326
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
327
|
+
transports_version_send: [:rest]
|
325
328
|
|
326
329
|
options.apply_defaults timeout: @config.timeout,
|
327
330
|
metadata: call_metadata
|
328
331
|
|
329
|
-
uri, body,
|
332
|
+
uri, body, query_string_params = transcode_insert request
|
330
333
|
response = @client_stub.make_post_request(
|
331
334
|
uri: uri,
|
332
335
|
body: body,
|
336
|
+
params: query_string_params,
|
333
337
|
options: options
|
334
338
|
)
|
335
339
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -404,7 +408,8 @@ module Google
|
|
404
408
|
# Set x-goog-api-client header
|
405
409
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
406
410
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
407
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
411
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
412
|
+
transports_version_send: [:rest]
|
408
413
|
|
409
414
|
options.apply_defaults timeout: @config.timeout,
|
410
415
|
metadata: call_metadata
|
@@ -477,15 +482,17 @@ module Google
|
|
477
482
|
# Set x-goog-api-client header
|
478
483
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
479
484
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
480
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
485
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
486
|
+
transports_version_send: [:rest]
|
481
487
|
|
482
488
|
options.apply_defaults timeout: @config.timeout,
|
483
489
|
metadata: call_metadata
|
484
490
|
|
485
|
-
uri, body,
|
491
|
+
uri, body, query_string_params = transcode_patch request
|
486
492
|
response = @client_stub.make_patch_request(
|
487
493
|
uri: uri,
|
488
494
|
body: body,
|
495
|
+
params: query_string_params,
|
489
496
|
options: options
|
490
497
|
)
|
491
498
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -550,15 +557,17 @@ module Google
|
|
550
557
|
# Set x-goog-api-client header
|
551
558
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
552
559
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
553
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
560
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
561
|
+
transports_version_send: [:rest]
|
554
562
|
|
555
563
|
options.apply_defaults timeout: @config.timeout,
|
556
564
|
metadata: call_metadata
|
557
565
|
|
558
|
-
uri, body,
|
566
|
+
uri, body, query_string_params = transcode_update request
|
559
567
|
response = @client_stub.make_put_request(
|
560
568
|
uri: uri,
|
561
569
|
body: body,
|
570
|
+
params: query_string_params,
|
562
571
|
options: options
|
563
572
|
)
|
564
573
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -58,6 +58,7 @@ module Google
|
|
58
58
|
uri = "/compute/v1/projects/#{request_pb.project}/global/firewalls"
|
59
59
|
body = request_pb.firewall_resource.to_json
|
60
60
|
query_string_params = {}
|
61
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
61
62
|
|
62
63
|
[uri, body, query_string_params]
|
63
64
|
end
|
@@ -87,6 +88,7 @@ module Google
|
|
87
88
|
uri = "/compute/v1/projects/#{request_pb.project}/global/firewalls/#{request_pb.firewall}"
|
88
89
|
body = request_pb.firewall_resource.to_json
|
89
90
|
query_string_params = {}
|
91
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
90
92
|
|
91
93
|
[uri, body, query_string_params]
|
92
94
|
end
|
@@ -99,6 +101,7 @@ module Google
|
|
99
101
|
uri = "/compute/v1/projects/#{request_pb.project}/global/firewalls/#{request_pb.firewall}"
|
100
102
|
body = request_pb.firewall_resource.to_json
|
101
103
|
query_string_params = {}
|
104
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
102
105
|
|
103
106
|
[uri, body, query_string_params]
|
104
107
|
end
|
@@ -200,7 +200,8 @@ module Google
|
|
200
200
|
# Set x-goog-api-client header
|
201
201
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
202
202
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
203
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
203
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
204
|
+
transports_version_send: [:rest]
|
204
205
|
|
205
206
|
options.apply_defaults timeout: @config.timeout,
|
206
207
|
metadata: call_metadata
|
@@ -273,7 +274,8 @@ module Google
|
|
273
274
|
# Set x-goog-api-client header
|
274
275
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
275
276
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
276
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
277
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
278
|
+
transports_version_send: [:rest]
|
277
279
|
|
278
280
|
options.apply_defaults timeout: @config.timeout,
|
279
281
|
metadata: call_metadata
|
@@ -340,7 +342,8 @@ module Google
|
|
340
342
|
# Set x-goog-api-client header
|
341
343
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
342
344
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
343
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
345
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
346
|
+
transports_version_send: [:rest]
|
344
347
|
|
345
348
|
options.apply_defaults timeout: @config.timeout,
|
346
349
|
metadata: call_metadata
|
@@ -412,15 +415,17 @@ module Google
|
|
412
415
|
# Set x-goog-api-client header
|
413
416
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
414
417
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
415
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
418
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
419
|
+
transports_version_send: [:rest]
|
416
420
|
|
417
421
|
options.apply_defaults timeout: @config.timeout,
|
418
422
|
metadata: call_metadata
|
419
423
|
|
420
|
-
uri, body,
|
424
|
+
uri, body, query_string_params = transcode_insert request
|
421
425
|
response = @client_stub.make_post_request(
|
422
426
|
uri: uri,
|
423
427
|
body: body,
|
428
|
+
params: query_string_params,
|
424
429
|
options: options
|
425
430
|
)
|
426
431
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -497,7 +502,8 @@ module Google
|
|
497
502
|
# Set x-goog-api-client header
|
498
503
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
499
504
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
500
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
505
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
506
|
+
transports_version_send: [:rest]
|
501
507
|
|
502
508
|
options.apply_defaults timeout: @config.timeout,
|
503
509
|
metadata: call_metadata
|
@@ -572,15 +578,17 @@ module Google
|
|
572
578
|
# Set x-goog-api-client header
|
573
579
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
574
580
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
575
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
581
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
582
|
+
transports_version_send: [:rest]
|
576
583
|
|
577
584
|
options.apply_defaults timeout: @config.timeout,
|
578
585
|
metadata: call_metadata
|
579
586
|
|
580
|
-
uri, body,
|
587
|
+
uri, body, query_string_params = transcode_patch request
|
581
588
|
response = @client_stub.make_patch_request(
|
582
589
|
uri: uri,
|
583
590
|
body: body,
|
591
|
+
params: query_string_params,
|
584
592
|
options: options
|
585
593
|
)
|
586
594
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -647,15 +655,17 @@ module Google
|
|
647
655
|
# Set x-goog-api-client header
|
648
656
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
649
657
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
650
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
658
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
659
|
+
transports_version_send: [:rest]
|
651
660
|
|
652
661
|
options.apply_defaults timeout: @config.timeout,
|
653
662
|
metadata: call_metadata
|
654
663
|
|
655
|
-
uri, body,
|
664
|
+
uri, body, query_string_params = transcode_set_target request
|
656
665
|
response = @client_stub.make_post_request(
|
657
666
|
uri: uri,
|
658
667
|
body: body,
|
668
|
+
params: query_string_params,
|
659
669
|
options: options
|
660
670
|
)
|
661
671
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|