Module: Google::Apps::Meet

Defined in:
lib/google/apps/meet.rb,
lib/google/apps/meet/version.rb

Constant Summary collapse

VERSION =
"1.0.0"

Class Method Summary collapse

Class Method Details

.conference_records_service(version: :v2, transport: :grpc, &block) ⇒ ::Object

Create a new client object for ConferenceRecordsService.

By default, this returns an instance of Google::Apps::Meet::V2::ConferenceRecordsService::Client for a gRPC client for version V2 of the API. However, you can specify a different API version by passing it in the version parameter. If the ConferenceRecordsService service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned. You can also specify a different transport by passing :rest or :grpc in the transport parameter.

About ConferenceRecordsService

REST API for services dealing with conference records.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v2)

    The API version to connect to. Optional. Defaults to :v2.

  • transport (:grpc, :rest) (defaults to: :grpc)

    The transport to use. Defaults to :grpc.

Returns:

  • (::Object)

    A client object for the specified version.



86
87
88
89
90
91
92
93
94
95
96
# File 'lib/google/apps/meet.rb', line 86

def self.conference_records_service version: :v2, transport: :grpc, &block
  require "google/apps/meet/#{version.to_s.downcase}"

  package_name = Google::Apps::Meet
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Apps::Meet.const_get(package_name).const_get(:ConferenceRecordsService)
  service_module = service_module.const_get(:Rest) if transport == :rest
  service_module.const_get(:Client).new(&block)
end

.spaces_service(version: :v2, transport: :grpc, &block) ⇒ ::Object

Create a new client object for SpacesService.

By default, this returns an instance of Google::Apps::Meet::V2::SpacesService::Client for a gRPC client for version V2 of the API. However, you can specify a different API version by passing it in the version parameter. If the SpacesService service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned. You can also specify a different transport by passing :rest or :grpc in the transport parameter.

About SpacesService

REST API for services dealing with spaces.

Parameters:

  • version (::String, ::Symbol) (defaults to: :v2)

    The API version to connect to. Optional. Defaults to :v2.

  • transport (:grpc, :rest) (defaults to: :grpc)

    The transport to use. Defaults to :grpc.

Returns:

  • (::Object)

    A client object for the specified version.



52
53
54
55
56
57
58
59
60
61
62
# File 'lib/google/apps/meet.rb', line 52

def self.spaces_service version: :v2, transport: :grpc, &block
  require "google/apps/meet/#{version.to_s.downcase}"

  package_name = Google::Apps::Meet
                 .constants
                 .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
                 .first
  service_module = Google::Apps::Meet.const_get(package_name).const_get(:SpacesService)
  service_module = service_module.const_get(:Rest) if transport == :rest
  service_module.const_get(:Client).new(&block)
end