google-cloud-gsuite_add_ons-v1 0.2.0 → 0.3.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: 7223976b2917818c24b56c9712b221593358e0d2c5fd6667f57413f06d0673c6
4
+ data.tar.gz: '0836f428c585399fcfc7d994334f8ac5d145f55ebdc32c0b7b46d3bfb6aaefe7'
5
5
  SHA512:
6
- metadata.gz: e0a2bd3ee3237224cf38eb3af25fa283bd149bf1c7fadbb39d23cac08c3351171187618c12cc78f7f299876ad050c374237acff8e703573a8bc1286e9379a602
7
- data.tar.gz: c634f89aaa72e1a989dfbeb907c426cac4a6655e1e4ed25f3e70b9414ef1421c7c914255e63b35f6a9112cd384784d767c3b8f7030d01607c2513f78c9a1cabf
6
+ metadata.gz: eef6137067e54ef94492a9bf56ebb37dc0da89a9f448e0049cf1fac80499f86a352fa5d11d7234dae20816939f156987247441fc72e2638be6d3a0813e17d0dd
7
+ data.tar.gz: 171585b72f63a59350fc2e07d0762dc3107716191dd78916e4cb3af750a6af7e4d8f6f81eabd333a1cc1c78ae3f364cfcda1573584f0be8d261ec6d06271ab60
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
@@ -1030,9 +1030,9 @@ module Google
1030
1030
  # * (`String`) The path to a service account key file in JSON format
1031
1031
  # * (`Hash`) A service account key as a Hash
1032
1032
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1033
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1033
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1034
1034
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1035
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1035
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1036
1036
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1037
1037
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1038
1038
  # * (`nil`) indicating no credentials
@@ -1074,7 +1074,9 @@ module Google
1074
1074
  class Configuration
1075
1075
  extend ::Gapic::Config
1076
1076
 
1077
- config_attr :endpoint, "gsuiteaddons.googleapis.com", ::String
1077
+ DEFAULT_ENDPOINT = "gsuiteaddons.googleapis.com"
1078
+
1079
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1078
1080
  config_attr :credentials, nil do |value|
1079
1081
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1080
1082
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -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
@@ -810,9 +810,9 @@ module Google
810
810
  # * (`String`) The path to a service account key file in JSON format
811
811
  # * (`Hash`) A service account key as a Hash
812
812
  # * (`Google::Auth::Credentials`) A googleauth credentials object
813
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
813
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
814
814
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
815
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
815
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
816
816
  # * (`nil`) indicating no credentials
817
817
  # @return [::Object]
818
818
  # @!attribute [rw] scope
@@ -845,7 +845,9 @@ module Google
845
845
  class Configuration
846
846
  extend ::Gapic::Config
847
847
 
848
- config_attr :endpoint, "gsuiteaddons.googleapis.com", ::String
848
+ DEFAULT_ENDPOINT = "gsuiteaddons.googleapis.com"
849
+
850
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
849
851
  config_attr :credentials, nil do |value|
850
852
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
851
853
  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.3.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?
@@ -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.3.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-06-06 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.19.1
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.19.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a