google-cloud-gsuite_add_ons-v1 0.1.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/gsuite_add_ons/v1/gsuite_add_ons/client.rb +10 -10
- data/lib/google/cloud/gsuite_add_ons/v1/gsuite_add_ons/rest/client.rb +977 -0
- data/lib/google/cloud/gsuite_add_ons/v1/gsuite_add_ons/rest/service_stub.rb +583 -0
- data/lib/google/cloud/gsuite_add_ons/v1/gsuite_add_ons/rest.rb +79 -0
- data/lib/google/cloud/gsuite_add_ons/v1/gsuite_add_ons.rb +6 -0
- data/lib/google/cloud/gsuite_add_ons/v1/rest.rb +37 -0
- data/lib/google/cloud/gsuite_add_ons/v1/version.rb +1 -1
- data/lib/google/cloud/gsuite_add_ons/v1.rb +5 -0
- data/lib/google/cloud/gsuiteaddons/v1/gsuiteaddons_pb.rb +32 -62
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/protobuf/struct.rb +1 -1
- metadata +11 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7223976b2917818c24b56c9712b221593358e0d2c5fd6667f57413f06d0673c6
|
4
|
+
data.tar.gz: '0836f428c585399fcfc7d994334f8ac5d145f55ebdc32c0b7b46d3bfb6aaefe7'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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://
|
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 ==
|
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
|
@@ -588,13 +588,11 @@ module Google
|
|
588
588
|
# # Call the list_deployments method.
|
589
589
|
# result = client.list_deployments request
|
590
590
|
#
|
591
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
592
|
-
# #
|
593
|
-
#
|
594
|
-
# # methods are also available for managing paging directly.
|
595
|
-
# result.each do |response|
|
591
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
592
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
593
|
+
# result.each do |item|
|
596
594
|
# # Each element is of type ::Google::Cloud::GSuiteAddOns::V1::Deployment.
|
597
|
-
# p
|
595
|
+
# p item
|
598
596
|
# end
|
599
597
|
#
|
600
598
|
def list_deployments request, options = nil
|
@@ -1032,9 +1030,9 @@ module Google
|
|
1032
1030
|
# * (`String`) The path to a service account key file in JSON format
|
1033
1031
|
# * (`Hash`) A service account key as a Hash
|
1034
1032
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1035
|
-
# (see the [googleauth docs](https://
|
1033
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1036
1034
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1037
|
-
# (see the [signet docs](https://
|
1035
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1038
1036
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1039
1037
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1040
1038
|
# * (`nil`) indicating no credentials
|
@@ -1076,7 +1074,9 @@ module Google
|
|
1076
1074
|
class Configuration
|
1077
1075
|
extend ::Gapic::Config
|
1078
1076
|
|
1079
|
-
|
1077
|
+
DEFAULT_ENDPOINT = "gsuiteaddons.googleapis.com"
|
1078
|
+
|
1079
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1080
1080
|
config_attr :credentials, nil do |value|
|
1081
1081
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1082
1082
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|