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.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/compute/v1/compute_pb.rb +577 -1
  3. data/lib/google/cloud/compute/v1/disks/rest/client.rb +1 -1
  4. data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +1 -1
  5. data/lib/google/cloud/compute/v1/instances/rest/client.rb +3 -1
  6. data/lib/google/cloud/compute/v1/network_edge_security_services/credentials.rb +52 -0
  7. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +679 -0
  8. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +279 -0
  9. data/lib/google/cloud/compute/v1/network_edge_security_services/rest.rb +33 -0
  10. data/lib/google/cloud/compute/v1/network_edge_security_services.rb +44 -0
  11. data/lib/google/cloud/compute/v1/network_firewall_policies/credentials.rb +52 -0
  12. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +1552 -0
  13. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +778 -0
  14. data/lib/google/cloud/compute/v1/network_firewall_policies/rest.rb +33 -0
  15. data/lib/google/cloud/compute/v1/network_firewall_policies.rb +44 -0
  16. data/lib/google/cloud/compute/v1/region_network_firewall_policies/credentials.rb +52 -0
  17. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +1670 -0
  18. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +823 -0
  19. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest.rb +33 -0
  20. data/lib/google/cloud/compute/v1/region_network_firewall_policies.rb +44 -0
  21. data/lib/google/cloud/compute/v1/region_security_policies/credentials.rb +52 -0
  22. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +676 -0
  23. data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +276 -0
  24. data/lib/google/cloud/compute/v1/region_security_policies/rest.rb +33 -0
  25. data/lib/google/cloud/compute/v1/region_security_policies.rb +44 -0
  26. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +87 -0
  27. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +46 -0
  28. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +86 -0
  29. data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +50 -0
  30. data/lib/google/cloud/compute/v1/version.rb +1 -1
  31. data/lib/google/cloud/compute/v1.rb +4 -0
  32. data/proto_docs/google/cloud/compute/v1/compute.rb +1562 -65
  33. 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
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Compute
23
23
  module V1
24
- VERSION = "1.2.0"
24
+ VERSION = "1.3.0"
25
25
  end
26
26
  end
27
27
  end
@@ -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"