Class: Google::Cloud::Bigquery::Reservation::V1::ReservationService::Client::Configuration
- Inherits:
-
Object
- Object
- Google::Cloud::Bigquery::Reservation::V1::ReservationService::Client::Configuration
- Extended by:
- Gapic::Config
- Defined in:
- lib/google/cloud/bigquery/reservation/v1/reservation_service/client.rb
Overview
Configuration class for the ReservationService API.
This class represents the configuration for ReservationService, providing control over timeouts, retry behavior, logging, transport parameters, and other low-level controls. Certain parameters can also be applied individually to specific RPCs. See Rpcs for a list of RPCs that can be configured independently.
Configuration can be applied globally to all clients, or to a single client on construction.
Defined Under Namespace
Classes: Rpcs
Instance Attribute Summary collapse
-
#channel_args ⇒ ::Hash
Extra parameters passed to the gRPC channel.
-
#credentials ⇒ ::Object
Credentials to send with calls.
-
#endpoint ⇒ ::String?
A custom service endpoint, as a hostname or hostname:port.
-
#interceptors ⇒ ::Array<::GRPC::ClientInterceptor>
An array of interceptors that are run before calls are executed.
-
#lib_name ⇒ ::String
The library name as recorded in instrumentation and logging.
-
#lib_version ⇒ ::String
The library version as recorded in instrumentation and logging.
-
#logger ⇒ ::Logger, ...
A custom logger to use for request/response debug logging, or the value
:default(the default) to construct a default logger, ornilto explicitly disable logging. -
#metadata ⇒ ::Hash{::Symbol=>::String}
Additional gRPC headers to be sent with the call.
-
#quota_project ⇒ ::String
A separate project against which to charge quota.
-
#retry_policy ⇒ ::Hash
The retry policy.
-
#scope ⇒ ::Array<::String>
The OAuth scopes.
-
#timeout ⇒ ::Numeric
The call timeout in seconds.
-
#universe_domain ⇒ ::String?
The universe domain within which to make requests.
Instance Method Summary collapse
-
#channel_pool ⇒ ::Gapic::ServiceStub::ChannelPool::Configuration
Configuration for the channel pool.
-
#rpcs ⇒ Rpcs
Configurations for individual RPCs.
Instance Attribute Details
#channel_args ⇒ ::Hash
Extra parameters passed to the gRPC channel. Note: this is ignored if a
GRPC::Core::Channel object is provided as the credential.
3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 |
# File 'lib/google/cloud/bigquery/reservation/v1/reservation_service/client.rb', line 3227 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "bigqueryreservation.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel 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(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the ReservationService 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 gRPC 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_reservation` # @return [::Gapic::Config::Method] # attr_reader :create_reservation ## # RPC-specific configuration for `list_reservations` # @return [::Gapic::Config::Method] # attr_reader :list_reservations ## # RPC-specific configuration for `get_reservation` # @return [::Gapic::Config::Method] # attr_reader :get_reservation ## # RPC-specific configuration for `delete_reservation` # @return [::Gapic::Config::Method] # attr_reader :delete_reservation ## # RPC-specific configuration for `update_reservation` # @return [::Gapic::Config::Method] # attr_reader :update_reservation ## # RPC-specific configuration for `failover_reservation` # @return [::Gapic::Config::Method] # attr_reader :failover_reservation ## # RPC-specific configuration for `create_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :create_capacity_commitment ## # RPC-specific configuration for `list_capacity_commitments` # @return [::Gapic::Config::Method] # attr_reader :list_capacity_commitments ## # RPC-specific configuration for `get_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :get_capacity_commitment ## # RPC-specific configuration for `delete_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :delete_capacity_commitment ## # RPC-specific configuration for `update_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :update_capacity_commitment ## # RPC-specific configuration for `split_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :split_capacity_commitment ## # RPC-specific configuration for `merge_capacity_commitments` # @return [::Gapic::Config::Method] # attr_reader :merge_capacity_commitments ## # RPC-specific configuration for `create_assignment` # @return [::Gapic::Config::Method] # attr_reader :create_assignment ## # RPC-specific configuration for `list_assignments` # @return [::Gapic::Config::Method] # attr_reader :list_assignments ## # RPC-specific configuration for `delete_assignment` # @return [::Gapic::Config::Method] # attr_reader :delete_assignment ## # RPC-specific configuration for `search_assignments` # @return [::Gapic::Config::Method] # attr_reader :search_assignments ## # RPC-specific configuration for `search_all_assignments` # @return [::Gapic::Config::Method] # attr_reader :search_all_assignments ## # RPC-specific configuration for `move_assignment` # @return [::Gapic::Config::Method] # attr_reader :move_assignment ## # RPC-specific configuration for `update_assignment` # @return [::Gapic::Config::Method] # attr_reader :update_assignment ## # RPC-specific configuration for `get_bi_reservation` # @return [::Gapic::Config::Method] # attr_reader :get_bi_reservation ## # RPC-specific configuration for `update_bi_reservation` # @return [::Gapic::Config::Method] # attr_reader :update_bi_reservation ## # RPC-specific configuration for `get_iam_policy` # @return [::Gapic::Config::Method] # attr_reader :get_iam_policy ## # RPC-specific configuration for `set_iam_policy` # @return [::Gapic::Config::Method] # attr_reader :set_iam_policy ## # RPC-specific configuration for `test_iam_permissions` # @return [::Gapic::Config::Method] # attr_reader :test_iam_permissions ## # RPC-specific configuration for `create_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :create_reservation_group ## # RPC-specific configuration for `get_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :get_reservation_group ## # RPC-specific configuration for `delete_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :delete_reservation_group ## # RPC-specific configuration for `list_reservation_groups` # @return [::Gapic::Config::Method] # attr_reader :list_reservation_groups # @private def initialize parent_rpcs = nil create_reservation_config = parent_rpcs.create_reservation if parent_rpcs.respond_to? :create_reservation @create_reservation = ::Gapic::Config::Method.new create_reservation_config list_reservations_config = parent_rpcs.list_reservations if parent_rpcs.respond_to? :list_reservations @list_reservations = ::Gapic::Config::Method.new list_reservations_config get_reservation_config = parent_rpcs.get_reservation if parent_rpcs.respond_to? :get_reservation @get_reservation = ::Gapic::Config::Method.new get_reservation_config delete_reservation_config = parent_rpcs.delete_reservation if parent_rpcs.respond_to? :delete_reservation @delete_reservation = ::Gapic::Config::Method.new delete_reservation_config update_reservation_config = parent_rpcs.update_reservation if parent_rpcs.respond_to? :update_reservation @update_reservation = ::Gapic::Config::Method.new update_reservation_config failover_reservation_config = parent_rpcs.failover_reservation if parent_rpcs.respond_to? :failover_reservation @failover_reservation = ::Gapic::Config::Method.new failover_reservation_config create_capacity_commitment_config = parent_rpcs.create_capacity_commitment if parent_rpcs.respond_to? :create_capacity_commitment @create_capacity_commitment = ::Gapic::Config::Method.new create_capacity_commitment_config list_capacity_commitments_config = parent_rpcs.list_capacity_commitments if parent_rpcs.respond_to? :list_capacity_commitments @list_capacity_commitments = ::Gapic::Config::Method.new list_capacity_commitments_config get_capacity_commitment_config = parent_rpcs.get_capacity_commitment if parent_rpcs.respond_to? :get_capacity_commitment @get_capacity_commitment = ::Gapic::Config::Method.new get_capacity_commitment_config delete_capacity_commitment_config = parent_rpcs.delete_capacity_commitment if parent_rpcs.respond_to? :delete_capacity_commitment @delete_capacity_commitment = ::Gapic::Config::Method.new delete_capacity_commitment_config update_capacity_commitment_config = parent_rpcs.update_capacity_commitment if parent_rpcs.respond_to? :update_capacity_commitment @update_capacity_commitment = ::Gapic::Config::Method.new update_capacity_commitment_config split_capacity_commitment_config = parent_rpcs.split_capacity_commitment if parent_rpcs.respond_to? :split_capacity_commitment @split_capacity_commitment = ::Gapic::Config::Method.new split_capacity_commitment_config merge_capacity_commitments_config = parent_rpcs.merge_capacity_commitments if parent_rpcs.respond_to? :merge_capacity_commitments @merge_capacity_commitments = ::Gapic::Config::Method.new merge_capacity_commitments_config create_assignment_config = parent_rpcs.create_assignment if parent_rpcs.respond_to? :create_assignment @create_assignment = ::Gapic::Config::Method.new create_assignment_config list_assignments_config = parent_rpcs.list_assignments if parent_rpcs.respond_to? :list_assignments @list_assignments = ::Gapic::Config::Method.new list_assignments_config delete_assignment_config = parent_rpcs.delete_assignment if parent_rpcs.respond_to? :delete_assignment @delete_assignment = ::Gapic::Config::Method.new delete_assignment_config search_assignments_config = parent_rpcs.search_assignments if parent_rpcs.respond_to? :search_assignments @search_assignments = ::Gapic::Config::Method.new search_assignments_config search_all_assignments_config = parent_rpcs.search_all_assignments if parent_rpcs.respond_to? :search_all_assignments @search_all_assignments = ::Gapic::Config::Method.new search_all_assignments_config move_assignment_config = parent_rpcs.move_assignment if parent_rpcs.respond_to? :move_assignment @move_assignment = ::Gapic::Config::Method.new move_assignment_config update_assignment_config = parent_rpcs.update_assignment if parent_rpcs.respond_to? :update_assignment @update_assignment = ::Gapic::Config::Method.new update_assignment_config get_bi_reservation_config = parent_rpcs.get_bi_reservation if parent_rpcs.respond_to? :get_bi_reservation @get_bi_reservation = ::Gapic::Config::Method.new get_bi_reservation_config update_bi_reservation_config = parent_rpcs.update_bi_reservation if parent_rpcs.respond_to? :update_bi_reservation @update_bi_reservation = ::Gapic::Config::Method.new update_bi_reservation_config get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config = parent_rpcs. if parent_rpcs.respond_to? :test_iam_permissions @test_iam_permissions = ::Gapic::Config::Method.new create_reservation_group_config = parent_rpcs.create_reservation_group if parent_rpcs.respond_to? :create_reservation_group @create_reservation_group = ::Gapic::Config::Method.new create_reservation_group_config get_reservation_group_config = parent_rpcs.get_reservation_group if parent_rpcs.respond_to? :get_reservation_group @get_reservation_group = ::Gapic::Config::Method.new get_reservation_group_config delete_reservation_group_config = parent_rpcs.delete_reservation_group if parent_rpcs.respond_to? :delete_reservation_group @delete_reservation_group = ::Gapic::Config::Method.new delete_reservation_group_config list_reservation_groups_config = parent_rpcs.list_reservation_groups if parent_rpcs.respond_to? :list_reservation_groups @list_reservation_groups = ::Gapic::Config::Method.new list_reservation_groups_config yield self if block_given? end end end |
#credentials ⇒ ::Object
Warning: Passing a String to a keyfile path or a Hash of credentials
is deprecated. Providing an unvalidated credential configuration to
Google APIs can compromise the security of your systems and data.
Warning: If you accept a credential configuration (JSON file or Hash) from an
Credentials to send with calls. You may provide any of the following types:
- (
Google::Auth::Credentials) A googleauth credentials object (see the googleauth docs) - (
Signet::OAuth2::Client) A signet oauth2 client object (see the signet docs) - (
GRPC::Core::Channel) a gRPC channel with included credentials - (
GRPC::Core::ChannelCredentials) a gRPC credentails object - (
nil) indicating no credentials
external source for authentication to Google Cloud, you must validate it before providing it to a Google API client library. Providing an unvalidated credential configuration to Google APIs can compromise the security of your systems and data. For more information, refer to Validate credential configurations from external sources.
3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 |
# File 'lib/google/cloud/bigquery/reservation/v1/reservation_service/client.rb', line 3227 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "bigqueryreservation.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel 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(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the ReservationService 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 gRPC 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_reservation` # @return [::Gapic::Config::Method] # attr_reader :create_reservation ## # RPC-specific configuration for `list_reservations` # @return [::Gapic::Config::Method] # attr_reader :list_reservations ## # RPC-specific configuration for `get_reservation` # @return [::Gapic::Config::Method] # attr_reader :get_reservation ## # RPC-specific configuration for `delete_reservation` # @return [::Gapic::Config::Method] # attr_reader :delete_reservation ## # RPC-specific configuration for `update_reservation` # @return [::Gapic::Config::Method] # attr_reader :update_reservation ## # RPC-specific configuration for `failover_reservation` # @return [::Gapic::Config::Method] # attr_reader :failover_reservation ## # RPC-specific configuration for `create_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :create_capacity_commitment ## # RPC-specific configuration for `list_capacity_commitments` # @return [::Gapic::Config::Method] # attr_reader :list_capacity_commitments ## # RPC-specific configuration for `get_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :get_capacity_commitment ## # RPC-specific configuration for `delete_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :delete_capacity_commitment ## # RPC-specific configuration for `update_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :update_capacity_commitment ## # RPC-specific configuration for `split_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :split_capacity_commitment ## # RPC-specific configuration for `merge_capacity_commitments` # @return [::Gapic::Config::Method] # attr_reader :merge_capacity_commitments ## # RPC-specific configuration for `create_assignment` # @return [::Gapic::Config::Method] # attr_reader :create_assignment ## # RPC-specific configuration for `list_assignments` # @return [::Gapic::Config::Method] # attr_reader :list_assignments ## # RPC-specific configuration for `delete_assignment` # @return [::Gapic::Config::Method] # attr_reader :delete_assignment ## # RPC-specific configuration for `search_assignments` # @return [::Gapic::Config::Method] # attr_reader :search_assignments ## # RPC-specific configuration for `search_all_assignments` # @return [::Gapic::Config::Method] # attr_reader :search_all_assignments ## # RPC-specific configuration for `move_assignment` # @return [::Gapic::Config::Method] # attr_reader :move_assignment ## # RPC-specific configuration for `update_assignment` # @return [::Gapic::Config::Method] # attr_reader :update_assignment ## # RPC-specific configuration for `get_bi_reservation` # @return [::Gapic::Config::Method] # attr_reader :get_bi_reservation ## # RPC-specific configuration for `update_bi_reservation` # @return [::Gapic::Config::Method] # attr_reader :update_bi_reservation ## # RPC-specific configuration for `get_iam_policy` # @return [::Gapic::Config::Method] # attr_reader :get_iam_policy ## # RPC-specific configuration for `set_iam_policy` # @return [::Gapic::Config::Method] # attr_reader :set_iam_policy ## # RPC-specific configuration for `test_iam_permissions` # @return [::Gapic::Config::Method] # attr_reader :test_iam_permissions ## # RPC-specific configuration for `create_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :create_reservation_group ## # RPC-specific configuration for `get_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :get_reservation_group ## # RPC-specific configuration for `delete_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :delete_reservation_group ## # RPC-specific configuration for `list_reservation_groups` # @return [::Gapic::Config::Method] # attr_reader :list_reservation_groups # @private def initialize parent_rpcs = nil create_reservation_config = parent_rpcs.create_reservation if parent_rpcs.respond_to? :create_reservation @create_reservation = ::Gapic::Config::Method.new create_reservation_config list_reservations_config = parent_rpcs.list_reservations if parent_rpcs.respond_to? :list_reservations @list_reservations = ::Gapic::Config::Method.new list_reservations_config get_reservation_config = parent_rpcs.get_reservation if parent_rpcs.respond_to? :get_reservation @get_reservation = ::Gapic::Config::Method.new get_reservation_config delete_reservation_config = parent_rpcs.delete_reservation if parent_rpcs.respond_to? :delete_reservation @delete_reservation = ::Gapic::Config::Method.new delete_reservation_config update_reservation_config = parent_rpcs.update_reservation if parent_rpcs.respond_to? :update_reservation @update_reservation = ::Gapic::Config::Method.new update_reservation_config failover_reservation_config = parent_rpcs.failover_reservation if parent_rpcs.respond_to? :failover_reservation @failover_reservation = ::Gapic::Config::Method.new failover_reservation_config create_capacity_commitment_config = parent_rpcs.create_capacity_commitment if parent_rpcs.respond_to? :create_capacity_commitment @create_capacity_commitment = ::Gapic::Config::Method.new create_capacity_commitment_config list_capacity_commitments_config = parent_rpcs.list_capacity_commitments if parent_rpcs.respond_to? :list_capacity_commitments @list_capacity_commitments = ::Gapic::Config::Method.new list_capacity_commitments_config get_capacity_commitment_config = parent_rpcs.get_capacity_commitment if parent_rpcs.respond_to? :get_capacity_commitment @get_capacity_commitment = ::Gapic::Config::Method.new get_capacity_commitment_config delete_capacity_commitment_config = parent_rpcs.delete_capacity_commitment if parent_rpcs.respond_to? :delete_capacity_commitment @delete_capacity_commitment = ::Gapic::Config::Method.new delete_capacity_commitment_config update_capacity_commitment_config = parent_rpcs.update_capacity_commitment if parent_rpcs.respond_to? :update_capacity_commitment @update_capacity_commitment = ::Gapic::Config::Method.new update_capacity_commitment_config split_capacity_commitment_config = parent_rpcs.split_capacity_commitment if parent_rpcs.respond_to? :split_capacity_commitment @split_capacity_commitment = ::Gapic::Config::Method.new split_capacity_commitment_config merge_capacity_commitments_config = parent_rpcs.merge_capacity_commitments if parent_rpcs.respond_to? :merge_capacity_commitments @merge_capacity_commitments = ::Gapic::Config::Method.new merge_capacity_commitments_config create_assignment_config = parent_rpcs.create_assignment if parent_rpcs.respond_to? :create_assignment @create_assignment = ::Gapic::Config::Method.new create_assignment_config list_assignments_config = parent_rpcs.list_assignments if parent_rpcs.respond_to? :list_assignments @list_assignments = ::Gapic::Config::Method.new list_assignments_config delete_assignment_config = parent_rpcs.delete_assignment if parent_rpcs.respond_to? :delete_assignment @delete_assignment = ::Gapic::Config::Method.new delete_assignment_config search_assignments_config = parent_rpcs.search_assignments if parent_rpcs.respond_to? :search_assignments @search_assignments = ::Gapic::Config::Method.new search_assignments_config search_all_assignments_config = parent_rpcs.search_all_assignments if parent_rpcs.respond_to? :search_all_assignments @search_all_assignments = ::Gapic::Config::Method.new search_all_assignments_config move_assignment_config = parent_rpcs.move_assignment if parent_rpcs.respond_to? :move_assignment @move_assignment = ::Gapic::Config::Method.new move_assignment_config update_assignment_config = parent_rpcs.update_assignment if parent_rpcs.respond_to? :update_assignment @update_assignment = ::Gapic::Config::Method.new update_assignment_config get_bi_reservation_config = parent_rpcs.get_bi_reservation if parent_rpcs.respond_to? :get_bi_reservation @get_bi_reservation = ::Gapic::Config::Method.new get_bi_reservation_config update_bi_reservation_config = parent_rpcs.update_bi_reservation if parent_rpcs.respond_to? :update_bi_reservation @update_bi_reservation = ::Gapic::Config::Method.new update_bi_reservation_config get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config = parent_rpcs. if parent_rpcs.respond_to? :test_iam_permissions @test_iam_permissions = ::Gapic::Config::Method.new create_reservation_group_config = parent_rpcs.create_reservation_group if parent_rpcs.respond_to? :create_reservation_group @create_reservation_group = ::Gapic::Config::Method.new create_reservation_group_config get_reservation_group_config = parent_rpcs.get_reservation_group if parent_rpcs.respond_to? :get_reservation_group @get_reservation_group = ::Gapic::Config::Method.new get_reservation_group_config delete_reservation_group_config = parent_rpcs.delete_reservation_group if parent_rpcs.respond_to? :delete_reservation_group @delete_reservation_group = ::Gapic::Config::Method.new delete_reservation_group_config list_reservation_groups_config = parent_rpcs.list_reservation_groups if parent_rpcs.respond_to? :list_reservation_groups @list_reservation_groups = ::Gapic::Config::Method.new list_reservation_groups_config yield self if block_given? end end end |
#endpoint ⇒ ::String?
A custom service endpoint, as a hostname or hostname:port. The default is nil, indicating to use the default endpoint in the current universe domain.
3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 |
# File 'lib/google/cloud/bigquery/reservation/v1/reservation_service/client.rb', line 3227 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "bigqueryreservation.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel 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(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the ReservationService 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 gRPC 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_reservation` # @return [::Gapic::Config::Method] # attr_reader :create_reservation ## # RPC-specific configuration for `list_reservations` # @return [::Gapic::Config::Method] # attr_reader :list_reservations ## # RPC-specific configuration for `get_reservation` # @return [::Gapic::Config::Method] # attr_reader :get_reservation ## # RPC-specific configuration for `delete_reservation` # @return [::Gapic::Config::Method] # attr_reader :delete_reservation ## # RPC-specific configuration for `update_reservation` # @return [::Gapic::Config::Method] # attr_reader :update_reservation ## # RPC-specific configuration for `failover_reservation` # @return [::Gapic::Config::Method] # attr_reader :failover_reservation ## # RPC-specific configuration for `create_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :create_capacity_commitment ## # RPC-specific configuration for `list_capacity_commitments` # @return [::Gapic::Config::Method] # attr_reader :list_capacity_commitments ## # RPC-specific configuration for `get_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :get_capacity_commitment ## # RPC-specific configuration for `delete_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :delete_capacity_commitment ## # RPC-specific configuration for `update_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :update_capacity_commitment ## # RPC-specific configuration for `split_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :split_capacity_commitment ## # RPC-specific configuration for `merge_capacity_commitments` # @return [::Gapic::Config::Method] # attr_reader :merge_capacity_commitments ## # RPC-specific configuration for `create_assignment` # @return [::Gapic::Config::Method] # attr_reader :create_assignment ## # RPC-specific configuration for `list_assignments` # @return [::Gapic::Config::Method] # attr_reader :list_assignments ## # RPC-specific configuration for `delete_assignment` # @return [::Gapic::Config::Method] # attr_reader :delete_assignment ## # RPC-specific configuration for `search_assignments` # @return [::Gapic::Config::Method] # attr_reader :search_assignments ## # RPC-specific configuration for `search_all_assignments` # @return [::Gapic::Config::Method] # attr_reader :search_all_assignments ## # RPC-specific configuration for `move_assignment` # @return [::Gapic::Config::Method] # attr_reader :move_assignment ## # RPC-specific configuration for `update_assignment` # @return [::Gapic::Config::Method] # attr_reader :update_assignment ## # RPC-specific configuration for `get_bi_reservation` # @return [::Gapic::Config::Method] # attr_reader :get_bi_reservation ## # RPC-specific configuration for `update_bi_reservation` # @return [::Gapic::Config::Method] # attr_reader :update_bi_reservation ## # RPC-specific configuration for `get_iam_policy` # @return [::Gapic::Config::Method] # attr_reader :get_iam_policy ## # RPC-specific configuration for `set_iam_policy` # @return [::Gapic::Config::Method] # attr_reader :set_iam_policy ## # RPC-specific configuration for `test_iam_permissions` # @return [::Gapic::Config::Method] # attr_reader :test_iam_permissions ## # RPC-specific configuration for `create_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :create_reservation_group ## # RPC-specific configuration for `get_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :get_reservation_group ## # RPC-specific configuration for `delete_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :delete_reservation_group ## # RPC-specific configuration for `list_reservation_groups` # @return [::Gapic::Config::Method] # attr_reader :list_reservation_groups # @private def initialize parent_rpcs = nil create_reservation_config = parent_rpcs.create_reservation if parent_rpcs.respond_to? :create_reservation @create_reservation = ::Gapic::Config::Method.new create_reservation_config list_reservations_config = parent_rpcs.list_reservations if parent_rpcs.respond_to? :list_reservations @list_reservations = ::Gapic::Config::Method.new list_reservations_config get_reservation_config = parent_rpcs.get_reservation if parent_rpcs.respond_to? :get_reservation @get_reservation = ::Gapic::Config::Method.new get_reservation_config delete_reservation_config = parent_rpcs.delete_reservation if parent_rpcs.respond_to? :delete_reservation @delete_reservation = ::Gapic::Config::Method.new delete_reservation_config update_reservation_config = parent_rpcs.update_reservation if parent_rpcs.respond_to? :update_reservation @update_reservation = ::Gapic::Config::Method.new update_reservation_config failover_reservation_config = parent_rpcs.failover_reservation if parent_rpcs.respond_to? :failover_reservation @failover_reservation = ::Gapic::Config::Method.new failover_reservation_config create_capacity_commitment_config = parent_rpcs.create_capacity_commitment if parent_rpcs.respond_to? :create_capacity_commitment @create_capacity_commitment = ::Gapic::Config::Method.new create_capacity_commitment_config list_capacity_commitments_config = parent_rpcs.list_capacity_commitments if parent_rpcs.respond_to? :list_capacity_commitments @list_capacity_commitments = ::Gapic::Config::Method.new list_capacity_commitments_config get_capacity_commitment_config = parent_rpcs.get_capacity_commitment if parent_rpcs.respond_to? :get_capacity_commitment @get_capacity_commitment = ::Gapic::Config::Method.new get_capacity_commitment_config delete_capacity_commitment_config = parent_rpcs.delete_capacity_commitment if parent_rpcs.respond_to? :delete_capacity_commitment @delete_capacity_commitment = ::Gapic::Config::Method.new delete_capacity_commitment_config update_capacity_commitment_config = parent_rpcs.update_capacity_commitment if parent_rpcs.respond_to? :update_capacity_commitment @update_capacity_commitment = ::Gapic::Config::Method.new update_capacity_commitment_config split_capacity_commitment_config = parent_rpcs.split_capacity_commitment if parent_rpcs.respond_to? :split_capacity_commitment @split_capacity_commitment = ::Gapic::Config::Method.new split_capacity_commitment_config merge_capacity_commitments_config = parent_rpcs.merge_capacity_commitments if parent_rpcs.respond_to? :merge_capacity_commitments @merge_capacity_commitments = ::Gapic::Config::Method.new merge_capacity_commitments_config create_assignment_config = parent_rpcs.create_assignment if parent_rpcs.respond_to? :create_assignment @create_assignment = ::Gapic::Config::Method.new create_assignment_config list_assignments_config = parent_rpcs.list_assignments if parent_rpcs.respond_to? :list_assignments @list_assignments = ::Gapic::Config::Method.new list_assignments_config delete_assignment_config = parent_rpcs.delete_assignment if parent_rpcs.respond_to? :delete_assignment @delete_assignment = ::Gapic::Config::Method.new delete_assignment_config search_assignments_config = parent_rpcs.search_assignments if parent_rpcs.respond_to? :search_assignments @search_assignments = ::Gapic::Config::Method.new search_assignments_config search_all_assignments_config = parent_rpcs.search_all_assignments if parent_rpcs.respond_to? :search_all_assignments @search_all_assignments = ::Gapic::Config::Method.new search_all_assignments_config move_assignment_config = parent_rpcs.move_assignment if parent_rpcs.respond_to? :move_assignment @move_assignment = ::Gapic::Config::Method.new move_assignment_config update_assignment_config = parent_rpcs.update_assignment if parent_rpcs.respond_to? :update_assignment @update_assignment = ::Gapic::Config::Method.new update_assignment_config get_bi_reservation_config = parent_rpcs.get_bi_reservation if parent_rpcs.respond_to? :get_bi_reservation @get_bi_reservation = ::Gapic::Config::Method.new get_bi_reservation_config update_bi_reservation_config = parent_rpcs.update_bi_reservation if parent_rpcs.respond_to? :update_bi_reservation @update_bi_reservation = ::Gapic::Config::Method.new update_bi_reservation_config get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config = parent_rpcs. if parent_rpcs.respond_to? :test_iam_permissions @test_iam_permissions = ::Gapic::Config::Method.new create_reservation_group_config = parent_rpcs.create_reservation_group if parent_rpcs.respond_to? :create_reservation_group @create_reservation_group = ::Gapic::Config::Method.new create_reservation_group_config get_reservation_group_config = parent_rpcs.get_reservation_group if parent_rpcs.respond_to? :get_reservation_group @get_reservation_group = ::Gapic::Config::Method.new get_reservation_group_config delete_reservation_group_config = parent_rpcs.delete_reservation_group if parent_rpcs.respond_to? :delete_reservation_group @delete_reservation_group = ::Gapic::Config::Method.new delete_reservation_group_config list_reservation_groups_config = parent_rpcs.list_reservation_groups if parent_rpcs.respond_to? :list_reservation_groups @list_reservation_groups = ::Gapic::Config::Method.new list_reservation_groups_config yield self if block_given? end end end |
#interceptors ⇒ ::Array<::GRPC::ClientInterceptor>
An array of interceptors that are run before calls are executed.
3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 |
# File 'lib/google/cloud/bigquery/reservation/v1/reservation_service/client.rb', line 3227 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "bigqueryreservation.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel 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(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the ReservationService 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 gRPC 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_reservation` # @return [::Gapic::Config::Method] # attr_reader :create_reservation ## # RPC-specific configuration for `list_reservations` # @return [::Gapic::Config::Method] # attr_reader :list_reservations ## # RPC-specific configuration for `get_reservation` # @return [::Gapic::Config::Method] # attr_reader :get_reservation ## # RPC-specific configuration for `delete_reservation` # @return [::Gapic::Config::Method] # attr_reader :delete_reservation ## # RPC-specific configuration for `update_reservation` # @return [::Gapic::Config::Method] # attr_reader :update_reservation ## # RPC-specific configuration for `failover_reservation` # @return [::Gapic::Config::Method] # attr_reader :failover_reservation ## # RPC-specific configuration for `create_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :create_capacity_commitment ## # RPC-specific configuration for `list_capacity_commitments` # @return [::Gapic::Config::Method] # attr_reader :list_capacity_commitments ## # RPC-specific configuration for `get_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :get_capacity_commitment ## # RPC-specific configuration for `delete_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :delete_capacity_commitment ## # RPC-specific configuration for `update_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :update_capacity_commitment ## # RPC-specific configuration for `split_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :split_capacity_commitment ## # RPC-specific configuration for `merge_capacity_commitments` # @return [::Gapic::Config::Method] # attr_reader :merge_capacity_commitments ## # RPC-specific configuration for `create_assignment` # @return [::Gapic::Config::Method] # attr_reader :create_assignment ## # RPC-specific configuration for `list_assignments` # @return [::Gapic::Config::Method] # attr_reader :list_assignments ## # RPC-specific configuration for `delete_assignment` # @return [::Gapic::Config::Method] # attr_reader :delete_assignment ## # RPC-specific configuration for `search_assignments` # @return [::Gapic::Config::Method] # attr_reader :search_assignments ## # RPC-specific configuration for `search_all_assignments` # @return [::Gapic::Config::Method] # attr_reader :search_all_assignments ## # RPC-specific configuration for `move_assignment` # @return [::Gapic::Config::Method] # attr_reader :move_assignment ## # RPC-specific configuration for `update_assignment` # @return [::Gapic::Config::Method] # attr_reader :update_assignment ## # RPC-specific configuration for `get_bi_reservation` # @return [::Gapic::Config::Method] # attr_reader :get_bi_reservation ## # RPC-specific configuration for `update_bi_reservation` # @return [::Gapic::Config::Method] # attr_reader :update_bi_reservation ## # RPC-specific configuration for `get_iam_policy` # @return [::Gapic::Config::Method] # attr_reader :get_iam_policy ## # RPC-specific configuration for `set_iam_policy` # @return [::Gapic::Config::Method] # attr_reader :set_iam_policy ## # RPC-specific configuration for `test_iam_permissions` # @return [::Gapic::Config::Method] # attr_reader :test_iam_permissions ## # RPC-specific configuration for `create_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :create_reservation_group ## # RPC-specific configuration for `get_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :get_reservation_group ## # RPC-specific configuration for `delete_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :delete_reservation_group ## # RPC-specific configuration for `list_reservation_groups` # @return [::Gapic::Config::Method] # attr_reader :list_reservation_groups # @private def initialize parent_rpcs = nil create_reservation_config = parent_rpcs.create_reservation if parent_rpcs.respond_to? :create_reservation @create_reservation = ::Gapic::Config::Method.new create_reservation_config list_reservations_config = parent_rpcs.list_reservations if parent_rpcs.respond_to? :list_reservations @list_reservations = ::Gapic::Config::Method.new list_reservations_config get_reservation_config = parent_rpcs.get_reservation if parent_rpcs.respond_to? :get_reservation @get_reservation = ::Gapic::Config::Method.new get_reservation_config delete_reservation_config = parent_rpcs.delete_reservation if parent_rpcs.respond_to? :delete_reservation @delete_reservation = ::Gapic::Config::Method.new delete_reservation_config update_reservation_config = parent_rpcs.update_reservation if parent_rpcs.respond_to? :update_reservation @update_reservation = ::Gapic::Config::Method.new update_reservation_config failover_reservation_config = parent_rpcs.failover_reservation if parent_rpcs.respond_to? :failover_reservation @failover_reservation = ::Gapic::Config::Method.new failover_reservation_config create_capacity_commitment_config = parent_rpcs.create_capacity_commitment if parent_rpcs.respond_to? :create_capacity_commitment @create_capacity_commitment = ::Gapic::Config::Method.new create_capacity_commitment_config list_capacity_commitments_config = parent_rpcs.list_capacity_commitments if parent_rpcs.respond_to? :list_capacity_commitments @list_capacity_commitments = ::Gapic::Config::Method.new list_capacity_commitments_config get_capacity_commitment_config = parent_rpcs.get_capacity_commitment if parent_rpcs.respond_to? :get_capacity_commitment @get_capacity_commitment = ::Gapic::Config::Method.new get_capacity_commitment_config delete_capacity_commitment_config = parent_rpcs.delete_capacity_commitment if parent_rpcs.respond_to? :delete_capacity_commitment @delete_capacity_commitment = ::Gapic::Config::Method.new delete_capacity_commitment_config update_capacity_commitment_config = parent_rpcs.update_capacity_commitment if parent_rpcs.respond_to? :update_capacity_commitment @update_capacity_commitment = ::Gapic::Config::Method.new update_capacity_commitment_config split_capacity_commitment_config = parent_rpcs.split_capacity_commitment if parent_rpcs.respond_to? :split_capacity_commitment @split_capacity_commitment = ::Gapic::Config::Method.new split_capacity_commitment_config merge_capacity_commitments_config = parent_rpcs.merge_capacity_commitments if parent_rpcs.respond_to? :merge_capacity_commitments @merge_capacity_commitments = ::Gapic::Config::Method.new merge_capacity_commitments_config create_assignment_config = parent_rpcs.create_assignment if parent_rpcs.respond_to? :create_assignment @create_assignment = ::Gapic::Config::Method.new create_assignment_config list_assignments_config = parent_rpcs.list_assignments if parent_rpcs.respond_to? :list_assignments @list_assignments = ::Gapic::Config::Method.new list_assignments_config delete_assignment_config = parent_rpcs.delete_assignment if parent_rpcs.respond_to? :delete_assignment @delete_assignment = ::Gapic::Config::Method.new delete_assignment_config search_assignments_config = parent_rpcs.search_assignments if parent_rpcs.respond_to? :search_assignments @search_assignments = ::Gapic::Config::Method.new search_assignments_config search_all_assignments_config = parent_rpcs.search_all_assignments if parent_rpcs.respond_to? :search_all_assignments @search_all_assignments = ::Gapic::Config::Method.new search_all_assignments_config move_assignment_config = parent_rpcs.move_assignment if parent_rpcs.respond_to? :move_assignment @move_assignment = ::Gapic::Config::Method.new move_assignment_config update_assignment_config = parent_rpcs.update_assignment if parent_rpcs.respond_to? :update_assignment @update_assignment = ::Gapic::Config::Method.new update_assignment_config get_bi_reservation_config = parent_rpcs.get_bi_reservation if parent_rpcs.respond_to? :get_bi_reservation @get_bi_reservation = ::Gapic::Config::Method.new get_bi_reservation_config update_bi_reservation_config = parent_rpcs.update_bi_reservation if parent_rpcs.respond_to? :update_bi_reservation @update_bi_reservation = ::Gapic::Config::Method.new update_bi_reservation_config get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config = parent_rpcs. if parent_rpcs.respond_to? :test_iam_permissions @test_iam_permissions = ::Gapic::Config::Method.new create_reservation_group_config = parent_rpcs.create_reservation_group if parent_rpcs.respond_to? :create_reservation_group @create_reservation_group = ::Gapic::Config::Method.new create_reservation_group_config get_reservation_group_config = parent_rpcs.get_reservation_group if parent_rpcs.respond_to? :get_reservation_group @get_reservation_group = ::Gapic::Config::Method.new get_reservation_group_config delete_reservation_group_config = parent_rpcs.delete_reservation_group if parent_rpcs.respond_to? :delete_reservation_group @delete_reservation_group = ::Gapic::Config::Method.new delete_reservation_group_config list_reservation_groups_config = parent_rpcs.list_reservation_groups if parent_rpcs.respond_to? :list_reservation_groups @list_reservation_groups = ::Gapic::Config::Method.new list_reservation_groups_config yield self if block_given? end end end |
#lib_name ⇒ ::String
The library name as recorded in instrumentation and logging
3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 |
# File 'lib/google/cloud/bigquery/reservation/v1/reservation_service/client.rb', line 3227 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "bigqueryreservation.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel 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(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the ReservationService 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 gRPC 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_reservation` # @return [::Gapic::Config::Method] # attr_reader :create_reservation ## # RPC-specific configuration for `list_reservations` # @return [::Gapic::Config::Method] # attr_reader :list_reservations ## # RPC-specific configuration for `get_reservation` # @return [::Gapic::Config::Method] # attr_reader :get_reservation ## # RPC-specific configuration for `delete_reservation` # @return [::Gapic::Config::Method] # attr_reader :delete_reservation ## # RPC-specific configuration for `update_reservation` # @return [::Gapic::Config::Method] # attr_reader :update_reservation ## # RPC-specific configuration for `failover_reservation` # @return [::Gapic::Config::Method] # attr_reader :failover_reservation ## # RPC-specific configuration for `create_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :create_capacity_commitment ## # RPC-specific configuration for `list_capacity_commitments` # @return [::Gapic::Config::Method] # attr_reader :list_capacity_commitments ## # RPC-specific configuration for `get_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :get_capacity_commitment ## # RPC-specific configuration for `delete_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :delete_capacity_commitment ## # RPC-specific configuration for `update_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :update_capacity_commitment ## # RPC-specific configuration for `split_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :split_capacity_commitment ## # RPC-specific configuration for `merge_capacity_commitments` # @return [::Gapic::Config::Method] # attr_reader :merge_capacity_commitments ## # RPC-specific configuration for `create_assignment` # @return [::Gapic::Config::Method] # attr_reader :create_assignment ## # RPC-specific configuration for `list_assignments` # @return [::Gapic::Config::Method] # attr_reader :list_assignments ## # RPC-specific configuration for `delete_assignment` # @return [::Gapic::Config::Method] # attr_reader :delete_assignment ## # RPC-specific configuration for `search_assignments` # @return [::Gapic::Config::Method] # attr_reader :search_assignments ## # RPC-specific configuration for `search_all_assignments` # @return [::Gapic::Config::Method] # attr_reader :search_all_assignments ## # RPC-specific configuration for `move_assignment` # @return [::Gapic::Config::Method] # attr_reader :move_assignment ## # RPC-specific configuration for `update_assignment` # @return [::Gapic::Config::Method] # attr_reader :update_assignment ## # RPC-specific configuration for `get_bi_reservation` # @return [::Gapic::Config::Method] # attr_reader :get_bi_reservation ## # RPC-specific configuration for `update_bi_reservation` # @return [::Gapic::Config::Method] # attr_reader :update_bi_reservation ## # RPC-specific configuration for `get_iam_policy` # @return [::Gapic::Config::Method] # attr_reader :get_iam_policy ## # RPC-specific configuration for `set_iam_policy` # @return [::Gapic::Config::Method] # attr_reader :set_iam_policy ## # RPC-specific configuration for `test_iam_permissions` # @return [::Gapic::Config::Method] # attr_reader :test_iam_permissions ## # RPC-specific configuration for `create_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :create_reservation_group ## # RPC-specific configuration for `get_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :get_reservation_group ## # RPC-specific configuration for `delete_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :delete_reservation_group ## # RPC-specific configuration for `list_reservation_groups` # @return [::Gapic::Config::Method] # attr_reader :list_reservation_groups # @private def initialize parent_rpcs = nil create_reservation_config = parent_rpcs.create_reservation if parent_rpcs.respond_to? :create_reservation @create_reservation = ::Gapic::Config::Method.new create_reservation_config list_reservations_config = parent_rpcs.list_reservations if parent_rpcs.respond_to? :list_reservations @list_reservations = ::Gapic::Config::Method.new list_reservations_config get_reservation_config = parent_rpcs.get_reservation if parent_rpcs.respond_to? :get_reservation @get_reservation = ::Gapic::Config::Method.new get_reservation_config delete_reservation_config = parent_rpcs.delete_reservation if parent_rpcs.respond_to? :delete_reservation @delete_reservation = ::Gapic::Config::Method.new delete_reservation_config update_reservation_config = parent_rpcs.update_reservation if parent_rpcs.respond_to? :update_reservation @update_reservation = ::Gapic::Config::Method.new update_reservation_config failover_reservation_config = parent_rpcs.failover_reservation if parent_rpcs.respond_to? :failover_reservation @failover_reservation = ::Gapic::Config::Method.new failover_reservation_config create_capacity_commitment_config = parent_rpcs.create_capacity_commitment if parent_rpcs.respond_to? :create_capacity_commitment @create_capacity_commitment = ::Gapic::Config::Method.new create_capacity_commitment_config list_capacity_commitments_config = parent_rpcs.list_capacity_commitments if parent_rpcs.respond_to? :list_capacity_commitments @list_capacity_commitments = ::Gapic::Config::Method.new list_capacity_commitments_config get_capacity_commitment_config = parent_rpcs.get_capacity_commitment if parent_rpcs.respond_to? :get_capacity_commitment @get_capacity_commitment = ::Gapic::Config::Method.new get_capacity_commitment_config delete_capacity_commitment_config = parent_rpcs.delete_capacity_commitment if parent_rpcs.respond_to? :delete_capacity_commitment @delete_capacity_commitment = ::Gapic::Config::Method.new delete_capacity_commitment_config update_capacity_commitment_config = parent_rpcs.update_capacity_commitment if parent_rpcs.respond_to? :update_capacity_commitment @update_capacity_commitment = ::Gapic::Config::Method.new update_capacity_commitment_config split_capacity_commitment_config = parent_rpcs.split_capacity_commitment if parent_rpcs.respond_to? :split_capacity_commitment @split_capacity_commitment = ::Gapic::Config::Method.new split_capacity_commitment_config merge_capacity_commitments_config = parent_rpcs.merge_capacity_commitments if parent_rpcs.respond_to? :merge_capacity_commitments @merge_capacity_commitments = ::Gapic::Config::Method.new merge_capacity_commitments_config create_assignment_config = parent_rpcs.create_assignment if parent_rpcs.respond_to? :create_assignment @create_assignment = ::Gapic::Config::Method.new create_assignment_config list_assignments_config = parent_rpcs.list_assignments if parent_rpcs.respond_to? :list_assignments @list_assignments = ::Gapic::Config::Method.new list_assignments_config delete_assignment_config = parent_rpcs.delete_assignment if parent_rpcs.respond_to? :delete_assignment @delete_assignment = ::Gapic::Config::Method.new delete_assignment_config search_assignments_config = parent_rpcs.search_assignments if parent_rpcs.respond_to? :search_assignments @search_assignments = ::Gapic::Config::Method.new search_assignments_config search_all_assignments_config = parent_rpcs.search_all_assignments if parent_rpcs.respond_to? :search_all_assignments @search_all_assignments = ::Gapic::Config::Method.new search_all_assignments_config move_assignment_config = parent_rpcs.move_assignment if parent_rpcs.respond_to? :move_assignment @move_assignment = ::Gapic::Config::Method.new move_assignment_config update_assignment_config = parent_rpcs.update_assignment if parent_rpcs.respond_to? :update_assignment @update_assignment = ::Gapic::Config::Method.new update_assignment_config get_bi_reservation_config = parent_rpcs.get_bi_reservation if parent_rpcs.respond_to? :get_bi_reservation @get_bi_reservation = ::Gapic::Config::Method.new get_bi_reservation_config update_bi_reservation_config = parent_rpcs.update_bi_reservation if parent_rpcs.respond_to? :update_bi_reservation @update_bi_reservation = ::Gapic::Config::Method.new update_bi_reservation_config get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config = parent_rpcs. if parent_rpcs.respond_to? :test_iam_permissions @test_iam_permissions = ::Gapic::Config::Method.new create_reservation_group_config = parent_rpcs.create_reservation_group if parent_rpcs.respond_to? :create_reservation_group @create_reservation_group = ::Gapic::Config::Method.new create_reservation_group_config get_reservation_group_config = parent_rpcs.get_reservation_group if parent_rpcs.respond_to? :get_reservation_group @get_reservation_group = ::Gapic::Config::Method.new get_reservation_group_config delete_reservation_group_config = parent_rpcs.delete_reservation_group if parent_rpcs.respond_to? :delete_reservation_group @delete_reservation_group = ::Gapic::Config::Method.new delete_reservation_group_config list_reservation_groups_config = parent_rpcs.list_reservation_groups if parent_rpcs.respond_to? :list_reservation_groups @list_reservation_groups = ::Gapic::Config::Method.new list_reservation_groups_config yield self if block_given? end end end |
#lib_version ⇒ ::String
The library version as recorded in instrumentation and logging
3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 |
# File 'lib/google/cloud/bigquery/reservation/v1/reservation_service/client.rb', line 3227 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "bigqueryreservation.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel 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(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the ReservationService 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 gRPC 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_reservation` # @return [::Gapic::Config::Method] # attr_reader :create_reservation ## # RPC-specific configuration for `list_reservations` # @return [::Gapic::Config::Method] # attr_reader :list_reservations ## # RPC-specific configuration for `get_reservation` # @return [::Gapic::Config::Method] # attr_reader :get_reservation ## # RPC-specific configuration for `delete_reservation` # @return [::Gapic::Config::Method] # attr_reader :delete_reservation ## # RPC-specific configuration for `update_reservation` # @return [::Gapic::Config::Method] # attr_reader :update_reservation ## # RPC-specific configuration for `failover_reservation` # @return [::Gapic::Config::Method] # attr_reader :failover_reservation ## # RPC-specific configuration for `create_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :create_capacity_commitment ## # RPC-specific configuration for `list_capacity_commitments` # @return [::Gapic::Config::Method] # attr_reader :list_capacity_commitments ## # RPC-specific configuration for `get_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :get_capacity_commitment ## # RPC-specific configuration for `delete_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :delete_capacity_commitment ## # RPC-specific configuration for `update_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :update_capacity_commitment ## # RPC-specific configuration for `split_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :split_capacity_commitment ## # RPC-specific configuration for `merge_capacity_commitments` # @return [::Gapic::Config::Method] # attr_reader :merge_capacity_commitments ## # RPC-specific configuration for `create_assignment` # @return [::Gapic::Config::Method] # attr_reader :create_assignment ## # RPC-specific configuration for `list_assignments` # @return [::Gapic::Config::Method] # attr_reader :list_assignments ## # RPC-specific configuration for `delete_assignment` # @return [::Gapic::Config::Method] # attr_reader :delete_assignment ## # RPC-specific configuration for `search_assignments` # @return [::Gapic::Config::Method] # attr_reader :search_assignments ## # RPC-specific configuration for `search_all_assignments` # @return [::Gapic::Config::Method] # attr_reader :search_all_assignments ## # RPC-specific configuration for `move_assignment` # @return [::Gapic::Config::Method] # attr_reader :move_assignment ## # RPC-specific configuration for `update_assignment` # @return [::Gapic::Config::Method] # attr_reader :update_assignment ## # RPC-specific configuration for `get_bi_reservation` # @return [::Gapic::Config::Method] # attr_reader :get_bi_reservation ## # RPC-specific configuration for `update_bi_reservation` # @return [::Gapic::Config::Method] # attr_reader :update_bi_reservation ## # RPC-specific configuration for `get_iam_policy` # @return [::Gapic::Config::Method] # attr_reader :get_iam_policy ## # RPC-specific configuration for `set_iam_policy` # @return [::Gapic::Config::Method] # attr_reader :set_iam_policy ## # RPC-specific configuration for `test_iam_permissions` # @return [::Gapic::Config::Method] # attr_reader :test_iam_permissions ## # RPC-specific configuration for `create_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :create_reservation_group ## # RPC-specific configuration for `get_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :get_reservation_group ## # RPC-specific configuration for `delete_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :delete_reservation_group ## # RPC-specific configuration for `list_reservation_groups` # @return [::Gapic::Config::Method] # attr_reader :list_reservation_groups # @private def initialize parent_rpcs = nil create_reservation_config = parent_rpcs.create_reservation if parent_rpcs.respond_to? :create_reservation @create_reservation = ::Gapic::Config::Method.new create_reservation_config list_reservations_config = parent_rpcs.list_reservations if parent_rpcs.respond_to? :list_reservations @list_reservations = ::Gapic::Config::Method.new list_reservations_config get_reservation_config = parent_rpcs.get_reservation if parent_rpcs.respond_to? :get_reservation @get_reservation = ::Gapic::Config::Method.new get_reservation_config delete_reservation_config = parent_rpcs.delete_reservation if parent_rpcs.respond_to? :delete_reservation @delete_reservation = ::Gapic::Config::Method.new delete_reservation_config update_reservation_config = parent_rpcs.update_reservation if parent_rpcs.respond_to? :update_reservation @update_reservation = ::Gapic::Config::Method.new update_reservation_config failover_reservation_config = parent_rpcs.failover_reservation if parent_rpcs.respond_to? :failover_reservation @failover_reservation = ::Gapic::Config::Method.new failover_reservation_config create_capacity_commitment_config = parent_rpcs.create_capacity_commitment if parent_rpcs.respond_to? :create_capacity_commitment @create_capacity_commitment = ::Gapic::Config::Method.new create_capacity_commitment_config list_capacity_commitments_config = parent_rpcs.list_capacity_commitments if parent_rpcs.respond_to? :list_capacity_commitments @list_capacity_commitments = ::Gapic::Config::Method.new list_capacity_commitments_config get_capacity_commitment_config = parent_rpcs.get_capacity_commitment if parent_rpcs.respond_to? :get_capacity_commitment @get_capacity_commitment = ::Gapic::Config::Method.new get_capacity_commitment_config delete_capacity_commitment_config = parent_rpcs.delete_capacity_commitment if parent_rpcs.respond_to? :delete_capacity_commitment @delete_capacity_commitment = ::Gapic::Config::Method.new delete_capacity_commitment_config update_capacity_commitment_config = parent_rpcs.update_capacity_commitment if parent_rpcs.respond_to? :update_capacity_commitment @update_capacity_commitment = ::Gapic::Config::Method.new update_capacity_commitment_config split_capacity_commitment_config = parent_rpcs.split_capacity_commitment if parent_rpcs.respond_to? :split_capacity_commitment @split_capacity_commitment = ::Gapic::Config::Method.new split_capacity_commitment_config merge_capacity_commitments_config = parent_rpcs.merge_capacity_commitments if parent_rpcs.respond_to? :merge_capacity_commitments @merge_capacity_commitments = ::Gapic::Config::Method.new merge_capacity_commitments_config create_assignment_config = parent_rpcs.create_assignment if parent_rpcs.respond_to? :create_assignment @create_assignment = ::Gapic::Config::Method.new create_assignment_config list_assignments_config = parent_rpcs.list_assignments if parent_rpcs.respond_to? :list_assignments @list_assignments = ::Gapic::Config::Method.new list_assignments_config delete_assignment_config = parent_rpcs.delete_assignment if parent_rpcs.respond_to? :delete_assignment @delete_assignment = ::Gapic::Config::Method.new delete_assignment_config search_assignments_config = parent_rpcs.search_assignments if parent_rpcs.respond_to? :search_assignments @search_assignments = ::Gapic::Config::Method.new search_assignments_config search_all_assignments_config = parent_rpcs.search_all_assignments if parent_rpcs.respond_to? :search_all_assignments @search_all_assignments = ::Gapic::Config::Method.new search_all_assignments_config move_assignment_config = parent_rpcs.move_assignment if parent_rpcs.respond_to? :move_assignment @move_assignment = ::Gapic::Config::Method.new move_assignment_config update_assignment_config = parent_rpcs.update_assignment if parent_rpcs.respond_to? :update_assignment @update_assignment = ::Gapic::Config::Method.new update_assignment_config get_bi_reservation_config = parent_rpcs.get_bi_reservation if parent_rpcs.respond_to? :get_bi_reservation @get_bi_reservation = ::Gapic::Config::Method.new get_bi_reservation_config update_bi_reservation_config = parent_rpcs.update_bi_reservation if parent_rpcs.respond_to? :update_bi_reservation @update_bi_reservation = ::Gapic::Config::Method.new update_bi_reservation_config get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config = parent_rpcs. if parent_rpcs.respond_to? :test_iam_permissions @test_iam_permissions = ::Gapic::Config::Method.new create_reservation_group_config = parent_rpcs.create_reservation_group if parent_rpcs.respond_to? :create_reservation_group @create_reservation_group = ::Gapic::Config::Method.new create_reservation_group_config get_reservation_group_config = parent_rpcs.get_reservation_group if parent_rpcs.respond_to? :get_reservation_group @get_reservation_group = ::Gapic::Config::Method.new get_reservation_group_config delete_reservation_group_config = parent_rpcs.delete_reservation_group if parent_rpcs.respond_to? :delete_reservation_group @delete_reservation_group = ::Gapic::Config::Method.new delete_reservation_group_config list_reservation_groups_config = parent_rpcs.list_reservation_groups if parent_rpcs.respond_to? :list_reservation_groups @list_reservation_groups = ::Gapic::Config::Method.new list_reservation_groups_config yield self if block_given? end end end |
#logger ⇒ ::Logger, ...
A custom logger to use for request/response debug logging, or the value
:default (the default) to construct a default logger, or nil to
explicitly disable logging.
3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 |
# File 'lib/google/cloud/bigquery/reservation/v1/reservation_service/client.rb', line 3227 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "bigqueryreservation.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel 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(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the ReservationService 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 gRPC 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_reservation` # @return [::Gapic::Config::Method] # attr_reader :create_reservation ## # RPC-specific configuration for `list_reservations` # @return [::Gapic::Config::Method] # attr_reader :list_reservations ## # RPC-specific configuration for `get_reservation` # @return [::Gapic::Config::Method] # attr_reader :get_reservation ## # RPC-specific configuration for `delete_reservation` # @return [::Gapic::Config::Method] # attr_reader :delete_reservation ## # RPC-specific configuration for `update_reservation` # @return [::Gapic::Config::Method] # attr_reader :update_reservation ## # RPC-specific configuration for `failover_reservation` # @return [::Gapic::Config::Method] # attr_reader :failover_reservation ## # RPC-specific configuration for `create_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :create_capacity_commitment ## # RPC-specific configuration for `list_capacity_commitments` # @return [::Gapic::Config::Method] # attr_reader :list_capacity_commitments ## # RPC-specific configuration for `get_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :get_capacity_commitment ## # RPC-specific configuration for `delete_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :delete_capacity_commitment ## # RPC-specific configuration for `update_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :update_capacity_commitment ## # RPC-specific configuration for `split_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :split_capacity_commitment ## # RPC-specific configuration for `merge_capacity_commitments` # @return [::Gapic::Config::Method] # attr_reader :merge_capacity_commitments ## # RPC-specific configuration for `create_assignment` # @return [::Gapic::Config::Method] # attr_reader :create_assignment ## # RPC-specific configuration for `list_assignments` # @return [::Gapic::Config::Method] # attr_reader :list_assignments ## # RPC-specific configuration for `delete_assignment` # @return [::Gapic::Config::Method] # attr_reader :delete_assignment ## # RPC-specific configuration for `search_assignments` # @return [::Gapic::Config::Method] # attr_reader :search_assignments ## # RPC-specific configuration for `search_all_assignments` # @return [::Gapic::Config::Method] # attr_reader :search_all_assignments ## # RPC-specific configuration for `move_assignment` # @return [::Gapic::Config::Method] # attr_reader :move_assignment ## # RPC-specific configuration for `update_assignment` # @return [::Gapic::Config::Method] # attr_reader :update_assignment ## # RPC-specific configuration for `get_bi_reservation` # @return [::Gapic::Config::Method] # attr_reader :get_bi_reservation ## # RPC-specific configuration for `update_bi_reservation` # @return [::Gapic::Config::Method] # attr_reader :update_bi_reservation ## # RPC-specific configuration for `get_iam_policy` # @return [::Gapic::Config::Method] # attr_reader :get_iam_policy ## # RPC-specific configuration for `set_iam_policy` # @return [::Gapic::Config::Method] # attr_reader :set_iam_policy ## # RPC-specific configuration for `test_iam_permissions` # @return [::Gapic::Config::Method] # attr_reader :test_iam_permissions ## # RPC-specific configuration for `create_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :create_reservation_group ## # RPC-specific configuration for `get_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :get_reservation_group ## # RPC-specific configuration for `delete_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :delete_reservation_group ## # RPC-specific configuration for `list_reservation_groups` # @return [::Gapic::Config::Method] # attr_reader :list_reservation_groups # @private def initialize parent_rpcs = nil create_reservation_config = parent_rpcs.create_reservation if parent_rpcs.respond_to? :create_reservation @create_reservation = ::Gapic::Config::Method.new create_reservation_config list_reservations_config = parent_rpcs.list_reservations if parent_rpcs.respond_to? :list_reservations @list_reservations = ::Gapic::Config::Method.new list_reservations_config get_reservation_config = parent_rpcs.get_reservation if parent_rpcs.respond_to? :get_reservation @get_reservation = ::Gapic::Config::Method.new get_reservation_config delete_reservation_config = parent_rpcs.delete_reservation if parent_rpcs.respond_to? :delete_reservation @delete_reservation = ::Gapic::Config::Method.new delete_reservation_config update_reservation_config = parent_rpcs.update_reservation if parent_rpcs.respond_to? :update_reservation @update_reservation = ::Gapic::Config::Method.new update_reservation_config failover_reservation_config = parent_rpcs.failover_reservation if parent_rpcs.respond_to? :failover_reservation @failover_reservation = ::Gapic::Config::Method.new failover_reservation_config create_capacity_commitment_config = parent_rpcs.create_capacity_commitment if parent_rpcs.respond_to? :create_capacity_commitment @create_capacity_commitment = ::Gapic::Config::Method.new create_capacity_commitment_config list_capacity_commitments_config = parent_rpcs.list_capacity_commitments if parent_rpcs.respond_to? :list_capacity_commitments @list_capacity_commitments = ::Gapic::Config::Method.new list_capacity_commitments_config get_capacity_commitment_config = parent_rpcs.get_capacity_commitment if parent_rpcs.respond_to? :get_capacity_commitment @get_capacity_commitment = ::Gapic::Config::Method.new get_capacity_commitment_config delete_capacity_commitment_config = parent_rpcs.delete_capacity_commitment if parent_rpcs.respond_to? :delete_capacity_commitment @delete_capacity_commitment = ::Gapic::Config::Method.new delete_capacity_commitment_config update_capacity_commitment_config = parent_rpcs.update_capacity_commitment if parent_rpcs.respond_to? :update_capacity_commitment @update_capacity_commitment = ::Gapic::Config::Method.new update_capacity_commitment_config split_capacity_commitment_config = parent_rpcs.split_capacity_commitment if parent_rpcs.respond_to? :split_capacity_commitment @split_capacity_commitment = ::Gapic::Config::Method.new split_capacity_commitment_config merge_capacity_commitments_config = parent_rpcs.merge_capacity_commitments if parent_rpcs.respond_to? :merge_capacity_commitments @merge_capacity_commitments = ::Gapic::Config::Method.new merge_capacity_commitments_config create_assignment_config = parent_rpcs.create_assignment if parent_rpcs.respond_to? :create_assignment @create_assignment = ::Gapic::Config::Method.new create_assignment_config list_assignments_config = parent_rpcs.list_assignments if parent_rpcs.respond_to? :list_assignments @list_assignments = ::Gapic::Config::Method.new list_assignments_config delete_assignment_config = parent_rpcs.delete_assignment if parent_rpcs.respond_to? :delete_assignment @delete_assignment = ::Gapic::Config::Method.new delete_assignment_config search_assignments_config = parent_rpcs.search_assignments if parent_rpcs.respond_to? :search_assignments @search_assignments = ::Gapic::Config::Method.new search_assignments_config search_all_assignments_config = parent_rpcs.search_all_assignments if parent_rpcs.respond_to? :search_all_assignments @search_all_assignments = ::Gapic::Config::Method.new search_all_assignments_config move_assignment_config = parent_rpcs.move_assignment if parent_rpcs.respond_to? :move_assignment @move_assignment = ::Gapic::Config::Method.new move_assignment_config update_assignment_config = parent_rpcs.update_assignment if parent_rpcs.respond_to? :update_assignment @update_assignment = ::Gapic::Config::Method.new update_assignment_config get_bi_reservation_config = parent_rpcs.get_bi_reservation if parent_rpcs.respond_to? :get_bi_reservation @get_bi_reservation = ::Gapic::Config::Method.new get_bi_reservation_config update_bi_reservation_config = parent_rpcs.update_bi_reservation if parent_rpcs.respond_to? :update_bi_reservation @update_bi_reservation = ::Gapic::Config::Method.new update_bi_reservation_config get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config = parent_rpcs. if parent_rpcs.respond_to? :test_iam_permissions @test_iam_permissions = ::Gapic::Config::Method.new create_reservation_group_config = parent_rpcs.create_reservation_group if parent_rpcs.respond_to? :create_reservation_group @create_reservation_group = ::Gapic::Config::Method.new create_reservation_group_config get_reservation_group_config = parent_rpcs.get_reservation_group if parent_rpcs.respond_to? :get_reservation_group @get_reservation_group = ::Gapic::Config::Method.new get_reservation_group_config delete_reservation_group_config = parent_rpcs.delete_reservation_group if parent_rpcs.respond_to? :delete_reservation_group @delete_reservation_group = ::Gapic::Config::Method.new delete_reservation_group_config list_reservation_groups_config = parent_rpcs.list_reservation_groups if parent_rpcs.respond_to? :list_reservation_groups @list_reservation_groups = ::Gapic::Config::Method.new list_reservation_groups_config yield self if block_given? end end end |
#metadata ⇒ ::Hash{::Symbol=>::String}
Additional gRPC headers to be sent with the call.
3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 |
# File 'lib/google/cloud/bigquery/reservation/v1/reservation_service/client.rb', line 3227 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "bigqueryreservation.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel 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(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the ReservationService 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 gRPC 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_reservation` # @return [::Gapic::Config::Method] # attr_reader :create_reservation ## # RPC-specific configuration for `list_reservations` # @return [::Gapic::Config::Method] # attr_reader :list_reservations ## # RPC-specific configuration for `get_reservation` # @return [::Gapic::Config::Method] # attr_reader :get_reservation ## # RPC-specific configuration for `delete_reservation` # @return [::Gapic::Config::Method] # attr_reader :delete_reservation ## # RPC-specific configuration for `update_reservation` # @return [::Gapic::Config::Method] # attr_reader :update_reservation ## # RPC-specific configuration for `failover_reservation` # @return [::Gapic::Config::Method] # attr_reader :failover_reservation ## # RPC-specific configuration for `create_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :create_capacity_commitment ## # RPC-specific configuration for `list_capacity_commitments` # @return [::Gapic::Config::Method] # attr_reader :list_capacity_commitments ## # RPC-specific configuration for `get_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :get_capacity_commitment ## # RPC-specific configuration for `delete_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :delete_capacity_commitment ## # RPC-specific configuration for `update_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :update_capacity_commitment ## # RPC-specific configuration for `split_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :split_capacity_commitment ## # RPC-specific configuration for `merge_capacity_commitments` # @return [::Gapic::Config::Method] # attr_reader :merge_capacity_commitments ## # RPC-specific configuration for `create_assignment` # @return [::Gapic::Config::Method] # attr_reader :create_assignment ## # RPC-specific configuration for `list_assignments` # @return [::Gapic::Config::Method] # attr_reader :list_assignments ## # RPC-specific configuration for `delete_assignment` # @return [::Gapic::Config::Method] # attr_reader :delete_assignment ## # RPC-specific configuration for `search_assignments` # @return [::Gapic::Config::Method] # attr_reader :search_assignments ## # RPC-specific configuration for `search_all_assignments` # @return [::Gapic::Config::Method] # attr_reader :search_all_assignments ## # RPC-specific configuration for `move_assignment` # @return [::Gapic::Config::Method] # attr_reader :move_assignment ## # RPC-specific configuration for `update_assignment` # @return [::Gapic::Config::Method] # attr_reader :update_assignment ## # RPC-specific configuration for `get_bi_reservation` # @return [::Gapic::Config::Method] # attr_reader :get_bi_reservation ## # RPC-specific configuration for `update_bi_reservation` # @return [::Gapic::Config::Method] # attr_reader :update_bi_reservation ## # RPC-specific configuration for `get_iam_policy` # @return [::Gapic::Config::Method] # attr_reader :get_iam_policy ## # RPC-specific configuration for `set_iam_policy` # @return [::Gapic::Config::Method] # attr_reader :set_iam_policy ## # RPC-specific configuration for `test_iam_permissions` # @return [::Gapic::Config::Method] # attr_reader :test_iam_permissions ## # RPC-specific configuration for `create_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :create_reservation_group ## # RPC-specific configuration for `get_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :get_reservation_group ## # RPC-specific configuration for `delete_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :delete_reservation_group ## # RPC-specific configuration for `list_reservation_groups` # @return [::Gapic::Config::Method] # attr_reader :list_reservation_groups # @private def initialize parent_rpcs = nil create_reservation_config = parent_rpcs.create_reservation if parent_rpcs.respond_to? :create_reservation @create_reservation = ::Gapic::Config::Method.new create_reservation_config list_reservations_config = parent_rpcs.list_reservations if parent_rpcs.respond_to? :list_reservations @list_reservations = ::Gapic::Config::Method.new list_reservations_config get_reservation_config = parent_rpcs.get_reservation if parent_rpcs.respond_to? :get_reservation @get_reservation = ::Gapic::Config::Method.new get_reservation_config delete_reservation_config = parent_rpcs.delete_reservation if parent_rpcs.respond_to? :delete_reservation @delete_reservation = ::Gapic::Config::Method.new delete_reservation_config update_reservation_config = parent_rpcs.update_reservation if parent_rpcs.respond_to? :update_reservation @update_reservation = ::Gapic::Config::Method.new update_reservation_config failover_reservation_config = parent_rpcs.failover_reservation if parent_rpcs.respond_to? :failover_reservation @failover_reservation = ::Gapic::Config::Method.new failover_reservation_config create_capacity_commitment_config = parent_rpcs.create_capacity_commitment if parent_rpcs.respond_to? :create_capacity_commitment @create_capacity_commitment = ::Gapic::Config::Method.new create_capacity_commitment_config list_capacity_commitments_config = parent_rpcs.list_capacity_commitments if parent_rpcs.respond_to? :list_capacity_commitments @list_capacity_commitments = ::Gapic::Config::Method.new list_capacity_commitments_config get_capacity_commitment_config = parent_rpcs.get_capacity_commitment if parent_rpcs.respond_to? :get_capacity_commitment @get_capacity_commitment = ::Gapic::Config::Method.new get_capacity_commitment_config delete_capacity_commitment_config = parent_rpcs.delete_capacity_commitment if parent_rpcs.respond_to? :delete_capacity_commitment @delete_capacity_commitment = ::Gapic::Config::Method.new delete_capacity_commitment_config update_capacity_commitment_config = parent_rpcs.update_capacity_commitment if parent_rpcs.respond_to? :update_capacity_commitment @update_capacity_commitment = ::Gapic::Config::Method.new update_capacity_commitment_config split_capacity_commitment_config = parent_rpcs.split_capacity_commitment if parent_rpcs.respond_to? :split_capacity_commitment @split_capacity_commitment = ::Gapic::Config::Method.new split_capacity_commitment_config merge_capacity_commitments_config = parent_rpcs.merge_capacity_commitments if parent_rpcs.respond_to? :merge_capacity_commitments @merge_capacity_commitments = ::Gapic::Config::Method.new merge_capacity_commitments_config create_assignment_config = parent_rpcs.create_assignment if parent_rpcs.respond_to? :create_assignment @create_assignment = ::Gapic::Config::Method.new create_assignment_config list_assignments_config = parent_rpcs.list_assignments if parent_rpcs.respond_to? :list_assignments @list_assignments = ::Gapic::Config::Method.new list_assignments_config delete_assignment_config = parent_rpcs.delete_assignment if parent_rpcs.respond_to? :delete_assignment @delete_assignment = ::Gapic::Config::Method.new delete_assignment_config search_assignments_config = parent_rpcs.search_assignments if parent_rpcs.respond_to? :search_assignments @search_assignments = ::Gapic::Config::Method.new search_assignments_config search_all_assignments_config = parent_rpcs.search_all_assignments if parent_rpcs.respond_to? :search_all_assignments @search_all_assignments = ::Gapic::Config::Method.new search_all_assignments_config move_assignment_config = parent_rpcs.move_assignment if parent_rpcs.respond_to? :move_assignment @move_assignment = ::Gapic::Config::Method.new move_assignment_config update_assignment_config = parent_rpcs.update_assignment if parent_rpcs.respond_to? :update_assignment @update_assignment = ::Gapic::Config::Method.new update_assignment_config get_bi_reservation_config = parent_rpcs.get_bi_reservation if parent_rpcs.respond_to? :get_bi_reservation @get_bi_reservation = ::Gapic::Config::Method.new get_bi_reservation_config update_bi_reservation_config = parent_rpcs.update_bi_reservation if parent_rpcs.respond_to? :update_bi_reservation @update_bi_reservation = ::Gapic::Config::Method.new update_bi_reservation_config get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config = parent_rpcs. if parent_rpcs.respond_to? :test_iam_permissions @test_iam_permissions = ::Gapic::Config::Method.new create_reservation_group_config = parent_rpcs.create_reservation_group if parent_rpcs.respond_to? :create_reservation_group @create_reservation_group = ::Gapic::Config::Method.new create_reservation_group_config get_reservation_group_config = parent_rpcs.get_reservation_group if parent_rpcs.respond_to? :get_reservation_group @get_reservation_group = ::Gapic::Config::Method.new get_reservation_group_config delete_reservation_group_config = parent_rpcs.delete_reservation_group if parent_rpcs.respond_to? :delete_reservation_group @delete_reservation_group = ::Gapic::Config::Method.new delete_reservation_group_config list_reservation_groups_config = parent_rpcs.list_reservation_groups if parent_rpcs.respond_to? :list_reservation_groups @list_reservation_groups = ::Gapic::Config::Method.new list_reservation_groups_config yield self if block_given? end end end |
#quota_project ⇒ ::String
A separate project against which to charge quota.
3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 |
# File 'lib/google/cloud/bigquery/reservation/v1/reservation_service/client.rb', line 3227 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "bigqueryreservation.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel 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(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the ReservationService 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 gRPC 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_reservation` # @return [::Gapic::Config::Method] # attr_reader :create_reservation ## # RPC-specific configuration for `list_reservations` # @return [::Gapic::Config::Method] # attr_reader :list_reservations ## # RPC-specific configuration for `get_reservation` # @return [::Gapic::Config::Method] # attr_reader :get_reservation ## # RPC-specific configuration for `delete_reservation` # @return [::Gapic::Config::Method] # attr_reader :delete_reservation ## # RPC-specific configuration for `update_reservation` # @return [::Gapic::Config::Method] # attr_reader :update_reservation ## # RPC-specific configuration for `failover_reservation` # @return [::Gapic::Config::Method] # attr_reader :failover_reservation ## # RPC-specific configuration for `create_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :create_capacity_commitment ## # RPC-specific configuration for `list_capacity_commitments` # @return [::Gapic::Config::Method] # attr_reader :list_capacity_commitments ## # RPC-specific configuration for `get_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :get_capacity_commitment ## # RPC-specific configuration for `delete_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :delete_capacity_commitment ## # RPC-specific configuration for `update_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :update_capacity_commitment ## # RPC-specific configuration for `split_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :split_capacity_commitment ## # RPC-specific configuration for `merge_capacity_commitments` # @return [::Gapic::Config::Method] # attr_reader :merge_capacity_commitments ## # RPC-specific configuration for `create_assignment` # @return [::Gapic::Config::Method] # attr_reader :create_assignment ## # RPC-specific configuration for `list_assignments` # @return [::Gapic::Config::Method] # attr_reader :list_assignments ## # RPC-specific configuration for `delete_assignment` # @return [::Gapic::Config::Method] # attr_reader :delete_assignment ## # RPC-specific configuration for `search_assignments` # @return [::Gapic::Config::Method] # attr_reader :search_assignments ## # RPC-specific configuration for `search_all_assignments` # @return [::Gapic::Config::Method] # attr_reader :search_all_assignments ## # RPC-specific configuration for `move_assignment` # @return [::Gapic::Config::Method] # attr_reader :move_assignment ## # RPC-specific configuration for `update_assignment` # @return [::Gapic::Config::Method] # attr_reader :update_assignment ## # RPC-specific configuration for `get_bi_reservation` # @return [::Gapic::Config::Method] # attr_reader :get_bi_reservation ## # RPC-specific configuration for `update_bi_reservation` # @return [::Gapic::Config::Method] # attr_reader :update_bi_reservation ## # RPC-specific configuration for `get_iam_policy` # @return [::Gapic::Config::Method] # attr_reader :get_iam_policy ## # RPC-specific configuration for `set_iam_policy` # @return [::Gapic::Config::Method] # attr_reader :set_iam_policy ## # RPC-specific configuration for `test_iam_permissions` # @return [::Gapic::Config::Method] # attr_reader :test_iam_permissions ## # RPC-specific configuration for `create_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :create_reservation_group ## # RPC-specific configuration for `get_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :get_reservation_group ## # RPC-specific configuration for `delete_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :delete_reservation_group ## # RPC-specific configuration for `list_reservation_groups` # @return [::Gapic::Config::Method] # attr_reader :list_reservation_groups # @private def initialize parent_rpcs = nil create_reservation_config = parent_rpcs.create_reservation if parent_rpcs.respond_to? :create_reservation @create_reservation = ::Gapic::Config::Method.new create_reservation_config list_reservations_config = parent_rpcs.list_reservations if parent_rpcs.respond_to? :list_reservations @list_reservations = ::Gapic::Config::Method.new list_reservations_config get_reservation_config = parent_rpcs.get_reservation if parent_rpcs.respond_to? :get_reservation @get_reservation = ::Gapic::Config::Method.new get_reservation_config delete_reservation_config = parent_rpcs.delete_reservation if parent_rpcs.respond_to? :delete_reservation @delete_reservation = ::Gapic::Config::Method.new delete_reservation_config update_reservation_config = parent_rpcs.update_reservation if parent_rpcs.respond_to? :update_reservation @update_reservation = ::Gapic::Config::Method.new update_reservation_config failover_reservation_config = parent_rpcs.failover_reservation if parent_rpcs.respond_to? :failover_reservation @failover_reservation = ::Gapic::Config::Method.new failover_reservation_config create_capacity_commitment_config = parent_rpcs.create_capacity_commitment if parent_rpcs.respond_to? :create_capacity_commitment @create_capacity_commitment = ::Gapic::Config::Method.new create_capacity_commitment_config list_capacity_commitments_config = parent_rpcs.list_capacity_commitments if parent_rpcs.respond_to? :list_capacity_commitments @list_capacity_commitments = ::Gapic::Config::Method.new list_capacity_commitments_config get_capacity_commitment_config = parent_rpcs.get_capacity_commitment if parent_rpcs.respond_to? :get_capacity_commitment @get_capacity_commitment = ::Gapic::Config::Method.new get_capacity_commitment_config delete_capacity_commitment_config = parent_rpcs.delete_capacity_commitment if parent_rpcs.respond_to? :delete_capacity_commitment @delete_capacity_commitment = ::Gapic::Config::Method.new delete_capacity_commitment_config update_capacity_commitment_config = parent_rpcs.update_capacity_commitment if parent_rpcs.respond_to? :update_capacity_commitment @update_capacity_commitment = ::Gapic::Config::Method.new update_capacity_commitment_config split_capacity_commitment_config = parent_rpcs.split_capacity_commitment if parent_rpcs.respond_to? :split_capacity_commitment @split_capacity_commitment = ::Gapic::Config::Method.new split_capacity_commitment_config merge_capacity_commitments_config = parent_rpcs.merge_capacity_commitments if parent_rpcs.respond_to? :merge_capacity_commitments @merge_capacity_commitments = ::Gapic::Config::Method.new merge_capacity_commitments_config create_assignment_config = parent_rpcs.create_assignment if parent_rpcs.respond_to? :create_assignment @create_assignment = ::Gapic::Config::Method.new create_assignment_config list_assignments_config = parent_rpcs.list_assignments if parent_rpcs.respond_to? :list_assignments @list_assignments = ::Gapic::Config::Method.new list_assignments_config delete_assignment_config = parent_rpcs.delete_assignment if parent_rpcs.respond_to? :delete_assignment @delete_assignment = ::Gapic::Config::Method.new delete_assignment_config search_assignments_config = parent_rpcs.search_assignments if parent_rpcs.respond_to? :search_assignments @search_assignments = ::Gapic::Config::Method.new search_assignments_config search_all_assignments_config = parent_rpcs.search_all_assignments if parent_rpcs.respond_to? :search_all_assignments @search_all_assignments = ::Gapic::Config::Method.new search_all_assignments_config move_assignment_config = parent_rpcs.move_assignment if parent_rpcs.respond_to? :move_assignment @move_assignment = ::Gapic::Config::Method.new move_assignment_config update_assignment_config = parent_rpcs.update_assignment if parent_rpcs.respond_to? :update_assignment @update_assignment = ::Gapic::Config::Method.new update_assignment_config get_bi_reservation_config = parent_rpcs.get_bi_reservation if parent_rpcs.respond_to? :get_bi_reservation @get_bi_reservation = ::Gapic::Config::Method.new get_bi_reservation_config update_bi_reservation_config = parent_rpcs.update_bi_reservation if parent_rpcs.respond_to? :update_bi_reservation @update_bi_reservation = ::Gapic::Config::Method.new update_bi_reservation_config get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config = parent_rpcs. if parent_rpcs.respond_to? :test_iam_permissions @test_iam_permissions = ::Gapic::Config::Method.new create_reservation_group_config = parent_rpcs.create_reservation_group if parent_rpcs.respond_to? :create_reservation_group @create_reservation_group = ::Gapic::Config::Method.new create_reservation_group_config get_reservation_group_config = parent_rpcs.get_reservation_group if parent_rpcs.respond_to? :get_reservation_group @get_reservation_group = ::Gapic::Config::Method.new get_reservation_group_config delete_reservation_group_config = parent_rpcs.delete_reservation_group if parent_rpcs.respond_to? :delete_reservation_group @delete_reservation_group = ::Gapic::Config::Method.new delete_reservation_group_config list_reservation_groups_config = parent_rpcs.list_reservation_groups if parent_rpcs.respond_to? :list_reservation_groups @list_reservation_groups = ::Gapic::Config::Method.new list_reservation_groups_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.
3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 |
# File 'lib/google/cloud/bigquery/reservation/v1/reservation_service/client.rb', line 3227 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "bigqueryreservation.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel 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(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the ReservationService 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 gRPC 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_reservation` # @return [::Gapic::Config::Method] # attr_reader :create_reservation ## # RPC-specific configuration for `list_reservations` # @return [::Gapic::Config::Method] # attr_reader :list_reservations ## # RPC-specific configuration for `get_reservation` # @return [::Gapic::Config::Method] # attr_reader :get_reservation ## # RPC-specific configuration for `delete_reservation` # @return [::Gapic::Config::Method] # attr_reader :delete_reservation ## # RPC-specific configuration for `update_reservation` # @return [::Gapic::Config::Method] # attr_reader :update_reservation ## # RPC-specific configuration for `failover_reservation` # @return [::Gapic::Config::Method] # attr_reader :failover_reservation ## # RPC-specific configuration for `create_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :create_capacity_commitment ## # RPC-specific configuration for `list_capacity_commitments` # @return [::Gapic::Config::Method] # attr_reader :list_capacity_commitments ## # RPC-specific configuration for `get_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :get_capacity_commitment ## # RPC-specific configuration for `delete_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :delete_capacity_commitment ## # RPC-specific configuration for `update_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :update_capacity_commitment ## # RPC-specific configuration for `split_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :split_capacity_commitment ## # RPC-specific configuration for `merge_capacity_commitments` # @return [::Gapic::Config::Method] # attr_reader :merge_capacity_commitments ## # RPC-specific configuration for `create_assignment` # @return [::Gapic::Config::Method] # attr_reader :create_assignment ## # RPC-specific configuration for `list_assignments` # @return [::Gapic::Config::Method] # attr_reader :list_assignments ## # RPC-specific configuration for `delete_assignment` # @return [::Gapic::Config::Method] # attr_reader :delete_assignment ## # RPC-specific configuration for `search_assignments` # @return [::Gapic::Config::Method] # attr_reader :search_assignments ## # RPC-specific configuration for `search_all_assignments` # @return [::Gapic::Config::Method] # attr_reader :search_all_assignments ## # RPC-specific configuration for `move_assignment` # @return [::Gapic::Config::Method] # attr_reader :move_assignment ## # RPC-specific configuration for `update_assignment` # @return [::Gapic::Config::Method] # attr_reader :update_assignment ## # RPC-specific configuration for `get_bi_reservation` # @return [::Gapic::Config::Method] # attr_reader :get_bi_reservation ## # RPC-specific configuration for `update_bi_reservation` # @return [::Gapic::Config::Method] # attr_reader :update_bi_reservation ## # RPC-specific configuration for `get_iam_policy` # @return [::Gapic::Config::Method] # attr_reader :get_iam_policy ## # RPC-specific configuration for `set_iam_policy` # @return [::Gapic::Config::Method] # attr_reader :set_iam_policy ## # RPC-specific configuration for `test_iam_permissions` # @return [::Gapic::Config::Method] # attr_reader :test_iam_permissions ## # RPC-specific configuration for `create_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :create_reservation_group ## # RPC-specific configuration for `get_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :get_reservation_group ## # RPC-specific configuration for `delete_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :delete_reservation_group ## # RPC-specific configuration for `list_reservation_groups` # @return [::Gapic::Config::Method] # attr_reader :list_reservation_groups # @private def initialize parent_rpcs = nil create_reservation_config = parent_rpcs.create_reservation if parent_rpcs.respond_to? :create_reservation @create_reservation = ::Gapic::Config::Method.new create_reservation_config list_reservations_config = parent_rpcs.list_reservations if parent_rpcs.respond_to? :list_reservations @list_reservations = ::Gapic::Config::Method.new list_reservations_config get_reservation_config = parent_rpcs.get_reservation if parent_rpcs.respond_to? :get_reservation @get_reservation = ::Gapic::Config::Method.new get_reservation_config delete_reservation_config = parent_rpcs.delete_reservation if parent_rpcs.respond_to? :delete_reservation @delete_reservation = ::Gapic::Config::Method.new delete_reservation_config update_reservation_config = parent_rpcs.update_reservation if parent_rpcs.respond_to? :update_reservation @update_reservation = ::Gapic::Config::Method.new update_reservation_config failover_reservation_config = parent_rpcs.failover_reservation if parent_rpcs.respond_to? :failover_reservation @failover_reservation = ::Gapic::Config::Method.new failover_reservation_config create_capacity_commitment_config = parent_rpcs.create_capacity_commitment if parent_rpcs.respond_to? :create_capacity_commitment @create_capacity_commitment = ::Gapic::Config::Method.new create_capacity_commitment_config list_capacity_commitments_config = parent_rpcs.list_capacity_commitments if parent_rpcs.respond_to? :list_capacity_commitments @list_capacity_commitments = ::Gapic::Config::Method.new list_capacity_commitments_config get_capacity_commitment_config = parent_rpcs.get_capacity_commitment if parent_rpcs.respond_to? :get_capacity_commitment @get_capacity_commitment = ::Gapic::Config::Method.new get_capacity_commitment_config delete_capacity_commitment_config = parent_rpcs.delete_capacity_commitment if parent_rpcs.respond_to? :delete_capacity_commitment @delete_capacity_commitment = ::Gapic::Config::Method.new delete_capacity_commitment_config update_capacity_commitment_config = parent_rpcs.update_capacity_commitment if parent_rpcs.respond_to? :update_capacity_commitment @update_capacity_commitment = ::Gapic::Config::Method.new update_capacity_commitment_config split_capacity_commitment_config = parent_rpcs.split_capacity_commitment if parent_rpcs.respond_to? :split_capacity_commitment @split_capacity_commitment = ::Gapic::Config::Method.new split_capacity_commitment_config merge_capacity_commitments_config = parent_rpcs.merge_capacity_commitments if parent_rpcs.respond_to? :merge_capacity_commitments @merge_capacity_commitments = ::Gapic::Config::Method.new merge_capacity_commitments_config create_assignment_config = parent_rpcs.create_assignment if parent_rpcs.respond_to? :create_assignment @create_assignment = ::Gapic::Config::Method.new create_assignment_config list_assignments_config = parent_rpcs.list_assignments if parent_rpcs.respond_to? :list_assignments @list_assignments = ::Gapic::Config::Method.new list_assignments_config delete_assignment_config = parent_rpcs.delete_assignment if parent_rpcs.respond_to? :delete_assignment @delete_assignment = ::Gapic::Config::Method.new delete_assignment_config search_assignments_config = parent_rpcs.search_assignments if parent_rpcs.respond_to? :search_assignments @search_assignments = ::Gapic::Config::Method.new search_assignments_config search_all_assignments_config = parent_rpcs.search_all_assignments if parent_rpcs.respond_to? :search_all_assignments @search_all_assignments = ::Gapic::Config::Method.new search_all_assignments_config move_assignment_config = parent_rpcs.move_assignment if parent_rpcs.respond_to? :move_assignment @move_assignment = ::Gapic::Config::Method.new move_assignment_config update_assignment_config = parent_rpcs.update_assignment if parent_rpcs.respond_to? :update_assignment @update_assignment = ::Gapic::Config::Method.new update_assignment_config get_bi_reservation_config = parent_rpcs.get_bi_reservation if parent_rpcs.respond_to? :get_bi_reservation @get_bi_reservation = ::Gapic::Config::Method.new get_bi_reservation_config update_bi_reservation_config = parent_rpcs.update_bi_reservation if parent_rpcs.respond_to? :update_bi_reservation @update_bi_reservation = ::Gapic::Config::Method.new update_bi_reservation_config get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config = parent_rpcs. if parent_rpcs.respond_to? :test_iam_permissions @test_iam_permissions = ::Gapic::Config::Method.new create_reservation_group_config = parent_rpcs.create_reservation_group if parent_rpcs.respond_to? :create_reservation_group @create_reservation_group = ::Gapic::Config::Method.new create_reservation_group_config get_reservation_group_config = parent_rpcs.get_reservation_group if parent_rpcs.respond_to? :get_reservation_group @get_reservation_group = ::Gapic::Config::Method.new get_reservation_group_config delete_reservation_group_config = parent_rpcs.delete_reservation_group if parent_rpcs.respond_to? :delete_reservation_group @delete_reservation_group = ::Gapic::Config::Method.new delete_reservation_group_config list_reservation_groups_config = parent_rpcs.list_reservation_groups if parent_rpcs.respond_to? :list_reservation_groups @list_reservation_groups = ::Gapic::Config::Method.new list_reservation_groups_config yield self if block_given? end end end |
#scope ⇒ ::Array<::String>
The OAuth scopes
3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 |
# File 'lib/google/cloud/bigquery/reservation/v1/reservation_service/client.rb', line 3227 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "bigqueryreservation.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel 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(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the ReservationService 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 gRPC 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_reservation` # @return [::Gapic::Config::Method] # attr_reader :create_reservation ## # RPC-specific configuration for `list_reservations` # @return [::Gapic::Config::Method] # attr_reader :list_reservations ## # RPC-specific configuration for `get_reservation` # @return [::Gapic::Config::Method] # attr_reader :get_reservation ## # RPC-specific configuration for `delete_reservation` # @return [::Gapic::Config::Method] # attr_reader :delete_reservation ## # RPC-specific configuration for `update_reservation` # @return [::Gapic::Config::Method] # attr_reader :update_reservation ## # RPC-specific configuration for `failover_reservation` # @return [::Gapic::Config::Method] # attr_reader :failover_reservation ## # RPC-specific configuration for `create_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :create_capacity_commitment ## # RPC-specific configuration for `list_capacity_commitments` # @return [::Gapic::Config::Method] # attr_reader :list_capacity_commitments ## # RPC-specific configuration for `get_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :get_capacity_commitment ## # RPC-specific configuration for `delete_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :delete_capacity_commitment ## # RPC-specific configuration for `update_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :update_capacity_commitment ## # RPC-specific configuration for `split_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :split_capacity_commitment ## # RPC-specific configuration for `merge_capacity_commitments` # @return [::Gapic::Config::Method] # attr_reader :merge_capacity_commitments ## # RPC-specific configuration for `create_assignment` # @return [::Gapic::Config::Method] # attr_reader :create_assignment ## # RPC-specific configuration for `list_assignments` # @return [::Gapic::Config::Method] # attr_reader :list_assignments ## # RPC-specific configuration for `delete_assignment` # @return [::Gapic::Config::Method] # attr_reader :delete_assignment ## # RPC-specific configuration for `search_assignments` # @return [::Gapic::Config::Method] # attr_reader :search_assignments ## # RPC-specific configuration for `search_all_assignments` # @return [::Gapic::Config::Method] # attr_reader :search_all_assignments ## # RPC-specific configuration for `move_assignment` # @return [::Gapic::Config::Method] # attr_reader :move_assignment ## # RPC-specific configuration for `update_assignment` # @return [::Gapic::Config::Method] # attr_reader :update_assignment ## # RPC-specific configuration for `get_bi_reservation` # @return [::Gapic::Config::Method] # attr_reader :get_bi_reservation ## # RPC-specific configuration for `update_bi_reservation` # @return [::Gapic::Config::Method] # attr_reader :update_bi_reservation ## # RPC-specific configuration for `get_iam_policy` # @return [::Gapic::Config::Method] # attr_reader :get_iam_policy ## # RPC-specific configuration for `set_iam_policy` # @return [::Gapic::Config::Method] # attr_reader :set_iam_policy ## # RPC-specific configuration for `test_iam_permissions` # @return [::Gapic::Config::Method] # attr_reader :test_iam_permissions ## # RPC-specific configuration for `create_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :create_reservation_group ## # RPC-specific configuration for `get_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :get_reservation_group ## # RPC-specific configuration for `delete_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :delete_reservation_group ## # RPC-specific configuration for `list_reservation_groups` # @return [::Gapic::Config::Method] # attr_reader :list_reservation_groups # @private def initialize parent_rpcs = nil create_reservation_config = parent_rpcs.create_reservation if parent_rpcs.respond_to? :create_reservation @create_reservation = ::Gapic::Config::Method.new create_reservation_config list_reservations_config = parent_rpcs.list_reservations if parent_rpcs.respond_to? :list_reservations @list_reservations = ::Gapic::Config::Method.new list_reservations_config get_reservation_config = parent_rpcs.get_reservation if parent_rpcs.respond_to? :get_reservation @get_reservation = ::Gapic::Config::Method.new get_reservation_config delete_reservation_config = parent_rpcs.delete_reservation if parent_rpcs.respond_to? :delete_reservation @delete_reservation = ::Gapic::Config::Method.new delete_reservation_config update_reservation_config = parent_rpcs.update_reservation if parent_rpcs.respond_to? :update_reservation @update_reservation = ::Gapic::Config::Method.new update_reservation_config failover_reservation_config = parent_rpcs.failover_reservation if parent_rpcs.respond_to? :failover_reservation @failover_reservation = ::Gapic::Config::Method.new failover_reservation_config create_capacity_commitment_config = parent_rpcs.create_capacity_commitment if parent_rpcs.respond_to? :create_capacity_commitment @create_capacity_commitment = ::Gapic::Config::Method.new create_capacity_commitment_config list_capacity_commitments_config = parent_rpcs.list_capacity_commitments if parent_rpcs.respond_to? :list_capacity_commitments @list_capacity_commitments = ::Gapic::Config::Method.new list_capacity_commitments_config get_capacity_commitment_config = parent_rpcs.get_capacity_commitment if parent_rpcs.respond_to? :get_capacity_commitment @get_capacity_commitment = ::Gapic::Config::Method.new get_capacity_commitment_config delete_capacity_commitment_config = parent_rpcs.delete_capacity_commitment if parent_rpcs.respond_to? :delete_capacity_commitment @delete_capacity_commitment = ::Gapic::Config::Method.new delete_capacity_commitment_config update_capacity_commitment_config = parent_rpcs.update_capacity_commitment if parent_rpcs.respond_to? :update_capacity_commitment @update_capacity_commitment = ::Gapic::Config::Method.new update_capacity_commitment_config split_capacity_commitment_config = parent_rpcs.split_capacity_commitment if parent_rpcs.respond_to? :split_capacity_commitment @split_capacity_commitment = ::Gapic::Config::Method.new split_capacity_commitment_config merge_capacity_commitments_config = parent_rpcs.merge_capacity_commitments if parent_rpcs.respond_to? :merge_capacity_commitments @merge_capacity_commitments = ::Gapic::Config::Method.new merge_capacity_commitments_config create_assignment_config = parent_rpcs.create_assignment if parent_rpcs.respond_to? :create_assignment @create_assignment = ::Gapic::Config::Method.new create_assignment_config list_assignments_config = parent_rpcs.list_assignments if parent_rpcs.respond_to? :list_assignments @list_assignments = ::Gapic::Config::Method.new list_assignments_config delete_assignment_config = parent_rpcs.delete_assignment if parent_rpcs.respond_to? :delete_assignment @delete_assignment = ::Gapic::Config::Method.new delete_assignment_config search_assignments_config = parent_rpcs.search_assignments if parent_rpcs.respond_to? :search_assignments @search_assignments = ::Gapic::Config::Method.new search_assignments_config search_all_assignments_config = parent_rpcs.search_all_assignments if parent_rpcs.respond_to? :search_all_assignments @search_all_assignments = ::Gapic::Config::Method.new search_all_assignments_config move_assignment_config = parent_rpcs.move_assignment if parent_rpcs.respond_to? :move_assignment @move_assignment = ::Gapic::Config::Method.new move_assignment_config update_assignment_config = parent_rpcs.update_assignment if parent_rpcs.respond_to? :update_assignment @update_assignment = ::Gapic::Config::Method.new update_assignment_config get_bi_reservation_config = parent_rpcs.get_bi_reservation if parent_rpcs.respond_to? :get_bi_reservation @get_bi_reservation = ::Gapic::Config::Method.new get_bi_reservation_config update_bi_reservation_config = parent_rpcs.update_bi_reservation if parent_rpcs.respond_to? :update_bi_reservation @update_bi_reservation = ::Gapic::Config::Method.new update_bi_reservation_config get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config = parent_rpcs. if parent_rpcs.respond_to? :test_iam_permissions @test_iam_permissions = ::Gapic::Config::Method.new create_reservation_group_config = parent_rpcs.create_reservation_group if parent_rpcs.respond_to? :create_reservation_group @create_reservation_group = ::Gapic::Config::Method.new create_reservation_group_config get_reservation_group_config = parent_rpcs.get_reservation_group if parent_rpcs.respond_to? :get_reservation_group @get_reservation_group = ::Gapic::Config::Method.new get_reservation_group_config delete_reservation_group_config = parent_rpcs.delete_reservation_group if parent_rpcs.respond_to? :delete_reservation_group @delete_reservation_group = ::Gapic::Config::Method.new delete_reservation_group_config list_reservation_groups_config = parent_rpcs.list_reservation_groups if parent_rpcs.respond_to? :list_reservation_groups @list_reservation_groups = ::Gapic::Config::Method.new list_reservation_groups_config yield self if block_given? end end end |
#timeout ⇒ ::Numeric
The call timeout in seconds.
3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 |
# File 'lib/google/cloud/bigquery/reservation/v1/reservation_service/client.rb', line 3227 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "bigqueryreservation.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel 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(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the ReservationService 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 gRPC 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_reservation` # @return [::Gapic::Config::Method] # attr_reader :create_reservation ## # RPC-specific configuration for `list_reservations` # @return [::Gapic::Config::Method] # attr_reader :list_reservations ## # RPC-specific configuration for `get_reservation` # @return [::Gapic::Config::Method] # attr_reader :get_reservation ## # RPC-specific configuration for `delete_reservation` # @return [::Gapic::Config::Method] # attr_reader :delete_reservation ## # RPC-specific configuration for `update_reservation` # @return [::Gapic::Config::Method] # attr_reader :update_reservation ## # RPC-specific configuration for `failover_reservation` # @return [::Gapic::Config::Method] # attr_reader :failover_reservation ## # RPC-specific configuration for `create_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :create_capacity_commitment ## # RPC-specific configuration for `list_capacity_commitments` # @return [::Gapic::Config::Method] # attr_reader :list_capacity_commitments ## # RPC-specific configuration for `get_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :get_capacity_commitment ## # RPC-specific configuration for `delete_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :delete_capacity_commitment ## # RPC-specific configuration for `update_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :update_capacity_commitment ## # RPC-specific configuration for `split_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :split_capacity_commitment ## # RPC-specific configuration for `merge_capacity_commitments` # @return [::Gapic::Config::Method] # attr_reader :merge_capacity_commitments ## # RPC-specific configuration for `create_assignment` # @return [::Gapic::Config::Method] # attr_reader :create_assignment ## # RPC-specific configuration for `list_assignments` # @return [::Gapic::Config::Method] # attr_reader :list_assignments ## # RPC-specific configuration for `delete_assignment` # @return [::Gapic::Config::Method] # attr_reader :delete_assignment ## # RPC-specific configuration for `search_assignments` # @return [::Gapic::Config::Method] # attr_reader :search_assignments ## # RPC-specific configuration for `search_all_assignments` # @return [::Gapic::Config::Method] # attr_reader :search_all_assignments ## # RPC-specific configuration for `move_assignment` # @return [::Gapic::Config::Method] # attr_reader :move_assignment ## # RPC-specific configuration for `update_assignment` # @return [::Gapic::Config::Method] # attr_reader :update_assignment ## # RPC-specific configuration for `get_bi_reservation` # @return [::Gapic::Config::Method] # attr_reader :get_bi_reservation ## # RPC-specific configuration for `update_bi_reservation` # @return [::Gapic::Config::Method] # attr_reader :update_bi_reservation ## # RPC-specific configuration for `get_iam_policy` # @return [::Gapic::Config::Method] # attr_reader :get_iam_policy ## # RPC-specific configuration for `set_iam_policy` # @return [::Gapic::Config::Method] # attr_reader :set_iam_policy ## # RPC-specific configuration for `test_iam_permissions` # @return [::Gapic::Config::Method] # attr_reader :test_iam_permissions ## # RPC-specific configuration for `create_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :create_reservation_group ## # RPC-specific configuration for `get_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :get_reservation_group ## # RPC-specific configuration for `delete_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :delete_reservation_group ## # RPC-specific configuration for `list_reservation_groups` # @return [::Gapic::Config::Method] # attr_reader :list_reservation_groups # @private def initialize parent_rpcs = nil create_reservation_config = parent_rpcs.create_reservation if parent_rpcs.respond_to? :create_reservation @create_reservation = ::Gapic::Config::Method.new create_reservation_config list_reservations_config = parent_rpcs.list_reservations if parent_rpcs.respond_to? :list_reservations @list_reservations = ::Gapic::Config::Method.new list_reservations_config get_reservation_config = parent_rpcs.get_reservation if parent_rpcs.respond_to? :get_reservation @get_reservation = ::Gapic::Config::Method.new get_reservation_config delete_reservation_config = parent_rpcs.delete_reservation if parent_rpcs.respond_to? :delete_reservation @delete_reservation = ::Gapic::Config::Method.new delete_reservation_config update_reservation_config = parent_rpcs.update_reservation if parent_rpcs.respond_to? :update_reservation @update_reservation = ::Gapic::Config::Method.new update_reservation_config failover_reservation_config = parent_rpcs.failover_reservation if parent_rpcs.respond_to? :failover_reservation @failover_reservation = ::Gapic::Config::Method.new failover_reservation_config create_capacity_commitment_config = parent_rpcs.create_capacity_commitment if parent_rpcs.respond_to? :create_capacity_commitment @create_capacity_commitment = ::Gapic::Config::Method.new create_capacity_commitment_config list_capacity_commitments_config = parent_rpcs.list_capacity_commitments if parent_rpcs.respond_to? :list_capacity_commitments @list_capacity_commitments = ::Gapic::Config::Method.new list_capacity_commitments_config get_capacity_commitment_config = parent_rpcs.get_capacity_commitment if parent_rpcs.respond_to? :get_capacity_commitment @get_capacity_commitment = ::Gapic::Config::Method.new get_capacity_commitment_config delete_capacity_commitment_config = parent_rpcs.delete_capacity_commitment if parent_rpcs.respond_to? :delete_capacity_commitment @delete_capacity_commitment = ::Gapic::Config::Method.new delete_capacity_commitment_config update_capacity_commitment_config = parent_rpcs.update_capacity_commitment if parent_rpcs.respond_to? :update_capacity_commitment @update_capacity_commitment = ::Gapic::Config::Method.new update_capacity_commitment_config split_capacity_commitment_config = parent_rpcs.split_capacity_commitment if parent_rpcs.respond_to? :split_capacity_commitment @split_capacity_commitment = ::Gapic::Config::Method.new split_capacity_commitment_config merge_capacity_commitments_config = parent_rpcs.merge_capacity_commitments if parent_rpcs.respond_to? :merge_capacity_commitments @merge_capacity_commitments = ::Gapic::Config::Method.new merge_capacity_commitments_config create_assignment_config = parent_rpcs.create_assignment if parent_rpcs.respond_to? :create_assignment @create_assignment = ::Gapic::Config::Method.new create_assignment_config list_assignments_config = parent_rpcs.list_assignments if parent_rpcs.respond_to? :list_assignments @list_assignments = ::Gapic::Config::Method.new list_assignments_config delete_assignment_config = parent_rpcs.delete_assignment if parent_rpcs.respond_to? :delete_assignment @delete_assignment = ::Gapic::Config::Method.new delete_assignment_config search_assignments_config = parent_rpcs.search_assignments if parent_rpcs.respond_to? :search_assignments @search_assignments = ::Gapic::Config::Method.new search_assignments_config search_all_assignments_config = parent_rpcs.search_all_assignments if parent_rpcs.respond_to? :search_all_assignments @search_all_assignments = ::Gapic::Config::Method.new search_all_assignments_config move_assignment_config = parent_rpcs.move_assignment if parent_rpcs.respond_to? :move_assignment @move_assignment = ::Gapic::Config::Method.new move_assignment_config update_assignment_config = parent_rpcs.update_assignment if parent_rpcs.respond_to? :update_assignment @update_assignment = ::Gapic::Config::Method.new update_assignment_config get_bi_reservation_config = parent_rpcs.get_bi_reservation if parent_rpcs.respond_to? :get_bi_reservation @get_bi_reservation = ::Gapic::Config::Method.new get_bi_reservation_config update_bi_reservation_config = parent_rpcs.update_bi_reservation if parent_rpcs.respond_to? :update_bi_reservation @update_bi_reservation = ::Gapic::Config::Method.new update_bi_reservation_config get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config = parent_rpcs. if parent_rpcs.respond_to? :test_iam_permissions @test_iam_permissions = ::Gapic::Config::Method.new create_reservation_group_config = parent_rpcs.create_reservation_group if parent_rpcs.respond_to? :create_reservation_group @create_reservation_group = ::Gapic::Config::Method.new create_reservation_group_config get_reservation_group_config = parent_rpcs.get_reservation_group if parent_rpcs.respond_to? :get_reservation_group @get_reservation_group = ::Gapic::Config::Method.new get_reservation_group_config delete_reservation_group_config = parent_rpcs.delete_reservation_group if parent_rpcs.respond_to? :delete_reservation_group @delete_reservation_group = ::Gapic::Config::Method.new delete_reservation_group_config list_reservation_groups_config = parent_rpcs.list_reservation_groups if parent_rpcs.respond_to? :list_reservation_groups @list_reservation_groups = ::Gapic::Config::Method.new list_reservation_groups_config yield self if block_given? end end end |
#universe_domain ⇒ ::String?
The universe domain within which to make requests. This determines the default endpoint URL. The default value of nil uses the environment universe (usually the default "googleapis.com" universe).
3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 |
# File 'lib/google/cloud/bigquery/reservation/v1/reservation_service/client.rb', line 3227 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "bigqueryreservation.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel 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(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil config_attr :logger, :default, ::Logger, nil, :default # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the ReservationService 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 gRPC 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_reservation` # @return [::Gapic::Config::Method] # attr_reader :create_reservation ## # RPC-specific configuration for `list_reservations` # @return [::Gapic::Config::Method] # attr_reader :list_reservations ## # RPC-specific configuration for `get_reservation` # @return [::Gapic::Config::Method] # attr_reader :get_reservation ## # RPC-specific configuration for `delete_reservation` # @return [::Gapic::Config::Method] # attr_reader :delete_reservation ## # RPC-specific configuration for `update_reservation` # @return [::Gapic::Config::Method] # attr_reader :update_reservation ## # RPC-specific configuration for `failover_reservation` # @return [::Gapic::Config::Method] # attr_reader :failover_reservation ## # RPC-specific configuration for `create_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :create_capacity_commitment ## # RPC-specific configuration for `list_capacity_commitments` # @return [::Gapic::Config::Method] # attr_reader :list_capacity_commitments ## # RPC-specific configuration for `get_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :get_capacity_commitment ## # RPC-specific configuration for `delete_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :delete_capacity_commitment ## # RPC-specific configuration for `update_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :update_capacity_commitment ## # RPC-specific configuration for `split_capacity_commitment` # @return [::Gapic::Config::Method] # attr_reader :split_capacity_commitment ## # RPC-specific configuration for `merge_capacity_commitments` # @return [::Gapic::Config::Method] # attr_reader :merge_capacity_commitments ## # RPC-specific configuration for `create_assignment` # @return [::Gapic::Config::Method] # attr_reader :create_assignment ## # RPC-specific configuration for `list_assignments` # @return [::Gapic::Config::Method] # attr_reader :list_assignments ## # RPC-specific configuration for `delete_assignment` # @return [::Gapic::Config::Method] # attr_reader :delete_assignment ## # RPC-specific configuration for `search_assignments` # @return [::Gapic::Config::Method] # attr_reader :search_assignments ## # RPC-specific configuration for `search_all_assignments` # @return [::Gapic::Config::Method] # attr_reader :search_all_assignments ## # RPC-specific configuration for `move_assignment` # @return [::Gapic::Config::Method] # attr_reader :move_assignment ## # RPC-specific configuration for `update_assignment` # @return [::Gapic::Config::Method] # attr_reader :update_assignment ## # RPC-specific configuration for `get_bi_reservation` # @return [::Gapic::Config::Method] # attr_reader :get_bi_reservation ## # RPC-specific configuration for `update_bi_reservation` # @return [::Gapic::Config::Method] # attr_reader :update_bi_reservation ## # RPC-specific configuration for `get_iam_policy` # @return [::Gapic::Config::Method] # attr_reader :get_iam_policy ## # RPC-specific configuration for `set_iam_policy` # @return [::Gapic::Config::Method] # attr_reader :set_iam_policy ## # RPC-specific configuration for `test_iam_permissions` # @return [::Gapic::Config::Method] # attr_reader :test_iam_permissions ## # RPC-specific configuration for `create_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :create_reservation_group ## # RPC-specific configuration for `get_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :get_reservation_group ## # RPC-specific configuration for `delete_reservation_group` # @return [::Gapic::Config::Method] # attr_reader :delete_reservation_group ## # RPC-specific configuration for `list_reservation_groups` # @return [::Gapic::Config::Method] # attr_reader :list_reservation_groups # @private def initialize parent_rpcs = nil create_reservation_config = parent_rpcs.create_reservation if parent_rpcs.respond_to? :create_reservation @create_reservation = ::Gapic::Config::Method.new create_reservation_config list_reservations_config = parent_rpcs.list_reservations if parent_rpcs.respond_to? :list_reservations @list_reservations = ::Gapic::Config::Method.new list_reservations_config get_reservation_config = parent_rpcs.get_reservation if parent_rpcs.respond_to? :get_reservation @get_reservation = ::Gapic::Config::Method.new get_reservation_config delete_reservation_config = parent_rpcs.delete_reservation if parent_rpcs.respond_to? :delete_reservation @delete_reservation = ::Gapic::Config::Method.new delete_reservation_config update_reservation_config = parent_rpcs.update_reservation if parent_rpcs.respond_to? :update_reservation @update_reservation = ::Gapic::Config::Method.new update_reservation_config failover_reservation_config = parent_rpcs.failover_reservation if parent_rpcs.respond_to? :failover_reservation @failover_reservation = ::Gapic::Config::Method.new failover_reservation_config create_capacity_commitment_config = parent_rpcs.create_capacity_commitment if parent_rpcs.respond_to? :create_capacity_commitment @create_capacity_commitment = ::Gapic::Config::Method.new create_capacity_commitment_config list_capacity_commitments_config = parent_rpcs.list_capacity_commitments if parent_rpcs.respond_to? :list_capacity_commitments @list_capacity_commitments = ::Gapic::Config::Method.new list_capacity_commitments_config get_capacity_commitment_config = parent_rpcs.get_capacity_commitment if parent_rpcs.respond_to? :get_capacity_commitment @get_capacity_commitment = ::Gapic::Config::Method.new get_capacity_commitment_config delete_capacity_commitment_config = parent_rpcs.delete_capacity_commitment if parent_rpcs.respond_to? :delete_capacity_commitment @delete_capacity_commitment = ::Gapic::Config::Method.new delete_capacity_commitment_config update_capacity_commitment_config = parent_rpcs.update_capacity_commitment if parent_rpcs.respond_to? :update_capacity_commitment @update_capacity_commitment = ::Gapic::Config::Method.new update_capacity_commitment_config split_capacity_commitment_config = parent_rpcs.split_capacity_commitment if parent_rpcs.respond_to? :split_capacity_commitment @split_capacity_commitment = ::Gapic::Config::Method.new split_capacity_commitment_config merge_capacity_commitments_config = parent_rpcs.merge_capacity_commitments if parent_rpcs.respond_to? :merge_capacity_commitments @merge_capacity_commitments = ::Gapic::Config::Method.new merge_capacity_commitments_config create_assignment_config = parent_rpcs.create_assignment if parent_rpcs.respond_to? :create_assignment @create_assignment = ::Gapic::Config::Method.new create_assignment_config list_assignments_config = parent_rpcs.list_assignments if parent_rpcs.respond_to? :list_assignments @list_assignments = ::Gapic::Config::Method.new list_assignments_config delete_assignment_config = parent_rpcs.delete_assignment if parent_rpcs.respond_to? :delete_assignment @delete_assignment = ::Gapic::Config::Method.new delete_assignment_config search_assignments_config = parent_rpcs.search_assignments if parent_rpcs.respond_to? :search_assignments @search_assignments = ::Gapic::Config::Method.new search_assignments_config search_all_assignments_config = parent_rpcs.search_all_assignments if parent_rpcs.respond_to? :search_all_assignments @search_all_assignments = ::Gapic::Config::Method.new search_all_assignments_config move_assignment_config = parent_rpcs.move_assignment if parent_rpcs.respond_to? :move_assignment @move_assignment = ::Gapic::Config::Method.new move_assignment_config update_assignment_config = parent_rpcs.update_assignment if parent_rpcs.respond_to? :update_assignment @update_assignment = ::Gapic::Config::Method.new update_assignment_config get_bi_reservation_config = parent_rpcs.get_bi_reservation if parent_rpcs.respond_to? :get_bi_reservation @get_bi_reservation = ::Gapic::Config::Method.new get_bi_reservation_config update_bi_reservation_config = parent_rpcs.update_bi_reservation if parent_rpcs.respond_to? :update_bi_reservation @update_bi_reservation = ::Gapic::Config::Method.new update_bi_reservation_config get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config = parent_rpcs. if parent_rpcs.respond_to? :test_iam_permissions @test_iam_permissions = ::Gapic::Config::Method.new create_reservation_group_config = parent_rpcs.create_reservation_group if parent_rpcs.respond_to? :create_reservation_group @create_reservation_group = ::Gapic::Config::Method.new create_reservation_group_config get_reservation_group_config = parent_rpcs.get_reservation_group if parent_rpcs.respond_to? :get_reservation_group @get_reservation_group = ::Gapic::Config::Method.new get_reservation_group_config delete_reservation_group_config = parent_rpcs.delete_reservation_group if parent_rpcs.respond_to? :delete_reservation_group @delete_reservation_group = ::Gapic::Config::Method.new delete_reservation_group_config list_reservation_groups_config = parent_rpcs.list_reservation_groups if parent_rpcs.respond_to? :list_reservation_groups @list_reservation_groups = ::Gapic::Config::Method.new list_reservation_groups_config yield self if block_given? end end end |
Instance Method Details
#channel_pool ⇒ ::Gapic::ServiceStub::ChannelPool::Configuration
Configuration for the channel pool
3275 3276 3277 |
# File 'lib/google/cloud/bigquery/reservation/v1/reservation_service/client.rb', line 3275 def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end |
#rpcs ⇒ Rpcs
Configurations for individual RPCs
3263 3264 3265 3266 3267 3268 3269 |
# File 'lib/google/cloud/bigquery/reservation/v1/reservation_service/client.rb', line 3263 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 |