Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 29 additions & 28 deletions src/HangoutsChat/Resource/Spaces.php
Original file line number Diff line number Diff line change
Expand Up @@ -507,32 +507,32 @@ public function patch($name, Space $postBody, $optParams = [])
* following parameters when `useAdminAccess` is set to `true`: - `create_time`
* - `customer` - `display_name` - `external_user_allowed` - `last_active_time`
* - `space_history_state` - `space_type` When `useAdminAccess` is set to
* `false`: - `display_name` - `external_user_allowed` `create_time` and
* `last_active_time` accept a timestamp in [RFC-3339](https://www.rfc-
* editor.org/rfc/rfc3339) format and the supported comparison operators are:
* `=`, `<`, `>`, `<=`, `>=`. `customer` is required when `useAdminAccess` is
* set to `true`, and is used to indicate which customer to fetch spaces from.
* `customers/my_customer` is the only supported value. `display_name` only
* accepts the `HAS` (`:`) operator. The text to match is first tokenized into
* tokens and each token is prefix-matched case-insensitively and independently
* as a substring anywhere in the space's `display_name`. For example, `Fun Eve`
* matches `Fun event` or `The evening was fun`, but not `notFun event` or
* `even`. When `useAdminAccess` is set to `false`, `display_name` is required
* to retrieve meaningful results. Otherwise, the default behavior is to return
* an empty response. `external_user_allowed` accepts either `true` or `false`.
* `false`: - `display_name` - `external_user_allowed` - `space_type`
* `create_time` and `last_active_time` accept a timestamp in
* [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the supported
* comparison operators are: `=`, `<`, `>`, `<=`, `>=`. `customer` is required
* when `useAdminAccess` is set to `true`, and is used to indicate which
* customer to fetch spaces from. `customers/my_customer` is the only supported
* value. `display_name` only accepts the `HAS` (`:`) operator. The text to
* match is first tokenized into tokens and each token is prefix-matched case-
* insensitively and independently as a substring anywhere in the space's
* `display_name`. For example, `Fun Eve` matches `Fun event` or `The evening
* was fun`, but not `notFun event` or `even`. When `useAdminAccess` is set to
* `false`, `display_name` is required to retrieve meaningful results.
* Otherwise, the default behavior is to return an empty response.
* `external_user_allowed` accepts either `true` or `false`.
* `space_history_state` only accepts values from the [`historyState`] (https://
* developers.google.com/workspace/chat/api/reference/rest/v1/spaces#Space.Histo
* ryState) field of a `space` resource. `space_type` is required when
* `useAdminAccess` is set to `true`, and the only valid value is `SPACE`.
* Across different fields, only `AND` operators are supported. A valid example
* is `space_type = "SPACE" AND display_name:"Hello"` and an invalid example is
* `space_type = "SPACE" OR display_name:"Hello"`. Among the same field,
* `space_type` doesn't support `AND` or `OR` operators. `display_name`,
* 'space_history_state', and 'external_user_allowed' only support `OR`
* operators. `last_active_time` and `create_time` support both `AND` and `OR`
* operators. `AND` can only be used to represent an interval, such as
* `last_active_time < "2022-01-01T00:00:00+00:00" AND last_active_time >
* "2023-01-01T00:00:00+00:00"`. The following example queries are valid when
* ryState) field of a `space` resource. `space_type` is required and the only
* valid value is `SPACE`. Across different fields, only `AND` operators are
* supported. A valid example is `space_type = "SPACE" AND display_name:"Hello"`
* and an invalid example is `space_type = "SPACE" OR display_name:"Hello"`.
* Among the same field, `space_type` doesn't support `AND` or `OR` operators.
* `display_name`, 'space_history_state', and 'external_user_allowed' only
* support `OR` operators. `last_active_time` and `create_time` support both
* `AND` and `OR` operators. `AND` can only be used to represent an interval,
* such as `last_active_time < "2022-01-01T00:00:00+00:00" AND last_active_time
* > "2023-01-01T00:00:00+00:00"`. The following example queries are valid when
* `useAdminAccess` is set to `true`: ``` customer = "customers/my_customer" AND
* space_type = "SPACE" customer = "customers/my_customer" AND space_type =
* "SPACE" AND display_name:"Hello World" customer = "customers/my_customer" AND
Expand All @@ -546,10 +546,11 @@ public function patch($name, Space $postBody, $optParams = [])
* create_time < "2020-01-01T00:00:00+00:00") AND (external_user_allowed =
* "true") AND (space_history_state = "HISTORY_ON" OR space_history_state =
* "HISTORY_OFF") ``` The following example queries are valid when
* `useAdminAccess` is set to `false`: ``` display_name:"Hello World"
* (display_name:"Hello" OR display_name:"Fun") (external_user_allowed = "true")
* // Returns an empty response. (external_user_allowed = "true" AND
* display_name:"Hello") ```
* `useAdminAccess` is set to `false`: ``` display_name:"Hello World" AND
* space_type = "SPACE" (display_name:"Hello" OR display_name:"Fun") AND
* space_type = "SPACE" (external_user_allowed = "true" AND space_type =
* "SPACE") // Returns an empty response. (external_user_allowed = "true" AND
* display_name:"Hello" AND space_type = "SPACE") ```
* @opt_param bool useAdminAccess When `true`, the method runs using the user's
* Google Workspace administrator privileges. The calling user must be a Google
* Workspace administrator with the [manage chat and spaces conversations
Expand Down
Loading