google-cloud-gsuite_add_ons 0.1.0 → 0.2.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: c2c2451ac314ff47034febb9f192f761565e8c1cb0ebe2052df601070c5e3848
4
- data.tar.gz: 8922abd1f77e600e49ea074a9b9767b2c8650f48fdc00aa3ccfa1ca09ad9a218
3
+ metadata.gz: '08c7bc17eec2e4371781c6cb88fe6865d8e20fd8222687fa321370b929327b61'
4
+ data.tar.gz: 610ab57646b1d12e9667b81928a178cc22f22693953d430e536d44b8a5930ab6
5
5
  SHA512:
6
- metadata.gz: 0a017fd272b0251174f972aeb30c5bcf9868266dcd7418c45a5a9600e7773d53b3b2786afab29648817bbc5d3baf52a17c363b2bc0a646418697605269f25ff7
7
- data.tar.gz: 69c1805da57119c67de0f488483a8e6e5134a730c0b0dc1df46abb016345f57022618a0806ada4693fd06b967e685619cd51176810c58cf0fccbeb767ed0734e
6
+ metadata.gz: 7545cf39f3dfa8fcb90e5b3980a758bbc8e4992c4c815b4e986b67583223446065abc0047f7df76fa901ab14d8060c86299ebf73a122aac19522bdb6b7f0893b
7
+ data.tar.gz: f32d868c95a64a6dbce8823a7863f44ceb3b2a234cb80c5805b3fa003911daa77744c8216b2f08cd3ced064fa8388be05d54b654569b24d221d2feda62374426
data/README.md CHANGED
@@ -34,32 +34,6 @@ In order to use this library, you first need to go through the following steps:
34
34
  1. [Enable the API.](https://console.cloud.google.com/apis/library/gsuiteaddons.googleapis.com)
35
35
  1. {file:AUTHENTICATION.md Set up authentication.}
36
36
 
37
- ## Enabling Logging
38
-
39
- To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
40
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
41
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
42
- 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)
43
- and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
44
-
45
- Configuring a Ruby stdlib logger:
46
-
47
- ```ruby
48
- require "logger"
49
-
50
- module MyLogger
51
- LOGGER = Logger.new $stderr, level: Logger::WARN
52
- def logger
53
- LOGGER
54
- end
55
- end
56
-
57
- # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
58
- module GRPC
59
- extend MyLogger
60
- end
61
- ```
62
-
63
37
  ## Supported Ruby Versions
64
38
 
65
39
  This library is supported on Ruby 2.6+.
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module GSuiteAddOns
23
- VERSION = "0.1.0"
23
+ VERSION = "0.2.0"
24
24
  end
25
25
  end
26
26
  end
@@ -54,6 +54,8 @@ module Google
54
54
  # `version` parameter. If the GSuiteAddOns service is
55
55
  # supported by that API version, and the corresponding gem is available, the
56
56
  # appropriate versioned client will be returned.
57
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
58
+ # the `transport` parameter.
57
59
  #
58
60
  # ## About GSuiteAddOns
59
61
  #
@@ -88,9 +90,10 @@ module Google
88
90
  #
89
91
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
90
92
  # Defaults to `:v1`.
93
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
91
94
  # @return [::Object] A client object for the specified version.
92
95
  #
93
- def self.gsuite_add_ons version: :v1, &block
96
+ def self.gsuite_add_ons version: :v1, transport: :grpc, &block
94
97
  require "google/cloud/gsuite_add_ons/#{version.to_s.downcase}"
95
98
 
96
99
  package_name = Google::Cloud::GSuiteAddOns
@@ -98,6 +101,7 @@ module Google
98
101
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
99
102
  .first
100
103
  service_module = Google::Cloud::GSuiteAddOns.const_get(package_name).const_get(:GSuiteAddOns)
104
+ service_module = service_module.const_get(:Rest) if transport == :rest
101
105
  service_module.const_get(:Client).new(&block)
102
106
  end
103
107
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-gsuite_add_ons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.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-01-06 00:00:00.000000000 Z
11
+ date: 2023-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core
@@ -30,7 +30,7 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0.0'
33
+ version: '0.2'
34
34
  - - "<"
35
35
  - !ruby/object:Gem::Version
36
36
  version: 2.a
@@ -40,7 +40,7 @@ dependencies:
40
40
  requirements:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: '0.0'
43
+ version: '0.2'
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: 2.a
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  - !ruby/object:Gem::Version
190
190
  version: '0'
191
191
  requirements: []
192
- rubygems_version: 3.3.14
192
+ rubygems_version: 3.4.2
193
193
  signing_key:
194
194
  specification_version: 4
195
195
  summary: API Client library for the Google Workspace Add-ons API