# Cloud Spanner Instance Admin V1 API - Class Google::Cloud::Spanner::Admin::Instance::V1::CreateInstanceConfigRequest (v2.8.0)

2.8.0 (latest) 2.7.1 2.6.0 2.5.0 2.4.0 2.3.1 2.2.0 2.1.0 2.0.1 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.16.0 0.15.0 0.14.0 0.13.2 0.12.0 0.11.0 0.10.2 0.9.0 0.8.0 0.7.0 0.6.0 0.5.5 Reference documentation and code samples for the Cloud Spanner Instance Admin V1 API class Google::Cloud::Spanner::Admin::Instance::V1::CreateInstanceConfigRequest.

The request for
[CreateInstanceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/latest/Google-Cloud-Spanner-Admin-Instance-V1-InstanceAdmin-Client#Google__Cloud__Spanner__Admin__Instance__V1__InstanceAdmin__Client_create_instance_config_instance_ "Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client#create_instance_config (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #instance_config

    def instance_config() -> ::Google::Cloud::Spanner::Admin::Instance::V1::InstanceConfig

**Returns**

- ([::Google::Cloud::Spanner::Admin::Instance::V1::InstanceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/latest/Google-Cloud-Spanner-Admin-Instance-V1-InstanceConfig)) --- Required. The `InstanceConfig` proto of the configuration to create. `instance_config.name` must be `<parent>/instanceConfigs/<instance_config_id>`. `instance_config.base_config` must be a Google-managed configuration name, e.g.

### #instance_config=

    def instance_config=(value) -> ::Google::Cloud::Spanner::Admin::Instance::V1::InstanceConfig

**Parameter**

- **value** ([::Google::Cloud::Spanner::Admin::Instance::V1::InstanceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/latest/Google-Cloud-Spanner-Admin-Instance-V1-InstanceConfig)) --- Required. The `InstanceConfig` proto of the configuration to create. `instance_config.name` must be `<parent>/instanceConfigs/<instance_config_id>`. `instance_config.base_config` must be a Google-managed configuration name, e.g.
**Returns**

- ([::Google::Cloud::Spanner::Admin::Instance::V1::InstanceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/latest/Google-Cloud-Spanner-Admin-Instance-V1-InstanceConfig)) --- Required. The `InstanceConfig` proto of the configuration to create. `instance_config.name` must be `<parent>/instanceConfigs/<instance_config_id>`. `instance_config.base_config` must be a Google-managed configuration name, e.g.

### #instance_config_id

    def instance_config_id() -> ::String

**Returns**

- (::String) --- Required. The ID of the instance configuration to create. Valid identifiers are of the form `custom-[-a-z0-9]*[a-z0-9]` and must be between 2 and 64 characters in length. The `custom-` prefix is required to avoid name conflicts with Google-managed configurations.

### #instance_config_id=

    def instance_config_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The ID of the instance configuration to create. Valid identifiers are of the form `custom-[-a-z0-9]*[a-z0-9]` and must be between 2 and 64 characters in length. The `custom-` prefix is required to avoid name conflicts with Google-managed configurations.
**Returns**

- (::String) --- Required. The ID of the instance configuration to create. Valid identifiers are of the form `custom-[-a-z0-9]*[a-z0-9]` and must be between 2 and 64 characters in length. The `custom-` prefix is required to avoid name conflicts with Google-managed configurations.

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. The name of the project in which to create the instance configuration. Values are of the form `projects/<project>`.

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The name of the project in which to create the instance configuration. Values are of the form `projects/<project>`.
**Returns**

- (::String) --- Required. The name of the project in which to create the instance configuration. Values are of the form `projects/<project>`.

### #validate_only

    def validate_only() -> ::Boolean

**Returns**

- (::Boolean) --- An option to validate, but not actually execute, a request, and provide the same response.

### #validate_only=

    def validate_only=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- An option to validate, but not actually execute, a request, and provide the same response.
**Returns**

- (::Boolean) --- An option to validate, but not actually execute, a request, and provide the same response.