lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb in google-cloud-compute-v1-0.4.0 vs lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb in google-cloud-compute-v1-0.5.0
- old
+ new
@@ -439,11 +439,11 @@
# Uri, Body, Query string parameters
def transcode_insert_request request_pb
uri = "/compute/v1/locations/global/firewallPolicies"
body = request_pb.firewall_policy_resource.to_json
query_string_params = {}
- query_string_params["parentId"] = request_pb.parent_id.to_s if request_pb.has_parent_id?
+ query_string_params["parentId"] = request_pb.parent_id.to_s
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
[uri, body, query_string_params]
end
@@ -580,10 +580,10 @@
# Uri, Body, Query string parameters
def transcode_move_request request_pb
uri = "/compute/v1/locations/global/firewallPolicies/#{request_pb.firewall_policy}/move"
body = nil
query_string_params = {}
- query_string_params["parentId"] = request_pb.parent_id.to_s if request_pb.has_parent_id?
+ query_string_params["parentId"] = request_pb.parent_id.to_s
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
[uri, body, query_string_params]
end