Reference documentation and code samples for the Google Workspace Add-ons V1 API class Google::Cloud::GSuiteAddOns::V1::GSuiteAddOns::Client.
Client for the GSuiteAddOns service.
A service for managing Google Workspace add-ons.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the GSuiteAddOns Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all GSuiteAddOns clients ::Google::Cloud::GSuiteAddOns::V1::GSuiteAddOns::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure the GSuiteAddOns Client instance.
The configuration is set to the derived mode, meaning that values can be changed, but structural changes (adding new fields, etc.) are not allowed. Structural changes should be made on Client.configure.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
#create_deployment
def create_deployment(request, options = nil) -> ::Google::Cloud::GSuiteAddOns::V1::Deployment
def create_deployment(parent: nil, deployment_id: nil, deployment: nil) -> ::Google::Cloud::GSuiteAddOns::V1::DeploymentCreates a deployment with the specified name and configuration.
def create_deployment(request, options = nil) -> ::Google::Cloud::GSuiteAddOns::V1::Deploymentcreate_deployment via a request object, either of type
CreateDeploymentRequest or an equivalent Hash.
- request (::Google::Cloud::GSuiteAddOns::V1::CreateDeploymentRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_deployment(parent: nil, deployment_id: nil, deployment: nil) -> ::Google::Cloud::GSuiteAddOns::V1::Deploymentcreate_deployment via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. Name of the project in which to create the deployment.
Example:
projects/my_project. -
deployment_id (::String) — Required. The id to use for this deployment. The full name of the created
resource will be
projects/<project_number>/deployments/<deployment_id>. - deployment (::Google::Cloud::GSuiteAddOns::V1::Deployment, ::Hash) — Required. The deployment to create (deployment.name cannot be set).
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::GSuiteAddOns::V1::Deployment)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/gsuite_add_ons/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::GSuiteAddOns::V1::GSuiteAddOns::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::GSuiteAddOns::V1::CreateDeploymentRequest.new # Call the create_deployment method. result = client.create_deployment request # The returned object is of type Google::Cloud::GSuiteAddOns::V1::Deployment. p result
#delete_deployment
def delete_deployment(request, options = nil) -> ::Google::Protobuf::Empty
def delete_deployment(name: nil, etag: nil) -> ::Google::Protobuf::EmptyDeletes the deployment with the given name.
def delete_deployment(request, options = nil) -> ::Google::Protobuf::Emptydelete_deployment via a request object, either of type
DeleteDeploymentRequest or an equivalent Hash.
- request (::Google::Cloud::GSuiteAddOns::V1::DeleteDeploymentRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_deployment(name: nil, etag: nil) -> ::Google::Protobuf::Emptydelete_deployment via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The full resource name of the deployment to delete.
Example:
projects/my_project/deployments/my_deployment. - etag (::String) — The etag of the deployment to delete. If this is provided, it must match the server's etag.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/gsuite_add_ons/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::GSuiteAddOns::V1::GSuiteAddOns::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::GSuiteAddOns::V1::DeleteDeploymentRequest.new # Call the delete_deployment method. result = client.delete_deployment request # The returned object is of type Google::Protobuf::Empty. p result
#get_authorization
def get_authorization(request, options = nil) -> ::Google::Cloud::GSuiteAddOns::V1::Authorization
def get_authorization(name: nil) -> ::Google::Cloud::GSuiteAddOns::V1::AuthorizationGets the authorization information for deployments in a given project.
def get_authorization(request, options = nil) -> ::Google::Cloud::GSuiteAddOns::V1::Authorizationget_authorization via a request object, either of type
Google::Cloud::GSuiteAddOns::V1::GetAuthorizationRequest or an equivalent Hash.
- request (::Google::Cloud::GSuiteAddOns::V1::GetAuthorizationRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_authorization(name: nil) -> ::Google::Cloud::GSuiteAddOns::V1::Authorizationget_authorization via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. Name of the project for which to get the Google Workspace add-ons
authorization information.
Example:
projects/my_project/authorization.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::GSuiteAddOns::V1::Authorization)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/gsuite_add_ons/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::GSuiteAddOns::V1::GSuiteAddOns::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::GSuiteAddOns::V1::GetAuthorizationRequest.new # Call the get_authorization method. result = client.get_authorization request # The returned object is of type Google::Cloud::GSuiteAddOns::V1::Authorization. p result
#get_chat_app_config
def get_chat_app_config(request, options = nil) -> ::Google::Cloud::GSuiteAddOns::V1::ChatAppConfig
def get_chat_app_config(name: nil, view: nil) -> ::Google::Cloud::GSuiteAddOns::V1::ChatAppConfigGets the Chat app configuration of a project. Only Chat apps built as Google Workspace add-ons are supported. Each Google Cloud project has exactly one Chat app configuration.
Requires authenticating and authorizing with user credentials and the
gsuiteaddons.chatAppConfigs.get and chat.bots.get IAM permissions on
the project.
def get_chat_app_config(request, options = nil) -> ::Google::Cloud::GSuiteAddOns::V1::ChatAppConfigget_chat_app_config via a request object, either of type
Google::Cloud::GSuiteAddOns::V1::GetChatAppConfigRequest or an equivalent Hash.
- request (::Google::Cloud::GSuiteAddOns::V1::GetChatAppConfigRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_chat_app_config(name: nil, view: nil) -> ::Google::Cloud::GSuiteAddOns::V1::ChatAppConfigget_chat_app_config via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. Resource name of the Chat app configuration.
Format:
projects/{project}/chatAppConfig, where{project}is the Google Cloud project number. -
view (::Google::Cloud::GSuiteAddOns::V1::GetChatAppConfigRequest::ChatAppConfigView) — Optional. The view of the ChatAppConfig to return. If unspecified, defaults
to
BASIC.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::GSuiteAddOns::V1::ChatAppConfig)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/gsuite_add_ons/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::GSuiteAddOns::V1::GSuiteAddOns::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::GSuiteAddOns::V1::GetChatAppConfigRequest.new # Call the get_chat_app_config method. result = client.get_chat_app_config request # The returned object is of type Google::Cloud::GSuiteAddOns::V1::ChatAppConfig. p result
#get_deployment
def get_deployment(request, options = nil) -> ::Google::Cloud::GSuiteAddOns::V1::Deployment
def get_deployment(name: nil) -> ::Google::Cloud::GSuiteAddOns::V1::DeploymentGets the deployment with the specified name.
def get_deployment(request, options = nil) -> ::Google::Cloud::GSuiteAddOns::V1::Deploymentget_deployment via a request object, either of type
Google::Cloud::GSuiteAddOns::V1::GetDeploymentRequest or an equivalent Hash.
- request (::Google::Cloud::GSuiteAddOns::V1::GetDeploymentRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_deployment(name: nil) -> ::Google::Cloud::GSuiteAddOns::V1::Deploymentget_deployment via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The full resource name of the deployment to get.
Example:
projects/my_project/deployments/my_deployment.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::GSuiteAddOns::V1::Deployment)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/gsuite_add_ons/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::GSuiteAddOns::V1::GSuiteAddOns::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::GSuiteAddOns::V1::GetDeploymentRequest.new # Call the get_deployment method. result = client.get_deployment request # The returned object is of type Google::Cloud::GSuiteAddOns::V1::Deployment. p result
#get_install_status
def get_install_status(request, options = nil) -> ::Google::Cloud::GSuiteAddOns::V1::InstallStatus
def get_install_status(name: nil) -> ::Google::Cloud::GSuiteAddOns::V1::InstallStatusFetches the install status of a developer mode deployment.
def get_install_status(request, options = nil) -> ::Google::Cloud::GSuiteAddOns::V1::InstallStatusget_install_status via a request object, either of type
Google::Cloud::GSuiteAddOns::V1::GetInstallStatusRequest or an equivalent Hash.
- request (::Google::Cloud::GSuiteAddOns::V1::GetInstallStatusRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_install_status(name: nil) -> ::Google::Cloud::GSuiteAddOns::V1::InstallStatusget_install_status via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The full resource name of the deployment.
Example:
projects/my_project/deployments/my_deployment/installStatus.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::GSuiteAddOns::V1::InstallStatus)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/gsuite_add_ons/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::GSuiteAddOns::V1::GSuiteAddOns::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::GSuiteAddOns::V1::GetInstallStatusRequest.new # Call the get_install_status method. result = client.get_install_status request # The returned object is of type Google::Cloud::GSuiteAddOns::V1::InstallStatus. p result
#initialize
def initialize() { |config| ... } -> ClientCreate a new GSuiteAddOns client object.
- (config) — Configure the GSuiteAddOns client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::GSuiteAddOns::V1::GSuiteAddOns::Client.new # Create a client using a custom configuration client = ::Google::Cloud::GSuiteAddOns::V1::GSuiteAddOns::Client.new do |config| config.timeout = 10.0 end
#install_deployment
def install_deployment(request, options = nil) -> ::Google::Protobuf::Empty
def install_deployment(name: nil) -> ::Google::Protobuf::EmptyInstalls a deployment in developer mode. See: https://developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons.
def install_deployment(request, options = nil) -> ::Google::Protobuf::Emptyinstall_deployment via a request object, either of type
InstallDeploymentRequest or an equivalent Hash.
- request (::Google::Cloud::GSuiteAddOns::V1::InstallDeploymentRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def install_deployment(name: nil) -> ::Google::Protobuf::Emptyinstall_deployment via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The full resource name of the deployment to install.
Example:
projects/my_project/deployments/my_deployment.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/gsuite_add_ons/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::GSuiteAddOns::V1::GSuiteAddOns::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::GSuiteAddOns::V1::InstallDeploymentRequest.new # Call the install_deployment method. result = client.install_deployment request # The returned object is of type Google::Protobuf::Empty. p result
#list_deployments
def list_deployments(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::GSuiteAddOns::V1::Deployment>
def list_deployments(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::GSuiteAddOns::V1::Deployment>Lists all deployments in a particular project.
def list_deployments(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::GSuiteAddOns::V1::Deployment>list_deployments via a request object, either of type
ListDeploymentsRequest or an equivalent Hash.
- request (::Google::Cloud::GSuiteAddOns::V1::ListDeploymentsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_deployments(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::GSuiteAddOns::V1::Deployment>list_deployments via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. Name of the project in which to create the deployment.
Example:
projects/my_project. - page_size (::Integer) — The maximum number of deployments to return. The service may return fewer than this value. If unspecified, at most 1000 deployments will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
-
page_token (::String) — A page token, received from a previous
ListDeploymentscall. Provide this to retrieve the subsequent page.When paginating, all other parameters provided to
ListDeploymentsmust match the call that provided the page token.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::GSuiteAddOns::V1::Deployment>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::GSuiteAddOns::V1::Deployment>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/gsuite_add_ons/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::GSuiteAddOns::V1::GSuiteAddOns::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::GSuiteAddOns::V1::ListDeploymentsRequest.new # Call the list_deployments method. result = client.list_deployments request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::GSuiteAddOns::V1::Deployment. p item end
#logger
def logger() -> LoggerThe logger used for request/response debug logging.
- (Logger)
#replace_deployment
def replace_deployment(request, options = nil) -> ::Google::Cloud::GSuiteAddOns::V1::Deployment
def replace_deployment(deployment: nil) -> ::Google::Cloud::GSuiteAddOns::V1::DeploymentCreates or replaces a deployment with the specified name.
def replace_deployment(request, options = nil) -> ::Google::Cloud::GSuiteAddOns::V1::Deploymentreplace_deployment via a request object, either of type
ReplaceDeploymentRequest or an equivalent Hash.
- request (::Google::Cloud::GSuiteAddOns::V1::ReplaceDeploymentRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def replace_deployment(deployment: nil) -> ::Google::Cloud::GSuiteAddOns::V1::Deploymentreplace_deployment via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- deployment (::Google::Cloud::GSuiteAddOns::V1::Deployment, ::Hash) — Required. The deployment to create or replace.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::GSuiteAddOns::V1::Deployment)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/gsuite_add_ons/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::GSuiteAddOns::V1::GSuiteAddOns::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::GSuiteAddOns::V1::ReplaceDeploymentRequest.new # Call the replace_deployment method. result = client.replace_deployment request # The returned object is of type Google::Cloud::GSuiteAddOns::V1::Deployment. p result
#uninstall_deployment
def uninstall_deployment(request, options = nil) -> ::Google::Protobuf::Empty
def uninstall_deployment(name: nil) -> ::Google::Protobuf::EmptyUninstalls a developer mode deployment. See: https://developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons.
def uninstall_deployment(request, options = nil) -> ::Google::Protobuf::Emptyuninstall_deployment via a request object, either of type
UninstallDeploymentRequest or an equivalent Hash.
- request (::Google::Cloud::GSuiteAddOns::V1::UninstallDeploymentRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def uninstall_deployment(name: nil) -> ::Google::Protobuf::Emptyuninstall_deployment via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The full resource name of the deployment to install.
Example:
projects/my_project/deployments/my_deployment.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/gsuite_add_ons/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::GSuiteAddOns::V1::GSuiteAddOns::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::GSuiteAddOns::V1::UninstallDeploymentRequest.new # Call the uninstall_deployment method. result = client.uninstall_deployment request # The returned object is of type Google::Protobuf::Empty. p result
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)
#update_chat_app_config
def update_chat_app_config(request, options = nil) -> ::Google::Cloud::GSuiteAddOns::V1::ChatAppConfig
def update_chat_app_config(chat_app_config: nil, update_mask: nil) -> ::Google::Cloud::GSuiteAddOns::V1::ChatAppConfigUpdates the Chat app configuration of a project. Only Chat apps built as Google Workspace add-ons are supported. Each Google Cloud project has exactly one Chat app configuration.
Requires authenticating and authorizing with user credentials and the
gsuiteaddons.chatAppConfigs.update, chat.bots.update and
chat.bots.get IAM permissions on the project.
def update_chat_app_config(request, options = nil) -> ::Google::Cloud::GSuiteAddOns::V1::ChatAppConfigupdate_chat_app_config via a request object, either of type
UpdateChatAppConfigRequest or an equivalent Hash.
- request (::Google::Cloud::GSuiteAddOns::V1::UpdateChatAppConfigRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_chat_app_config(chat_app_config: nil, update_mask: nil) -> ::Google::Cloud::GSuiteAddOns::V1::ChatAppConfigupdate_chat_app_config via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- chat_app_config (::Google::Cloud::GSuiteAddOns::V1::ChatAppConfig, ::Hash) — Required. The app configuration to update.
-
update_mask (::Google::Protobuf::FieldMask, ::Hash) — Optional. The list of fields to update.
If omitted, only the fields with non-empty values in the provided Chat app configuration are updated.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::GSuiteAddOns::V1::ChatAppConfig)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/gsuite_add_ons/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::GSuiteAddOns::V1::GSuiteAddOns::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::GSuiteAddOns::V1::UpdateChatAppConfigRequest.new # Call the update_chat_app_config method. result = client.update_chat_app_config request # The returned object is of type Google::Cloud::GSuiteAddOns::V1::ChatAppConfig. p result