google-cloud-ids-v1 0.2.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,285 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 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
+ require "google/cloud/ids/v1/ids_pb"
20
+
21
+ module Google
22
+ module Cloud
23
+ module IDS
24
+ module V1
25
+ module IDS
26
+ module Rest
27
+ ##
28
+ # REST service stub for the IDS service.
29
+ # Service stub contains baseline method implementations
30
+ # including transcoding, making the REST call, and deserialing the response.
31
+ #
32
+ class ServiceStub
33
+ def initialize endpoint:, credentials:
34
+ # These require statements are intentionally placed here to initialize
35
+ # the REST modules only when it's required.
36
+ require "gapic/rest"
37
+
38
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials,
39
+ numeric_enums: true,
40
+ raise_faraday_errors: false
41
+ end
42
+
43
+ ##
44
+ # Baseline implementation for the list_endpoints REST call
45
+ #
46
+ # @param request_pb [::Google::Cloud::IDS::V1::ListEndpointsRequest]
47
+ # A request object representing the call parameters. Required.
48
+ # @param options [::Gapic::CallOptions]
49
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
50
+ #
51
+ # @yield [result, operation] Access the result along with the TransportOperation object
52
+ # @yieldparam result [::Google::Cloud::IDS::V1::ListEndpointsResponse]
53
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
54
+ #
55
+ # @return [::Google::Cloud::IDS::V1::ListEndpointsResponse]
56
+ # A result object deserialized from the server's reply
57
+ def list_endpoints request_pb, options = nil
58
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
59
+
60
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_endpoints_request request_pb
61
+ query_string_params = if query_string_params.any?
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
+ else
64
+ {}
65
+ end
66
+
67
+ response = @client_stub.make_http_request(
68
+ verb,
69
+ uri: uri,
70
+ body: body || "",
71
+ params: query_string_params,
72
+ options: options
73
+ )
74
+ operation = ::Gapic::Rest::TransportOperation.new response
75
+ result = ::Google::Cloud::IDS::V1::ListEndpointsResponse.decode_json response.body, ignore_unknown_fields: true
76
+
77
+ yield result, operation if block_given?
78
+ result
79
+ end
80
+
81
+ ##
82
+ # Baseline implementation for the get_endpoint REST call
83
+ #
84
+ # @param request_pb [::Google::Cloud::IDS::V1::GetEndpointRequest]
85
+ # A request object representing the call parameters. Required.
86
+ # @param options [::Gapic::CallOptions]
87
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
88
+ #
89
+ # @yield [result, operation] Access the result along with the TransportOperation object
90
+ # @yieldparam result [::Google::Cloud::IDS::V1::Endpoint]
91
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
92
+ #
93
+ # @return [::Google::Cloud::IDS::V1::Endpoint]
94
+ # A result object deserialized from the server's reply
95
+ def get_endpoint request_pb, options = nil
96
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
97
+
98
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_endpoint_request request_pb
99
+ query_string_params = if query_string_params.any?
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
+ else
102
+ {}
103
+ end
104
+
105
+ response = @client_stub.make_http_request(
106
+ verb,
107
+ uri: uri,
108
+ body: body || "",
109
+ params: query_string_params,
110
+ options: options
111
+ )
112
+ operation = ::Gapic::Rest::TransportOperation.new response
113
+ result = ::Google::Cloud::IDS::V1::Endpoint.decode_json response.body, ignore_unknown_fields: true
114
+
115
+ yield result, operation if block_given?
116
+ result
117
+ end
118
+
119
+ ##
120
+ # Baseline implementation for the create_endpoint REST call
121
+ #
122
+ # @param request_pb [::Google::Cloud::IDS::V1::CreateEndpointRequest]
123
+ # A request object representing the call parameters. Required.
124
+ # @param options [::Gapic::CallOptions]
125
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
126
+ #
127
+ # @yield [result, operation] Access the result along with the TransportOperation object
128
+ # @yieldparam result [::Google::Longrunning::Operation]
129
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
130
+ #
131
+ # @return [::Google::Longrunning::Operation]
132
+ # A result object deserialized from the server's reply
133
+ def create_endpoint request_pb, options = nil
134
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
135
+
136
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_endpoint_request request_pb
137
+ query_string_params = if query_string_params.any?
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
+ else
140
+ {}
141
+ end
142
+
143
+ response = @client_stub.make_http_request(
144
+ verb,
145
+ uri: uri,
146
+ body: body || "",
147
+ params: query_string_params,
148
+ options: options
149
+ )
150
+ operation = ::Gapic::Rest::TransportOperation.new response
151
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
152
+
153
+ yield result, operation if block_given?
154
+ result
155
+ end
156
+
157
+ ##
158
+ # Baseline implementation for the delete_endpoint REST call
159
+ #
160
+ # @param request_pb [::Google::Cloud::IDS::V1::DeleteEndpointRequest]
161
+ # A request object representing the call parameters. Required.
162
+ # @param options [::Gapic::CallOptions]
163
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
164
+ #
165
+ # @yield [result, operation] Access the result along with the TransportOperation object
166
+ # @yieldparam result [::Google::Longrunning::Operation]
167
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
168
+ #
169
+ # @return [::Google::Longrunning::Operation]
170
+ # A result object deserialized from the server's reply
171
+ def delete_endpoint request_pb, options = nil
172
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
173
+
174
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_endpoint_request request_pb
175
+ query_string_params = if query_string_params.any?
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
+ else
178
+ {}
179
+ end
180
+
181
+ response = @client_stub.make_http_request(
182
+ verb,
183
+ uri: uri,
184
+ body: body || "",
185
+ params: query_string_params,
186
+ options: options
187
+ )
188
+ operation = ::Gapic::Rest::TransportOperation.new response
189
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
190
+
191
+ yield result, operation if block_given?
192
+ result
193
+ end
194
+
195
+ ##
196
+ # @private
197
+ #
198
+ # GRPC transcoding helper method for the list_endpoints REST call
199
+ #
200
+ # @param request_pb [::Google::Cloud::IDS::V1::ListEndpointsRequest]
201
+ # A request object representing the call parameters. Required.
202
+ # @return [Array(String, [String, nil], Hash{String => String})]
203
+ # Uri, Body, Query string parameters
204
+ def self.transcode_list_endpoints_request request_pb
205
+ transcoder = Gapic::Rest::GrpcTranscoder.new
206
+ .with_bindings(
207
+ uri_method: :get,
208
+ uri_template: "/v1/{parent}/endpoints",
209
+ matches: [
210
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
211
+ ]
212
+ )
213
+ transcoder.transcode request_pb
214
+ end
215
+
216
+ ##
217
+ # @private
218
+ #
219
+ # GRPC transcoding helper method for the get_endpoint REST call
220
+ #
221
+ # @param request_pb [::Google::Cloud::IDS::V1::GetEndpointRequest]
222
+ # A request object representing the call parameters. Required.
223
+ # @return [Array(String, [String, nil], Hash{String => String})]
224
+ # Uri, Body, Query string parameters
225
+ def self.transcode_get_endpoint_request request_pb
226
+ transcoder = Gapic::Rest::GrpcTranscoder.new
227
+ .with_bindings(
228
+ uri_method: :get,
229
+ uri_template: "/v1/{name}",
230
+ matches: [
231
+ ["name", %r{^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/?$}, false]
232
+ ]
233
+ )
234
+ transcoder.transcode request_pb
235
+ end
236
+
237
+ ##
238
+ # @private
239
+ #
240
+ # GRPC transcoding helper method for the create_endpoint REST call
241
+ #
242
+ # @param request_pb [::Google::Cloud::IDS::V1::CreateEndpointRequest]
243
+ # A request object representing the call parameters. Required.
244
+ # @return [Array(String, [String, nil], Hash{String => String})]
245
+ # Uri, Body, Query string parameters
246
+ def self.transcode_create_endpoint_request request_pb
247
+ transcoder = Gapic::Rest::GrpcTranscoder.new
248
+ .with_bindings(
249
+ uri_method: :post,
250
+ uri_template: "/v1/{parent}/endpoints",
251
+ body: "endpoint",
252
+ matches: [
253
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
254
+ ]
255
+ )
256
+ transcoder.transcode request_pb
257
+ end
258
+
259
+ ##
260
+ # @private
261
+ #
262
+ # GRPC transcoding helper method for the delete_endpoint REST call
263
+ #
264
+ # @param request_pb [::Google::Cloud::IDS::V1::DeleteEndpointRequest]
265
+ # A request object representing the call parameters. Required.
266
+ # @return [Array(String, [String, nil], Hash{String => String})]
267
+ # Uri, Body, Query string parameters
268
+ def self.transcode_delete_endpoint_request request_pb
269
+ transcoder = Gapic::Rest::GrpcTranscoder.new
270
+ .with_bindings(
271
+ uri_method: :delete,
272
+ uri_template: "/v1/{name}",
273
+ matches: [
274
+ ["name", %r{^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/?$}, false]
275
+ ]
276
+ )
277
+ transcoder.transcode request_pb
278
+ end
279
+ end
280
+ end
281
+ end
282
+ end
283
+ end
284
+ end
285
+ end
@@ -0,0 +1,53 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 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
+ require "gapic/rest"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/ids/v1/version"
24
+
25
+ require "google/cloud/ids/v1/ids/credentials"
26
+ require "google/cloud/ids/v1/ids/paths"
27
+ require "google/cloud/ids/v1/ids/rest/operations"
28
+ require "google/cloud/ids/v1/ids/rest/client"
29
+
30
+ module Google
31
+ module Cloud
32
+ module IDS
33
+ module V1
34
+ ##
35
+ # The IDS Service
36
+ #
37
+ # To load this service and instantiate a REST client:
38
+ #
39
+ # require "google/cloud/ids/v1/ids/rest"
40
+ # client = ::Google::Cloud::IDS::V1::IDS::Rest::Client.new
41
+ #
42
+ module IDS
43
+ # Client for the REST transport
44
+ module Rest
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
51
+
52
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
53
+ require "google/cloud/ids/v1/ids/rest/helpers" if ::File.file? helper_path
@@ -26,6 +26,7 @@ require "google/cloud/ids/v1/ids/credentials"
26
26
  require "google/cloud/ids/v1/ids/paths"
27
27
  require "google/cloud/ids/v1/ids/operations"
28
28
  require "google/cloud/ids/v1/ids/client"
29
+ require "google/cloud/ids/v1/ids/rest"
29
30
 
30
31
  module Google
31
32
  module Cloud
@@ -34,11 +35,16 @@ module Google
34
35
  ##
35
36
  # The IDS Service
36
37
  #
37
- # To load this service and instantiate a client:
38
+ # @example Load this service and instantiate a gRPC client
38
39
  #
39
40
  # require "google/cloud/ids/v1/ids"
40
41
  # client = ::Google::Cloud::IDS::V1::IDS::Client.new
41
42
  #
43
+ # @example Load this service and instantiate a REST client
44
+ #
45
+ # require "google/cloud/ids/v1/ids/rest"
46
+ # client = ::Google::Cloud::IDS::V1::IDS::Rest::Client.new
47
+ #
42
48
  module IDS
43
49
  end
44
50
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/ids/v1/ids.proto
3
4
 
@@ -8,73 +9,34 @@ require 'google/api/client_pb'
8
9
  require 'google/api/field_behavior_pb'
9
10
  require 'google/api/resource_pb'
10
11
  require 'google/longrunning/operations_pb'
11
- require 'google/protobuf/field_mask_pb'
12
12
  require 'google/protobuf/timestamp_pb'
13
13
 
14
- Google::Protobuf::DescriptorPool.generated_pool.build do
15
- add_file("google/cloud/ids/v1/ids.proto", :syntax => :proto3) do
16
- add_message "google.cloud.ids.v1.Endpoint" do
17
- optional :name, :string, 1
18
- optional :create_time, :message, 2, "google.protobuf.Timestamp"
19
- optional :update_time, :message, 3, "google.protobuf.Timestamp"
20
- map :labels, :string, :string, 4
21
- optional :network, :string, 5
22
- optional :endpoint_forwarding_rule, :string, 6
23
- optional :endpoint_ip, :string, 7
24
- optional :description, :string, 8
25
- optional :severity, :enum, 9, "google.cloud.ids.v1.Endpoint.Severity"
26
- optional :state, :enum, 12, "google.cloud.ids.v1.Endpoint.State"
27
- optional :traffic_logs, :bool, 13
28
- end
29
- add_enum "google.cloud.ids.v1.Endpoint.Severity" do
30
- value :SEVERITY_UNSPECIFIED, 0
31
- value :INFORMATIONAL, 1
32
- value :LOW, 2
33
- value :MEDIUM, 3
34
- value :HIGH, 4
35
- value :CRITICAL, 5
36
- end
37
- add_enum "google.cloud.ids.v1.Endpoint.State" do
38
- value :STATE_UNSPECIFIED, 0
39
- value :CREATING, 1
40
- value :READY, 2
41
- value :DELETING, 3
42
- end
43
- add_message "google.cloud.ids.v1.ListEndpointsRequest" do
44
- optional :parent, :string, 1
45
- optional :page_size, :int32, 2
46
- optional :page_token, :string, 3
47
- optional :filter, :string, 4
48
- optional :order_by, :string, 5
49
- end
50
- add_message "google.cloud.ids.v1.ListEndpointsResponse" do
51
- repeated :endpoints, :message, 1, "google.cloud.ids.v1.Endpoint"
52
- optional :next_page_token, :string, 2
53
- repeated :unreachable, :string, 3
54
- end
55
- add_message "google.cloud.ids.v1.GetEndpointRequest" do
56
- optional :name, :string, 1
57
- end
58
- add_message "google.cloud.ids.v1.CreateEndpointRequest" do
59
- optional :parent, :string, 1
60
- optional :endpoint_id, :string, 2
61
- optional :endpoint, :message, 3, "google.cloud.ids.v1.Endpoint"
62
- optional :request_id, :string, 4
63
- end
64
- add_message "google.cloud.ids.v1.DeleteEndpointRequest" do
65
- optional :name, :string, 1
66
- optional :request_id, :string, 2
67
- end
68
- add_message "google.cloud.ids.v1.OperationMetadata" do
69
- optional :create_time, :message, 1, "google.protobuf.Timestamp"
70
- optional :end_time, :message, 2, "google.protobuf.Timestamp"
71
- optional :target, :string, 3
72
- optional :verb, :string, 4
73
- optional :status_message, :string, 5
74
- optional :requested_cancellation, :bool, 6
75
- optional :api_version, :string, 7
14
+
15
+ descriptor_data = "\n\x1dgoogle/cloud/ids/v1/ids.proto\x12\x13google.cloud.ids.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfa\x05\n\x08\x45ndpoint\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x39\n\x06labels\x18\x04 \x03(\x0b\x32).google.cloud.ids.v1.Endpoint.LabelsEntry\x12\x14\n\x07network\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12%\n\x18\x65ndpoint_forwarding_rule\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x65ndpoint_ip\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x08 \x01(\t\x12=\n\x08severity\x18\t \x01(\x0e\x32&.google.cloud.ids.v1.Endpoint.SeverityB\x03\xe0\x41\x02\x12\x37\n\x05state\x18\x0c \x01(\x0e\x32#.google.cloud.ids.v1.Endpoint.StateB\x03\xe0\x41\x03\x12\x14\n\x0ctraffic_logs\x18\r \x01(\x08\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"d\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x11\n\rINFORMATIONAL\x10\x01\x12\x07\n\x03LOW\x10\x02\x12\n\n\x06MEDIUM\x10\x03\x12\x08\n\x04HIGH\x10\x04\x12\x0c\n\x08\x43RITICAL\x10\x05\"E\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03:^\xea\x41[\n\x1bids.googleapis.com/Endpoint\x12<projects/{project}/locations/{location}/endpoints/{endpoint}\"\xa8\x01\n\x14ListEndpointsRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1bids.googleapis.com/Endpoint\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"w\n\x15ListEndpointsResponse\x12\x30\n\tendpoints\x18\x01 \x03(\x0b\x32\x1d.google.cloud.ids.v1.Endpoint\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"G\n\x12GetEndpointRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bids.googleapis.com/Endpoint\"\xb0\x01\n\x15\x43reateEndpointRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1bids.googleapis.com/Endpoint\x12\x18\n\x0b\x65ndpoint_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x08\x65ndpoint\x18\x03 \x01(\x0b\x32\x1d.google.cloud.ids.v1.EndpointB\x03\xe0\x41\x02\x12\x12\n\nrequest_id\x18\x04 \x01(\t\"^\n\x15\x44\x65leteEndpointRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bids.googleapis.com/Endpoint\x12\x12\n\nrequest_id\x18\x02 \x01(\t\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x32\xb2\x06\n\x03IDS\x12\xa6\x01\n\rListEndpoints\x12).google.cloud.ids.v1.ListEndpointsRequest\x1a*.google.cloud.ids.v1.ListEndpointsResponse\">\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/endpoints\xda\x41\x06parent\x12\x93\x01\n\x0bGetEndpoint\x12\'.google.cloud.ids.v1.GetEndpointRequest\x1a\x1d.google.cloud.ids.v1.Endpoint\"<\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/endpoints/*}\xda\x41\x04name\x12\xda\x01\n\x0e\x43reateEndpoint\x12*.google.cloud.ids.v1.CreateEndpointRequest\x1a\x1d.google.longrunning.Operation\"}\x82\xd3\xe4\x93\x02\x39\"-/v1/{parent=projects/*/locations/*}/endpoints:\x08\x65ndpoint\xda\x41\x1bparent,endpoint,endpoint_id\xca\x41\x1d\n\x08\x45ndpoint\x12\x11OperationMetadata\x12\xc6\x01\n\x0e\x44\x65leteEndpoint\x12*.google.cloud.ids.v1.DeleteEndpointRequest\x1a\x1d.google.longrunning.Operation\"i\x82\xd3\xe4\x93\x02/*-/v1/{name=projects/*/locations/*/endpoints/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x1a\x46\xca\x41\x12ids.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBi\n\x17\x63om.google.cloud.ids.v1B\x08IdsProtoP\x01Z)cloud.google.com/go/ids/apiv1/idspb;idspb\xea\x02\x16Google::Cloud::IDS::V1b\x06proto3"
16
+
17
+ pool = Google::Protobuf::DescriptorPool.generated_pool
18
+
19
+ begin
20
+ pool.add_serialized_file(descriptor_data)
21
+ rescue TypeError => e
22
+ # Compatibility code: will be removed in the next major version.
23
+ require 'google/protobuf/descriptor_pb'
24
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
25
+ parsed.clear_dependency
26
+ serialized = parsed.class.encode(parsed)
27
+ file = pool.add_serialized_file(serialized)
28
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
29
+ imports = [
30
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
31
+ ]
32
+ imports.each do |type_name, expected_filename|
33
+ import_file = pool.lookup(type_name).file_descriptor
34
+ if import_file.name != expected_filename
35
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
76
36
  end
77
37
  end
38
+ warn "Each proto file must use a consistent fully-qualified name."
39
+ warn "This will become an error in the next major version."
78
40
  end
79
41
 
80
42
  module Google
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 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
+ require "google/cloud/ids/v1/ids/rest"
20
+ require "google/cloud/ids/v1/version"
21
+
22
+ module Google
23
+ module Cloud
24
+ module IDS
25
+ ##
26
+ # To load just the REST part of this package, including all its services, and instantiate a REST client:
27
+ #
28
+ # @example
29
+ #
30
+ # require "google/cloud/ids/v1/rest"
31
+ # client = ::Google::Cloud::IDS::V1::IDS::Rest::Client.new
32
+ #
33
+ module V1
34
+ end
35
+ end
36
+ end
37
+ end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module IDS
23
23
  module V1
24
- VERSION = "0.2.0"
24
+ VERSION = "0.4.0"
25
25
  end
26
26
  end
27
27
  end
@@ -23,13 +23,18 @@ module Google
23
23
  module Cloud
24
24
  module IDS
25
25
  ##
26
- # To load this package, including all its services, and instantiate a client:
26
+ # API client module.
27
27
  #
28
- # @example
28
+ # @example Load this package, including all its services, and instantiate a gRPC client
29
29
  #
30
30
  # require "google/cloud/ids/v1"
31
31
  # client = ::Google::Cloud::IDS::V1::IDS::Client.new
32
32
  #
33
+ # @example Load this package, including all its services, and instantiate a REST client
34
+ #
35
+ # require "google/cloud/ids/v1"
36
+ # client = ::Google::Cloud::IDS::V1::IDS::Rest::Client.new
37
+ #
33
38
  module V1
34
39
  end
35
40
  end