Class: Google::Cloud::Tpu::V1::Tpu::Client::Configuration::Rpcs

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/tpu/v1/tpu/client.rb

Overview

Configuration RPC class for the Tpu 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.

Instance Attribute Summary collapse

Instance Attribute Details

#create_node::Gapic::Config::Method (readonly)

RPC-specific configuration for create_node

Returns:

  • (::Gapic::Config::Method)


1424
1425
1426
# File 'lib/google/cloud/tpu/v1/tpu/client.rb', line 1424

def create_node
  @create_node
end

#delete_node::Gapic::Config::Method (readonly)

RPC-specific configuration for delete_node

Returns:

  • (::Gapic::Config::Method)


1429
1430
1431
# File 'lib/google/cloud/tpu/v1/tpu/client.rb', line 1429

def delete_node
  @delete_node
end

#get_accelerator_type::Gapic::Config::Method (readonly)

RPC-specific configuration for get_accelerator_type

Returns:

  • (::Gapic::Config::Method)


1464
1465
1466
# File 'lib/google/cloud/tpu/v1/tpu/client.rb', line 1464

def get_accelerator_type
  @get_accelerator_type
end

#get_node::Gapic::Config::Method (readonly)

RPC-specific configuration for get_node

Returns:

  • (::Gapic::Config::Method)


1419
1420
1421
# File 'lib/google/cloud/tpu/v1/tpu/client.rb', line 1419

def get_node
  @get_node
end

#get_tensor_flow_version::Gapic::Config::Method (readonly)

RPC-specific configuration for get_tensor_flow_version

Returns:

  • (::Gapic::Config::Method)


1454
1455
1456
# File 'lib/google/cloud/tpu/v1/tpu/client.rb', line 1454

def get_tensor_flow_version
  @get_tensor_flow_version
end

#list_accelerator_types::Gapic::Config::Method (readonly)

RPC-specific configuration for list_accelerator_types

Returns:

  • (::Gapic::Config::Method)


1459
1460
1461
# File 'lib/google/cloud/tpu/v1/tpu/client.rb', line 1459

def list_accelerator_types
  @list_accelerator_types
end

#list_nodes::Gapic::Config::Method (readonly)

RPC-specific configuration for list_nodes

Returns:

  • (::Gapic::Config::Method)


1414
1415
1416
# File 'lib/google/cloud/tpu/v1/tpu/client.rb', line 1414

def list_nodes
  @list_nodes
end

#list_tensor_flow_versions::Gapic::Config::Method (readonly)

RPC-specific configuration for list_tensor_flow_versions

Returns:

  • (::Gapic::Config::Method)


1449
1450
1451
# File 'lib/google/cloud/tpu/v1/tpu/client.rb', line 1449

def list_tensor_flow_versions
  @list_tensor_flow_versions
end

#reimage_node::Gapic::Config::Method (readonly)

RPC-specific configuration for reimage_node

Returns:

  • (::Gapic::Config::Method)


1434
1435
1436
# File 'lib/google/cloud/tpu/v1/tpu/client.rb', line 1434

def reimage_node
  @reimage_node
end

#start_node::Gapic::Config::Method (readonly)

RPC-specific configuration for start_node

Returns:

  • (::Gapic::Config::Method)


1444
1445
1446
# File 'lib/google/cloud/tpu/v1/tpu/client.rb', line 1444

def start_node
  @start_node
end

#stop_node::Gapic::Config::Method (readonly)

RPC-specific configuration for stop_node

Returns:

  • (::Gapic::Config::Method)


1439
1440
1441
# File 'lib/google/cloud/tpu/v1/tpu/client.rb', line 1439

def stop_node
  @stop_node
end