google-apps-chat-v1 0.3.1 → 0.5.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: 256218d7440c30eef7bcbc14270adee914194aeb2d7b180a6d659eb2a04fd566
4
- data.tar.gz: 25a5dbcb3e7b249f15493d41691b613c71733ea5db502e88125754ef15b6fee4
3
+ metadata.gz: 54f1613aece0c2cec3377ed2f4dcc77cea737fe40dbda7eef7b35cca5c98e17c
4
+ data.tar.gz: 0fd7f5308524072035c05044075ea552f5f3bb58e5959a32a9c423298a5bf94e
5
5
  SHA512:
6
- metadata.gz: 02d69fb18ca405eb7a4976298e3633a61a432574ccd8659993b8d9fcfdda2ab84aff1a7e4ef2132e2769360fa5bd74ff799436fc5b4c48c4e179dbab479a6588
7
- data.tar.gz: dd916eafb9181aaa1055f487b6031e3934f8803e12c608ec8a01b972732e39f8780ecd0476ec4ddd2d5872aea7a13da2a04272b5781ecdc4958b4d047372baee
6
+ metadata.gz: 9021428e19020228ed560556f419b3d9c7e5a2befe3efdfc077c2b90ed1ce4a087b78aec30a8be1fefc47b8955eab546f373c93dc422bc6891cc28c6eb53b80f
7
+ data.tar.gz: 5dbae9a9bbe8da37aa4dc1b04b46c8ed42102257b845e4b197af05d4e7ec1085fc5ef124f61fbce42b65be001e351eb3ea4abe11acb21effb34b82b82b2208fa
@@ -121,6 +121,11 @@ module Google
121
121
  initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
122
122
  }
123
123
 
124
+ default_config.rpcs.search_spaces.timeout = 30.0
125
+ default_config.rpcs.search_spaces.retry_policy = {
126
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
127
+ }
128
+
124
129
  default_config.rpcs.get_space.timeout = 30.0
125
130
  default_config.rpcs.get_space.retry_policy = {
126
131
  initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
@@ -635,7 +640,7 @@ module Google
635
640
  # @param options [::Gapic::CallOptions, ::Hash]
636
641
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
637
642
  #
638
- # @overload list_memberships(parent: nil, page_size: nil, page_token: nil, filter: nil, show_groups: nil, show_invited: nil)
643
+ # @overload list_memberships(parent: nil, page_size: nil, page_token: nil, filter: nil, show_groups: nil, show_invited: nil, use_admin_access: nil)
639
644
  # Pass arguments to `list_memberships` via keyword arguments. Note that at
640
645
  # least one keyword argument is required. To specify no parameters, or to keep all
641
646
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -672,8 +677,8 @@ module Google
672
677
  #
673
678
  # To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`.
674
679
  #
675
- # To filter by type, set `member.type` to `HUMAN` or `BOT`. Developer
676
- # Preview: You can also filter for `member.type` using the `!=` operator.
680
+ # To filter by type, set `member.type` to `HUMAN` or `BOT`. You can also
681
+ # filter for `member.type` using the `!=` operator.
677
682
  #
678
683
  # To filter by both role and type, use the `AND` operator. To filter by
679
684
  # either role or type, use the `OR` operator.
@@ -717,6 +722,19 @@ module Google
717
722
  #
718
723
  # Currently requires [user
719
724
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
725
+ # @param use_admin_access [::Boolean]
726
+ # When `true`, the method runs using the user's Google Workspace
727
+ # administrator privileges.
728
+ #
729
+ # The calling user must be a Google Workspace administrator with the
730
+ # [manage chat and spaces conversations
731
+ # privilege](https://support.google.com/a/answer/13369245).
732
+ #
733
+ # Requires either the `chat.admin.memberships.readonly` or
734
+ # `chat.admin.memberships` [OAuth 2.0
735
+ # scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
736
+ #
737
+ # Listing app memberships in a space isn't supported when using admin access.
720
738
  #
721
739
  # @yield [response, operation] Access the result along with the RPC operation
722
740
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Apps::Chat::V1::Membership>]
@@ -811,7 +829,7 @@ module Google
811
829
  # @param options [::Gapic::CallOptions, ::Hash]
812
830
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
813
831
  #
814
- # @overload get_membership(name: nil)
832
+ # @overload get_membership(name: nil, use_admin_access: nil)
815
833
  # Pass arguments to `get_membership` via keyword arguments. Note that at
816
834
  # least one keyword argument is required. To specify no parameters, or to keep all
817
835
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -830,6 +848,19 @@ module Google
830
848
  # you can use the user's email as an alias for `{member}`. For example,
831
849
  # `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the
832
850
  # email of the Google Chat user.
851
+ # @param use_admin_access [::Boolean]
852
+ # When `true`, the method runs using the user's Google Workspace
853
+ # administrator privileges.
854
+ #
855
+ # The calling user must be a Google Workspace administrator with the
856
+ # [manage chat and spaces conversations
857
+ # privilege](https://support.google.com/a/answer/13369245).
858
+ #
859
+ # Requires the `chat.admin.memberships` or `chat.admin.memberships.readonly`
860
+ # [OAuth 2.0
861
+ # scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
862
+ #
863
+ # Getting app memberships in a space isn't supported when using admin access.
833
864
  #
834
865
  # @yield [response, operation] Access the result along with the RPC operation
835
866
  # @yieldparam response [::Google::Apps::Chat::V1::Membership]
@@ -1564,6 +1595,214 @@ module Google
1564
1595
  raise ::Google::Cloud::Error.from_error(e)
1565
1596
  end
1566
1597
 
1598
+ ##
1599
+ # Returns a list of spaces in a Google Workspace organization based on an
1600
+ # administrator's search. Requires [user
1601
+ # authentication with administrator
1602
+ # privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges).
1603
+ # In the request, set `use_admin_access` to `true`.
1604
+ #
1605
+ # @overload search_spaces(request, options = nil)
1606
+ # Pass arguments to `search_spaces` via a request object, either of type
1607
+ # {::Google::Apps::Chat::V1::SearchSpacesRequest} or an equivalent Hash.
1608
+ #
1609
+ # @param request [::Google::Apps::Chat::V1::SearchSpacesRequest, ::Hash]
1610
+ # A request object representing the call parameters. Required. To specify no
1611
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1612
+ # @param options [::Gapic::CallOptions, ::Hash]
1613
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1614
+ #
1615
+ # @overload search_spaces(use_admin_access: nil, page_size: nil, page_token: nil, query: nil, order_by: nil)
1616
+ # Pass arguments to `search_spaces` via keyword arguments. Note that at
1617
+ # least one keyword argument is required. To specify no parameters, or to keep all
1618
+ # the default parameter values, pass an empty Hash as a request object (see above).
1619
+ #
1620
+ # @param use_admin_access [::Boolean]
1621
+ # When `true`, the method runs using the user's Google Workspace
1622
+ # administrator privileges.
1623
+ #
1624
+ # The calling user must be a Google Workspace administrator with the
1625
+ # [manage chat and spaces conversations
1626
+ # privilege](https://support.google.com/a/answer/13369245).
1627
+ #
1628
+ # Requires either the `chat.admin.spaces.readonly` or `chat.admin.spaces`
1629
+ # [OAuth 2.0
1630
+ # scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
1631
+ #
1632
+ # This method currently only supports admin access, thus only `true` is
1633
+ # accepted for this field.
1634
+ # @param page_size [::Integer]
1635
+ # The maximum number of spaces to return. The service may return fewer than
1636
+ # this value.
1637
+ #
1638
+ # If unspecified, at most 100 spaces are returned.
1639
+ #
1640
+ # The maximum value is 1000. If you use a value more than 1000, it's
1641
+ # automatically changed to 1000.
1642
+ # @param page_token [::String]
1643
+ # A token, received from the previous search spaces call. Provide this
1644
+ # parameter to retrieve the subsequent page.
1645
+ #
1646
+ # When paginating, all other parameters provided should match the call that
1647
+ # provided the page token. Passing different values to the other parameters
1648
+ # might lead to unexpected results.
1649
+ # @param query [::String]
1650
+ # Required. A search query.
1651
+ #
1652
+ # You can search by using the following parameters:
1653
+ #
1654
+ # - `create_time`
1655
+ # - `customer`
1656
+ # - `display_name`
1657
+ # - `external_user_allowed`
1658
+ # - `last_active_time`
1659
+ # - `space_history_state`
1660
+ # - `space_type`
1661
+ #
1662
+ # `create_time` and `last_active_time` accept a timestamp in
1663
+ # [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the supported
1664
+ # comparison operators are: `=`, `<`, `>`, `<=`, `>=`.
1665
+ #
1666
+ # `customer` is required and is used to indicate which customer
1667
+ # to fetch spaces from. `customers/my_customer` is the only supported value.
1668
+ #
1669
+ # `display_name` only accepts the `HAS` (`:`) operator. The text to
1670
+ # match is first tokenized into tokens and each token is prefix-matched
1671
+ # case-insensitively and independently as a substring anywhere in the space's
1672
+ # `display_name`. For example, `Fun Eve` matches `Fun event` or `The
1673
+ # evening was fun`, but not `notFun event` or `even`.
1674
+ #
1675
+ # `external_user_allowed` accepts either `true` or `false`.
1676
+ #
1677
+ # `space_history_state` only accepts values from the [`historyState`]
1678
+ # (https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#Space.HistoryState)
1679
+ # field of a `space` resource.
1680
+ #
1681
+ # `space_type` is required and the only valid value is `SPACE`.
1682
+ #
1683
+ # Across different fields, only `AND` operators are supported. A valid
1684
+ # example is `space_type = "SPACE" AND display_name:"Hello"` and an invalid
1685
+ # example is `space_type = "SPACE" OR display_name:"Hello"`.
1686
+ #
1687
+ # Among the same field,
1688
+ # `space_type` doesn't support `AND` or `OR` operators.
1689
+ # `display_name`, 'space_history_state', and 'external_user_allowed' only
1690
+ # support `OR` operators.
1691
+ # `last_active_time` and `create_time` support both `AND` and `OR` operators.
1692
+ # `AND` can only be used to represent an interval, such as `last_active_time
1693
+ # < "2022-01-01T00:00:00+00:00" AND last_active_time >
1694
+ # "2023-01-01T00:00:00+00:00"`.
1695
+ #
1696
+ # The following example queries are valid:
1697
+ #
1698
+ # ```
1699
+ # customer = "customers/my_customer" AND space_type = "SPACE"
1700
+ #
1701
+ # customer = "customers/my_customer" AND space_type = "SPACE" AND
1702
+ # display_name:"Hello World"
1703
+ #
1704
+ # customer = "customers/my_customer" AND space_type = "SPACE" AND
1705
+ # (last_active_time < "2020-01-01T00:00:00+00:00" OR last_active_time >
1706
+ # "2022-01-01T00:00:00+00:00")
1707
+ #
1708
+ # customer = "customers/my_customer" AND space_type = "SPACE" AND
1709
+ # (display_name:"Hello World" OR display_name:"Fun event") AND
1710
+ # (last_active_time > "2020-01-01T00:00:00+00:00" AND last_active_time <
1711
+ # "2022-01-01T00:00:00+00:00")
1712
+ #
1713
+ # customer = "customers/my_customer" AND space_type = "SPACE" AND
1714
+ # (create_time > "2019-01-01T00:00:00+00:00" AND create_time <
1715
+ # "2020-01-01T00:00:00+00:00") AND (external_user_allowed = "true") AND
1716
+ # (space_history_state = "HISTORY_ON" OR space_history_state = "HISTORY_OFF")
1717
+ # ```
1718
+ # @param order_by [::String]
1719
+ # Optional. How the list of spaces is ordered.
1720
+ #
1721
+ # Supported attributes to order by are:
1722
+ #
1723
+ # - `membership_count.joined_direct_human_user_count` — Denotes the count of
1724
+ # human users that have directly joined a space.
1725
+ # - `last_active_time` — Denotes the time when last eligible item is added to
1726
+ # any topic of this space.
1727
+ # - `create_time` — Denotes the time of the space creation.
1728
+ #
1729
+ # Valid ordering operation values are:
1730
+ #
1731
+ # - `ASC` for ascending. Default value.
1732
+ #
1733
+ # - `DESC` for descending.
1734
+ #
1735
+ # The supported syntax are:
1736
+ #
1737
+ # - `membership_count.joined_direct_human_user_count DESC`
1738
+ # - `membership_count.joined_direct_human_user_count ASC`
1739
+ # - `last_active_time DESC`
1740
+ # - `last_active_time ASC`
1741
+ # - `create_time DESC`
1742
+ # - `create_time ASC`
1743
+ #
1744
+ # @yield [response, operation] Access the result along with the RPC operation
1745
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Apps::Chat::V1::Space>]
1746
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1747
+ #
1748
+ # @return [::Gapic::PagedEnumerable<::Google::Apps::Chat::V1::Space>]
1749
+ #
1750
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1751
+ #
1752
+ # @example Basic example
1753
+ # require "google/apps/chat/v1"
1754
+ #
1755
+ # # Create a client object. The client can be reused for multiple calls.
1756
+ # client = Google::Apps::Chat::V1::ChatService::Client.new
1757
+ #
1758
+ # # Create a request. To set request fields, pass in keyword arguments.
1759
+ # request = Google::Apps::Chat::V1::SearchSpacesRequest.new
1760
+ #
1761
+ # # Call the search_spaces method.
1762
+ # result = client.search_spaces request
1763
+ #
1764
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1765
+ # # over elements, and API calls will be issued to fetch pages as needed.
1766
+ # result.each do |item|
1767
+ # # Each element is of type ::Google::Apps::Chat::V1::Space.
1768
+ # p item
1769
+ # end
1770
+ #
1771
+ def search_spaces request, options = nil
1772
+ raise ::ArgumentError, "request must be provided" if request.nil?
1773
+
1774
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Chat::V1::SearchSpacesRequest
1775
+
1776
+ # Converts hash and nil to an options object
1777
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1778
+
1779
+ # Customize the options with defaults
1780
+ metadata = @config.rpcs.search_spaces.metadata.to_h
1781
+
1782
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1783
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1784
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1785
+ gapic_version: ::Google::Apps::Chat::V1::VERSION
1786
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1787
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1788
+
1789
+ options.apply_defaults timeout: @config.rpcs.search_spaces.timeout,
1790
+ metadata: metadata,
1791
+ retry_policy: @config.rpcs.search_spaces.retry_policy
1792
+
1793
+ options.apply_defaults timeout: @config.timeout,
1794
+ metadata: @config.metadata,
1795
+ retry_policy: @config.retry_policy
1796
+
1797
+ @chat_service_stub.call_rpc :search_spaces, request, options: options do |response, operation|
1798
+ response = ::Gapic::PagedEnumerable.new @chat_service_stub, :search_spaces, request, response, operation, options
1799
+ yield response, operation if block_given?
1800
+ return response
1801
+ end
1802
+ rescue ::GRPC::BadStatus => e
1803
+ raise ::Google::Cloud::Error.from_error(e)
1804
+ end
1805
+
1567
1806
  ##
1568
1807
  # Returns details about a space. For an example, see
1569
1808
  # [Get details about a
@@ -1587,7 +1826,7 @@ module Google
1587
1826
  # @param options [::Gapic::CallOptions, ::Hash]
1588
1827
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1589
1828
  #
1590
- # @overload get_space(name: nil)
1829
+ # @overload get_space(name: nil, use_admin_access: nil)
1591
1830
  # Pass arguments to `get_space` via keyword arguments. Note that at
1592
1831
  # least one keyword argument is required. To specify no parameters, or to keep all
1593
1832
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -1596,6 +1835,16 @@ module Google
1596
1835
  # Required. Resource name of the space, in the form `spaces/{space}`.
1597
1836
  #
1598
1837
  # Format: `spaces/{space}`
1838
+ # @param use_admin_access [::Boolean]
1839
+ # When `true`, the method runs using the user's Google Workspace
1840
+ # administrator privileges.
1841
+ #
1842
+ # The calling user must be a Google Workspace administrator with the
1843
+ # [manage chat and spaces conversations
1844
+ # privilege](https://support.google.com/a/answer/13369245).
1845
+ #
1846
+ # Requires the `chat.admin.spaces` or `chat.admin.spaces.readonly` [OAuth 2.0
1847
+ # scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
1599
1848
  #
1600
1849
  # @yield [response, operation] Access the result along with the RPC operation
1601
1850
  # @yieldparam response [::Google::Apps::Chat::V1::Space]
@@ -1974,7 +2223,7 @@ module Google
1974
2223
  # @param options [::Gapic::CallOptions, ::Hash]
1975
2224
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1976
2225
  #
1977
- # @overload update_space(space: nil, update_mask: nil)
2226
+ # @overload update_space(space: nil, update_mask: nil, use_admin_access: nil)
1978
2227
  # Pass arguments to `update_space` via keyword arguments. Note that at
1979
2228
  # least one keyword argument is required. To specify no parameters, or to keep all
1980
2229
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -2035,6 +2284,19 @@ module Google
2035
2284
  # `permission_settings.reply_messages`
2036
2285
  # (Warning: mutually exclusive with all other non-permission settings field
2037
2286
  # paths). `permission_settings` is not supported with admin access.
2287
+ # @param use_admin_access [::Boolean]
2288
+ # When `true`, the method runs using the user's Google Workspace
2289
+ # administrator privileges.
2290
+ #
2291
+ # The calling user must be a Google Workspace administrator with the
2292
+ # [manage chat and spaces conversations
2293
+ # privilege](https://support.google.com/a/answer/13369245).
2294
+ #
2295
+ # Requires the `chat.admin.spaces` [OAuth 2.0
2296
+ # scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
2297
+ #
2298
+ # Some `FieldMask` values are not supported using admin access. For details,
2299
+ # see the description of `update_mask`.
2038
2300
  #
2039
2301
  # @yield [response, operation] Access the result along with the RPC operation
2040
2302
  # @yieldparam response [::Google::Apps::Chat::V1::Space]
@@ -2121,7 +2383,7 @@ module Google
2121
2383
  # @param options [::Gapic::CallOptions, ::Hash]
2122
2384
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2123
2385
  #
2124
- # @overload delete_space(name: nil)
2386
+ # @overload delete_space(name: nil, use_admin_access: nil)
2125
2387
  # Pass arguments to `delete_space` via keyword arguments. Note that at
2126
2388
  # least one keyword argument is required. To specify no parameters, or to keep all
2127
2389
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -2130,6 +2392,16 @@ module Google
2130
2392
  # Required. Resource name of the space to delete.
2131
2393
  #
2132
2394
  # Format: `spaces/{space}`
2395
+ # @param use_admin_access [::Boolean]
2396
+ # When `true`, the method runs using the user's Google Workspace
2397
+ # administrator privileges.
2398
+ #
2399
+ # The calling user must be a Google Workspace administrator with the
2400
+ # [manage chat and spaces conversations
2401
+ # privilege](https://support.google.com/a/answer/13369245).
2402
+ #
2403
+ # Requires the `chat.admin.delete` [OAuth 2.0
2404
+ # scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
2133
2405
  #
2134
2406
  # @yield [response, operation] Access the result along with the RPC operation
2135
2407
  # @yieldparam response [::Google::Protobuf::Empty]
@@ -2443,7 +2715,7 @@ module Google
2443
2715
  # @param options [::Gapic::CallOptions, ::Hash]
2444
2716
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2445
2717
  #
2446
- # @overload create_membership(parent: nil, membership: nil)
2718
+ # @overload create_membership(parent: nil, membership: nil, use_admin_access: nil)
2447
2719
  # Pass arguments to `create_membership` via keyword arguments. Note that at
2448
2720
  # least one keyword argument is required. To specify no parameters, or to keep all
2449
2721
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -2470,6 +2742,20 @@ module Google
2470
2742
  # `users/user@example.com` or `users/123456789`. When a Chat app creates a
2471
2743
  # membership relation for itself, it must use the `chat.memberships.app`
2472
2744
  # scope, set `user.type` to `BOT`, and set `user.name` to `users/app`.
2745
+ # @param use_admin_access [::Boolean]
2746
+ # When `true`, the method runs using the user's Google Workspace
2747
+ # administrator privileges.
2748
+ #
2749
+ # The calling user must be a Google Workspace administrator with the
2750
+ # [manage chat and spaces conversations
2751
+ # privilege](https://support.google.com/a/answer/13369245).
2752
+ #
2753
+ # Requires the `chat.admin.memberships` [OAuth 2.0
2754
+ # scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
2755
+ #
2756
+ # Creating app memberships or creating memberships for users outside the
2757
+ # administrator's Google Workspace organization isn't supported using admin
2758
+ # access.
2473
2759
  #
2474
2760
  # @yield [response, operation] Access the result along with the RPC operation
2475
2761
  # @yieldparam response [::Google::Apps::Chat::V1::Membership]
@@ -2553,7 +2839,7 @@ module Google
2553
2839
  # @param options [::Gapic::CallOptions, ::Hash]
2554
2840
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2555
2841
  #
2556
- # @overload update_membership(membership: nil, update_mask: nil)
2842
+ # @overload update_membership(membership: nil, update_mask: nil, use_admin_access: nil)
2557
2843
  # Pass arguments to `update_membership` via keyword arguments. Note that at
2558
2844
  # least one keyword argument is required. To specify no parameters, or to keep all
2559
2845
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -2568,6 +2854,16 @@ module Google
2568
2854
  # Currently supported field paths:
2569
2855
  #
2570
2856
  # - `role`
2857
+ # @param use_admin_access [::Boolean]
2858
+ # When `true`, the method runs using the user's Google Workspace
2859
+ # administrator privileges.
2860
+ #
2861
+ # The calling user must be a Google Workspace administrator with the
2862
+ # [manage chat and spaces conversations
2863
+ # privilege](https://support.google.com/a/answer/13369245).
2864
+ #
2865
+ # Requires the `chat.admin.memberships` [OAuth 2.0
2866
+ # scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
2571
2867
  #
2572
2868
  # @yield [response, operation] Access the result along with the RPC operation
2573
2869
  # @yieldparam response [::Google::Apps::Chat::V1::Membership]
@@ -2652,7 +2948,7 @@ module Google
2652
2948
  # @param options [::Gapic::CallOptions, ::Hash]
2653
2949
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2654
2950
  #
2655
- # @overload delete_membership(name: nil)
2951
+ # @overload delete_membership(name: nil, use_admin_access: nil)
2656
2952
  # Pass arguments to `delete_membership` via keyword arguments. Note that at
2657
2953
  # least one keyword argument is required. To specify no parameters, or to keep all
2658
2954
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -2672,6 +2968,18 @@ module Google
2672
2968
  # and `spaces/{space}/members/app` format.
2673
2969
  #
2674
2970
  # Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app`.
2971
+ # @param use_admin_access [::Boolean]
2972
+ # When `true`, the method runs using the user's Google Workspace
2973
+ # administrator privileges.
2974
+ #
2975
+ # The calling user must be a Google Workspace administrator with the
2976
+ # [manage chat and spaces conversations
2977
+ # privilege](https://support.google.com/a/answer/13369245).
2978
+ #
2979
+ # Requires the `chat.admin.memberships` [OAuth 2.0
2980
+ # scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
2981
+ #
2982
+ # Deleting app memberships in a space isn't supported using admin access.
2675
2983
  #
2676
2984
  # @yield [response, operation] Access the result along with the RPC operation
2677
2985
  # @yieldparam response [::Google::Apps::Chat::V1::Membership]
@@ -3890,6 +4198,11 @@ module Google
3890
4198
  #
3891
4199
  attr_reader :list_spaces
3892
4200
  ##
4201
+ # RPC-specific configuration for `search_spaces`
4202
+ # @return [::Gapic::Config::Method]
4203
+ #
4204
+ attr_reader :search_spaces
4205
+ ##
3893
4206
  # RPC-specific configuration for `get_space`
3894
4207
  # @return [::Gapic::Config::Method]
3895
4208
  #
@@ -4002,6 +4315,8 @@ module Google
4002
4315
  @upload_attachment = ::Gapic::Config::Method.new upload_attachment_config
4003
4316
  list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces
4004
4317
  @list_spaces = ::Gapic::Config::Method.new list_spaces_config
4318
+ search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces
4319
+ @search_spaces = ::Gapic::Config::Method.new search_spaces_config
4005
4320
  get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space
4006
4321
  @get_space = ::Gapic::Config::Method.new get_space_config
4007
4322
  create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space