Service Client: Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::InstanceAdminClient

Client stub representing the remote InstanceAdmin gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to spanner.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin - Compiled Protocol Buffers messages for google/spanner/admin/instance/v1/spanner_instance_admin.proto

SYNOPSIS

use Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin;

my $msg = Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::ReplicaInfo->new({
    location => $location,
    type => $type,
    default_leader_location => $default_leader_location,
});

# Read or update a field
my $val = $msg->location();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::ReplicaInfo->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/spanner/admin/instance/v1/spanner_instance_admin.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::ReplicaInfo

Inherits from Protobuf::Message.

Accessors

  • $msg->location() / $msg->location($value)

    Type: String

    The location of the serving resources, e.g., "us-central1".

  • $msg->type() / $msg->type($value)

    Type: Enum (Google::Spanner::Admin::Instance::V1::ReplicaInfo::ReplicaType)

    The type of replica.

  • $msg->default_leader_location() / $msg->default_leader_location($value)

    Type: Bool

    If true, this location is designated as the default leader location where leader replicas are placed. See the [region types documentation](https://cloud.google.com/spanner/docs/instances#region_types) for more details.

Enum: ReplicaInfo::ReplicaType

  • TYPE_UNSPECIFIED => 0

  • READ_WRITE => 1

  • READ_ONLY => 2

  • WITNESS => 3

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::InstanceConfig

A possible configuration for a Cloud Spanner instance. Configurations define the geographic placement of nodes and their replication.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    A unique identifier for the instance configuration. Values are of the form `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`.

    User instance configuration must start with `custom-`.

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    The name of this instance configuration as it appears in UIs.

  • $msg->config_type() / $msg->config_type($value)

    Type: Enum (Google::Spanner::Admin::Instance::V1::InstanceConfig::Type)

    Output only. Whether this instance configuration is a Google-managed or user-managed configuration.

  • $msg->replicas() / $msg->replicas($value)

    Type: Message (Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::ReplicaInfo)

    The geographic placement of nodes in this instance configuration and their replication properties.

    To create user-managed configurations, input `replicas` must include all replicas in `replicas` of the `base_config` and include one or more replicas in the `optional_replicas` of the `base_config`.

  • $msg->optional_replicas() / $msg->optional_replicas($value)

    Type: Message (Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::ReplicaInfo)

    Output only. The available optional replicas to choose from for user-managed configurations. Populated for Google-managed configurations.

  • $msg->base_config() / $msg->base_config($value)

    Type: String

    Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3, based on which this configuration is created. Only set for user-managed configurations. `base_config` must refer to a configuration of type `GOOGLE_MANAGED` in the same project as this configuration.

  • $msg->labels() / $msg->labels($value)

    Type: Message (Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::InstanceConfig::LabelsEntry)

    Cloud Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer's organizational needs and deployment strategies. Cloud Labels can be used to filter collections of resources. They can be used to control how resource metrics are aggregated. And they can be used as arguments to policy management rules (e.g. route, firewall, load balancing, etc.).

    * Label keys must be between 1 and 63 characters long and must conform to
      the following regular expression: `[a-z][a-z0-9_-]{0,62}`.
    * Label values must be between 0 and 63 characters long and must conform
      to the regular expression `[a-z0-9_-]{0,63}`.
    * No more than 64 labels can be associated with a given resource.

    See https://goo.gl/xmQnxf for more information on and examples of labels.

    If you plan to use labels in your own code, please note that additional characters may be allowed in the future. Therefore, you are advised to use an internal label representation, such as JSON, which doesn't rely upon specific characters being disallowed. For example, representing labels as the string: name + "_" + value would prove problematic if we were to allow "_" in a future release.

  • $msg->etag() / $msg->etag($value)

    Type: String

    etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a instance configuration from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform instance configuration updates in order to avoid race conditions: An etag is returned in the response which contains instance configurations, and systems are expected to put that etag in the request to update instance configuration to ensure that their change is applied to the same version of the instance configuration. If no etag is provided in the call to update the instance configuration, then the existing instance configuration is overwritten blindly.

  • $msg->leader_options() / $msg->leader_options($value)

    Type: String

    Allowed values of the "default_leader" schema option for databases in instances that use this instance configuration.

  • $msg->reconciling() / $msg->reconciling($value)

    Type: Bool

    Output only. If true, the instance configuration is being created or updated. If false, there are no ongoing operations for the instance configuration.

  • $msg->state() / $msg->state($value)

    Type: Enum (Google::Spanner::Admin::Instance::V1::InstanceConfig::State)

    Output only. The current instance configuration state. Applicable only for `USER_MANAGED` configurations.

  • $msg->free_instance_availability() / $msg->free_instance_availability($value)

    Type: Enum (Google::Spanner::Admin::Instance::V1::InstanceConfig::FreeInstanceAvailability)

    Output only. Describes whether free instances are available to be created in this instance configuration.

  • $msg->allowed_processing_units() / $msg->allowed_processing_units($value)

    Type: Message (Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::InstanceConfig::AllowedProcessingUnits)

    Output only. Defines the ranges of allowed processing units supported by this instance configuration. If multiple ranges are specified, an instance using this configuration may use a valid increment in any of the given ranges. For example, an allowed_processing_units specification of `[{min_processing_units:100, max_processing_units:900, processing_unit_increment:100}, {min_processing_units:1000, processing_unit_increment:1000}]` specifies that the instance configuration supports instances with quantities of processing units in multiples of 100 processing units (100, 200, 300 and so on) up to and including 900 processing units and quantities that are at least 1000 processing units and multiples of 1000 processing units (1000, 2000, 3000 and so on).

  • $msg->quorum_type() / $msg->quorum_type($value)

    Type: Enum (Google::Spanner::Admin::Instance::V1::InstanceConfig::QuorumType)

    Output only. The `QuorumType` of the instance configuration.

  • $msg->storage_limit_per_processing_unit() / $msg->storage_limit_per_processing_unit($value)

    Type: Int64

    Output only. The storage limit in bytes per processing unit.

Enum: InstanceConfig::Type

  • TYPE_UNSPECIFIED => 0

  • GOOGLE_MANAGED => 1

  • USER_MANAGED => 2

Enum: InstanceConfig::State

  • STATE_UNSPECIFIED => 0

  • CREATING => 1

  • READY => 2

Enum: InstanceConfig::FreeInstanceAvailability

  • FREE_INSTANCE_AVAILABILITY_UNSPECIFIED => 0

  • AVAILABLE => 1

  • UNSUPPORTED => 2

  • DISABLED => 3

  • QUOTA_EXCEEDED => 4

Enum: InstanceConfig::QuorumType

  • QUORUM_TYPE_UNSPECIFIED => 0

  • REGION => 1

  • DUAL_REGION => 2

  • MULTI_REGION => 3

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::ReplicaComputeCapacity

ReplicaComputeCapacity describes the amount of server resources that are allocated to each replica identified by the replica selection.

Inherits from Protobuf::Message.

Accessors

  • $msg->replica_selection() / $msg->replica_selection($value)

    Type: Message (Google::Spanner::Admin::Instance::V1::Common::ReplicaSelection)

    Required. Identifies replicas by specified properties. All replicas in the selection have the same amount of compute capacity.

  • $msg->node_count() / $msg->node_count($value)

    Type: Int32

    The number of nodes allocated to each replica.

    This may be zero in API responses for instances that are not yet in state `READY`.

  • $msg->processing_units() / $msg->processing_units($value)

    Type: Int32

    The number of processing units allocated to each replica.

    This may be zero in API responses for instances that are not yet in state `READY`.

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::AutoscalingConfig

Autoscaling configuration for an instance.

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::Instance

An isolated set of Cloud Spanner resources on which databases can be hosted.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. A unique identifier for the instance, which cannot be changed after the instance is created. Values are of the form `projects/<project>/instances/[a-z][-a-z0-9]*[a-z0-9]`. The final segment of the name must be between 2 and 64 characters in length.

  • $msg->config() / $msg->config($value)

    Type: String

    Required. The name of the instance's configuration. Values are of the form `projects/<project>/instanceConfigs/<configuration>`. See also [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] and [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    Required. The descriptive name for this instance as it appears in UIs. Must be unique per project and between 4 and 30 characters in length.

  • $msg->node_count() / $msg->node_count($value)

    Type: Int32

    The number of nodes allocated to this instance. At most, one of either `node_count` or `processing_units` should be present in the message.

    Users can set the `node_count` field to specify the target number of nodes allocated to the instance.

    If autoscaling is enabled, `node_count` is treated as an `OUTPUT_ONLY` field and reflects the current number of nodes allocated to the instance.

    This might be zero in API responses for instances that are not yet in the `READY` state.

    For more information, see [Compute capacity, nodes, and processing units](https://cloud.google.com/spanner/docs/compute-capacity).

  • $msg->processing_units() / $msg->processing_units($value)

    Type: Int32

    The number of processing units allocated to this instance. At most, one of either `processing_units` or `node_count` should be present in the message.

    Users can set the `processing_units` field to specify the target number of processing units allocated to the instance.

    If autoscaling is enabled, `processing_units` is treated as an `OUTPUT_ONLY` field and reflects the current number of processing units allocated to the instance.

    This might be zero in API responses for instances that are not yet in the `READY` state.

    For more information, see [Compute capacity, nodes and processing units](https://cloud.google.com/spanner/docs/compute-capacity).

  • $msg->replica_compute_capacity() / $msg->replica_compute_capacity($value)

    Type: Message (Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::ReplicaComputeCapacity)

    Output only. Lists the compute capacity per ReplicaSelection. A replica selection identifies a set of replicas with common properties. Replicas identified by a ReplicaSelection are scaled with the same compute capacity.

  • $msg->autoscaling_config() / $msg->autoscaling_config($value)

    Type: Message (Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::AutoscalingConfig)

    Optional. The autoscaling configuration. Autoscaling is enabled if this field is set. When autoscaling is enabled, node_count and processing_units are treated as OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance.

  • $msg->state() / $msg->state($value)

    Type: Enum (Google::Spanner::Admin::Instance::V1::Instance::State)

    Output only. The current instance state. For [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance], the state must be either omitted or set to `CREATING`. For [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance], the state must be either omitted or set to `READY`.

  • $msg->labels() / $msg->labels($value)

    Type: Message (Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::Instance::LabelsEntry)

    Cloud Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer's organizational needs and deployment strategies. Cloud Labels can be used to filter collections of resources. They can be used to control how resource metrics are aggregated. And they can be used as arguments to policy management rules (e.g. route, firewall, load balancing, etc.).

    * Label keys must be between 1 and 63 characters long and must conform to
      the following regular expression: `[a-z][a-z0-9_-]{0,62}`.
    * Label values must be between 0 and 63 characters long and must conform
      to the regular expression `[a-z0-9_-]{0,63}`.
    * No more than 64 labels can be associated with a given resource.

    See https://goo.gl/xmQnxf for more information on and examples of labels.

    If you plan to use labels in your own code, please note that additional characters may be allowed in the future. And so you are advised to use an internal label representation, such as JSON, which doesn't rely upon specific characters being disallowed. For example, representing labels as the string: name + "_" + value would prove problematic if we were to allow "_" in a future release.

  • $msg->instance_type() / $msg->instance_type($value)

    Type: Enum (Google::Spanner::Admin::Instance::V1::Instance::InstanceType)

    The `InstanceType` of the current instance.

  • $msg->endpoint_uris() / $msg->endpoint_uris($value)

    Type: String

    Deprecated. This field is not populated.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time at which the instance was created.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time at which the instance was most recently updated.

  • $msg->free_instance_metadata() / $msg->free_instance_metadata($value)

    Type: Message (Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::FreeInstanceMetadata)

    Free instance metadata. Only populated for free instances.

  • $msg->edition() / $msg->edition($value)

    Type: Enum (Google::Spanner::Admin::Instance::V1::Instance::Edition)

    Optional. The `Edition` of the current instance.

  • $msg->default_backup_schedule_type() / $msg->default_backup_schedule_type($value)

    Type: Enum (Google::Spanner::Admin::Instance::V1::Instance::DefaultBackupScheduleType)

    Optional. Controls the default backup schedule behavior for new databases within the instance. By default, a backup schedule is created automatically when a new database is created in a new instance.

    Note that the `AUTOMATIC` value isn't permitted for free instances, as backups and backup schedules aren't supported for free instances.

    In the `GetInstance` or `ListInstances` response, if the value of `default_backup_schedule_type` isn't set, or set to `NONE`, Spanner doesn't create a default backup schedule for new databases in the instance.

Enum: Instance::State

  • STATE_UNSPECIFIED => 0

  • CREATING => 1

  • READY => 2

Enum: Instance::InstanceType

  • INSTANCE_TYPE_UNSPECIFIED => 0

  • PROVISIONED => 1

  • FREE_INSTANCE => 2

Enum: Instance::Edition

  • EDITION_UNSPECIFIED => 0

  • STANDARD => 1

  • ENTERPRISE => 2

  • ENTERPRISE_PLUS => 3

Enum: Instance::DefaultBackupScheduleType

  • DEFAULT_BACKUP_SCHEDULE_TYPE_UNSPECIFIED => 0

  • NONE => 1

  • AUTOMATIC => 2

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::ListInstanceConfigsRequest

The request for [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The name of the project for which a list of supported instance configurations is requested. Values are of the form `projects/<project>`.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Number of instance configurations to be returned in the response. If 0 or less, defaults to the server's maximum allowed page size.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    If non-empty, `page_token` should contain a [next_page_token][google.spanner.admin.instance.v1.ListInstanceConfigsResponse.next_page_token] from a previous [ListInstanceConfigsResponse][google.spanner.admin.instance.v1.ListInstanceConfigsResponse].

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::ListInstanceConfigsResponse

The response for [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].

Inherits from Protobuf::Message.

Accessors

  • $msg->instance_configs() / $msg->instance_configs($value)

    Type: Message (Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::InstanceConfig)

    The list of requested instance configurations.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    `next_page_token` can be sent in a subsequent [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs] call to fetch more of the matching instance configurations.

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::GetInstanceConfigRequest

The request for [GetInstanceConfigRequest][google.spanner.admin.instance.v1.InstanceAdmin.GetInstanceConfig].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the requested instance configuration. Values are of the form `projects/<project>/instanceConfigs/<config>`.

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::CreateInstanceConfigRequest

The request for [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

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

  • $msg->instance_config_id() / $msg->instance_config_id($value)

    Type: 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.

  • $msg->instance_config() / $msg->instance_config($value)

    Type: Message (Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::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. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3.

  • $msg->validate_only() / $msg->validate_only($value)

    Type: Bool

    An option to validate, but not actually execute, a request, and provide the same response.

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::UpdateInstanceConfigRequest

The request for [UpdateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig].

Inherits from Protobuf::Message.

Accessors

  • $msg->instance_config() / $msg->instance_config($value)

    Type: Message (Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::InstanceConfig)

    Required. The user instance configuration to update, which must always include the instance configuration name. Otherwise, only fields mentioned in [update_mask][google.spanner.admin.instance.v1.UpdateInstanceConfigRequest.update_mask] need be included. To prevent conflicts of concurrent updates, [etag][google.spanner.admin.instance.v1.InstanceConfig.reconciling] can be used.

  • $msg->update_mask() / $msg->update_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Required. A mask specifying which fields in [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] should be updated. The field mask must always be specified; this prevents any future fields in [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] from being erased accidentally by clients that do not know about them. Only display_name and labels can be updated.

  • $msg->validate_only() / $msg->validate_only($value)

    Type: Bool

    An option to validate, but not actually execute, a request, and provide the same response.

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::DeleteInstanceConfigRequest

The request for [DeleteInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.DeleteInstanceConfig].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the instance configuration to be deleted. Values are of the form `projects/<project>/instanceConfigs/<instance_config>`

  • $msg->etag() / $msg->etag($value)

    Type: String

    Used for optimistic concurrency control as a way to help prevent simultaneous deletes of an instance configuration from overwriting each other. If not empty, the API only deletes the instance configuration when the etag provided matches the current status of the requested instance configuration. Otherwise, deletes the instance configuration without checking the current status of the requested instance configuration.

  • $msg->validate_only() / $msg->validate_only($value)

    Type: Bool

    An option to validate, but not actually execute, a request, and provide the same response.

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::ListInstanceConfigOperationsRequest

The request for [ListInstanceConfigOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigOperations].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The project of the instance configuration operations. Values are of the form `projects/<project>`.

  • $msg->filter() / $msg->filter($value)

    Type: String

    An expression that filters the list of returned operations.

    A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string, a number, or a boolean. The comparison operator must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. Colon `:` is the contains operator. Filter rules are not case sensitive.

    The following fields in the Operation are eligible for filtering:

    * `name` - The name of the long-running operation
    * `done` - False if the operation is in progress, else true.
    * `metadata.@type` - the type of metadata. For example, the type string
       for
       [CreateInstanceConfigMetadata][google.spanner.admin.instance.v1.CreateInstanceConfigMetadata]
       is
       `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstanceConfigMetadata`.
    * `metadata.<field_name>` - any field in metadata.value.
       `metadata.@type` must be specified first, if filtering on metadata
       fields.
    * `error` - Error associated with the long-running operation.
    * `response.@type` - the type of response.
    * `response.<field_name>` - any field in response.value.

    You can combine multiple expressions by enclosing each expression in parentheses. By default, expressions are combined with AND logic. However, you can specify AND, OR, and NOT logic explicitly.

    Here are a few examples:

    * `done:true` - The operation is complete.
    * `(metadata.@type=` \
      `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstanceConfigMetadata)
      AND` \
      `(metadata.instance_config.name:custom-config) AND` \
      `(metadata.progress.start_time < \"2021-03-28T14:50:00Z\") AND` \
      `(error:*)` - Return operations where:
      * The operation's metadata type is
      [CreateInstanceConfigMetadata][google.spanner.admin.instance.v1.CreateInstanceConfigMetadata].
      * The instance configuration name contains "custom-config".
      * The operation started before 2021-03-28T14:50:00Z.
      * The operation resulted in an error.
  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Number of operations to be returned in the response. If 0 or less, defaults to the server's maximum allowed page size.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    If non-empty, `page_token` should contain a [next_page_token][google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.next_page_token] from a previous [ListInstanceConfigOperationsResponse][google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse] to the same `parent` and with the same `filter`.

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::ListInstanceConfigOperationsResponse

The response for [ListInstanceConfigOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigOperations].

Inherits from Protobuf::Message.

Accessors

  • $msg->operations() / $msg->operations($value)

    Type: Message (Google::Longrunning::Operations::Operation)

    The list of matching instance configuration long-running operations. Each operation's name will be prefixed by the name of the instance configuration. The operation's metadata field type `metadata.type_url` describes the type of the metadata.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    `next_page_token` can be sent in a subsequent [ListInstanceConfigOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigOperations] call to fetch more of the matching metadata.

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::GetInstanceRequest

The request for [GetInstance][google.spanner.admin.instance.v1.InstanceAdmin.GetInstance].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the requested instance. Values are of the form `projects/<project>/instances/<instance>`.

  • $msg->field_mask() / $msg->field_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    If field_mask is present, specifies the subset of [Instance][google.spanner.admin.instance.v1.Instance] fields that should be returned. If absent, all [Instance][google.spanner.admin.instance.v1.Instance] fields are returned.

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::CreateInstanceRequest

The request for [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The name of the project in which to create the instance. Values are of the form `projects/<project>`.

  • $msg->instance_id() / $msg->instance_id($value)

    Type: String

    Required. The ID of the instance to create. Valid identifiers are of the form `[a-z][-a-z0-9]*[a-z0-9]` and must be between 2 and 64 characters in length.

  • $msg->instance() / $msg->instance($value)

    Type: Message (Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::Instance)

    Required. The instance to create. The name may be omitted, but if specified must be `<parent>/instances/<instance_id>`.

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::ListInstancesRequest

The request for [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The name of the project for which a list of instances is requested. Values are of the form `projects/<project>`.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Number of instances to be returned in the response. If 0 or less, defaults to the server's maximum allowed page size.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    If non-empty, `page_token` should contain a [next_page_token][google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token] from a previous [ListInstancesResponse][google.spanner.admin.instance.v1.ListInstancesResponse].

  • $msg->filter() / $msg->filter($value)

    Type: String

    An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are:

    * `name`
    * `display_name`
    * `labels.key` where key is the name of a label

    Some examples of using filters are:

    * `name:*` --> The instance has a name.
    * `name:Howl` --> The instance's name contains the string "howl".
    * `name:HOWL` --> Equivalent to above.
    * `NAME:howl` --> Equivalent to above.
    * `labels.env:*` --> The instance has the label "env".
    * `labels.env:dev` --> The instance has the label "env" and the value of
                         the label contains the string "dev".
    * `name:howl labels.env:dev` --> The instance's name contains "howl" and
                                   it has the label "env" with its value
                                   containing "dev".
  • $msg->instance_deadline() / $msg->instance_deadline($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Deadline used while retrieving metadata for instances. Instances whose metadata cannot be retrieved within this deadline will be added to [unreachable][google.spanner.admin.instance.v1.ListInstancesResponse.unreachable] in [ListInstancesResponse][google.spanner.admin.instance.v1.ListInstancesResponse].

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::ListInstancesResponse

The response for [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances].

Inherits from Protobuf::Message.

Accessors

  • $msg->instances() / $msg->instances($value)

    Type: Message (Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::Instance)

    The list of requested instances.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    `next_page_token` can be sent in a subsequent [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances] call to fetch more of the matching instances.

  • $msg->unreachable() / $msg->unreachable($value)

    Type: String

    The list of unreachable instances. It includes the names of instances whose metadata could not be retrieved within [instance_deadline][google.spanner.admin.instance.v1.ListInstancesRequest.instance_deadline].

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::UpdateInstanceRequest

The request for [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance].

Inherits from Protobuf::Message.

Accessors

  • $msg->instance() / $msg->instance($value)

    Type: Message (Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::Instance)

    Required. The instance to update, which must always include the instance name. Otherwise, only fields mentioned in [field_mask][google.spanner.admin.instance.v1.UpdateInstanceRequest.field_mask] need be included.

  • $msg->field_mask() / $msg->field_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Required. A mask specifying which fields in [Instance][google.spanner.admin.instance.v1.Instance] should be updated. The field mask must always be specified; this prevents any future fields in [Instance][google.spanner.admin.instance.v1.Instance] from being erased accidentally by clients that do not know about them.

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::DeleteInstanceRequest

The request for [DeleteInstance][google.spanner.admin.instance.v1.InstanceAdmin.DeleteInstance].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the instance to be deleted. Values are of the form `projects/<project>/instances/<instance>`

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::CreateInstanceMetadata

Metadata type for the operation returned by [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance].

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::UpdateInstanceMetadata

Metadata type for the operation returned by [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance].

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::FreeInstanceMetadata

Free instance specific metadata that is kept even after an instance has been upgraded for tracking purposes.

Inherits from Protobuf::Message.

Accessors

  • $msg->expire_time() / $msg->expire_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Timestamp after which the instance will either be upgraded or scheduled for deletion after a grace period. ExpireBehavior is used to choose between upgrading or scheduling the free instance for deletion. This timestamp is set during the creation of a free instance.

  • $msg->upgrade_time() / $msg->upgrade_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. If present, the timestamp at which the free instance was upgraded to a provisioned instance.

  • $msg->expire_behavior() / $msg->expire_behavior($value)

    Type: Enum (Google::Spanner::Admin::Instance::V1::FreeInstanceMetadata::ExpireBehavior)

    Specifies the expiration behavior of a free instance. The default of ExpireBehavior is `REMOVE_AFTER_GRACE_PERIOD`. This can be modified during or after creation, and before expiration.

Enum: FreeInstanceMetadata::ExpireBehavior

  • EXPIRE_BEHAVIOR_UNSPECIFIED => 0

  • FREE_TO_PROVISIONED => 1

  • REMOVE_AFTER_GRACE_PERIOD => 2

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::CreateInstanceConfigMetadata

Metadata type for the operation returned by [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig].

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::UpdateInstanceConfigMetadata

Metadata type for the operation returned by [UpdateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig].

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::InstancePartition

An isolated set of Cloud Spanner resources that databases can define placements on.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. A unique identifier for the instance partition. Values are of the form `projects/<project>/instances/<instance>/instancePartitions/[a-z][-a-z0-9]*[a-z0-9]`. The final segment of the name must be between 2 and 64 characters in length. An instance partition's name cannot be changed after the instance partition is created.

  • $msg->config() / $msg->config($value)

    Type: String

    Required. The name of the instance partition's configuration. Values are of the form `projects/<project>/instanceConfigs/<configuration>`. See also [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] and [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    Required. The descriptive name for this instance partition as it appears in UIs. Must be unique per project and between 4 and 30 characters in length.

  • $msg->node_count() / $msg->node_count($value)

    Type: Int32

    The number of nodes allocated to this instance partition.

    Users can set the `node_count` field to specify the target number of nodes allocated to the instance partition.

    This may be zero in API responses for instance partitions that are not yet in state `READY`.

  • $msg->processing_units() / $msg->processing_units($value)

    Type: Int32

    The number of processing units allocated to this instance partition.

    Users can set the `processing_units` field to specify the target number of processing units allocated to the instance partition.

    This might be zero in API responses for instance partitions that are not yet in the `READY` state.

  • $msg->autoscaling_config() / $msg->autoscaling_config($value)

    Type: Message (Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::AutoscalingConfig)

    Optional. The autoscaling configuration. Autoscaling is enabled if this field is set. When autoscaling is enabled, fields in compute_capacity are treated as OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance partition.

  • $msg->state() / $msg->state($value)

    Type: Enum (Google::Spanner::Admin::Instance::V1::InstancePartition::State)

    Output only. The current instance partition state.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time at which the instance partition was created.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time at which the instance partition was most recently updated.

  • $msg->referencing_databases() / $msg->referencing_databases($value)

    Type: String

    Output only. The names of the databases that reference this instance partition. Referencing databases should share the parent instance. The existence of any referencing database prevents the instance partition from being deleted.

  • $msg->referencing_backups() / $msg->referencing_backups($value)

    Type: String

    Output only. Deprecated: This field is not populated. Output only. The names of the backups that reference this instance partition. Referencing backups should share the parent instance. The existence of any referencing backup prevents the instance partition from being deleted.

  • $msg->etag() / $msg->etag($value)

    Type: String

    Used for optimistic concurrency control as a way to help prevent simultaneous updates of a instance partition from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform instance partition updates in order to avoid race conditions: An etag is returned in the response which contains instance partitions, and systems are expected to put that etag in the request to update instance partitions to ensure that their change will be applied to the same version of the instance partition. If no etag is provided in the call to update instance partition, then the existing instance partition is overwritten blindly.

Enum: InstancePartition::State

  • STATE_UNSPECIFIED => 0

  • CREATING => 1

  • READY => 2

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::CreateInstancePartitionMetadata

Metadata type for the operation returned by [CreateInstancePartition][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstancePartition].

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::CreateInstancePartitionRequest

The request for [CreateInstancePartition][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstancePartition].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The name of the instance in which to create the instance partition. Values are of the form `projects/<project>/instances/<instance>`.

  • $msg->instance_partition_id() / $msg->instance_partition_id($value)

    Type: String

    Required. The ID of the instance partition to create. Valid identifiers are of the form `[a-z][-a-z0-9]*[a-z0-9]` and must be between 2 and 64 characters in length.

  • $msg->instance_partition() / $msg->instance_partition($value)

    Type: Message (Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::InstancePartition)

    Required. The instance partition to create. The instance_partition.name may be omitted, but if specified must be `<parent>/instancePartitions/<instance_partition_id>`.

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::DeleteInstancePartitionRequest

The request for [DeleteInstancePartition][google.spanner.admin.instance.v1.InstanceAdmin.DeleteInstancePartition].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the instance partition to be deleted. Values are of the form `projects/{project}/instances/{instance}/instancePartitions/{instance_partition}`

  • $msg->etag() / $msg->etag($value)

    Type: String

    Optional. If not empty, the API only deletes the instance partition when the etag provided matches the current status of the requested instance partition. Otherwise, deletes the instance partition without checking the current status of the requested instance partition.

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::GetInstancePartitionRequest

The request for [GetInstancePartition][google.spanner.admin.instance.v1.InstanceAdmin.GetInstancePartition].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the requested instance partition. Values are of the form `projects/{project}/instances/{instance}/instancePartitions/{instance_partition}`.

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::UpdateInstancePartitionRequest

The request for [UpdateInstancePartition][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstancePartition].

Inherits from Protobuf::Message.

Accessors

  • $msg->instance_partition() / $msg->instance_partition($value)

    Type: Message (Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::InstancePartition)

    Required. The instance partition to update, which must always include the instance partition name. Otherwise, only fields mentioned in [field_mask][google.spanner.admin.instance.v1.UpdateInstancePartitionRequest.field_mask] need be included.

  • $msg->field_mask() / $msg->field_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Required. A mask specifying which fields in [InstancePartition][google.spanner.admin.instance.v1.InstancePartition] should be updated. The field mask must always be specified; this prevents any future fields in [InstancePartition][google.spanner.admin.instance.v1.InstancePartition] from being erased accidentally by clients that do not know about them.

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::UpdateInstancePartitionMetadata

Metadata type for the operation returned by [UpdateInstancePartition][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstancePartition].

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::ListInstancePartitionsRequest

The request for [ListInstancePartitions][google.spanner.admin.instance.v1.InstanceAdmin.ListInstancePartitions].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The instance whose instance partitions should be listed. Values are of the form `projects/<project>/instances/<instance>`. Use `{instance} = '-'` to list instance partitions for all Instances in a project, e.g., `projects/myproject/instances/-`.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Number of instance partitions to be returned in the response. If 0 or less, defaults to the server's maximum allowed page size.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    If non-empty, `page_token` should contain a [next_page_token][google.spanner.admin.instance.v1.ListInstancePartitionsResponse.next_page_token] from a previous [ListInstancePartitionsResponse][google.spanner.admin.instance.v1.ListInstancePartitionsResponse].

  • $msg->instance_partition_deadline() / $msg->instance_partition_deadline($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Optional. Deadline used while retrieving metadata for instance partitions. Instance partitions whose metadata cannot be retrieved within this deadline will be added to [unreachable][google.spanner.admin.instance.v1.ListInstancePartitionsResponse.unreachable] in [ListInstancePartitionsResponse][google.spanner.admin.instance.v1.ListInstancePartitionsResponse].

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::ListInstancePartitionsResponse

The response for [ListInstancePartitions][google.spanner.admin.instance.v1.InstanceAdmin.ListInstancePartitions].

Inherits from Protobuf::Message.

Accessors

  • $msg->instance_partitions() / $msg->instance_partitions($value)

    Type: Message (Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::InstancePartition)

    The list of requested instancePartitions.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    `next_page_token` can be sent in a subsequent [ListInstancePartitions][google.spanner.admin.instance.v1.InstanceAdmin.ListInstancePartitions] call to fetch more of the matching instance partitions.

  • $msg->unreachable() / $msg->unreachable($value)

    Type: String

    The list of unreachable instances or instance partitions. It includes the names of instances or instance partitions whose metadata could not be retrieved within [instance_partition_deadline][google.spanner.admin.instance.v1.ListInstancePartitionsRequest.instance_partition_deadline].

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::ListInstancePartitionOperationsRequest

The request for [ListInstancePartitionOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstancePartitionOperations].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent instance of the instance partition operations. Values are of the form `projects/<project>/instances/<instance>`.

  • $msg->filter() / $msg->filter($value)

    Type: String

    Optional. An expression that filters the list of returned operations.

    A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string, a number, or a boolean. The comparison operator must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. Colon `:` is the contains operator. Filter rules are not case sensitive.

    The following fields in the Operation are eligible for filtering:

    * `name` - The name of the long-running operation
    * `done` - False if the operation is in progress, else true.
    * `metadata.@type` - the type of metadata. For example, the type string
       for
       [CreateInstancePartitionMetadata][google.spanner.admin.instance.v1.CreateInstancePartitionMetadata]
       is
       `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstancePartitionMetadata`.
    * `metadata.<field_name>` - any field in metadata.value.
       `metadata.@type` must be specified first, if filtering on metadata
       fields.
    * `error` - Error associated with the long-running operation.
    * `response.@type` - the type of response.
    * `response.<field_name>` - any field in response.value.

    You can combine multiple expressions by enclosing each expression in parentheses. By default, expressions are combined with AND logic. However, you can specify AND, OR, and NOT logic explicitly.

    Here are a few examples:

    * `done:true` - The operation is complete.
    * `(metadata.@type=` \
      `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstancePartitionMetadata)
      AND` \
      `(metadata.instance_partition.name:custom-instance-partition) AND` \
      `(metadata.start_time < \"2021-03-28T14:50:00Z\") AND` \
      `(error:*)` - Return operations where:
      * The operation's metadata type is
      [CreateInstancePartitionMetadata][google.spanner.admin.instance.v1.CreateInstancePartitionMetadata].
      * The instance partition name contains "custom-instance-partition".
      * The operation started before 2021-03-28T14:50:00Z.
      * The operation resulted in an error.
  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. Number of operations to be returned in the response. If 0 or less, defaults to the server's maximum allowed page size.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. If non-empty, `page_token` should contain a [next_page_token][google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse.next_page_token] from a previous [ListInstancePartitionOperationsResponse][google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse] to the same `parent` and with the same `filter`.

  • $msg->instance_partition_deadline() / $msg->instance_partition_deadline($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Optional. Deadline used while retrieving metadata for instance partition operations. Instance partitions whose operation metadata cannot be retrieved within this deadline will be added to [unreachable_instance_partitions][google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse.unreachable_instance_partitions] in [ListInstancePartitionOperationsResponse][google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse].

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::ListInstancePartitionOperationsResponse

The response for [ListInstancePartitionOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstancePartitionOperations].

Inherits from Protobuf::Message.

Accessors

  • $msg->operations() / $msg->operations($value)

    Type: Message (Google::Longrunning::Operations::Operation)

    The list of matching instance partition long-running operations. Each operation's name will be prefixed by the instance partition's name. The operation's metadata field type `metadata.type_url` describes the type of the metadata.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    `next_page_token` can be sent in a subsequent [ListInstancePartitionOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstancePartitionOperations] call to fetch more of the matching metadata.

  • $msg->unreachable_instance_partitions() / $msg->unreachable_instance_partitions($value)

    Type: String

    The list of unreachable instance partitions. It includes the names of instance partitions whose operation metadata could not be retrieved within [instance_partition_deadline][google.spanner.admin.instance.v1.ListInstancePartitionOperationsRequest.instance_partition_deadline].

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::MoveInstanceRequest

The request for [MoveInstance][google.spanner.admin.instance.v1.InstanceAdmin.MoveInstance].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The instance to move. Values are of the form `projects/<project>/instances/<instance>`.

  • $msg->target_config() / $msg->target_config($value)

    Type: String

    Required. The target instance configuration where to move the instance. Values are of the form `projects/<project>/instanceConfigs/<config>`.

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::MoveInstanceResponse

The response for [MoveInstance][google.spanner.admin.instance.v1.InstanceAdmin.MoveInstance].

Inherits from Protobuf::Message.

Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::MoveInstanceMetadata

Metadata type for the operation returned by [MoveInstance][google.spanner.admin.instance.v1.InstanceAdmin.MoveInstance].

Inherits from Protobuf::Message.

Accessors

  • $msg->target_config() / $msg->target_config($value)

    Type: String

    The target instance configuration where to move the instance. Values are of the form `projects/<project>/instanceConfigs/<config>`.

  • $msg->progress() / $msg->progress($value)

    Type: Message (Google::Spanner::Admin::Instance::V1::Common::OperationProgress)

    The progress of the [MoveInstance][google.spanner.admin.instance.v1.InstanceAdmin.MoveInstance] operation. [progress_percent][google.spanner.admin.instance.v1.OperationProgress.progress_percent] is reset when cancellation is requested.

  • $msg->cancel_time() / $msg->cancel_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    The time at which this operation was cancelled.

SEE ALSO

Protobuf, Protobuf::Message, Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.