Class: Google::Apis::SpannerV1::CreateInstanceConfigRequest
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::CreateInstanceConfigRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/spanner_v1/classes.rb,
lib/google/apis/spanner_v1/representations.rb,
lib/google/apis/spanner_v1/representations.rb
Overview
The request for CreateInstanceConfig.
Instance Attribute Summary collapse
-
#instance_config ⇒ Google::Apis::SpannerV1::InstanceConfig
A possible configuration for a Cloud Spanner instance.
-
#instance_config_id ⇒ String
Required.
-
#validate_only ⇒ Boolean
(also: #validate_only?)
An option to validate, but not actually execute, a request, and provide the same response.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreateInstanceConfigRequest
constructor
A new instance of CreateInstanceConfigRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CreateInstanceConfigRequest
Returns a new instance of CreateInstanceConfigRequest.
1691 1692 1693 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1691 def initialize(**args) update!(**args) end |
Instance Attribute Details
#instance_config ⇒ Google::Apis::SpannerV1::InstanceConfig
A possible configuration for a Cloud Spanner instance. Configurations define
the geographic placement of nodes and their replication.
Corresponds to the JSON property instanceConfig
1674 1675 1676 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1674 def instance_config @instance_config end |
#instance_config_id ⇒ 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.
Corresponds to the JSON property instanceConfigId
1682 1683 1684 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1682 def instance_config_id @instance_config_id end |
#validate_only ⇒ Boolean Also known as: validate_only?
An option to validate, but not actually execute, a request, and provide the
same response.
Corresponds to the JSON property validateOnly
1688 1689 1690 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1688 def validate_only @validate_only end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1696 1697 1698 1699 1700 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1696 def update!(**args) @instance_config = args[:instance_config] if args.key?(:instance_config) @instance_config_id = args[:instance_config_id] if args.key?(:instance_config_id) @validate_only = args[:validate_only] if args.key?(:validate_only) end |