Class: Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client::Configuration
- Inherits:
-
Object
- Object
- Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client::Configuration
- Extended by:
- Gapic::Config
- Defined in:
- lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb
Overview
Configuration class for the BackupForGKE REST API.
This class represents the configuration for BackupForGKE 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
Constant Summary collapse
- DEFAULT_ENDPOINT =
"gkebackup.googleapis.com"
Instance Attribute Summary collapse
-
#credentials ⇒ ::Object
Credentials to send with calls.
-
#endpoint ⇒ ::String
The hostname or hostname:port of the service endpoint.
-
#lib_name ⇒ ::String
The library name as recorded in instrumentation and logging.
-
#lib_version ⇒ ::String
The library version as recorded in instrumentation and 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.
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
2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 |
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb', line 2080 class Configuration extend ::Gapic::Config DEFAULT_ENDPOINT = "gkebackup.googleapis.com" config_attr :endpoint, DEFAULT_ENDPOINT, ::String config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::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 # @private # Overrides for http bindings for the RPCs of this service # are only used when this service is used as mixin, and only # by the host service. # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] config_attr :bindings_override, {}, ::Hash, nil # @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 BackupForGKE 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. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :create_backup_plan ## # RPC-specific configuration for `list_backup_plans` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plans ## # RPC-specific configuration for `get_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan ## # RPC-specific configuration for `update_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :update_backup_plan ## # RPC-specific configuration for `delete_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_plan ## # RPC-specific configuration for `create_backup` # @return [::Gapic::Config::Method] # attr_reader :create_backup ## # RPC-specific configuration for `list_backups` # @return [::Gapic::Config::Method] # attr_reader :list_backups ## # RPC-specific configuration for `get_backup` # @return [::Gapic::Config::Method] # attr_reader :get_backup ## # RPC-specific configuration for `update_backup` # @return [::Gapic::Config::Method] # attr_reader :update_backup ## # RPC-specific configuration for `delete_backup` # @return [::Gapic::Config::Method] # attr_reader :delete_backup ## # RPC-specific configuration for `list_volume_backups` # @return [::Gapic::Config::Method] # attr_reader :list_volume_backups ## # RPC-specific configuration for `get_volume_backup` # @return [::Gapic::Config::Method] # attr_reader :get_volume_backup ## # RPC-specific configuration for `create_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :create_restore_plan ## # RPC-specific configuration for `list_restore_plans` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plans ## # RPC-specific configuration for `get_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan ## # RPC-specific configuration for `update_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :update_restore_plan ## # RPC-specific configuration for `delete_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_plan ## # RPC-specific configuration for `create_restore` # @return [::Gapic::Config::Method] # attr_reader :create_restore ## # RPC-specific configuration for `list_restores` # @return [::Gapic::Config::Method] # attr_reader :list_restores ## # RPC-specific configuration for `get_restore` # @return [::Gapic::Config::Method] # attr_reader :get_restore ## # RPC-specific configuration for `update_restore` # @return [::Gapic::Config::Method] # attr_reader :update_restore ## # RPC-specific configuration for `delete_restore` # @return [::Gapic::Config::Method] # attr_reader :delete_restore ## # RPC-specific configuration for `list_volume_restores` # @return [::Gapic::Config::Method] # attr_reader :list_volume_restores ## # RPC-specific configuration for `get_volume_restore` # @return [::Gapic::Config::Method] # attr_reader :get_volume_restore # @private def initialize parent_rpcs = nil create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup @create_backup = ::Gapic::Config::Method.new create_backup_config list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups @list_backups = ::Gapic::Config::Method.new list_backups_config get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup @get_backup = ::Gapic::Config::Method.new get_backup_config update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup @update_backup = ::Gapic::Config::Method.new update_backup_config delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup @delete_backup = ::Gapic::Config::Method.new delete_backup_config list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore @create_restore = ::Gapic::Config::Method.new create_restore_config list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores @list_restores = ::Gapic::Config::Method.new list_restores_config get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore @get_restore = ::Gapic::Config::Method.new get_restore_config update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore @update_restore = ::Gapic::Config::Method.new update_restore_config delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore @delete_restore = ::Gapic::Config::Method.new delete_restore_config list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config yield self if block_given? end end end |
#endpoint ⇒ ::String
The hostname or hostname:port of the service endpoint.
Defaults to "gkebackup.googleapis.com"
.
2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 |
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb', line 2080 class Configuration extend ::Gapic::Config DEFAULT_ENDPOINT = "gkebackup.googleapis.com" config_attr :endpoint, DEFAULT_ENDPOINT, ::String config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::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 # @private # Overrides for http bindings for the RPCs of this service # are only used when this service is used as mixin, and only # by the host service. # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] config_attr :bindings_override, {}, ::Hash, nil # @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 BackupForGKE 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. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :create_backup_plan ## # RPC-specific configuration for `list_backup_plans` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plans ## # RPC-specific configuration for `get_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan ## # RPC-specific configuration for `update_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :update_backup_plan ## # RPC-specific configuration for `delete_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_plan ## # RPC-specific configuration for `create_backup` # @return [::Gapic::Config::Method] # attr_reader :create_backup ## # RPC-specific configuration for `list_backups` # @return [::Gapic::Config::Method] # attr_reader :list_backups ## # RPC-specific configuration for `get_backup` # @return [::Gapic::Config::Method] # attr_reader :get_backup ## # RPC-specific configuration for `update_backup` # @return [::Gapic::Config::Method] # attr_reader :update_backup ## # RPC-specific configuration for `delete_backup` # @return [::Gapic::Config::Method] # attr_reader :delete_backup ## # RPC-specific configuration for `list_volume_backups` # @return [::Gapic::Config::Method] # attr_reader :list_volume_backups ## # RPC-specific configuration for `get_volume_backup` # @return [::Gapic::Config::Method] # attr_reader :get_volume_backup ## # RPC-specific configuration for `create_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :create_restore_plan ## # RPC-specific configuration for `list_restore_plans` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plans ## # RPC-specific configuration for `get_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan ## # RPC-specific configuration for `update_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :update_restore_plan ## # RPC-specific configuration for `delete_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_plan ## # RPC-specific configuration for `create_restore` # @return [::Gapic::Config::Method] # attr_reader :create_restore ## # RPC-specific configuration for `list_restores` # @return [::Gapic::Config::Method] # attr_reader :list_restores ## # RPC-specific configuration for `get_restore` # @return [::Gapic::Config::Method] # attr_reader :get_restore ## # RPC-specific configuration for `update_restore` # @return [::Gapic::Config::Method] # attr_reader :update_restore ## # RPC-specific configuration for `delete_restore` # @return [::Gapic::Config::Method] # attr_reader :delete_restore ## # RPC-specific configuration for `list_volume_restores` # @return [::Gapic::Config::Method] # attr_reader :list_volume_restores ## # RPC-specific configuration for `get_volume_restore` # @return [::Gapic::Config::Method] # attr_reader :get_volume_restore # @private def initialize parent_rpcs = nil create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup @create_backup = ::Gapic::Config::Method.new create_backup_config list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups @list_backups = ::Gapic::Config::Method.new list_backups_config get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup @get_backup = ::Gapic::Config::Method.new get_backup_config update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup @update_backup = ::Gapic::Config::Method.new update_backup_config delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup @delete_backup = ::Gapic::Config::Method.new delete_backup_config list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore @create_restore = ::Gapic::Config::Method.new create_restore_config list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores @list_restores = ::Gapic::Config::Method.new list_restores_config get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore @get_restore = ::Gapic::Config::Method.new get_restore_config update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore @update_restore = ::Gapic::Config::Method.new update_restore_config delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore @delete_restore = ::Gapic::Config::Method.new delete_restore_config list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config yield self if block_given? end end end |
#lib_name ⇒ ::String
The library name as recorded in instrumentation and logging
2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 |
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb', line 2080 class Configuration extend ::Gapic::Config DEFAULT_ENDPOINT = "gkebackup.googleapis.com" config_attr :endpoint, DEFAULT_ENDPOINT, ::String config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::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 # @private # Overrides for http bindings for the RPCs of this service # are only used when this service is used as mixin, and only # by the host service. # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] config_attr :bindings_override, {}, ::Hash, nil # @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 BackupForGKE 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. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :create_backup_plan ## # RPC-specific configuration for `list_backup_plans` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plans ## # RPC-specific configuration for `get_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan ## # RPC-specific configuration for `update_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :update_backup_plan ## # RPC-specific configuration for `delete_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_plan ## # RPC-specific configuration for `create_backup` # @return [::Gapic::Config::Method] # attr_reader :create_backup ## # RPC-specific configuration for `list_backups` # @return [::Gapic::Config::Method] # attr_reader :list_backups ## # RPC-specific configuration for `get_backup` # @return [::Gapic::Config::Method] # attr_reader :get_backup ## # RPC-specific configuration for `update_backup` # @return [::Gapic::Config::Method] # attr_reader :update_backup ## # RPC-specific configuration for `delete_backup` # @return [::Gapic::Config::Method] # attr_reader :delete_backup ## # RPC-specific configuration for `list_volume_backups` # @return [::Gapic::Config::Method] # attr_reader :list_volume_backups ## # RPC-specific configuration for `get_volume_backup` # @return [::Gapic::Config::Method] # attr_reader :get_volume_backup ## # RPC-specific configuration for `create_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :create_restore_plan ## # RPC-specific configuration for `list_restore_plans` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plans ## # RPC-specific configuration for `get_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan ## # RPC-specific configuration for `update_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :update_restore_plan ## # RPC-specific configuration for `delete_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_plan ## # RPC-specific configuration for `create_restore` # @return [::Gapic::Config::Method] # attr_reader :create_restore ## # RPC-specific configuration for `list_restores` # @return [::Gapic::Config::Method] # attr_reader :list_restores ## # RPC-specific configuration for `get_restore` # @return [::Gapic::Config::Method] # attr_reader :get_restore ## # RPC-specific configuration for `update_restore` # @return [::Gapic::Config::Method] # attr_reader :update_restore ## # RPC-specific configuration for `delete_restore` # @return [::Gapic::Config::Method] # attr_reader :delete_restore ## # RPC-specific configuration for `list_volume_restores` # @return [::Gapic::Config::Method] # attr_reader :list_volume_restores ## # RPC-specific configuration for `get_volume_restore` # @return [::Gapic::Config::Method] # attr_reader :get_volume_restore # @private def initialize parent_rpcs = nil create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup @create_backup = ::Gapic::Config::Method.new create_backup_config list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups @list_backups = ::Gapic::Config::Method.new list_backups_config get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup @get_backup = ::Gapic::Config::Method.new get_backup_config update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup @update_backup = ::Gapic::Config::Method.new update_backup_config delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup @delete_backup = ::Gapic::Config::Method.new delete_backup_config list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore @create_restore = ::Gapic::Config::Method.new create_restore_config list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores @list_restores = ::Gapic::Config::Method.new list_restores_config get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore @get_restore = ::Gapic::Config::Method.new get_restore_config update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore @update_restore = ::Gapic::Config::Method.new update_restore_config delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore @delete_restore = ::Gapic::Config::Method.new delete_restore_config list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config yield self if block_given? end end end |
#lib_version ⇒ ::String
The library version as recorded in instrumentation and logging
2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 |
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb', line 2080 class Configuration extend ::Gapic::Config DEFAULT_ENDPOINT = "gkebackup.googleapis.com" config_attr :endpoint, DEFAULT_ENDPOINT, ::String config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::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 # @private # Overrides for http bindings for the RPCs of this service # are only used when this service is used as mixin, and only # by the host service. # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] config_attr :bindings_override, {}, ::Hash, nil # @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 BackupForGKE 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. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :create_backup_plan ## # RPC-specific configuration for `list_backup_plans` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plans ## # RPC-specific configuration for `get_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan ## # RPC-specific configuration for `update_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :update_backup_plan ## # RPC-specific configuration for `delete_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_plan ## # RPC-specific configuration for `create_backup` # @return [::Gapic::Config::Method] # attr_reader :create_backup ## # RPC-specific configuration for `list_backups` # @return [::Gapic::Config::Method] # attr_reader :list_backups ## # RPC-specific configuration for `get_backup` # @return [::Gapic::Config::Method] # attr_reader :get_backup ## # RPC-specific configuration for `update_backup` # @return [::Gapic::Config::Method] # attr_reader :update_backup ## # RPC-specific configuration for `delete_backup` # @return [::Gapic::Config::Method] # attr_reader :delete_backup ## # RPC-specific configuration for `list_volume_backups` # @return [::Gapic::Config::Method] # attr_reader :list_volume_backups ## # RPC-specific configuration for `get_volume_backup` # @return [::Gapic::Config::Method] # attr_reader :get_volume_backup ## # RPC-specific configuration for `create_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :create_restore_plan ## # RPC-specific configuration for `list_restore_plans` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plans ## # RPC-specific configuration for `get_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan ## # RPC-specific configuration for `update_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :update_restore_plan ## # RPC-specific configuration for `delete_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_plan ## # RPC-specific configuration for `create_restore` # @return [::Gapic::Config::Method] # attr_reader :create_restore ## # RPC-specific configuration for `list_restores` # @return [::Gapic::Config::Method] # attr_reader :list_restores ## # RPC-specific configuration for `get_restore` # @return [::Gapic::Config::Method] # attr_reader :get_restore ## # RPC-specific configuration for `update_restore` # @return [::Gapic::Config::Method] # attr_reader :update_restore ## # RPC-specific configuration for `delete_restore` # @return [::Gapic::Config::Method] # attr_reader :delete_restore ## # RPC-specific configuration for `list_volume_restores` # @return [::Gapic::Config::Method] # attr_reader :list_volume_restores ## # RPC-specific configuration for `get_volume_restore` # @return [::Gapic::Config::Method] # attr_reader :get_volume_restore # @private def initialize parent_rpcs = nil create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup @create_backup = ::Gapic::Config::Method.new create_backup_config list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups @list_backups = ::Gapic::Config::Method.new list_backups_config get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup @get_backup = ::Gapic::Config::Method.new get_backup_config update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup @update_backup = ::Gapic::Config::Method.new update_backup_config delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup @delete_backup = ::Gapic::Config::Method.new delete_backup_config list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore @create_restore = ::Gapic::Config::Method.new create_restore_config list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores @list_restores = ::Gapic::Config::Method.new list_restores_config get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore @get_restore = ::Gapic::Config::Method.new get_restore_config update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore @update_restore = ::Gapic::Config::Method.new update_restore_config delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore @delete_restore = ::Gapic::Config::Method.new delete_restore_config list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config yield self if block_given? end end end |
#metadata ⇒ ::Hash{::Symbol=>::String}
Additional headers to be sent with the call.
2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 |
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb', line 2080 class Configuration extend ::Gapic::Config DEFAULT_ENDPOINT = "gkebackup.googleapis.com" config_attr :endpoint, DEFAULT_ENDPOINT, ::String config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::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 # @private # Overrides for http bindings for the RPCs of this service # are only used when this service is used as mixin, and only # by the host service. # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] config_attr :bindings_override, {}, ::Hash, nil # @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 BackupForGKE 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. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :create_backup_plan ## # RPC-specific configuration for `list_backup_plans` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plans ## # RPC-specific configuration for `get_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan ## # RPC-specific configuration for `update_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :update_backup_plan ## # RPC-specific configuration for `delete_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_plan ## # RPC-specific configuration for `create_backup` # @return [::Gapic::Config::Method] # attr_reader :create_backup ## # RPC-specific configuration for `list_backups` # @return [::Gapic::Config::Method] # attr_reader :list_backups ## # RPC-specific configuration for `get_backup` # @return [::Gapic::Config::Method] # attr_reader :get_backup ## # RPC-specific configuration for `update_backup` # @return [::Gapic::Config::Method] # attr_reader :update_backup ## # RPC-specific configuration for `delete_backup` # @return [::Gapic::Config::Method] # attr_reader :delete_backup ## # RPC-specific configuration for `list_volume_backups` # @return [::Gapic::Config::Method] # attr_reader :list_volume_backups ## # RPC-specific configuration for `get_volume_backup` # @return [::Gapic::Config::Method] # attr_reader :get_volume_backup ## # RPC-specific configuration for `create_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :create_restore_plan ## # RPC-specific configuration for `list_restore_plans` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plans ## # RPC-specific configuration for `get_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan ## # RPC-specific configuration for `update_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :update_restore_plan ## # RPC-specific configuration for `delete_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_plan ## # RPC-specific configuration for `create_restore` # @return [::Gapic::Config::Method] # attr_reader :create_restore ## # RPC-specific configuration for `list_restores` # @return [::Gapic::Config::Method] # attr_reader :list_restores ## # RPC-specific configuration for `get_restore` # @return [::Gapic::Config::Method] # attr_reader :get_restore ## # RPC-specific configuration for `update_restore` # @return [::Gapic::Config::Method] # attr_reader :update_restore ## # RPC-specific configuration for `delete_restore` # @return [::Gapic::Config::Method] # attr_reader :delete_restore ## # RPC-specific configuration for `list_volume_restores` # @return [::Gapic::Config::Method] # attr_reader :list_volume_restores ## # RPC-specific configuration for `get_volume_restore` # @return [::Gapic::Config::Method] # attr_reader :get_volume_restore # @private def initialize parent_rpcs = nil create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup @create_backup = ::Gapic::Config::Method.new create_backup_config list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups @list_backups = ::Gapic::Config::Method.new list_backups_config get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup @get_backup = ::Gapic::Config::Method.new get_backup_config update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup @update_backup = ::Gapic::Config::Method.new update_backup_config delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup @delete_backup = ::Gapic::Config::Method.new delete_backup_config list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore @create_restore = ::Gapic::Config::Method.new create_restore_config list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores @list_restores = ::Gapic::Config::Method.new list_restores_config get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore @get_restore = ::Gapic::Config::Method.new get_restore_config update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore @update_restore = ::Gapic::Config::Method.new update_restore_config delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore @delete_restore = ::Gapic::Config::Method.new delete_restore_config list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config yield self if block_given? end end end |
#quota_project ⇒ ::String
A separate project against which to charge quota.
2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 |
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb', line 2080 class Configuration extend ::Gapic::Config DEFAULT_ENDPOINT = "gkebackup.googleapis.com" config_attr :endpoint, DEFAULT_ENDPOINT, ::String config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::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 # @private # Overrides for http bindings for the RPCs of this service # are only used when this service is used as mixin, and only # by the host service. # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] config_attr :bindings_override, {}, ::Hash, nil # @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 BackupForGKE 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. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :create_backup_plan ## # RPC-specific configuration for `list_backup_plans` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plans ## # RPC-specific configuration for `get_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan ## # RPC-specific configuration for `update_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :update_backup_plan ## # RPC-specific configuration for `delete_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_plan ## # RPC-specific configuration for `create_backup` # @return [::Gapic::Config::Method] # attr_reader :create_backup ## # RPC-specific configuration for `list_backups` # @return [::Gapic::Config::Method] # attr_reader :list_backups ## # RPC-specific configuration for `get_backup` # @return [::Gapic::Config::Method] # attr_reader :get_backup ## # RPC-specific configuration for `update_backup` # @return [::Gapic::Config::Method] # attr_reader :update_backup ## # RPC-specific configuration for `delete_backup` # @return [::Gapic::Config::Method] # attr_reader :delete_backup ## # RPC-specific configuration for `list_volume_backups` # @return [::Gapic::Config::Method] # attr_reader :list_volume_backups ## # RPC-specific configuration for `get_volume_backup` # @return [::Gapic::Config::Method] # attr_reader :get_volume_backup ## # RPC-specific configuration for `create_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :create_restore_plan ## # RPC-specific configuration for `list_restore_plans` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plans ## # RPC-specific configuration for `get_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan ## # RPC-specific configuration for `update_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :update_restore_plan ## # RPC-specific configuration for `delete_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_plan ## # RPC-specific configuration for `create_restore` # @return [::Gapic::Config::Method] # attr_reader :create_restore ## # RPC-specific configuration for `list_restores` # @return [::Gapic::Config::Method] # attr_reader :list_restores ## # RPC-specific configuration for `get_restore` # @return [::Gapic::Config::Method] # attr_reader :get_restore ## # RPC-specific configuration for `update_restore` # @return [::Gapic::Config::Method] # attr_reader :update_restore ## # RPC-specific configuration for `delete_restore` # @return [::Gapic::Config::Method] # attr_reader :delete_restore ## # RPC-specific configuration for `list_volume_restores` # @return [::Gapic::Config::Method] # attr_reader :list_volume_restores ## # RPC-specific configuration for `get_volume_restore` # @return [::Gapic::Config::Method] # attr_reader :get_volume_restore # @private def initialize parent_rpcs = nil create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup @create_backup = ::Gapic::Config::Method.new create_backup_config list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups @list_backups = ::Gapic::Config::Method.new list_backups_config get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup @get_backup = ::Gapic::Config::Method.new get_backup_config update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup @update_backup = ::Gapic::Config::Method.new update_backup_config delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup @delete_backup = ::Gapic::Config::Method.new delete_backup_config list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore @create_restore = ::Gapic::Config::Method.new create_restore_config list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores @list_restores = ::Gapic::Config::Method.new list_restores_config get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore @get_restore = ::Gapic::Config::Method.new get_restore_config update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore @update_restore = ::Gapic::Config::Method.new update_restore_config delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore @delete_restore = ::Gapic::Config::Method.new delete_restore_config list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_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. -
:retry_codes
(type:Array<String>
) - The error codes that should trigger a retry.
2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 |
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb', line 2080 class Configuration extend ::Gapic::Config DEFAULT_ENDPOINT = "gkebackup.googleapis.com" config_attr :endpoint, DEFAULT_ENDPOINT, ::String config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::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 # @private # Overrides for http bindings for the RPCs of this service # are only used when this service is used as mixin, and only # by the host service. # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] config_attr :bindings_override, {}, ::Hash, nil # @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 BackupForGKE 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. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :create_backup_plan ## # RPC-specific configuration for `list_backup_plans` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plans ## # RPC-specific configuration for `get_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan ## # RPC-specific configuration for `update_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :update_backup_plan ## # RPC-specific configuration for `delete_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_plan ## # RPC-specific configuration for `create_backup` # @return [::Gapic::Config::Method] # attr_reader :create_backup ## # RPC-specific configuration for `list_backups` # @return [::Gapic::Config::Method] # attr_reader :list_backups ## # RPC-specific configuration for `get_backup` # @return [::Gapic::Config::Method] # attr_reader :get_backup ## # RPC-specific configuration for `update_backup` # @return [::Gapic::Config::Method] # attr_reader :update_backup ## # RPC-specific configuration for `delete_backup` # @return [::Gapic::Config::Method] # attr_reader :delete_backup ## # RPC-specific configuration for `list_volume_backups` # @return [::Gapic::Config::Method] # attr_reader :list_volume_backups ## # RPC-specific configuration for `get_volume_backup` # @return [::Gapic::Config::Method] # attr_reader :get_volume_backup ## # RPC-specific configuration for `create_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :create_restore_plan ## # RPC-specific configuration for `list_restore_plans` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plans ## # RPC-specific configuration for `get_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan ## # RPC-specific configuration for `update_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :update_restore_plan ## # RPC-specific configuration for `delete_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_plan ## # RPC-specific configuration for `create_restore` # @return [::Gapic::Config::Method] # attr_reader :create_restore ## # RPC-specific configuration for `list_restores` # @return [::Gapic::Config::Method] # attr_reader :list_restores ## # RPC-specific configuration for `get_restore` # @return [::Gapic::Config::Method] # attr_reader :get_restore ## # RPC-specific configuration for `update_restore` # @return [::Gapic::Config::Method] # attr_reader :update_restore ## # RPC-specific configuration for `delete_restore` # @return [::Gapic::Config::Method] # attr_reader :delete_restore ## # RPC-specific configuration for `list_volume_restores` # @return [::Gapic::Config::Method] # attr_reader :list_volume_restores ## # RPC-specific configuration for `get_volume_restore` # @return [::Gapic::Config::Method] # attr_reader :get_volume_restore # @private def initialize parent_rpcs = nil create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup @create_backup = ::Gapic::Config::Method.new create_backup_config list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups @list_backups = ::Gapic::Config::Method.new list_backups_config get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup @get_backup = ::Gapic::Config::Method.new get_backup_config update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup @update_backup = ::Gapic::Config::Method.new update_backup_config delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup @delete_backup = ::Gapic::Config::Method.new delete_backup_config list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore @create_restore = ::Gapic::Config::Method.new create_restore_config list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores @list_restores = ::Gapic::Config::Method.new list_restores_config get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore @get_restore = ::Gapic::Config::Method.new get_restore_config update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore @update_restore = ::Gapic::Config::Method.new update_restore_config delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore @delete_restore = ::Gapic::Config::Method.new delete_restore_config list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config yield self if block_given? end end end |
#scope ⇒ ::Array<::String>
The OAuth scopes
2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 |
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb', line 2080 class Configuration extend ::Gapic::Config DEFAULT_ENDPOINT = "gkebackup.googleapis.com" config_attr :endpoint, DEFAULT_ENDPOINT, ::String config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::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 # @private # Overrides for http bindings for the RPCs of this service # are only used when this service is used as mixin, and only # by the host service. # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] config_attr :bindings_override, {}, ::Hash, nil # @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 BackupForGKE 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. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :create_backup_plan ## # RPC-specific configuration for `list_backup_plans` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plans ## # RPC-specific configuration for `get_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan ## # RPC-specific configuration for `update_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :update_backup_plan ## # RPC-specific configuration for `delete_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_plan ## # RPC-specific configuration for `create_backup` # @return [::Gapic::Config::Method] # attr_reader :create_backup ## # RPC-specific configuration for `list_backups` # @return [::Gapic::Config::Method] # attr_reader :list_backups ## # RPC-specific configuration for `get_backup` # @return [::Gapic::Config::Method] # attr_reader :get_backup ## # RPC-specific configuration for `update_backup` # @return [::Gapic::Config::Method] # attr_reader :update_backup ## # RPC-specific configuration for `delete_backup` # @return [::Gapic::Config::Method] # attr_reader :delete_backup ## # RPC-specific configuration for `list_volume_backups` # @return [::Gapic::Config::Method] # attr_reader :list_volume_backups ## # RPC-specific configuration for `get_volume_backup` # @return [::Gapic::Config::Method] # attr_reader :get_volume_backup ## # RPC-specific configuration for `create_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :create_restore_plan ## # RPC-specific configuration for `list_restore_plans` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plans ## # RPC-specific configuration for `get_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan ## # RPC-specific configuration for `update_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :update_restore_plan ## # RPC-specific configuration for `delete_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_plan ## # RPC-specific configuration for `create_restore` # @return [::Gapic::Config::Method] # attr_reader :create_restore ## # RPC-specific configuration for `list_restores` # @return [::Gapic::Config::Method] # attr_reader :list_restores ## # RPC-specific configuration for `get_restore` # @return [::Gapic::Config::Method] # attr_reader :get_restore ## # RPC-specific configuration for `update_restore` # @return [::Gapic::Config::Method] # attr_reader :update_restore ## # RPC-specific configuration for `delete_restore` # @return [::Gapic::Config::Method] # attr_reader :delete_restore ## # RPC-specific configuration for `list_volume_restores` # @return [::Gapic::Config::Method] # attr_reader :list_volume_restores ## # RPC-specific configuration for `get_volume_restore` # @return [::Gapic::Config::Method] # attr_reader :get_volume_restore # @private def initialize parent_rpcs = nil create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup @create_backup = ::Gapic::Config::Method.new create_backup_config list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups @list_backups = ::Gapic::Config::Method.new list_backups_config get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup @get_backup = ::Gapic::Config::Method.new get_backup_config update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup @update_backup = ::Gapic::Config::Method.new update_backup_config delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup @delete_backup = ::Gapic::Config::Method.new delete_backup_config list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore @create_restore = ::Gapic::Config::Method.new create_restore_config list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores @list_restores = ::Gapic::Config::Method.new list_restores_config get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore @get_restore = ::Gapic::Config::Method.new get_restore_config update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore @update_restore = ::Gapic::Config::Method.new update_restore_config delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore @delete_restore = ::Gapic::Config::Method.new delete_restore_config list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config yield self if block_given? end end end |
#timeout ⇒ ::Numeric
The call timeout in seconds.
2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 |
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb', line 2080 class Configuration extend ::Gapic::Config DEFAULT_ENDPOINT = "gkebackup.googleapis.com" config_attr :endpoint, DEFAULT_ENDPOINT, ::String config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::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 # @private # Overrides for http bindings for the RPCs of this service # are only used when this service is used as mixin, and only # by the host service. # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] config_attr :bindings_override, {}, ::Hash, nil # @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 BackupForGKE 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. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `create_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :create_backup_plan ## # RPC-specific configuration for `list_backup_plans` # @return [::Gapic::Config::Method] # attr_reader :list_backup_plans ## # RPC-specific configuration for `get_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :get_backup_plan ## # RPC-specific configuration for `update_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :update_backup_plan ## # RPC-specific configuration for `delete_backup_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_backup_plan ## # RPC-specific configuration for `create_backup` # @return [::Gapic::Config::Method] # attr_reader :create_backup ## # RPC-specific configuration for `list_backups` # @return [::Gapic::Config::Method] # attr_reader :list_backups ## # RPC-specific configuration for `get_backup` # @return [::Gapic::Config::Method] # attr_reader :get_backup ## # RPC-specific configuration for `update_backup` # @return [::Gapic::Config::Method] # attr_reader :update_backup ## # RPC-specific configuration for `delete_backup` # @return [::Gapic::Config::Method] # attr_reader :delete_backup ## # RPC-specific configuration for `list_volume_backups` # @return [::Gapic::Config::Method] # attr_reader :list_volume_backups ## # RPC-specific configuration for `get_volume_backup` # @return [::Gapic::Config::Method] # attr_reader :get_volume_backup ## # RPC-specific configuration for `create_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :create_restore_plan ## # RPC-specific configuration for `list_restore_plans` # @return [::Gapic::Config::Method] # attr_reader :list_restore_plans ## # RPC-specific configuration for `get_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :get_restore_plan ## # RPC-specific configuration for `update_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :update_restore_plan ## # RPC-specific configuration for `delete_restore_plan` # @return [::Gapic::Config::Method] # attr_reader :delete_restore_plan ## # RPC-specific configuration for `create_restore` # @return [::Gapic::Config::Method] # attr_reader :create_restore ## # RPC-specific configuration for `list_restores` # @return [::Gapic::Config::Method] # attr_reader :list_restores ## # RPC-specific configuration for `get_restore` # @return [::Gapic::Config::Method] # attr_reader :get_restore ## # RPC-specific configuration for `update_restore` # @return [::Gapic::Config::Method] # attr_reader :update_restore ## # RPC-specific configuration for `delete_restore` # @return [::Gapic::Config::Method] # attr_reader :delete_restore ## # RPC-specific configuration for `list_volume_restores` # @return [::Gapic::Config::Method] # attr_reader :list_volume_restores ## # RPC-specific configuration for `get_volume_restore` # @return [::Gapic::Config::Method] # attr_reader :get_volume_restore # @private def initialize parent_rpcs = nil create_backup_plan_config = parent_rpcs.create_backup_plan if parent_rpcs.respond_to? :create_backup_plan @create_backup_plan = ::Gapic::Config::Method.new create_backup_plan_config list_backup_plans_config = parent_rpcs.list_backup_plans if parent_rpcs.respond_to? :list_backup_plans @list_backup_plans = ::Gapic::Config::Method.new list_backup_plans_config get_backup_plan_config = parent_rpcs.get_backup_plan if parent_rpcs.respond_to? :get_backup_plan @get_backup_plan = ::Gapic::Config::Method.new get_backup_plan_config update_backup_plan_config = parent_rpcs.update_backup_plan if parent_rpcs.respond_to? :update_backup_plan @update_backup_plan = ::Gapic::Config::Method.new update_backup_plan_config delete_backup_plan_config = parent_rpcs.delete_backup_plan if parent_rpcs.respond_to? :delete_backup_plan @delete_backup_plan = ::Gapic::Config::Method.new delete_backup_plan_config create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup @create_backup = ::Gapic::Config::Method.new create_backup_config list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups @list_backups = ::Gapic::Config::Method.new list_backups_config get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup @get_backup = ::Gapic::Config::Method.new get_backup_config update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup @update_backup = ::Gapic::Config::Method.new update_backup_config delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup @delete_backup = ::Gapic::Config::Method.new delete_backup_config list_volume_backups_config = parent_rpcs.list_volume_backups if parent_rpcs.respond_to? :list_volume_backups @list_volume_backups = ::Gapic::Config::Method.new list_volume_backups_config get_volume_backup_config = parent_rpcs.get_volume_backup if parent_rpcs.respond_to? :get_volume_backup @get_volume_backup = ::Gapic::Config::Method.new get_volume_backup_config create_restore_plan_config = parent_rpcs.create_restore_plan if parent_rpcs.respond_to? :create_restore_plan @create_restore_plan = ::Gapic::Config::Method.new create_restore_plan_config list_restore_plans_config = parent_rpcs.list_restore_plans if parent_rpcs.respond_to? :list_restore_plans @list_restore_plans = ::Gapic::Config::Method.new list_restore_plans_config get_restore_plan_config = parent_rpcs.get_restore_plan if parent_rpcs.respond_to? :get_restore_plan @get_restore_plan = ::Gapic::Config::Method.new get_restore_plan_config update_restore_plan_config = parent_rpcs.update_restore_plan if parent_rpcs.respond_to? :update_restore_plan @update_restore_plan = ::Gapic::Config::Method.new update_restore_plan_config delete_restore_plan_config = parent_rpcs.delete_restore_plan if parent_rpcs.respond_to? :delete_restore_plan @delete_restore_plan = ::Gapic::Config::Method.new delete_restore_plan_config create_restore_config = parent_rpcs.create_restore if parent_rpcs.respond_to? :create_restore @create_restore = ::Gapic::Config::Method.new create_restore_config list_restores_config = parent_rpcs.list_restores if parent_rpcs.respond_to? :list_restores @list_restores = ::Gapic::Config::Method.new list_restores_config get_restore_config = parent_rpcs.get_restore if parent_rpcs.respond_to? :get_restore @get_restore = ::Gapic::Config::Method.new get_restore_config update_restore_config = parent_rpcs.update_restore if parent_rpcs.respond_to? :update_restore @update_restore = ::Gapic::Config::Method.new update_restore_config delete_restore_config = parent_rpcs.delete_restore if parent_rpcs.respond_to? :delete_restore @delete_restore = ::Gapic::Config::Method.new delete_restore_config list_volume_restores_config = parent_rpcs.list_volume_restores if parent_rpcs.respond_to? :list_volume_restores @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config yield self if block_given? end end end |
Instance Method Details
#rpcs ⇒ Rpcs
Configurations for individual RPCs
2116 2117 2118 2119 2120 2121 2122 |
# File 'lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb', line 2116 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 |