google-cloud-gsuite_add_ons-v1 0.2.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 209fff004e4fdc74197fe8ac594550fd029734c36ff6fc39e116224423fab379
4
- data.tar.gz: 29995eb0b4902ff9ba914bed26321c89bc1aaeaaae897afe5d6e4332fcf6ced7
3
+ metadata.gz: f8488df2cb10bb111599280e4f4ccf0eccbe9240a697be4031697d871b959e02
4
+ data.tar.gz: 51809d6a29f1e75210c623bcc574b4314ebfefa1d6bbc70dd0ee7b9c6100570d
5
5
  SHA512:
6
- metadata.gz: e0a2bd3ee3237224cf38eb3af25fa283bd149bf1c7fadbb39d23cac08c3351171187618c12cc78f7f299876ad050c374237acff8e703573a8bc1286e9379a602
7
- data.tar.gz: c634f89aaa72e1a989dfbeb907c426cac4a6655e1e4ed25f3e70b9414ef1421c7c914255e63b35f6a9112cd384784d767c3b8f7030d01607c2513f78c9a1cabf
6
+ metadata.gz: 7e16fabcddee46fda1499ab6986c3eeec026308dea75a2cf62def12e7edcb165a738c581374555fba39f7a45e2f78998dd73cede07065a499a15b41f5d300467
7
+ data.tar.gz: 59b6a39dfe78ba3a3c66c5877bc1c60e16953426f2788422ce266c9f52a9e9671c6f143915dc39cce18808a22d942ee61c9a954a9cec6414ddbbd3d9380a6b1f
data/README.md CHANGED
@@ -47,7 +47,7 @@ for general usage information.
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
49
  The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
50
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
53
 
@@ -161,7 +161,7 @@ module Google
161
161
  credentials = @config.credentials
162
162
  # Use self-signed JWT if the endpoint is unchanged from default,
163
163
  # but only if the default endpoint does not have a region prefix.
164
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
164
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
165
165
  !@config.endpoint.split(".").first.include?("-")
166
166
  credentials ||= Credentials.default scope: @config.scope,
167
167
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -176,7 +176,8 @@ module Google
176
176
  credentials: credentials,
177
177
  endpoint: @config.endpoint,
178
178
  channel_args: @config.channel_args,
179
- interceptors: @config.interceptors
179
+ interceptors: @config.interceptors,
180
+ channel_pool_config: @config.channel_pool
180
181
  )
181
182
  end
182
183
 
@@ -1030,9 +1031,9 @@ module Google
1030
1031
  # * (`String`) The path to a service account key file in JSON format
1031
1032
  # * (`Hash`) A service account key as a Hash
1032
1033
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1033
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1034
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1034
1035
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1035
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1036
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1036
1037
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1037
1038
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1038
1039
  # * (`nil`) indicating no credentials
@@ -1074,7 +1075,9 @@ module Google
1074
1075
  class Configuration
1075
1076
  extend ::Gapic::Config
1076
1077
 
1077
- config_attr :endpoint, "gsuiteaddons.googleapis.com", ::String
1078
+ DEFAULT_ENDPOINT = "gsuiteaddons.googleapis.com"
1079
+
1080
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1078
1081
  config_attr :credentials, nil do |value|
1079
1082
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1080
1083
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -1109,6 +1112,14 @@ module Google
1109
1112
  end
1110
1113
  end
1111
1114
 
1115
+ ##
1116
+ # Configuration for the channel pool
1117
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1118
+ #
1119
+ def channel_pool
1120
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1121
+ end
1122
+
1112
1123
  ##
1113
1124
  # Configuration RPC class for the GSuiteAddOns API.
1114
1125
  #
@@ -157,7 +157,7 @@ module Google
157
157
  credentials = @config.credentials
158
158
  # Use self-signed JWT if the endpoint is unchanged from default,
159
159
  # but only if the default endpoint does not have a region prefix.
160
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
160
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
161
161
  !@config.endpoint.split(".").first.include?("-")
162
162
  credentials ||= Credentials.default scope: @config.scope,
163
163
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -203,6 +203,22 @@ module Google
203
203
  # @return [::Google::Cloud::GSuiteAddOns::V1::Authorization]
204
204
  #
205
205
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
206
+ #
207
+ # @example Basic example
208
+ # require "google/cloud/gsuite_add_ons/v1"
209
+ #
210
+ # # Create a client object. The client can be reused for multiple calls.
211
+ # client = Google::Cloud::GSuiteAddOns::V1::GSuiteAddOns::Rest::Client.new
212
+ #
213
+ # # Create a request. To set request fields, pass in keyword arguments.
214
+ # request = Google::Cloud::GSuiteAddOns::V1::GetAuthorizationRequest.new
215
+ #
216
+ # # Call the get_authorization method.
217
+ # result = client.get_authorization request
218
+ #
219
+ # # The returned object is of type Google::Cloud::GSuiteAddOns::V1::Authorization.
220
+ # p result
221
+ #
206
222
  def get_authorization request, options = nil
207
223
  raise ::ArgumentError, "request must be provided" if request.nil?
208
224
 
@@ -272,6 +288,22 @@ module Google
272
288
  # @return [::Google::Cloud::GSuiteAddOns::V1::Deployment]
273
289
  #
274
290
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
291
+ #
292
+ # @example Basic example
293
+ # require "google/cloud/gsuite_add_ons/v1"
294
+ #
295
+ # # Create a client object. The client can be reused for multiple calls.
296
+ # client = Google::Cloud::GSuiteAddOns::V1::GSuiteAddOns::Rest::Client.new
297
+ #
298
+ # # Create a request. To set request fields, pass in keyword arguments.
299
+ # request = Google::Cloud::GSuiteAddOns::V1::CreateDeploymentRequest.new
300
+ #
301
+ # # Call the create_deployment method.
302
+ # result = client.create_deployment request
303
+ #
304
+ # # The returned object is of type Google::Cloud::GSuiteAddOns::V1::Deployment.
305
+ # p result
306
+ #
275
307
  def create_deployment request, options = nil
276
308
  raise ::ArgumentError, "request must be provided" if request.nil?
277
309
 
@@ -334,6 +366,22 @@ module Google
334
366
  # @return [::Google::Cloud::GSuiteAddOns::V1::Deployment]
335
367
  #
336
368
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
369
+ #
370
+ # @example Basic example
371
+ # require "google/cloud/gsuite_add_ons/v1"
372
+ #
373
+ # # Create a client object. The client can be reused for multiple calls.
374
+ # client = Google::Cloud::GSuiteAddOns::V1::GSuiteAddOns::Rest::Client.new
375
+ #
376
+ # # Create a request. To set request fields, pass in keyword arguments.
377
+ # request = Google::Cloud::GSuiteAddOns::V1::ReplaceDeploymentRequest.new
378
+ #
379
+ # # Call the replace_deployment method.
380
+ # result = client.replace_deployment request
381
+ #
382
+ # # The returned object is of type Google::Cloud::GSuiteAddOns::V1::Deployment.
383
+ # p result
384
+ #
337
385
  def replace_deployment request, options = nil
338
386
  raise ::ArgumentError, "request must be provided" if request.nil?
339
387
 
@@ -398,6 +446,22 @@ module Google
398
446
  # @return [::Google::Cloud::GSuiteAddOns::V1::Deployment]
399
447
  #
400
448
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
449
+ #
450
+ # @example Basic example
451
+ # require "google/cloud/gsuite_add_ons/v1"
452
+ #
453
+ # # Create a client object. The client can be reused for multiple calls.
454
+ # client = Google::Cloud::GSuiteAddOns::V1::GSuiteAddOns::Rest::Client.new
455
+ #
456
+ # # Create a request. To set request fields, pass in keyword arguments.
457
+ # request = Google::Cloud::GSuiteAddOns::V1::GetDeploymentRequest.new
458
+ #
459
+ # # Call the get_deployment method.
460
+ # result = client.get_deployment request
461
+ #
462
+ # # The returned object is of type Google::Cloud::GSuiteAddOns::V1::Deployment.
463
+ # p result
464
+ #
401
465
  def get_deployment request, options = nil
402
466
  raise ::ArgumentError, "request must be provided" if request.nil?
403
467
 
@@ -473,6 +537,26 @@ module Google
473
537
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::GSuiteAddOns::V1::Deployment>]
474
538
  #
475
539
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
540
+ #
541
+ # @example Basic example
542
+ # require "google/cloud/gsuite_add_ons/v1"
543
+ #
544
+ # # Create a client object. The client can be reused for multiple calls.
545
+ # client = Google::Cloud::GSuiteAddOns::V1::GSuiteAddOns::Rest::Client.new
546
+ #
547
+ # # Create a request. To set request fields, pass in keyword arguments.
548
+ # request = Google::Cloud::GSuiteAddOns::V1::ListDeploymentsRequest.new
549
+ #
550
+ # # Call the list_deployments method.
551
+ # result = client.list_deployments request
552
+ #
553
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
554
+ # # over elements, and API calls will be issued to fetch pages as needed.
555
+ # result.each do |item|
556
+ # # Each element is of type ::Google::Cloud::GSuiteAddOns::V1::Deployment.
557
+ # p item
558
+ # end
559
+ #
476
560
  def list_deployments request, options = nil
477
561
  raise ::ArgumentError, "request must be provided" if request.nil?
478
562
 
@@ -541,6 +625,22 @@ module Google
541
625
  # @return [::Google::Protobuf::Empty]
542
626
  #
543
627
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
628
+ #
629
+ # @example Basic example
630
+ # require "google/cloud/gsuite_add_ons/v1"
631
+ #
632
+ # # Create a client object. The client can be reused for multiple calls.
633
+ # client = Google::Cloud::GSuiteAddOns::V1::GSuiteAddOns::Rest::Client.new
634
+ #
635
+ # # Create a request. To set request fields, pass in keyword arguments.
636
+ # request = Google::Cloud::GSuiteAddOns::V1::DeleteDeploymentRequest.new
637
+ #
638
+ # # Call the delete_deployment method.
639
+ # result = client.delete_deployment request
640
+ #
641
+ # # The returned object is of type Google::Protobuf::Empty.
642
+ # p result
643
+ #
544
644
  def delete_deployment request, options = nil
545
645
  raise ::ArgumentError, "request must be provided" if request.nil?
546
646
 
@@ -607,6 +707,22 @@ module Google
607
707
  # @return [::Google::Protobuf::Empty]
608
708
  #
609
709
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
710
+ #
711
+ # @example Basic example
712
+ # require "google/cloud/gsuite_add_ons/v1"
713
+ #
714
+ # # Create a client object. The client can be reused for multiple calls.
715
+ # client = Google::Cloud::GSuiteAddOns::V1::GSuiteAddOns::Rest::Client.new
716
+ #
717
+ # # Create a request. To set request fields, pass in keyword arguments.
718
+ # request = Google::Cloud::GSuiteAddOns::V1::InstallDeploymentRequest.new
719
+ #
720
+ # # Call the install_deployment method.
721
+ # result = client.install_deployment request
722
+ #
723
+ # # The returned object is of type Google::Protobuf::Empty.
724
+ # p result
725
+ #
610
726
  def install_deployment request, options = nil
611
727
  raise ::ArgumentError, "request must be provided" if request.nil?
612
728
 
@@ -673,6 +789,22 @@ module Google
673
789
  # @return [::Google::Protobuf::Empty]
674
790
  #
675
791
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
792
+ #
793
+ # @example Basic example
794
+ # require "google/cloud/gsuite_add_ons/v1"
795
+ #
796
+ # # Create a client object. The client can be reused for multiple calls.
797
+ # client = Google::Cloud::GSuiteAddOns::V1::GSuiteAddOns::Rest::Client.new
798
+ #
799
+ # # Create a request. To set request fields, pass in keyword arguments.
800
+ # request = Google::Cloud::GSuiteAddOns::V1::UninstallDeploymentRequest.new
801
+ #
802
+ # # Call the uninstall_deployment method.
803
+ # result = client.uninstall_deployment request
804
+ #
805
+ # # The returned object is of type Google::Protobuf::Empty.
806
+ # p result
807
+ #
676
808
  def uninstall_deployment request, options = nil
677
809
  raise ::ArgumentError, "request must be provided" if request.nil?
678
810
 
@@ -737,6 +869,22 @@ module Google
737
869
  # @return [::Google::Cloud::GSuiteAddOns::V1::InstallStatus]
738
870
  #
739
871
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
872
+ #
873
+ # @example Basic example
874
+ # require "google/cloud/gsuite_add_ons/v1"
875
+ #
876
+ # # Create a client object. The client can be reused for multiple calls.
877
+ # client = Google::Cloud::GSuiteAddOns::V1::GSuiteAddOns::Rest::Client.new
878
+ #
879
+ # # Create a request. To set request fields, pass in keyword arguments.
880
+ # request = Google::Cloud::GSuiteAddOns::V1::GetInstallStatusRequest.new
881
+ #
882
+ # # Call the get_install_status method.
883
+ # result = client.get_install_status request
884
+ #
885
+ # # The returned object is of type Google::Cloud::GSuiteAddOns::V1::InstallStatus.
886
+ # p result
887
+ #
740
888
  def get_install_status request, options = nil
741
889
  raise ::ArgumentError, "request must be provided" if request.nil?
742
890
 
@@ -810,9 +958,9 @@ module Google
810
958
  # * (`String`) The path to a service account key file in JSON format
811
959
  # * (`Hash`) A service account key as a Hash
812
960
  # * (`Google::Auth::Credentials`) A googleauth credentials object
813
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
961
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
814
962
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
815
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
963
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
816
964
  # * (`nil`) indicating no credentials
817
965
  # @return [::Object]
818
966
  # @!attribute [rw] scope
@@ -845,7 +993,9 @@ module Google
845
993
  class Configuration
846
994
  extend ::Gapic::Config
847
995
 
848
- config_attr :endpoint, "gsuiteaddons.googleapis.com", ::String
996
+ DEFAULT_ENDPOINT = "gsuiteaddons.googleapis.com"
997
+
998
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
849
999
  config_attr :credentials, nil do |value|
850
1000
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
851
1001
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_get_authorization_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_create_deployment_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_replace_deployment_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_get_deployment_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_list_deployments_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -249,7 +249,7 @@ module Google
249
249
 
250
250
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_deployment_request request_pb
251
251
  query_string_params = if query_string_params.any?
252
- query_string_params.to_h { |p| p.split("=", 2) }
252
+ query_string_params.to_h { |p| p.split "=", 2 }
253
253
  else
254
254
  {}
255
255
  end
@@ -287,7 +287,7 @@ module Google
287
287
 
288
288
  verb, uri, query_string_params, body = ServiceStub.transcode_install_deployment_request request_pb
289
289
  query_string_params = if query_string_params.any?
290
- query_string_params.to_h { |p| p.split("=", 2) }
290
+ query_string_params.to_h { |p| p.split "=", 2 }
291
291
  else
292
292
  {}
293
293
  end
@@ -325,7 +325,7 @@ module Google
325
325
 
326
326
  verb, uri, query_string_params, body = ServiceStub.transcode_uninstall_deployment_request request_pb
327
327
  query_string_params = if query_string_params.any?
328
- query_string_params.to_h { |p| p.split("=", 2) }
328
+ query_string_params.to_h { |p| p.split "=", 2 }
329
329
  else
330
330
  {}
331
331
  end
@@ -363,7 +363,7 @@ module Google
363
363
 
364
364
  verb, uri, query_string_params, body = ServiceStub.transcode_get_install_status_request request_pb
365
365
  query_string_params = if query_string_params.any?
366
- query_string_params.to_h { |p| p.split("=", 2) }
366
+ query_string_params.to_h { |p| p.split "=", 2 }
367
367
  else
368
368
  {}
369
369
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module GSuiteAddOns
23
23
  module V1
24
- VERSION = "0.2.0"
24
+ VERSION = "0.4.0"
25
25
  end
26
26
  end
27
27
  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/gsuiteaddons/v1/gsuiteaddons.proto
3
4
 
@@ -17,70 +18,39 @@ require 'google/apps/script/type/slides/slides_addon_manifest_pb'
17
18
  require 'google/protobuf/empty_pb'
18
19
  require 'google/protobuf/wrappers_pb'
19
20
 
20
- Google::Protobuf::DescriptorPool.generated_pool.build do
21
- add_file("google/cloud/gsuiteaddons/v1/gsuiteaddons.proto", :syntax => :proto3) do
22
- add_message "google.cloud.gsuiteaddons.v1.GetAuthorizationRequest" do
23
- optional :name, :string, 2
24
- end
25
- add_message "google.cloud.gsuiteaddons.v1.Authorization" do
26
- optional :name, :string, 1
27
- optional :service_account_email, :string, 2
28
- optional :oauth_client_id, :string, 3
29
- end
30
- add_message "google.cloud.gsuiteaddons.v1.CreateDeploymentRequest" do
31
- optional :parent, :string, 1
32
- optional :deployment_id, :string, 2
33
- optional :deployment, :message, 3, "google.cloud.gsuiteaddons.v1.Deployment"
34
- end
35
- add_message "google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest" do
36
- optional :deployment, :message, 2, "google.cloud.gsuiteaddons.v1.Deployment"
37
- end
38
- add_message "google.cloud.gsuiteaddons.v1.GetDeploymentRequest" do
39
- optional :name, :string, 1
40
- end
41
- add_message "google.cloud.gsuiteaddons.v1.ListDeploymentsRequest" do
42
- optional :parent, :string, 1
43
- optional :page_size, :int32, 2
44
- optional :page_token, :string, 3
45
- end
46
- add_message "google.cloud.gsuiteaddons.v1.ListDeploymentsResponse" do
47
- repeated :deployments, :message, 1, "google.cloud.gsuiteaddons.v1.Deployment"
48
- optional :next_page_token, :string, 2
49
- end
50
- add_message "google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest" do
51
- optional :name, :string, 1
52
- optional :etag, :string, 2
53
- end
54
- add_message "google.cloud.gsuiteaddons.v1.InstallDeploymentRequest" do
55
- optional :name, :string, 1
56
- end
57
- add_message "google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest" do
58
- optional :name, :string, 1
59
- end
60
- add_message "google.cloud.gsuiteaddons.v1.GetInstallStatusRequest" do
61
- optional :name, :string, 1
62
- end
63
- add_message "google.cloud.gsuiteaddons.v1.InstallStatus" do
64
- optional :name, :string, 1
65
- optional :installed, :message, 2, "google.protobuf.BoolValue"
66
- end
67
- add_message "google.cloud.gsuiteaddons.v1.Deployment" do
68
- optional :name, :string, 1
69
- repeated :oauth_scopes, :string, 2
70
- optional :add_ons, :message, 3, "google.cloud.gsuiteaddons.v1.AddOns"
71
- optional :etag, :string, 5
72
- end
73
- add_message "google.cloud.gsuiteaddons.v1.AddOns" do
74
- optional :common, :message, 1, "google.apps.script.type.CommonAddOnManifest"
75
- optional :gmail, :message, 2, "google.apps.script.type.gmail.GmailAddOnManifest"
76
- optional :drive, :message, 5, "google.apps.script.type.drive.DriveAddOnManifest"
77
- optional :calendar, :message, 6, "google.apps.script.type.calendar.CalendarAddOnManifest"
78
- optional :docs, :message, 7, "google.apps.script.type.docs.DocsAddOnManifest"
79
- optional :sheets, :message, 8, "google.apps.script.type.sheets.SheetsAddOnManifest"
80
- optional :slides, :message, 10, "google.apps.script.type.slides.SlidesAddOnManifest"
81
- optional :http_options, :message, 15, "google.apps.script.type.HttpOptions"
21
+
22
+ descriptor_data = "\n/google/cloud/gsuiteaddons/v1/gsuiteaddons.proto\x12\x1cgoogle.cloud.gsuiteaddons.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a>google/apps/script/type/calendar/calendar_addon_manifest.proto\x1a\x36google/apps/script/type/docs/docs_addon_manifest.proto\x1a\x38google/apps/script/type/drive/drive_addon_manifest.proto\x1a\x38google/apps/script/type/gmail/gmail_addon_manifest.proto\x1a-google/apps/script/type/script_manifest.proto\x1a:google/apps/script/type/sheets/sheets_addon_manifest.proto\x1a:google/apps/script/type/slides/slides_addon_manifest.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1egoogle/protobuf/wrappers.proto\"Z\n\x17GetAuthorizationRequest\x12?\n\x04name\x18\x02 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)gsuiteaddons.googleapis.com/Authorization\"\xa7\x01\n\rAuthorization\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1d\n\x15service_account_email\x18\x02 \x01(\t\x12\x17\n\x0foauth_client_id\x18\x03 \x01(\t:P\xea\x41M\n)gsuiteaddons.googleapis.com/Authorization\x12 projects/{project}/authorization\"\xbd\x01\n\x17\x43reateDeploymentRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x1a\n\rdeployment_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x41\n\ndeployment\x18\x03 \x01(\x0b\x32(.google.cloud.gsuiteaddons.v1.DeploymentB\x03\xe0\x41\x02\"]\n\x18ReplaceDeploymentRequest\x12\x41\n\ndeployment\x18\x02 \x01(\x0b\x32(.google.cloud.gsuiteaddons.v1.DeploymentB\x03\xe0\x41\x02\"T\n\x14GetDeploymentRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&gsuiteaddons.googleapis.com/Deployment\"\x84\x01\n\x16ListDeploymentsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"q\n\x17ListDeploymentsResponse\x12=\n\x0b\x64\x65ployments\x18\x01 \x03(\x0b\x32(.google.cloud.gsuiteaddons.v1.Deployment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"e\n\x17\x44\x65leteDeploymentRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&gsuiteaddons.googleapis.com/Deployment\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\"X\n\x18InstallDeploymentRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&gsuiteaddons.googleapis.com/Deployment\"Z\n\x1aUninstallDeploymentRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&gsuiteaddons.googleapis.com/Deployment\"Z\n\x17GetInstallStatusRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)gsuiteaddons.googleapis.com/InstallStatus\"\xb7\x01\n\rInstallStatus\x12\x0c\n\x04name\x18\x01 \x01(\t\x12-\n\tinstalled\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.BoolValue:i\xea\x41\x66\n)gsuiteaddons.googleapis.com/InstallStatus\x12\x39projects/{project}/deployments/{deployment}/installStatus\"\xcf\x01\n\nDeployment\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0coauth_scopes\x18\x02 \x03(\t\x12\x35\n\x07\x61\x64\x64_ons\x18\x03 \x01(\x0b\x32$.google.cloud.gsuiteaddons.v1.AddOns\x12\x0c\n\x04\x65tag\x18\x05 \x01(\t:X\xea\x41U\n&gsuiteaddons.googleapis.com/Deployment\x12+projects/{project}/deployments/{deployment}\"\x9a\x04\n\x06\x41\x64\x64Ons\x12<\n\x06\x63ommon\x18\x01 \x01(\x0b\x32,.google.apps.script.type.CommonAddOnManifest\x12@\n\x05gmail\x18\x02 \x01(\x0b\x32\x31.google.apps.script.type.gmail.GmailAddOnManifest\x12@\n\x05\x64rive\x18\x05 \x01(\x0b\x32\x31.google.apps.script.type.drive.DriveAddOnManifest\x12I\n\x08\x63\x61lendar\x18\x06 \x01(\x0b\x32\x37.google.apps.script.type.calendar.CalendarAddOnManifest\x12=\n\x04\x64ocs\x18\x07 \x01(\x0b\x32/.google.apps.script.type.docs.DocsAddOnManifest\x12\x43\n\x06sheets\x18\x08 \x01(\x0b\x32\x33.google.apps.script.type.sheets.SheetsAddOnManifest\x12\x43\n\x06slides\x18\n \x01(\x0b\x32\x33.google.apps.script.type.slides.SlidesAddOnManifest\x12:\n\x0chttp_options\x18\x0f \x01(\x0b\x32$.google.apps.script.type.HttpOptions2\xa4\r\n\x0cGSuiteAddOns\x12\xaa\x01\n\x10GetAuthorization\x12\x35.google.cloud.gsuiteaddons.v1.GetAuthorizationRequest\x1a+.google.cloud.gsuiteaddons.v1.Authorization\"2\x82\xd3\xe4\x93\x02%\x12#/v1/{name=projects/*/authorization}\xda\x41\x04name\x12\xce\x01\n\x10\x43reateDeployment\x12\x35.google.cloud.gsuiteaddons.v1.CreateDeploymentRequest\x1a(.google.cloud.gsuiteaddons.v1.Deployment\"Y\x82\xd3\xe4\x93\x02\x31\"#/v1/{parent=projects/*}/deployments:\ndeployment\xda\x41\x1fparent,deployment,deployment_id\x12\xc6\x01\n\x11ReplaceDeployment\x12\x36.google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest\x1a(.google.cloud.gsuiteaddons.v1.Deployment\"O\x82\xd3\xe4\x93\x02<\x1a./v1/{deployment.name=projects/*/deployments/*}:\ndeployment\xda\x41\ndeployment\x12\xa1\x01\n\rGetDeployment\x12\x32.google.cloud.gsuiteaddons.v1.GetDeploymentRequest\x1a(.google.cloud.gsuiteaddons.v1.Deployment\"2\x82\xd3\xe4\x93\x02%\x12#/v1/{name=projects/*/deployments/*}\xda\x41\x04name\x12\xb4\x01\n\x0fListDeployments\x12\x34.google.cloud.gsuiteaddons.v1.ListDeploymentsRequest\x1a\x35.google.cloud.gsuiteaddons.v1.ListDeploymentsResponse\"4\x82\xd3\xe4\x93\x02%\x12#/v1/{parent=projects/*}/deployments\xda\x41\x06parent\x12\x95\x01\n\x10\x44\x65leteDeployment\x12\x35.google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest\x1a\x16.google.protobuf.Empty\"2\x82\xd3\xe4\x93\x02%*#/v1/{name=projects/*/deployments/*}\xda\x41\x04name\x12\xa2\x01\n\x11InstallDeployment\x12\x36.google.cloud.gsuiteaddons.v1.InstallDeploymentRequest\x1a\x16.google.protobuf.Empty\"=\x82\xd3\xe4\x93\x02\x30\"+/v1/{name=projects/*/deployments/*}:install:\x01*\xda\x41\x04name\x12\xa8\x01\n\x13UninstallDeployment\x12\x38.google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest\x1a\x16.google.protobuf.Empty\"?\x82\xd3\xe4\x93\x02\x32\"-/v1/{name=projects/*/deployments/*}:uninstall:\x01*\xda\x41\x04name\x12\xb8\x01\n\x10GetInstallStatus\x12\x35.google.cloud.gsuiteaddons.v1.GetInstallStatusRequest\x1a+.google.cloud.gsuiteaddons.v1.InstallStatus\"@\x82\xd3\xe4\x93\x02\x33\x12\x31/v1/{name=projects/*/deployments/*/installStatus}\xda\x41\x04name\x1aO\xca\x41\x1bgsuiteaddons.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xdd\x01\n com.google.cloud.gsuiteaddons.v1B\x11GSuiteAddOnsProtoP\x01ZDcloud.google.com/go/gsuiteaddons/apiv1/gsuiteaddonspb;gsuiteaddonspb\xaa\x02\x1cGoogle.Cloud.GSuiteAddOns.V1\xca\x02\x1cGoogle\\Cloud\\GSuiteAddOns\\V1\xea\x02\x1fGoogle::Cloud::GSuiteAddOns::V1b\x06proto3"
23
+
24
+ pool = Google::Protobuf::DescriptorPool.generated_pool
25
+
26
+ begin
27
+ pool.add_serialized_file(descriptor_data)
28
+ rescue TypeError => e
29
+ # Compatibility code: will be removed in the next major version.
30
+ require 'google/protobuf/descriptor_pb'
31
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
32
+ parsed.clear_dependency
33
+ serialized = parsed.class.encode(parsed)
34
+ file = pool.add_serialized_file(serialized)
35
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
36
+ imports = [
37
+ ["google.protobuf.BoolValue", "google/protobuf/wrappers.proto"],
38
+ ["google.apps.script.type.CommonAddOnManifest", "google/apps/script/type/script_manifest.proto"],
39
+ ["google.apps.script.type.gmail.GmailAddOnManifest", "google/apps/script/type/gmail/gmail_addon_manifest.proto"],
40
+ ["google.apps.script.type.drive.DriveAddOnManifest", "google/apps/script/type/drive/drive_addon_manifest.proto"],
41
+ ["google.apps.script.type.calendar.CalendarAddOnManifest", "google/apps/script/type/calendar/calendar_addon_manifest.proto"],
42
+ ["google.apps.script.type.docs.DocsAddOnManifest", "google/apps/script/type/docs/docs_addon_manifest.proto"],
43
+ ["google.apps.script.type.sheets.SheetsAddOnManifest", "google/apps/script/type/sheets/sheets_addon_manifest.proto"],
44
+ ["google.apps.script.type.slides.SlidesAddOnManifest", "google/apps/script/type/slides/slides_addon_manifest.proto"],
45
+ ]
46
+ imports.each do |type_name, expected_filename|
47
+ import_file = pool.lookup(type_name).file_descriptor
48
+ if import_file.name != expected_filename
49
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
82
50
  end
83
51
  end
52
+ warn "Each proto file must use a consistent fully-qualified name."
53
+ warn "This will become an error in the next major version."
84
54
  end
85
55
 
86
56
  module Google
@@ -35,7 +35,9 @@ module Google
35
35
  # Details about how and where to publish client libraries.
36
36
  # @!attribute [rw] version
37
37
  # @return [::String]
38
- # Version of the API to apply these settings to.
38
+ # Version of the API to apply these settings to. This is the full protobuf
39
+ # package for the API, ending in the version element.
40
+ # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
39
41
  # @!attribute [rw] launch_stage
40
42
  # @return [::Google::Api::LaunchStage]
41
43
  # Launch stage of this version of the API.
@@ -81,7 +83,7 @@ module Google
81
83
  # long-running operation pattern.
82
84
  # @!attribute [rw] new_issue_uri
83
85
  # @return [::String]
84
- # Link to a place that API users can report issues. Example:
86
+ # Link to a *public* URI where users can report issues. Example:
85
87
  # https://issuetracker.google.com/issues/new?component=190865&template=1161103
86
88
  # @!attribute [rw] documentation_uri
87
89
  # @return [::String]
@@ -111,6 +113,10 @@ module Google
111
113
  # Client library settings. If the same version string appears multiple
112
114
  # times in this list, then the last one wins. Settings from earlier
113
115
  # settings with the same version string are discarded.
116
+ # @!attribute [rw] proto_reference_documentation_uri
117
+ # @return [::String]
118
+ # Optional link to proto reference documentation. Example:
119
+ # https://cloud.google.com/pubsub/lite/docs/reference/rpc
114
120
  class Publishing
115
121
  include ::Google::Protobuf::MessageExts
116
122
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -203,9 +209,57 @@ module Google
203
209
  # @!attribute [rw] common
204
210
  # @return [::Google::Api::CommonLanguageSettings]
205
211
  # Some settings.
212
+ # @!attribute [rw] renamed_services
213
+ # @return [::Google::Protobuf::Map{::String => ::String}]
214
+ # Map from original service names to renamed versions.
215
+ # This is used when the default generated types
216
+ # would cause a naming conflict. (Neither name is
217
+ # fully-qualified.)
218
+ # Example: Subscriber to SubscriberServiceApi.
219
+ # @!attribute [rw] renamed_resources
220
+ # @return [::Google::Protobuf::Map{::String => ::String}]
221
+ # Map from full resource types to the effective short name
222
+ # for the resource. This is used when otherwise resource
223
+ # named from different services would cause naming collisions.
224
+ # Example entry:
225
+ # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
226
+ # @!attribute [rw] ignored_resources
227
+ # @return [::Array<::String>]
228
+ # List of full resource types to ignore during generation.
229
+ # This is typically used for API-specific Location resources,
230
+ # which should be handled by the generator as if they were actually
231
+ # the common Location resources.
232
+ # Example entry: "documentai.googleapis.com/Location"
233
+ # @!attribute [rw] forced_namespace_aliases
234
+ # @return [::Array<::String>]
235
+ # Namespaces which must be aliased in snippets due to
236
+ # a known (but non-generator-predictable) naming collision
237
+ # @!attribute [rw] handwritten_signatures
238
+ # @return [::Array<::String>]
239
+ # Method signatures (in the form "service.method(signature)")
240
+ # which are provided separately, so shouldn't be generated.
241
+ # Snippets *calling* these methods are still generated, however.
206
242
  class DotnetSettings
207
243
  include ::Google::Protobuf::MessageExts
208
244
  extend ::Google::Protobuf::MessageExts::ClassMethods
245
+
246
+ # @!attribute [rw] key
247
+ # @return [::String]
248
+ # @!attribute [rw] value
249
+ # @return [::String]
250
+ class RenamedServicesEntry
251
+ include ::Google::Protobuf::MessageExts
252
+ extend ::Google::Protobuf::MessageExts::ClassMethods
253
+ end
254
+
255
+ # @!attribute [rw] key
256
+ # @return [::String]
257
+ # @!attribute [rw] value
258
+ # @return [::String]
259
+ class RenamedResourcesEntry
260
+ include ::Google::Protobuf::MessageExts
261
+ extend ::Google::Protobuf::MessageExts::ClassMethods
262
+ end
209
263
  end
210
264
 
211
265
  # Settings for Ruby client libraries.
@@ -240,8 +294,8 @@ module Google
240
294
  # Example of a YAML configuration::
241
295
  #
242
296
  # publishing:
243
- # method_behavior:
244
- # - selector: CreateAdDomain
297
+ # method_settings:
298
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
245
299
  # long_running:
246
300
  # initial_poll_delay:
247
301
  # seconds: 60 # 1 minute
@@ -299,6 +353,15 @@ module Google
299
353
 
300
354
  # Street View Org.
301
355
  STREET_VIEW = 4
356
+
357
+ # Shopping Org.
358
+ SHOPPING = 5
359
+
360
+ # Geo Org.
361
+ GEO = 6
362
+
363
+ # Generative AI - https://developers.generativeai.google
364
+ GENERATIVE_AI = 7
302
365
  end
303
366
 
304
367
  # To where should client libraries be published?
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
@@ -87,7 +87,7 @@ module Google
87
87
  # `NullValue` is a singleton enumeration to represent the null value for the
88
88
  # `Value` type union.
89
89
  #
90
- # The JSON representation for `NullValue` is JSON `null`.
90
+ # The JSON representation for `NullValue` is JSON `null`.
91
91
  module NullValue
92
92
  # Null value.
93
93
  NULL_VALUE = 0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-gsuite_add_ons-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-08 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.18.0
19
+ version: 0.20.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.18.0
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -240,7 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
240
  - !ruby/object:Gem::Version
241
241
  version: '0'
242
242
  requirements: []
243
- rubygems_version: 3.4.2
243
+ rubygems_version: 3.4.19
244
244
  signing_key:
245
245
  specification_version: 4
246
246
  summary: API Client library for the Google Workspace Add-ons V1 API