0.34.0 (latest) 0.33.0 0.32.0 0.31.0 0.30.0 0.29.0 0.28.0 0.27.0 0.26.0 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.1 0.10.0 0.9.1 0.8.0 0.7.0 0.6.0 0.5.1 0.4.0 0.3.1 0.2.0 0.1.2 Reference documentation and code samples for the Google Chat V1 API class Google::Apps::Chat::V1::Space::AccessSettings.

Represents the [access
setting](https://support.google.com/chat/answer/11971020) of the space.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #access_permission_settings

    def access_permission_settings() -> ::Google::Apps::Chat::V1::Space::AccessPermissionSettings

**Returns**

- ([::Google::Apps::Chat::V1::Space::AccessPermissionSettings](https://docs.cloud.google.com/ruby/docs/reference/google-apps-chat-v1/latest/Google-Apps-Chat-V1-Space-AccessPermissionSettings)) --- Optional. Access permission settings for the space.


  To set the target audience when creating a space, specify the
  `accessSettings.audience` field in your request.

### #access_permission_settings=

    def access_permission_settings=(value) -> ::Google::Apps::Chat::V1::Space::AccessPermissionSettings

**Parameter**

- **value** ([::Google::Apps::Chat::V1::Space::AccessPermissionSettings](https://docs.cloud.google.com/ruby/docs/reference/google-apps-chat-v1/latest/Google-Apps-Chat-V1-Space-AccessPermissionSettings)) --- Optional. Access permission settings for the space.


  To set the target audience when creating a space, specify the
  `accessSettings.audience` field in your request.
**Returns**

- ([::Google::Apps::Chat::V1::Space::AccessPermissionSettings](https://docs.cloud.google.com/ruby/docs/reference/google-apps-chat-v1/latest/Google-Apps-Chat-V1-Space-AccessPermissionSettings)) --- Optional. Access permission settings for the space.


  To set the target audience when creating a space, specify the
  `accessSettings.audience` field in your request.

### #access_state

    def access_state() -> ::Google::Apps::Chat::V1::Space::AccessSettings::AccessState

**Returns**

- ([::Google::Apps::Chat::V1::Space::AccessSettings::AccessState](https://docs.cloud.google.com/ruby/docs/reference/google-apps-chat-v1/latest/Google-Apps-Chat-V1-Space-AccessSettings-AccessState)) --- Output only. Indicates the access state of the space.

### #audience

    def audience() -> ::String

**Returns**

- (::String) --- Optional. The resource name of the [target
  audience](https://support.google.com/a/answer/9934697) who can discover the space, join the space, and preview the messages in the space. If unset, only users or Google Groups who have been individually invited or added to the space can access it. For details, see [Make a space
  discoverable to a target
  audience](https://developers.google.com/workspace/chat/space-target-audience).


  Format: `audiences/{audience}`

  To use the default target audience for the Google Workspace organization,
  set to `audiences/default`.

  Reading the target audience supports:
  - [User
    authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)

  - [App
    authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
    with [administrator
    approval](https://support.google.com/a?p=chat-app-auth)
    with the `chat.app.spaces` scope.

  This field is not populated when using the `chat.bot` scope with [app
  authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).

  Setting the target audience requires [user
  authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).

### #audience=

    def audience=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The resource name of the [target
  audience](https://support.google.com/a/answer/9934697) who can discover the space, join the space, and preview the messages in the space. If unset, only users or Google Groups who have been individually invited or added to the space can access it. For details, see [Make a space
  discoverable to a target
  audience](https://developers.google.com/workspace/chat/space-target-audience).


  Format: `audiences/{audience}`

  To use the default target audience for the Google Workspace organization,
  set to `audiences/default`.

  Reading the target audience supports:
  - [User
    authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)

  - [App
    authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
    with [administrator
    approval](https://support.google.com/a?p=chat-app-auth)
    with the `chat.app.spaces` scope.

  This field is not populated when using the `chat.bot` scope with [app
  authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).

  Setting the target audience requires [user
  authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
**Returns**

- (::String) --- Optional. The resource name of the [target
  audience](https://support.google.com/a/answer/9934697) who can discover the space, join the space, and preview the messages in the space. If unset, only users or Google Groups who have been individually invited or added to the space can access it. For details, see [Make a space
  discoverable to a target
  audience](https://developers.google.com/workspace/chat/space-target-audience).


  Format: `audiences/{audience}`

  To use the default target audience for the Google Workspace organization,
  set to `audiences/default`.

  Reading the target audience supports:
  - [User
    authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)

  - [App
    authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
    with [administrator
    approval](https://support.google.com/a?p=chat-app-auth)
    with the `chat.app.spaces` scope.

  This field is not populated when using the `chat.bot` scope with [app
  authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).

  Setting the target audience requires [user
  authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).