google-apps-meet 1.0.0 → 1.1.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: 2cd634d375fc005c5cf7370c6629e2808f46217ebfa282284073f0e633c3ff41
4
- data.tar.gz: 658cd06596047d706d31a826d31e72934752cb37941ee6222e4aa011b114df2a
3
+ metadata.gz: 92222c73b038c0b3d58472da86882d3bcd29c16a2d12491a792d4fe25fa85f00
4
+ data.tar.gz: 969e5842e29a1d986e9286148615bc280383a3eb74a1cf73f970158422096eac
5
5
  SHA512:
6
- metadata.gz: 253e30e4af6ac9d38c80aea33d3d1e9a1ba08517cfe51db075ed1b5079f30783d4b33b05b9d9438b2c2e414b109eb0a23050f5f2df8e7d3ea999b609add15b03
7
- data.tar.gz: c4a9db6366745e1d0db9fc3bcf2f44eac628c34c278646f09936ed7bebe3a83439133096ead6ae86e79650116c4188d74ccea49a5e0c76fdd57ebf21d716507c
6
+ metadata.gz: 9b7143b60f5cfc5a827d693f1d7bd76726415e3a002f77b15dd3d848931c1890bc77a2a202c1aa322abf592cfafd4e37d3b3d078eacbab82b97f2d47e7126e08
7
+ data.tar.gz: c104c510229d346779f22fe1bec2fff9e541956c77a8ed1ff46173b8eda796d42a832b5f999a057d7c7741142c53b7fdb7e7880dcc922ee2fb0b1d7eb664614d
data/README.md CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  Create and manage meetings in Google Meet.
4
4
 
5
- Create and manage meetings in Google Meet.
6
5
 
7
6
  Actual client classes for the various versions of this API are defined in
8
7
  _versioned_ client gems, with names of the form `google-apps-meet-v*`.
@@ -34,9 +33,39 @@ In order to use this library, you first need to go through the following steps:
34
33
  1. [Enable the API.](https://console.cloud.google.com/apis/library/meet.googleapis.com)
35
34
  1. {file:AUTHENTICATION.md Set up authentication.}
36
35
 
36
+ ## Debug Logging
37
+
38
+ This library comes with opt-in Debug Logging that can help you troubleshoot
39
+ your application's integration with the API. When logging is activated, key
40
+ events such as requests and responses, along with data payloads and metadata
41
+ such as headers and client configuration, are logged to the standard error
42
+ stream.
43
+
44
+ **WARNING:** Client Library Debug Logging includes your data payloads in
45
+ plaintext, which could include sensitive data such as PII for yourself or your
46
+ customers, private keys, or other security data that could be compromising if
47
+ leaked. Always practice good data hygiene with your application logs, and follow
48
+ the principle of least access. Google also recommends that Client Library Debug
49
+ Logging be enabled only temporarily during active debugging, and not used
50
+ permanently in production.
51
+
52
+ To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
53
+ to the value `all`. Alternatively, you can set the value to a comma-delimited
54
+ list of client library gem names. This will select the default logging behavior,
55
+ which writes logs to the standard error stream. On a local workstation, this may
56
+ result in logs appearing on the console. When running on a Google Cloud hosting
57
+ service such as [Google Cloud Run](https://cloud.google.com/run), this generally
58
+ results in logs appearing alongside your application logs in the
59
+ [Google Cloud Logging](https://cloud.google.com/logging/) service.
60
+
61
+ Debug logging also requires that the versioned clients for this service be
62
+ sufficiently recent, released after about Dec 10, 2024. If logging is not
63
+ working, try updating the versioned clients in your bundle or installed gems:
64
+ [google-apps-meet-v2](https://cloud.google.com/ruby/docs/reference/google-apps-meet-v2/latest).
65
+
37
66
  ## Supported Ruby Versions
38
67
 
39
- This library is supported on Ruby 2.7+.
68
+ This library is supported on Ruby 3.0+.
40
69
 
41
70
  Google provides official support for Ruby versions that are actively supported
42
71
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Apps
22
22
  module Meet
23
- VERSION = "1.0.0"
23
+ VERSION = "1.1.0"
24
24
  end
25
25
  end
26
26
  end
@@ -40,6 +40,11 @@ module Google
40
40
  # You can also specify a different transport by passing `:rest` or `:grpc` in
41
41
  # the `transport` parameter.
42
42
  #
43
+ # Raises an exception if the currently installed versioned client gem for the
44
+ # given API version does not support the given transport of the SpacesService service.
45
+ # You can determine whether the method will succeed by calling
46
+ # {Google::Apps::Meet.spaces_service_available?}.
47
+ #
43
48
  # ## About SpacesService
44
49
  #
45
50
  # REST API for services dealing with spaces.
@@ -61,6 +66,37 @@ module Google
61
66
  service_module.const_get(:Client).new(&block)
62
67
  end
63
68
 
69
+ ##
70
+ # Determines whether the SpacesService service is supported by the current client.
71
+ # If true, you can retrieve a client object by calling {Google::Apps::Meet.spaces_service}.
72
+ # If false, that method will raise an exception. This could happen if the given
73
+ # API version does not exist or does not support the SpacesService service,
74
+ # or if the versioned client gem needs an update to support the SpacesService service.
75
+ #
76
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
77
+ # Defaults to `:v2`.
78
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
79
+ # @return [boolean] Whether the service is available.
80
+ #
81
+ def self.spaces_service_available? version: :v2, transport: :grpc
82
+ require "google/apps/meet/#{version.to_s.downcase}"
83
+ package_name = Google::Apps::Meet
84
+ .constants
85
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
86
+ .first
87
+ return false unless package_name
88
+ service_module = Google::Apps::Meet.const_get package_name
89
+ return false unless service_module.const_defined? :SpacesService
90
+ service_module = service_module.const_get :SpacesService
91
+ if transport == :rest
92
+ return false unless service_module.const_defined? :Rest
93
+ service_module = service_module.const_get :Rest
94
+ end
95
+ service_module.const_defined? :Client
96
+ rescue ::LoadError
97
+ false
98
+ end
99
+
64
100
  ##
65
101
  # Create a new client object for ConferenceRecordsService.
66
102
  #
@@ -74,6 +110,11 @@ module Google
74
110
  # You can also specify a different transport by passing `:rest` or `:grpc` in
75
111
  # the `transport` parameter.
76
112
  #
113
+ # Raises an exception if the currently installed versioned client gem for the
114
+ # given API version does not support the given transport of the ConferenceRecordsService service.
115
+ # You can determine whether the method will succeed by calling
116
+ # {Google::Apps::Meet.conference_records_service_available?}.
117
+ #
77
118
  # ## About ConferenceRecordsService
78
119
  #
79
120
  # REST API for services dealing with conference records.
@@ -94,6 +135,37 @@ module Google
94
135
  service_module = service_module.const_get(:Rest) if transport == :rest
95
136
  service_module.const_get(:Client).new(&block)
96
137
  end
138
+
139
+ ##
140
+ # Determines whether the ConferenceRecordsService service is supported by the current client.
141
+ # If true, you can retrieve a client object by calling {Google::Apps::Meet.conference_records_service}.
142
+ # If false, that method will raise an exception. This could happen if the given
143
+ # API version does not exist or does not support the ConferenceRecordsService service,
144
+ # or if the versioned client gem needs an update to support the ConferenceRecordsService service.
145
+ #
146
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
147
+ # Defaults to `:v2`.
148
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
149
+ # @return [boolean] Whether the service is available.
150
+ #
151
+ def self.conference_records_service_available? version: :v2, transport: :grpc
152
+ require "google/apps/meet/#{version.to_s.downcase}"
153
+ package_name = Google::Apps::Meet
154
+ .constants
155
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
156
+ .first
157
+ return false unless package_name
158
+ service_module = Google::Apps::Meet.const_get package_name
159
+ return false unless service_module.const_defined? :ConferenceRecordsService
160
+ service_module = service_module.const_get :ConferenceRecordsService
161
+ if transport == :rest
162
+ return false unless service_module.const_defined? :Rest
163
+ service_module = service_module.const_get :Rest
164
+ end
165
+ service_module.const_defined? :Client
166
+ rescue ::LoadError
167
+ false
168
+ end
97
169
  end
98
170
  end
99
171
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apps-meet
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-06-27 00:00:00.000000000 Z
10
+ date: 2025-01-29 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-apps-meet-v2
@@ -61,7 +60,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
61
60
  licenses:
62
61
  - Apache-2.0
63
62
  metadata: {}
64
- post_install_message:
65
63
  rdoc_options: []
66
64
  require_paths:
67
65
  - lib
@@ -69,15 +67,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
69
67
  requirements:
70
68
  - - ">="
71
69
  - !ruby/object:Gem::Version
72
- version: '2.7'
70
+ version: '3.0'
73
71
  required_rubygems_version: !ruby/object:Gem::Requirement
74
72
  requirements:
75
73
  - - ">="
76
74
  - !ruby/object:Gem::Version
77
75
  version: '0'
78
76
  requirements: []
79
- rubygems_version: 3.5.6
80
- signing_key:
77
+ rubygems_version: 3.6.2
81
78
  specification_version: 4
82
79
  summary: Create and manage meetings in Google Meet.
83
80
  test_files: []