google-apps-meet-v2beta 0.a → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +144 -8
  5. data/lib/google/apps/meet/v2beta/conference_records_service/client.rb +1618 -0
  6. data/lib/google/apps/meet/v2beta/conference_records_service/credentials.rb +44 -0
  7. data/lib/google/apps/meet/v2beta/conference_records_service/paths.rb +136 -0
  8. data/lib/google/apps/meet/v2beta/conference_records_service/rest/client.rb +1516 -0
  9. data/lib/google/apps/meet/v2beta/conference_records_service/rest/service_stub.rb +766 -0
  10. data/lib/google/apps/meet/v2beta/conference_records_service/rest.rb +52 -0
  11. data/lib/google/apps/meet/v2beta/conference_records_service.rb +55 -0
  12. data/lib/google/apps/meet/v2beta/resource_pb.rb +64 -0
  13. data/lib/google/apps/meet/v2beta/rest.rb +38 -0
  14. data/lib/google/apps/meet/v2beta/service_pb.rb +73 -0
  15. data/lib/google/apps/meet/v2beta/service_services_pb.rb +122 -0
  16. data/lib/google/apps/meet/v2beta/spaces_service/client.rb +710 -0
  17. data/lib/google/apps/meet/v2beta/spaces_service/credentials.rb +44 -0
  18. data/lib/google/apps/meet/v2beta/spaces_service/paths.rb +61 -0
  19. data/lib/google/apps/meet/v2beta/spaces_service/rest/client.rb +664 -0
  20. data/lib/google/apps/meet/v2beta/spaces_service/rest/service_stub.rb +297 -0
  21. data/lib/google/apps/meet/v2beta/spaces_service/rest.rb +52 -0
  22. data/lib/google/apps/meet/v2beta/spaces_service.rb +55 -0
  23. data/lib/google/apps/meet/v2beta/version.rb +7 -2
  24. data/lib/google/apps/meet/v2beta.rb +46 -0
  25. data/lib/google-apps-meet-v2beta.rb +21 -0
  26. data/proto_docs/README.md +4 -0
  27. data/proto_docs/google/api/client.rb +395 -0
  28. data/proto_docs/google/api/field_behavior.rb +85 -0
  29. data/proto_docs/google/api/launch_stage.rb +71 -0
  30. data/proto_docs/google/api/resource.rb +222 -0
  31. data/proto_docs/google/apps/meet/v2beta/resource.rb +375 -0
  32. data/proto_docs/google/apps/meet/v2beta/service.rb +350 -0
  33. data/proto_docs/google/protobuf/duration.rb +98 -0
  34. data/proto_docs/google/protobuf/empty.rb +34 -0
  35. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  36. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  37. metadata +190 -13
@@ -0,0 +1,297 @@
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/apps/meet/v2beta/service_pb"
20
+
21
+ module Google
22
+ module Apps
23
+ module Meet
24
+ module V2beta
25
+ module SpacesService
26
+ module Rest
27
+ ##
28
+ # REST service stub for the SpacesService 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:, endpoint_template:, universe_domain:, 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,
39
+ endpoint_template: endpoint_template,
40
+ universe_domain: universe_domain,
41
+ credentials: credentials,
42
+ numeric_enums: true,
43
+ raise_faraday_errors: false
44
+ end
45
+
46
+ ##
47
+ # The effective universe domain
48
+ #
49
+ # @return [String]
50
+ #
51
+ def universe_domain
52
+ @client_stub.universe_domain
53
+ end
54
+
55
+ ##
56
+ # Baseline implementation for the create_space REST call
57
+ #
58
+ # @param request_pb [::Google::Apps::Meet::V2beta::CreateSpaceRequest]
59
+ # A request object representing the call parameters. Required.
60
+ # @param options [::Gapic::CallOptions]
61
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
62
+ #
63
+ # @yield [result, operation] Access the result along with the TransportOperation object
64
+ # @yieldparam result [::Google::Apps::Meet::V2beta::Space]
65
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
66
+ #
67
+ # @return [::Google::Apps::Meet::V2beta::Space]
68
+ # A result object deserialized from the server's reply
69
+ def create_space request_pb, options = nil
70
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
71
+
72
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_space_request request_pb
73
+ query_string_params = if query_string_params.any?
74
+ query_string_params.to_h { |p| p.split "=", 2 }
75
+ else
76
+ {}
77
+ end
78
+
79
+ response = @client_stub.make_http_request(
80
+ verb,
81
+ uri: uri,
82
+ body: body || "",
83
+ params: query_string_params,
84
+ options: options
85
+ )
86
+ operation = ::Gapic::Rest::TransportOperation.new response
87
+ result = ::Google::Apps::Meet::V2beta::Space.decode_json response.body, ignore_unknown_fields: true
88
+
89
+ yield result, operation if block_given?
90
+ result
91
+ end
92
+
93
+ ##
94
+ # Baseline implementation for the get_space REST call
95
+ #
96
+ # @param request_pb [::Google::Apps::Meet::V2beta::GetSpaceRequest]
97
+ # A request object representing the call parameters. Required.
98
+ # @param options [::Gapic::CallOptions]
99
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
100
+ #
101
+ # @yield [result, operation] Access the result along with the TransportOperation object
102
+ # @yieldparam result [::Google::Apps::Meet::V2beta::Space]
103
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
104
+ #
105
+ # @return [::Google::Apps::Meet::V2beta::Space]
106
+ # A result object deserialized from the server's reply
107
+ def get_space request_pb, options = nil
108
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
109
+
110
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_space_request request_pb
111
+ query_string_params = if query_string_params.any?
112
+ query_string_params.to_h { |p| p.split "=", 2 }
113
+ else
114
+ {}
115
+ end
116
+
117
+ response = @client_stub.make_http_request(
118
+ verb,
119
+ uri: uri,
120
+ body: body || "",
121
+ params: query_string_params,
122
+ options: options
123
+ )
124
+ operation = ::Gapic::Rest::TransportOperation.new response
125
+ result = ::Google::Apps::Meet::V2beta::Space.decode_json response.body, ignore_unknown_fields: true
126
+
127
+ yield result, operation if block_given?
128
+ result
129
+ end
130
+
131
+ ##
132
+ # Baseline implementation for the update_space REST call
133
+ #
134
+ # @param request_pb [::Google::Apps::Meet::V2beta::UpdateSpaceRequest]
135
+ # A request object representing the call parameters. Required.
136
+ # @param options [::Gapic::CallOptions]
137
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
138
+ #
139
+ # @yield [result, operation] Access the result along with the TransportOperation object
140
+ # @yieldparam result [::Google::Apps::Meet::V2beta::Space]
141
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
142
+ #
143
+ # @return [::Google::Apps::Meet::V2beta::Space]
144
+ # A result object deserialized from the server's reply
145
+ def update_space request_pb, options = nil
146
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
147
+
148
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_space_request request_pb
149
+ query_string_params = if query_string_params.any?
150
+ query_string_params.to_h { |p| p.split "=", 2 }
151
+ else
152
+ {}
153
+ end
154
+
155
+ response = @client_stub.make_http_request(
156
+ verb,
157
+ uri: uri,
158
+ body: body || "",
159
+ params: query_string_params,
160
+ options: options
161
+ )
162
+ operation = ::Gapic::Rest::TransportOperation.new response
163
+ result = ::Google::Apps::Meet::V2beta::Space.decode_json response.body, ignore_unknown_fields: true
164
+
165
+ yield result, operation if block_given?
166
+ result
167
+ end
168
+
169
+ ##
170
+ # Baseline implementation for the end_active_conference REST call
171
+ #
172
+ # @param request_pb [::Google::Apps::Meet::V2beta::EndActiveConferenceRequest]
173
+ # A request object representing the call parameters. Required.
174
+ # @param options [::Gapic::CallOptions]
175
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
176
+ #
177
+ # @yield [result, operation] Access the result along with the TransportOperation object
178
+ # @yieldparam result [::Google::Protobuf::Empty]
179
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
180
+ #
181
+ # @return [::Google::Protobuf::Empty]
182
+ # A result object deserialized from the server's reply
183
+ def end_active_conference request_pb, options = nil
184
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
185
+
186
+ verb, uri, query_string_params, body = ServiceStub.transcode_end_active_conference_request request_pb
187
+ query_string_params = if query_string_params.any?
188
+ query_string_params.to_h { |p| p.split "=", 2 }
189
+ else
190
+ {}
191
+ end
192
+
193
+ response = @client_stub.make_http_request(
194
+ verb,
195
+ uri: uri,
196
+ body: body || "",
197
+ params: query_string_params,
198
+ options: options
199
+ )
200
+ operation = ::Gapic::Rest::TransportOperation.new response
201
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
202
+
203
+ yield result, operation if block_given?
204
+ result
205
+ end
206
+
207
+ ##
208
+ # @private
209
+ #
210
+ # GRPC transcoding helper method for the create_space REST call
211
+ #
212
+ # @param request_pb [::Google::Apps::Meet::V2beta::CreateSpaceRequest]
213
+ # A request object representing the call parameters. Required.
214
+ # @return [Array(String, [String, nil], Hash{String => String})]
215
+ # Uri, Body, Query string parameters
216
+ def self.transcode_create_space_request request_pb
217
+ transcoder = Gapic::Rest::GrpcTranscoder.new
218
+ .with_bindings(
219
+ uri_method: :post,
220
+ uri_template: "/v2beta/spaces",
221
+ body: "space",
222
+ matches: []
223
+ )
224
+ transcoder.transcode request_pb
225
+ end
226
+
227
+ ##
228
+ # @private
229
+ #
230
+ # GRPC transcoding helper method for the get_space REST call
231
+ #
232
+ # @param request_pb [::Google::Apps::Meet::V2beta::GetSpaceRequest]
233
+ # A request object representing the call parameters. Required.
234
+ # @return [Array(String, [String, nil], Hash{String => String})]
235
+ # Uri, Body, Query string parameters
236
+ def self.transcode_get_space_request request_pb
237
+ transcoder = Gapic::Rest::GrpcTranscoder.new
238
+ .with_bindings(
239
+ uri_method: :get,
240
+ uri_template: "/v2beta/{name}",
241
+ matches: [
242
+ ["name", %r{^spaces/[^/]+/?$}, false]
243
+ ]
244
+ )
245
+ transcoder.transcode request_pb
246
+ end
247
+
248
+ ##
249
+ # @private
250
+ #
251
+ # GRPC transcoding helper method for the update_space REST call
252
+ #
253
+ # @param request_pb [::Google::Apps::Meet::V2beta::UpdateSpaceRequest]
254
+ # A request object representing the call parameters. Required.
255
+ # @return [Array(String, [String, nil], Hash{String => String})]
256
+ # Uri, Body, Query string parameters
257
+ def self.transcode_update_space_request request_pb
258
+ transcoder = Gapic::Rest::GrpcTranscoder.new
259
+ .with_bindings(
260
+ uri_method: :patch,
261
+ uri_template: "/v2beta/{space.name}",
262
+ body: "space",
263
+ matches: [
264
+ ["space.name", %r{^spaces/[^/]+/?$}, false]
265
+ ]
266
+ )
267
+ transcoder.transcode request_pb
268
+ end
269
+
270
+ ##
271
+ # @private
272
+ #
273
+ # GRPC transcoding helper method for the end_active_conference REST call
274
+ #
275
+ # @param request_pb [::Google::Apps::Meet::V2beta::EndActiveConferenceRequest]
276
+ # A request object representing the call parameters. Required.
277
+ # @return [Array(String, [String, nil], Hash{String => String})]
278
+ # Uri, Body, Query string parameters
279
+ def self.transcode_end_active_conference_request request_pb
280
+ transcoder = Gapic::Rest::GrpcTranscoder.new
281
+ .with_bindings(
282
+ uri_method: :post,
283
+ uri_template: "/v2beta/{name}:endActiveConference",
284
+ body: "*",
285
+ matches: [
286
+ ["name", %r{^spaces/[^/]+/?$}, false]
287
+ ]
288
+ )
289
+ transcoder.transcode request_pb
290
+ end
291
+ end
292
+ end
293
+ end
294
+ end
295
+ end
296
+ end
297
+ end
@@ -0,0 +1,52 @@
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/apps/meet/v2beta/version"
24
+
25
+ require "google/apps/meet/v2beta/spaces_service/credentials"
26
+ require "google/apps/meet/v2beta/spaces_service/paths"
27
+ require "google/apps/meet/v2beta/spaces_service/rest/client"
28
+
29
+ module Google
30
+ module Apps
31
+ module Meet
32
+ module V2beta
33
+ ##
34
+ # REST API for services dealing with spaces.
35
+ #
36
+ # To load this service and instantiate a REST client:
37
+ #
38
+ # require "google/apps/meet/v2beta/spaces_service/rest"
39
+ # client = ::Google::Apps::Meet::V2beta::SpacesService::Rest::Client.new
40
+ #
41
+ module SpacesService
42
+ # Client for the REST transport
43
+ module Rest
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+
51
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
52
+ require "google/apps/meet/v2beta/spaces_service/rest/helpers" if ::File.file? helper_path
@@ -0,0 +1,55 @@
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/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/apps/meet/v2beta/version"
24
+
25
+ require "google/apps/meet/v2beta/spaces_service/credentials"
26
+ require "google/apps/meet/v2beta/spaces_service/paths"
27
+ require "google/apps/meet/v2beta/spaces_service/client"
28
+ require "google/apps/meet/v2beta/spaces_service/rest"
29
+
30
+ module Google
31
+ module Apps
32
+ module Meet
33
+ module V2beta
34
+ ##
35
+ # REST API for services dealing with spaces.
36
+ #
37
+ # @example Load this service and instantiate a gRPC client
38
+ #
39
+ # require "google/apps/meet/v2beta/spaces_service"
40
+ # client = ::Google::Apps::Meet::V2beta::SpacesService::Client.new
41
+ #
42
+ # @example Load this service and instantiate a REST client
43
+ #
44
+ # require "google/apps/meet/v2beta/spaces_service/rest"
45
+ # client = ::Google::Apps::Meet::V2beta::SpacesService::Rest::Client.new
46
+ #
47
+ module SpacesService
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+
54
+ helper_path = ::File.join __dir__, "spaces_service", "helpers.rb"
55
+ require "google/apps/meet/v2beta/spaces_service/helpers" if ::File.file? helper_path
@@ -1,10 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Copyright 2023 Google LLC
2
4
  #
3
5
  # Licensed under the Apache License, Version 2.0 (the "License");
4
6
  # you may not use this file except in compliance with the License.
5
7
  # You may obtain a copy of the License at
6
8
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # https://www.apache.org/licenses/LICENSE-2.0
8
10
  #
9
11
  # Unless required by applicable law or agreed to in writing, software
10
12
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -12,11 +14,14 @@
12
14
  # See the License for the specific language governing permissions and
13
15
  # limitations under the License.
14
16
 
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
15
20
  module Google
16
21
  module Apps
17
22
  module Meet
18
23
  module V2beta
19
- VERSION = "0.a"
24
+ VERSION = "0.2.0"
20
25
  end
21
26
  end
22
27
  end
@@ -0,0 +1,46 @@
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/apps/meet/v2beta/spaces_service"
20
+ require "google/apps/meet/v2beta/conference_records_service"
21
+ require "google/apps/meet/v2beta/version"
22
+
23
+ module Google
24
+ module Apps
25
+ module Meet
26
+ ##
27
+ # API client module.
28
+ #
29
+ # @example Load this package, including all its services, and instantiate a gRPC client
30
+ #
31
+ # require "google/apps/meet/v2beta"
32
+ # client = ::Google::Apps::Meet::V2beta::SpacesService::Client.new
33
+ #
34
+ # @example Load this package, including all its services, and instantiate a REST client
35
+ #
36
+ # require "google/apps/meet/v2beta"
37
+ # client = ::Google::Apps::Meet::V2beta::SpacesService::Rest::Client.new
38
+ #
39
+ module V2beta
40
+ end
41
+ end
42
+ end
43
+ end
44
+
45
+ helper_path = ::File.join __dir__, "v2beta", "_helpers.rb"
46
+ require "google/apps/meet/v2beta/_helpers" if ::File.file? helper_path
@@ -0,0 +1,21 @@
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
+ # This gem does not autoload during Bundler.require. To load this gem,
20
+ # issue explicit require statements for the packages desired, e.g.:
21
+ # require "google/apps/meet/v2beta"
@@ -0,0 +1,4 @@
1
+ # Google Meet V2BETA Protocol Buffer Documentation
2
+
3
+ These files are for the YARD documentation of the generated protobuf files.
4
+ They are not intended to be required or loaded at runtime.