google-cloud-gsuite_add_ons-v1 0.1.0 → 0.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 709d26832b4cf89787fae6543e17843f512d9c1e404972ba30ad9268c6752fc6
4
- data.tar.gz: 74f0e6faa7182d422b057bd7e694527e1c3ffadbaccf4be64377f4c8d604b257
3
+ metadata.gz: 7223976b2917818c24b56c9712b221593358e0d2c5fd6667f57413f06d0673c6
4
+ data.tar.gz: '0836f428c585399fcfc7d994334f8ac5d145f55ebdc32c0b7b46d3bfb6aaefe7'
5
5
  SHA512:
6
- metadata.gz: '0822e7be455ccf67353ed12e55e4937ff6cacd52acd6f8f30cd86f193aa1e6c796b893dac3867b3dd8c420eb43f4830dce2cd8353bfbb66116256dd438bc772b'
7
- data.tar.gz: 2164fd7d2ecb066d400633dfc9e293e4e1b999718d63c07ee5b5eb8c58949a7a79a57379f7dc9071617f79739ee16196ffbd371b8d97116210a3c5b8cca355e6
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
@@ -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
- # # iterate over all elements by calling #each, and the enumerable
593
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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://googleapis.dev/ruby/googleauth/latest/index.html))
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://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
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
- config_attr :endpoint, "gsuiteaddons.googleapis.com", ::String
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