Class: Google::Apps::Chat::V1::ChatService::Rest::Client::Configuration
- Inherits:
-
Object
- Object
- Google::Apps::Chat::V1::ChatService::Rest::Client::Configuration
- Extended by:
- Gapic::Config
- Defined in:
- lib/google/apps/chat/v1/chat_service/rest/client.rb
Overview
Configuration class for the ChatService REST API.
This class represents the configuration for ChatService REST, providing control over timeouts, retry behavior, logging, transport parameters, and other low-level controls. Certain parameters can also be applied individually to specific RPCs. See Rpcs for a list of RPCs that can be configured independently.
Configuration can be applied globally to all clients, or to a single client on construction.
Defined Under Namespace
Classes: Rpcs
Instance Attribute Summary collapse
-
#credentials ⇒ ::Object
Credentials to send with calls.
-
#endpoint ⇒ ::String?
A custom service endpoint, as a hostname or hostname:port.
-
#lib_name ⇒ ::String
The library name as recorded in instrumentation and logging.
-
#lib_version ⇒ ::String
The library version as recorded in instrumentation and logging.
-
#logger ⇒ ::Logger, ...
A custom logger to use for request/response debug logging, or the value
:default(the default) to construct a default logger, ornilto explicitly disable logging. -
#metadata ⇒ ::Hash{::Symbol=>::String}
Additional headers to be sent with the call.
-
#quota_project ⇒ ::String
A separate project against which to charge quota.
-
#retry_policy ⇒ ::Hash
The retry policy.
-
#scope ⇒ ::Array<::String>
The OAuth scopes.
-
#timeout ⇒ ::Numeric
The call timeout in seconds.
-
#universe_domain ⇒ ::String?
The universe domain within which to make requests.
Instance Method Summary collapse
-
#rpcs ⇒ Rpcs
Configurations for individual RPCs.
Instance Attribute Details
#credentials ⇒ ::Object
Credentials to send with calls. You may provide any of the following types:
- (
String) The path to a service account key file in JSON format - (
Hash) A service account key as a Hash - (
Google::Auth::Credentials) A googleauth credentials object (see the googleauth docs) - (
Signet::OAuth2::Client) A signet oauth2 client object (see the signet docs) - (
nil) indicating no credentials
Warning: If you accept a credential configuration (JSON file or Hash) from an external source for authentication to Google Cloud, you must validate it before providing it to a Google API client library. Providing an unvalidated credential configuration to Google APIs can compromise the security of your systems and data. For more information, refer to Validate credential configurations from external sources.
5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 |
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 5902 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "chat.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration RPC class for the ChatService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `find_group_chats` # @return [::Gapic::Config::Method] # attr_reader :find_group_chats ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `create_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :create_custom_emoji ## # RPC-specific configuration for `get_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :get_custom_emoji ## # RPC-specific configuration for `list_custom_emojis` # @return [::Gapic::Config::Method] # attr_reader :list_custom_emojis ## # RPC-specific configuration for `delete_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_emoji ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events ## # RPC-specific configuration for `get_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :get_space_notification_setting ## # RPC-specific configuration for `update_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :update_space_notification_setting ## # RPC-specific configuration for `create_section` # @return [::Gapic::Config::Method] # attr_reader :create_section ## # RPC-specific configuration for `delete_section` # @return [::Gapic::Config::Method] # attr_reader :delete_section ## # RPC-specific configuration for `update_section` # @return [::Gapic::Config::Method] # attr_reader :update_section ## # RPC-specific configuration for `list_sections` # @return [::Gapic::Config::Method] # attr_reader :list_sections ## # RPC-specific configuration for `position_section` # @return [::Gapic::Config::Method] # attr_reader :position_section ## # RPC-specific configuration for `list_section_items` # @return [::Gapic::Config::Method] # attr_reader :list_section_items ## # RPC-specific configuration for `move_section_item` # @return [::Gapic::Config::Method] # attr_reader :move_section_item # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message @create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages @list_messages = ::Gapic::Config::Method.new list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships @list_memberships = ::Gapic::Config::Method.new list_memberships_config get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership @get_membership = ::Gapic::Config::Method.new get_membership_config = parent_rpcs. if parent_rpcs.respond_to? :get_message @get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message @update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message @delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment @get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment @upload_attachment = ::Gapic::Config::Method.new list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces @list_spaces = ::Gapic::Config::Method.new list_spaces_config search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces @search_spaces = ::Gapic::Config::Method.new search_spaces_config get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space @get_space = ::Gapic::Config::Method.new get_space_config create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space @create_space = ::Gapic::Config::Method.new create_space_config set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space @set_up_space = ::Gapic::Config::Method.new set_up_space_config update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space @update_space = ::Gapic::Config::Method.new update_space_config delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space @delete_space = ::Gapic::Config::Method.new delete_space_config complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config = parent_rpcs. if parent_rpcs.respond_to? :find_direct_message @find_direct_message = ::Gapic::Config::Method.new find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership @create_membership = ::Gapic::Config::Method.new create_membership_config update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership @update_membership = ::Gapic::Config::Method.new update_membership_config delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership @delete_membership = ::Gapic::Config::Method.new delete_membership_config create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction @create_reaction = ::Gapic::Config::Method.new create_reaction_config list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions @list_reactions = ::Gapic::Config::Method.new list_reactions_config delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section @create_section = ::Gapic::Config::Method.new create_section_config delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section @delete_section = ::Gapic::Config::Method.new delete_section_config update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section @update_section = ::Gapic::Config::Method.new update_section_config list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections @list_sections = ::Gapic::Config::Method.new list_sections_config position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section @position_section = ::Gapic::Config::Method.new position_section_config list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items @list_section_items = ::Gapic::Config::Method.new list_section_items_config move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item @move_section_item = ::Gapic::Config::Method.new move_section_item_config yield self if block_given? end end end |
#endpoint ⇒ ::String?
A custom service endpoint, as a hostname or hostname:port. The default is nil, indicating to use the default endpoint in the current universe domain.
5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 |
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 5902 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "chat.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration RPC class for the ChatService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `find_group_chats` # @return [::Gapic::Config::Method] # attr_reader :find_group_chats ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `create_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :create_custom_emoji ## # RPC-specific configuration for `get_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :get_custom_emoji ## # RPC-specific configuration for `list_custom_emojis` # @return [::Gapic::Config::Method] # attr_reader :list_custom_emojis ## # RPC-specific configuration for `delete_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_emoji ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events ## # RPC-specific configuration for `get_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :get_space_notification_setting ## # RPC-specific configuration for `update_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :update_space_notification_setting ## # RPC-specific configuration for `create_section` # @return [::Gapic::Config::Method] # attr_reader :create_section ## # RPC-specific configuration for `delete_section` # @return [::Gapic::Config::Method] # attr_reader :delete_section ## # RPC-specific configuration for `update_section` # @return [::Gapic::Config::Method] # attr_reader :update_section ## # RPC-specific configuration for `list_sections` # @return [::Gapic::Config::Method] # attr_reader :list_sections ## # RPC-specific configuration for `position_section` # @return [::Gapic::Config::Method] # attr_reader :position_section ## # RPC-specific configuration for `list_section_items` # @return [::Gapic::Config::Method] # attr_reader :list_section_items ## # RPC-specific configuration for `move_section_item` # @return [::Gapic::Config::Method] # attr_reader :move_section_item # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message @create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages @list_messages = ::Gapic::Config::Method.new list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships @list_memberships = ::Gapic::Config::Method.new list_memberships_config get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership @get_membership = ::Gapic::Config::Method.new get_membership_config = parent_rpcs. if parent_rpcs.respond_to? :get_message @get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message @update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message @delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment @get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment @upload_attachment = ::Gapic::Config::Method.new list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces @list_spaces = ::Gapic::Config::Method.new list_spaces_config search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces @search_spaces = ::Gapic::Config::Method.new search_spaces_config get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space @get_space = ::Gapic::Config::Method.new get_space_config create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space @create_space = ::Gapic::Config::Method.new create_space_config set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space @set_up_space = ::Gapic::Config::Method.new set_up_space_config update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space @update_space = ::Gapic::Config::Method.new update_space_config delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space @delete_space = ::Gapic::Config::Method.new delete_space_config complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config = parent_rpcs. if parent_rpcs.respond_to? :find_direct_message @find_direct_message = ::Gapic::Config::Method.new find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership @create_membership = ::Gapic::Config::Method.new create_membership_config update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership @update_membership = ::Gapic::Config::Method.new update_membership_config delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership @delete_membership = ::Gapic::Config::Method.new delete_membership_config create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction @create_reaction = ::Gapic::Config::Method.new create_reaction_config list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions @list_reactions = ::Gapic::Config::Method.new list_reactions_config delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section @create_section = ::Gapic::Config::Method.new create_section_config delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section @delete_section = ::Gapic::Config::Method.new delete_section_config update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section @update_section = ::Gapic::Config::Method.new update_section_config list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections @list_sections = ::Gapic::Config::Method.new list_sections_config position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section @position_section = ::Gapic::Config::Method.new position_section_config list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items @list_section_items = ::Gapic::Config::Method.new list_section_items_config move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item @move_section_item = ::Gapic::Config::Method.new move_section_item_config yield self if block_given? end end end |
#lib_name ⇒ ::String
The library name as recorded in instrumentation and logging
5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 |
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 5902 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "chat.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration RPC class for the ChatService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `find_group_chats` # @return [::Gapic::Config::Method] # attr_reader :find_group_chats ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `create_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :create_custom_emoji ## # RPC-specific configuration for `get_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :get_custom_emoji ## # RPC-specific configuration for `list_custom_emojis` # @return [::Gapic::Config::Method] # attr_reader :list_custom_emojis ## # RPC-specific configuration for `delete_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_emoji ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events ## # RPC-specific configuration for `get_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :get_space_notification_setting ## # RPC-specific configuration for `update_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :update_space_notification_setting ## # RPC-specific configuration for `create_section` # @return [::Gapic::Config::Method] # attr_reader :create_section ## # RPC-specific configuration for `delete_section` # @return [::Gapic::Config::Method] # attr_reader :delete_section ## # RPC-specific configuration for `update_section` # @return [::Gapic::Config::Method] # attr_reader :update_section ## # RPC-specific configuration for `list_sections` # @return [::Gapic::Config::Method] # attr_reader :list_sections ## # RPC-specific configuration for `position_section` # @return [::Gapic::Config::Method] # attr_reader :position_section ## # RPC-specific configuration for `list_section_items` # @return [::Gapic::Config::Method] # attr_reader :list_section_items ## # RPC-specific configuration for `move_section_item` # @return [::Gapic::Config::Method] # attr_reader :move_section_item # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message @create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages @list_messages = ::Gapic::Config::Method.new list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships @list_memberships = ::Gapic::Config::Method.new list_memberships_config get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership @get_membership = ::Gapic::Config::Method.new get_membership_config = parent_rpcs. if parent_rpcs.respond_to? :get_message @get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message @update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message @delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment @get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment @upload_attachment = ::Gapic::Config::Method.new list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces @list_spaces = ::Gapic::Config::Method.new list_spaces_config search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces @search_spaces = ::Gapic::Config::Method.new search_spaces_config get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space @get_space = ::Gapic::Config::Method.new get_space_config create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space @create_space = ::Gapic::Config::Method.new create_space_config set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space @set_up_space = ::Gapic::Config::Method.new set_up_space_config update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space @update_space = ::Gapic::Config::Method.new update_space_config delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space @delete_space = ::Gapic::Config::Method.new delete_space_config complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config = parent_rpcs. if parent_rpcs.respond_to? :find_direct_message @find_direct_message = ::Gapic::Config::Method.new find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership @create_membership = ::Gapic::Config::Method.new create_membership_config update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership @update_membership = ::Gapic::Config::Method.new update_membership_config delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership @delete_membership = ::Gapic::Config::Method.new delete_membership_config create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction @create_reaction = ::Gapic::Config::Method.new create_reaction_config list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions @list_reactions = ::Gapic::Config::Method.new list_reactions_config delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section @create_section = ::Gapic::Config::Method.new create_section_config delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section @delete_section = ::Gapic::Config::Method.new delete_section_config update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section @update_section = ::Gapic::Config::Method.new update_section_config list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections @list_sections = ::Gapic::Config::Method.new list_sections_config position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section @position_section = ::Gapic::Config::Method.new position_section_config list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items @list_section_items = ::Gapic::Config::Method.new list_section_items_config move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item @move_section_item = ::Gapic::Config::Method.new move_section_item_config yield self if block_given? end end end |
#lib_version ⇒ ::String
The library version as recorded in instrumentation and logging
5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 |
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 5902 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "chat.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration RPC class for the ChatService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `find_group_chats` # @return [::Gapic::Config::Method] # attr_reader :find_group_chats ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `create_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :create_custom_emoji ## # RPC-specific configuration for `get_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :get_custom_emoji ## # RPC-specific configuration for `list_custom_emojis` # @return [::Gapic::Config::Method] # attr_reader :list_custom_emojis ## # RPC-specific configuration for `delete_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_emoji ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events ## # RPC-specific configuration for `get_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :get_space_notification_setting ## # RPC-specific configuration for `update_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :update_space_notification_setting ## # RPC-specific configuration for `create_section` # @return [::Gapic::Config::Method] # attr_reader :create_section ## # RPC-specific configuration for `delete_section` # @return [::Gapic::Config::Method] # attr_reader :delete_section ## # RPC-specific configuration for `update_section` # @return [::Gapic::Config::Method] # attr_reader :update_section ## # RPC-specific configuration for `list_sections` # @return [::Gapic::Config::Method] # attr_reader :list_sections ## # RPC-specific configuration for `position_section` # @return [::Gapic::Config::Method] # attr_reader :position_section ## # RPC-specific configuration for `list_section_items` # @return [::Gapic::Config::Method] # attr_reader :list_section_items ## # RPC-specific configuration for `move_section_item` # @return [::Gapic::Config::Method] # attr_reader :move_section_item # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message @create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages @list_messages = ::Gapic::Config::Method.new list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships @list_memberships = ::Gapic::Config::Method.new list_memberships_config get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership @get_membership = ::Gapic::Config::Method.new get_membership_config = parent_rpcs. if parent_rpcs.respond_to? :get_message @get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message @update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message @delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment @get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment @upload_attachment = ::Gapic::Config::Method.new list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces @list_spaces = ::Gapic::Config::Method.new list_spaces_config search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces @search_spaces = ::Gapic::Config::Method.new search_spaces_config get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space @get_space = ::Gapic::Config::Method.new get_space_config create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space @create_space = ::Gapic::Config::Method.new create_space_config set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space @set_up_space = ::Gapic::Config::Method.new set_up_space_config update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space @update_space = ::Gapic::Config::Method.new update_space_config delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space @delete_space = ::Gapic::Config::Method.new delete_space_config complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config = parent_rpcs. if parent_rpcs.respond_to? :find_direct_message @find_direct_message = ::Gapic::Config::Method.new find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership @create_membership = ::Gapic::Config::Method.new create_membership_config update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership @update_membership = ::Gapic::Config::Method.new update_membership_config delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership @delete_membership = ::Gapic::Config::Method.new delete_membership_config create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction @create_reaction = ::Gapic::Config::Method.new create_reaction_config list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions @list_reactions = ::Gapic::Config::Method.new list_reactions_config delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section @create_section = ::Gapic::Config::Method.new create_section_config delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section @delete_section = ::Gapic::Config::Method.new delete_section_config update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section @update_section = ::Gapic::Config::Method.new update_section_config list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections @list_sections = ::Gapic::Config::Method.new list_sections_config position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section @position_section = ::Gapic::Config::Method.new position_section_config list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items @list_section_items = ::Gapic::Config::Method.new list_section_items_config move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item @move_section_item = ::Gapic::Config::Method.new move_section_item_config yield self if block_given? end end end |
#logger ⇒ ::Logger, ...
A custom logger to use for request/response debug logging, or the value
:default (the default) to construct a default logger, or nil to
explicitly disable logging.
5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 |
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 5902 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "chat.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration RPC class for the ChatService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `find_group_chats` # @return [::Gapic::Config::Method] # attr_reader :find_group_chats ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `create_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :create_custom_emoji ## # RPC-specific configuration for `get_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :get_custom_emoji ## # RPC-specific configuration for `list_custom_emojis` # @return [::Gapic::Config::Method] # attr_reader :list_custom_emojis ## # RPC-specific configuration for `delete_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_emoji ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events ## # RPC-specific configuration for `get_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :get_space_notification_setting ## # RPC-specific configuration for `update_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :update_space_notification_setting ## # RPC-specific configuration for `create_section` # @return [::Gapic::Config::Method] # attr_reader :create_section ## # RPC-specific configuration for `delete_section` # @return [::Gapic::Config::Method] # attr_reader :delete_section ## # RPC-specific configuration for `update_section` # @return [::Gapic::Config::Method] # attr_reader :update_section ## # RPC-specific configuration for `list_sections` # @return [::Gapic::Config::Method] # attr_reader :list_sections ## # RPC-specific configuration for `position_section` # @return [::Gapic::Config::Method] # attr_reader :position_section ## # RPC-specific configuration for `list_section_items` # @return [::Gapic::Config::Method] # attr_reader :list_section_items ## # RPC-specific configuration for `move_section_item` # @return [::Gapic::Config::Method] # attr_reader :move_section_item # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message @create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages @list_messages = ::Gapic::Config::Method.new list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships @list_memberships = ::Gapic::Config::Method.new list_memberships_config get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership @get_membership = ::Gapic::Config::Method.new get_membership_config = parent_rpcs. if parent_rpcs.respond_to? :get_message @get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message @update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message @delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment @get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment @upload_attachment = ::Gapic::Config::Method.new list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces @list_spaces = ::Gapic::Config::Method.new list_spaces_config search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces @search_spaces = ::Gapic::Config::Method.new search_spaces_config get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space @get_space = ::Gapic::Config::Method.new get_space_config create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space @create_space = ::Gapic::Config::Method.new create_space_config set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space @set_up_space = ::Gapic::Config::Method.new set_up_space_config update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space @update_space = ::Gapic::Config::Method.new update_space_config delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space @delete_space = ::Gapic::Config::Method.new delete_space_config complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config = parent_rpcs. if parent_rpcs.respond_to? :find_direct_message @find_direct_message = ::Gapic::Config::Method.new find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership @create_membership = ::Gapic::Config::Method.new create_membership_config update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership @update_membership = ::Gapic::Config::Method.new update_membership_config delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership @delete_membership = ::Gapic::Config::Method.new delete_membership_config create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction @create_reaction = ::Gapic::Config::Method.new create_reaction_config list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions @list_reactions = ::Gapic::Config::Method.new list_reactions_config delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section @create_section = ::Gapic::Config::Method.new create_section_config delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section @delete_section = ::Gapic::Config::Method.new delete_section_config update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section @update_section = ::Gapic::Config::Method.new update_section_config list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections @list_sections = ::Gapic::Config::Method.new list_sections_config position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section @position_section = ::Gapic::Config::Method.new position_section_config list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items @list_section_items = ::Gapic::Config::Method.new list_section_items_config move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item @move_section_item = ::Gapic::Config::Method.new move_section_item_config yield self if block_given? end end end |
#metadata ⇒ ::Hash{::Symbol=>::String}
Additional headers to be sent with the call.
5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 |
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 5902 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "chat.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration RPC class for the ChatService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `find_group_chats` # @return [::Gapic::Config::Method] # attr_reader :find_group_chats ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `create_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :create_custom_emoji ## # RPC-specific configuration for `get_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :get_custom_emoji ## # RPC-specific configuration for `list_custom_emojis` # @return [::Gapic::Config::Method] # attr_reader :list_custom_emojis ## # RPC-specific configuration for `delete_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_emoji ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events ## # RPC-specific configuration for `get_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :get_space_notification_setting ## # RPC-specific configuration for `update_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :update_space_notification_setting ## # RPC-specific configuration for `create_section` # @return [::Gapic::Config::Method] # attr_reader :create_section ## # RPC-specific configuration for `delete_section` # @return [::Gapic::Config::Method] # attr_reader :delete_section ## # RPC-specific configuration for `update_section` # @return [::Gapic::Config::Method] # attr_reader :update_section ## # RPC-specific configuration for `list_sections` # @return [::Gapic::Config::Method] # attr_reader :list_sections ## # RPC-specific configuration for `position_section` # @return [::Gapic::Config::Method] # attr_reader :position_section ## # RPC-specific configuration for `list_section_items` # @return [::Gapic::Config::Method] # attr_reader :list_section_items ## # RPC-specific configuration for `move_section_item` # @return [::Gapic::Config::Method] # attr_reader :move_section_item # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message @create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages @list_messages = ::Gapic::Config::Method.new list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships @list_memberships = ::Gapic::Config::Method.new list_memberships_config get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership @get_membership = ::Gapic::Config::Method.new get_membership_config = parent_rpcs. if parent_rpcs.respond_to? :get_message @get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message @update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message @delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment @get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment @upload_attachment = ::Gapic::Config::Method.new list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces @list_spaces = ::Gapic::Config::Method.new list_spaces_config search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces @search_spaces = ::Gapic::Config::Method.new search_spaces_config get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space @get_space = ::Gapic::Config::Method.new get_space_config create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space @create_space = ::Gapic::Config::Method.new create_space_config set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space @set_up_space = ::Gapic::Config::Method.new set_up_space_config update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space @update_space = ::Gapic::Config::Method.new update_space_config delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space @delete_space = ::Gapic::Config::Method.new delete_space_config complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config = parent_rpcs. if parent_rpcs.respond_to? :find_direct_message @find_direct_message = ::Gapic::Config::Method.new find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership @create_membership = ::Gapic::Config::Method.new create_membership_config update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership @update_membership = ::Gapic::Config::Method.new update_membership_config delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership @delete_membership = ::Gapic::Config::Method.new delete_membership_config create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction @create_reaction = ::Gapic::Config::Method.new create_reaction_config list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions @list_reactions = ::Gapic::Config::Method.new list_reactions_config delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section @create_section = ::Gapic::Config::Method.new create_section_config delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section @delete_section = ::Gapic::Config::Method.new delete_section_config update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section @update_section = ::Gapic::Config::Method.new update_section_config list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections @list_sections = ::Gapic::Config::Method.new list_sections_config position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section @position_section = ::Gapic::Config::Method.new position_section_config list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items @list_section_items = ::Gapic::Config::Method.new list_section_items_config move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item @move_section_item = ::Gapic::Config::Method.new move_section_item_config yield self if block_given? end end end |
#quota_project ⇒ ::String
A separate project against which to charge quota.
5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 |
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 5902 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "chat.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration RPC class for the ChatService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `find_group_chats` # @return [::Gapic::Config::Method] # attr_reader :find_group_chats ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `create_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :create_custom_emoji ## # RPC-specific configuration for `get_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :get_custom_emoji ## # RPC-specific configuration for `list_custom_emojis` # @return [::Gapic::Config::Method] # attr_reader :list_custom_emojis ## # RPC-specific configuration for `delete_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_emoji ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events ## # RPC-specific configuration for `get_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :get_space_notification_setting ## # RPC-specific configuration for `update_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :update_space_notification_setting ## # RPC-specific configuration for `create_section` # @return [::Gapic::Config::Method] # attr_reader :create_section ## # RPC-specific configuration for `delete_section` # @return [::Gapic::Config::Method] # attr_reader :delete_section ## # RPC-specific configuration for `update_section` # @return [::Gapic::Config::Method] # attr_reader :update_section ## # RPC-specific configuration for `list_sections` # @return [::Gapic::Config::Method] # attr_reader :list_sections ## # RPC-specific configuration for `position_section` # @return [::Gapic::Config::Method] # attr_reader :position_section ## # RPC-specific configuration for `list_section_items` # @return [::Gapic::Config::Method] # attr_reader :list_section_items ## # RPC-specific configuration for `move_section_item` # @return [::Gapic::Config::Method] # attr_reader :move_section_item # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message @create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages @list_messages = ::Gapic::Config::Method.new list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships @list_memberships = ::Gapic::Config::Method.new list_memberships_config get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership @get_membership = ::Gapic::Config::Method.new get_membership_config = parent_rpcs. if parent_rpcs.respond_to? :get_message @get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message @update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message @delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment @get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment @upload_attachment = ::Gapic::Config::Method.new list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces @list_spaces = ::Gapic::Config::Method.new list_spaces_config search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces @search_spaces = ::Gapic::Config::Method.new search_spaces_config get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space @get_space = ::Gapic::Config::Method.new get_space_config create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space @create_space = ::Gapic::Config::Method.new create_space_config set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space @set_up_space = ::Gapic::Config::Method.new set_up_space_config update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space @update_space = ::Gapic::Config::Method.new update_space_config delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space @delete_space = ::Gapic::Config::Method.new delete_space_config complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config = parent_rpcs. if parent_rpcs.respond_to? :find_direct_message @find_direct_message = ::Gapic::Config::Method.new find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership @create_membership = ::Gapic::Config::Method.new create_membership_config update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership @update_membership = ::Gapic::Config::Method.new update_membership_config delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership @delete_membership = ::Gapic::Config::Method.new delete_membership_config create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction @create_reaction = ::Gapic::Config::Method.new create_reaction_config list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions @list_reactions = ::Gapic::Config::Method.new list_reactions_config delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section @create_section = ::Gapic::Config::Method.new create_section_config delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section @delete_section = ::Gapic::Config::Method.new delete_section_config update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section @update_section = ::Gapic::Config::Method.new update_section_config list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections @list_sections = ::Gapic::Config::Method.new list_sections_config position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section @position_section = ::Gapic::Config::Method.new position_section_config list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items @list_section_items = ::Gapic::Config::Method.new list_section_items_config move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item @move_section_item = ::Gapic::Config::Method.new move_section_item_config yield self if block_given? end end end |
#retry_policy ⇒ ::Hash
The retry policy. The value is a hash with the following keys:
-
:initial_delay(type:Numeric) - The initial delay in seconds. -
:max_delay(type:Numeric) - The max delay in seconds. -
:multiplier(type:Numeric) - The incremental backoff multiplier. -
:jitter(type:Numeric) - The jitter in seconds. Default: 1.0. -
:retry_codes(type:Array<String>) - The error codes that should trigger a retry.
5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 |
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 5902 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "chat.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration RPC class for the ChatService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `find_group_chats` # @return [::Gapic::Config::Method] # attr_reader :find_group_chats ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `create_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :create_custom_emoji ## # RPC-specific configuration for `get_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :get_custom_emoji ## # RPC-specific configuration for `list_custom_emojis` # @return [::Gapic::Config::Method] # attr_reader :list_custom_emojis ## # RPC-specific configuration for `delete_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_emoji ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events ## # RPC-specific configuration for `get_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :get_space_notification_setting ## # RPC-specific configuration for `update_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :update_space_notification_setting ## # RPC-specific configuration for `create_section` # @return [::Gapic::Config::Method] # attr_reader :create_section ## # RPC-specific configuration for `delete_section` # @return [::Gapic::Config::Method] # attr_reader :delete_section ## # RPC-specific configuration for `update_section` # @return [::Gapic::Config::Method] # attr_reader :update_section ## # RPC-specific configuration for `list_sections` # @return [::Gapic::Config::Method] # attr_reader :list_sections ## # RPC-specific configuration for `position_section` # @return [::Gapic::Config::Method] # attr_reader :position_section ## # RPC-specific configuration for `list_section_items` # @return [::Gapic::Config::Method] # attr_reader :list_section_items ## # RPC-specific configuration for `move_section_item` # @return [::Gapic::Config::Method] # attr_reader :move_section_item # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message @create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages @list_messages = ::Gapic::Config::Method.new list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships @list_memberships = ::Gapic::Config::Method.new list_memberships_config get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership @get_membership = ::Gapic::Config::Method.new get_membership_config = parent_rpcs. if parent_rpcs.respond_to? :get_message @get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message @update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message @delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment @get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment @upload_attachment = ::Gapic::Config::Method.new list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces @list_spaces = ::Gapic::Config::Method.new list_spaces_config search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces @search_spaces = ::Gapic::Config::Method.new search_spaces_config get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space @get_space = ::Gapic::Config::Method.new get_space_config create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space @create_space = ::Gapic::Config::Method.new create_space_config set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space @set_up_space = ::Gapic::Config::Method.new set_up_space_config update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space @update_space = ::Gapic::Config::Method.new update_space_config delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space @delete_space = ::Gapic::Config::Method.new delete_space_config complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config = parent_rpcs. if parent_rpcs.respond_to? :find_direct_message @find_direct_message = ::Gapic::Config::Method.new find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership @create_membership = ::Gapic::Config::Method.new create_membership_config update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership @update_membership = ::Gapic::Config::Method.new update_membership_config delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership @delete_membership = ::Gapic::Config::Method.new delete_membership_config create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction @create_reaction = ::Gapic::Config::Method.new create_reaction_config list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions @list_reactions = ::Gapic::Config::Method.new list_reactions_config delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section @create_section = ::Gapic::Config::Method.new create_section_config delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section @delete_section = ::Gapic::Config::Method.new delete_section_config update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section @update_section = ::Gapic::Config::Method.new update_section_config list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections @list_sections = ::Gapic::Config::Method.new list_sections_config position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section @position_section = ::Gapic::Config::Method.new position_section_config list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items @list_section_items = ::Gapic::Config::Method.new list_section_items_config move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item @move_section_item = ::Gapic::Config::Method.new move_section_item_config yield self if block_given? end end end |
#scope ⇒ ::Array<::String>
The OAuth scopes
5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 |
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 5902 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "chat.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration RPC class for the ChatService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `find_group_chats` # @return [::Gapic::Config::Method] # attr_reader :find_group_chats ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `create_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :create_custom_emoji ## # RPC-specific configuration for `get_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :get_custom_emoji ## # RPC-specific configuration for `list_custom_emojis` # @return [::Gapic::Config::Method] # attr_reader :list_custom_emojis ## # RPC-specific configuration for `delete_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_emoji ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events ## # RPC-specific configuration for `get_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :get_space_notification_setting ## # RPC-specific configuration for `update_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :update_space_notification_setting ## # RPC-specific configuration for `create_section` # @return [::Gapic::Config::Method] # attr_reader :create_section ## # RPC-specific configuration for `delete_section` # @return [::Gapic::Config::Method] # attr_reader :delete_section ## # RPC-specific configuration for `update_section` # @return [::Gapic::Config::Method] # attr_reader :update_section ## # RPC-specific configuration for `list_sections` # @return [::Gapic::Config::Method] # attr_reader :list_sections ## # RPC-specific configuration for `position_section` # @return [::Gapic::Config::Method] # attr_reader :position_section ## # RPC-specific configuration for `list_section_items` # @return [::Gapic::Config::Method] # attr_reader :list_section_items ## # RPC-specific configuration for `move_section_item` # @return [::Gapic::Config::Method] # attr_reader :move_section_item # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message @create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages @list_messages = ::Gapic::Config::Method.new list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships @list_memberships = ::Gapic::Config::Method.new list_memberships_config get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership @get_membership = ::Gapic::Config::Method.new get_membership_config = parent_rpcs. if parent_rpcs.respond_to? :get_message @get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message @update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message @delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment @get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment @upload_attachment = ::Gapic::Config::Method.new list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces @list_spaces = ::Gapic::Config::Method.new list_spaces_config search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces @search_spaces = ::Gapic::Config::Method.new search_spaces_config get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space @get_space = ::Gapic::Config::Method.new get_space_config create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space @create_space = ::Gapic::Config::Method.new create_space_config set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space @set_up_space = ::Gapic::Config::Method.new set_up_space_config update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space @update_space = ::Gapic::Config::Method.new update_space_config delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space @delete_space = ::Gapic::Config::Method.new delete_space_config complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config = parent_rpcs. if parent_rpcs.respond_to? :find_direct_message @find_direct_message = ::Gapic::Config::Method.new find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership @create_membership = ::Gapic::Config::Method.new create_membership_config update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership @update_membership = ::Gapic::Config::Method.new update_membership_config delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership @delete_membership = ::Gapic::Config::Method.new delete_membership_config create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction @create_reaction = ::Gapic::Config::Method.new create_reaction_config list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions @list_reactions = ::Gapic::Config::Method.new list_reactions_config delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section @create_section = ::Gapic::Config::Method.new create_section_config delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section @delete_section = ::Gapic::Config::Method.new delete_section_config update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section @update_section = ::Gapic::Config::Method.new update_section_config list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections @list_sections = ::Gapic::Config::Method.new list_sections_config position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section @position_section = ::Gapic::Config::Method.new position_section_config list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items @list_section_items = ::Gapic::Config::Method.new list_section_items_config move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item @move_section_item = ::Gapic::Config::Method.new move_section_item_config yield self if block_given? end end end |
#timeout ⇒ ::Numeric
The call timeout in seconds.
5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 |
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 5902 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "chat.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration RPC class for the ChatService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `find_group_chats` # @return [::Gapic::Config::Method] # attr_reader :find_group_chats ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `create_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :create_custom_emoji ## # RPC-specific configuration for `get_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :get_custom_emoji ## # RPC-specific configuration for `list_custom_emojis` # @return [::Gapic::Config::Method] # attr_reader :list_custom_emojis ## # RPC-specific configuration for `delete_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_emoji ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events ## # RPC-specific configuration for `get_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :get_space_notification_setting ## # RPC-specific configuration for `update_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :update_space_notification_setting ## # RPC-specific configuration for `create_section` # @return [::Gapic::Config::Method] # attr_reader :create_section ## # RPC-specific configuration for `delete_section` # @return [::Gapic::Config::Method] # attr_reader :delete_section ## # RPC-specific configuration for `update_section` # @return [::Gapic::Config::Method] # attr_reader :update_section ## # RPC-specific configuration for `list_sections` # @return [::Gapic::Config::Method] # attr_reader :list_sections ## # RPC-specific configuration for `position_section` # @return [::Gapic::Config::Method] # attr_reader :position_section ## # RPC-specific configuration for `list_section_items` # @return [::Gapic::Config::Method] # attr_reader :list_section_items ## # RPC-specific configuration for `move_section_item` # @return [::Gapic::Config::Method] # attr_reader :move_section_item # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message @create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages @list_messages = ::Gapic::Config::Method.new list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships @list_memberships = ::Gapic::Config::Method.new list_memberships_config get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership @get_membership = ::Gapic::Config::Method.new get_membership_config = parent_rpcs. if parent_rpcs.respond_to? :get_message @get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message @update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message @delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment @get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment @upload_attachment = ::Gapic::Config::Method.new list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces @list_spaces = ::Gapic::Config::Method.new list_spaces_config search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces @search_spaces = ::Gapic::Config::Method.new search_spaces_config get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space @get_space = ::Gapic::Config::Method.new get_space_config create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space @create_space = ::Gapic::Config::Method.new create_space_config set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space @set_up_space = ::Gapic::Config::Method.new set_up_space_config update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space @update_space = ::Gapic::Config::Method.new update_space_config delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space @delete_space = ::Gapic::Config::Method.new delete_space_config complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config = parent_rpcs. if parent_rpcs.respond_to? :find_direct_message @find_direct_message = ::Gapic::Config::Method.new find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership @create_membership = ::Gapic::Config::Method.new create_membership_config update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership @update_membership = ::Gapic::Config::Method.new update_membership_config delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership @delete_membership = ::Gapic::Config::Method.new delete_membership_config create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction @create_reaction = ::Gapic::Config::Method.new create_reaction_config list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions @list_reactions = ::Gapic::Config::Method.new list_reactions_config delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section @create_section = ::Gapic::Config::Method.new create_section_config delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section @delete_section = ::Gapic::Config::Method.new delete_section_config update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section @update_section = ::Gapic::Config::Method.new update_section_config list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections @list_sections = ::Gapic::Config::Method.new list_sections_config position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section @position_section = ::Gapic::Config::Method.new position_section_config list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items @list_section_items = ::Gapic::Config::Method.new list_section_items_config move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item @move_section_item = ::Gapic::Config::Method.new move_section_item_config yield self if block_given? end end end |
#universe_domain ⇒ ::String?
The universe domain within which to make requests. This determines the default endpoint URL. The default value of nil uses the environment universe (usually the default "googleapis.com" universe).
5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 |
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 5902 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "chat.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration RPC class for the ChatService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_message` # @return [::Gapic::Config::Method] # attr_reader :create_message ## # RPC-specific configuration for `list_messages` # @return [::Gapic::Config::Method] # attr_reader :list_messages ## # RPC-specific configuration for `list_memberships` # @return [::Gapic::Config::Method] # attr_reader :list_memberships ## # RPC-specific configuration for `get_membership` # @return [::Gapic::Config::Method] # attr_reader :get_membership ## # RPC-specific configuration for `get_message` # @return [::Gapic::Config::Method] # attr_reader :get_message ## # RPC-specific configuration for `update_message` # @return [::Gapic::Config::Method] # attr_reader :update_message ## # RPC-specific configuration for `delete_message` # @return [::Gapic::Config::Method] # attr_reader :delete_message ## # RPC-specific configuration for `get_attachment` # @return [::Gapic::Config::Method] # attr_reader :get_attachment ## # RPC-specific configuration for `upload_attachment` # @return [::Gapic::Config::Method] # attr_reader :upload_attachment ## # RPC-specific configuration for `list_spaces` # @return [::Gapic::Config::Method] # attr_reader :list_spaces ## # RPC-specific configuration for `search_spaces` # @return [::Gapic::Config::Method] # attr_reader :search_spaces ## # RPC-specific configuration for `get_space` # @return [::Gapic::Config::Method] # attr_reader :get_space ## # RPC-specific configuration for `create_space` # @return [::Gapic::Config::Method] # attr_reader :create_space ## # RPC-specific configuration for `set_up_space` # @return [::Gapic::Config::Method] # attr_reader :set_up_space ## # RPC-specific configuration for `update_space` # @return [::Gapic::Config::Method] # attr_reader :update_space ## # RPC-specific configuration for `delete_space` # @return [::Gapic::Config::Method] # attr_reader :delete_space ## # RPC-specific configuration for `complete_import_space` # @return [::Gapic::Config::Method] # attr_reader :complete_import_space ## # RPC-specific configuration for `find_direct_message` # @return [::Gapic::Config::Method] # attr_reader :find_direct_message ## # RPC-specific configuration for `find_group_chats` # @return [::Gapic::Config::Method] # attr_reader :find_group_chats ## # RPC-specific configuration for `create_membership` # @return [::Gapic::Config::Method] # attr_reader :create_membership ## # RPC-specific configuration for `update_membership` # @return [::Gapic::Config::Method] # attr_reader :update_membership ## # RPC-specific configuration for `delete_membership` # @return [::Gapic::Config::Method] # attr_reader :delete_membership ## # RPC-specific configuration for `create_reaction` # @return [::Gapic::Config::Method] # attr_reader :create_reaction ## # RPC-specific configuration for `list_reactions` # @return [::Gapic::Config::Method] # attr_reader :list_reactions ## # RPC-specific configuration for `delete_reaction` # @return [::Gapic::Config::Method] # attr_reader :delete_reaction ## # RPC-specific configuration for `create_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :create_custom_emoji ## # RPC-specific configuration for `get_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :get_custom_emoji ## # RPC-specific configuration for `list_custom_emojis` # @return [::Gapic::Config::Method] # attr_reader :list_custom_emojis ## # RPC-specific configuration for `delete_custom_emoji` # @return [::Gapic::Config::Method] # attr_reader :delete_custom_emoji ## # RPC-specific configuration for `get_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_space_read_state ## # RPC-specific configuration for `update_space_read_state` # @return [::Gapic::Config::Method] # attr_reader :update_space_read_state ## # RPC-specific configuration for `get_thread_read_state` # @return [::Gapic::Config::Method] # attr_reader :get_thread_read_state ## # RPC-specific configuration for `get_space_event` # @return [::Gapic::Config::Method] # attr_reader :get_space_event ## # RPC-specific configuration for `list_space_events` # @return [::Gapic::Config::Method] # attr_reader :list_space_events ## # RPC-specific configuration for `get_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :get_space_notification_setting ## # RPC-specific configuration for `update_space_notification_setting` # @return [::Gapic::Config::Method] # attr_reader :update_space_notification_setting ## # RPC-specific configuration for `create_section` # @return [::Gapic::Config::Method] # attr_reader :create_section ## # RPC-specific configuration for `delete_section` # @return [::Gapic::Config::Method] # attr_reader :delete_section ## # RPC-specific configuration for `update_section` # @return [::Gapic::Config::Method] # attr_reader :update_section ## # RPC-specific configuration for `list_sections` # @return [::Gapic::Config::Method] # attr_reader :list_sections ## # RPC-specific configuration for `position_section` # @return [::Gapic::Config::Method] # attr_reader :position_section ## # RPC-specific configuration for `list_section_items` # @return [::Gapic::Config::Method] # attr_reader :list_section_items ## # RPC-specific configuration for `move_section_item` # @return [::Gapic::Config::Method] # attr_reader :move_section_item # @private def initialize parent_rpcs = nil = parent_rpcs. if parent_rpcs.respond_to? :create_message @create_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :list_messages @list_messages = ::Gapic::Config::Method.new list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships @list_memberships = ::Gapic::Config::Method.new list_memberships_config get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership @get_membership = ::Gapic::Config::Method.new get_membership_config = parent_rpcs. if parent_rpcs.respond_to? :get_message @get_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :update_message @update_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :delete_message @delete_message = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :get_attachment @get_attachment = ::Gapic::Config::Method.new = parent_rpcs. if parent_rpcs.respond_to? :upload_attachment @upload_attachment = ::Gapic::Config::Method.new list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces @list_spaces = ::Gapic::Config::Method.new list_spaces_config search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces @search_spaces = ::Gapic::Config::Method.new search_spaces_config get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space @get_space = ::Gapic::Config::Method.new get_space_config create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space @create_space = ::Gapic::Config::Method.new create_space_config set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space @set_up_space = ::Gapic::Config::Method.new set_up_space_config update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space @update_space = ::Gapic::Config::Method.new update_space_config delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space @delete_space = ::Gapic::Config::Method.new delete_space_config complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config = parent_rpcs. if parent_rpcs.respond_to? :find_direct_message @find_direct_message = ::Gapic::Config::Method.new find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership @create_membership = ::Gapic::Config::Method.new create_membership_config update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership @update_membership = ::Gapic::Config::Method.new update_membership_config delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership @delete_membership = ::Gapic::Config::Method.new delete_membership_config create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction @create_reaction = ::Gapic::Config::Method.new create_reaction_config list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions @list_reactions = ::Gapic::Config::Method.new list_reactions_config delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event @get_space_event = ::Gapic::Config::Method.new get_space_event_config list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events @list_space_events = ::Gapic::Config::Method.new list_space_events_config get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section @create_section = ::Gapic::Config::Method.new create_section_config delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section @delete_section = ::Gapic::Config::Method.new delete_section_config update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section @update_section = ::Gapic::Config::Method.new update_section_config list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections @list_sections = ::Gapic::Config::Method.new list_sections_config position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section @position_section = ::Gapic::Config::Method.new position_section_config list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items @list_section_items = ::Gapic::Config::Method.new list_section_items_config move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item @move_section_item = ::Gapic::Config::Method.new move_section_item_config yield self if block_given? end end end |
Instance Method Details
#rpcs ⇒ Rpcs
Configurations for individual RPCs
5935 5936 5937 5938 5939 5940 5941 |
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 5935 def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end |