instancepb

package
v0.0.0-...-43c45a9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package instancepb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	FulfillmentPeriod_name = map[int32]string{
		0: "FULFILLMENT_PERIOD_UNSPECIFIED",
		1: "FULFILLMENT_PERIOD_NORMAL",
		2: "FULFILLMENT_PERIOD_EXTENDED",
	}
	FulfillmentPeriod_value = map[string]int32{
		"FULFILLMENT_PERIOD_UNSPECIFIED": 0,
		"FULFILLMENT_PERIOD_NORMAL":      1,
		"FULFILLMENT_PERIOD_EXTENDED":    2,
	}
)

Enum value maps for FulfillmentPeriod.

View Source
var (
	ReplicaInfo_ReplicaType_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "READ_WRITE",
		2: "READ_ONLY",
		3: "WITNESS",
	}
	ReplicaInfo_ReplicaType_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"READ_WRITE":       1,
		"READ_ONLY":        2,
		"WITNESS":          3,
	}
)

Enum value maps for ReplicaInfo_ReplicaType.

View Source
var (
	InstanceConfig_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "GOOGLE_MANAGED",
		2: "USER_MANAGED",
	}
	InstanceConfig_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"GOOGLE_MANAGED":   1,
		"USER_MANAGED":     2,
	}
)

Enum value maps for InstanceConfig_Type.

View Source
var (
	InstanceConfig_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "CREATING",
		2: "READY",
	}
	InstanceConfig_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"CREATING":          1,
		"READY":             2,
	}
)

Enum value maps for InstanceConfig_State.

View Source
var (
	InstanceConfig_FreeInstanceAvailability_name = map[int32]string{
		0: "FREE_INSTANCE_AVAILABILITY_UNSPECIFIED",
		1: "AVAILABLE",
		2: "UNSUPPORTED",
		3: "DISABLED",
		4: "QUOTA_EXCEEDED",
	}
	InstanceConfig_FreeInstanceAvailability_value = map[string]int32{
		"FREE_INSTANCE_AVAILABILITY_UNSPECIFIED": 0,
		"AVAILABLE":                              1,
		"UNSUPPORTED":                            2,
		"DISABLED":                               3,
		"QUOTA_EXCEEDED":                         4,
	}
)

Enum value maps for InstanceConfig_FreeInstanceAvailability.

View Source
var (
	InstanceConfig_QuorumType_name = map[int32]string{
		0: "QUORUM_TYPE_UNSPECIFIED",
		1: "REGION",
		2: "DUAL_REGION",
		3: "MULTI_REGION",
	}
	InstanceConfig_QuorumType_value = map[string]int32{
		"QUORUM_TYPE_UNSPECIFIED": 0,
		"REGION":                  1,
		"DUAL_REGION":             2,
		"MULTI_REGION":            3,
	}
)

Enum value maps for InstanceConfig_QuorumType.

View Source
var (
	Instance_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "CREATING",
		2: "READY",
	}
	Instance_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"CREATING":          1,
		"READY":             2,
	}
)

Enum value maps for Instance_State.

View Source
var (
	Instance_InstanceType_name = map[int32]string{
		0: "INSTANCE_TYPE_UNSPECIFIED",
		1: "PROVISIONED",
		2: "FREE_INSTANCE",
	}
	Instance_InstanceType_value = map[string]int32{
		"INSTANCE_TYPE_UNSPECIFIED": 0,
		"PROVISIONED":               1,
		"FREE_INSTANCE":             2,
	}
)

Enum value maps for Instance_InstanceType.

View Source
var (
	Instance_Edition_name = map[int32]string{
		0: "EDITION_UNSPECIFIED",
		1: "STANDARD",
		2: "ENTERPRISE",
		3: "ENTERPRISE_PLUS",
	}
	Instance_Edition_value = map[string]int32{
		"EDITION_UNSPECIFIED": 0,
		"STANDARD":            1,
		"ENTERPRISE":          2,
		"ENTERPRISE_PLUS":     3,
	}
)

Enum value maps for Instance_Edition.

View Source
var (
	Instance_DefaultBackupScheduleType_name = map[int32]string{
		0: "DEFAULT_BACKUP_SCHEDULE_TYPE_UNSPECIFIED",
		1: "NONE",
		2: "AUTOMATIC",
	}
	Instance_DefaultBackupScheduleType_value = map[string]int32{
		"DEFAULT_BACKUP_SCHEDULE_TYPE_UNSPECIFIED": 0,
		"NONE":      1,
		"AUTOMATIC": 2,
	}
)

Enum value maps for Instance_DefaultBackupScheduleType.

View Source
var (
	FreeInstanceMetadata_ExpireBehavior_name = map[int32]string{
		0: "EXPIRE_BEHAVIOR_UNSPECIFIED",
		1: "FREE_TO_PROVISIONED",
		2: "REMOVE_AFTER_GRACE_PERIOD",
	}
	FreeInstanceMetadata_ExpireBehavior_value = map[string]int32{
		"EXPIRE_BEHAVIOR_UNSPECIFIED": 0,
		"FREE_TO_PROVISIONED":         1,
		"REMOVE_AFTER_GRACE_PERIOD":   2,
	}
)

Enum value maps for FreeInstanceMetadata_ExpireBehavior.

View Source
var (
	InstancePartition_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "CREATING",
		2: "READY",
	}
	InstancePartition_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"CREATING":          1,
		"READY":             2,
	}
)

Enum value maps for InstancePartition_State.

View Source
var File_mockgcp_spanner_admin_instance_v1_common_proto protoreflect.FileDescriptor
View Source
var File_mockgcp_spanner_admin_instance_v1_spanner_instance_admin_proto protoreflect.FileDescriptor
View Source
var InstanceAdmin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "mockgcp.spanner.admin.instance.v1.InstanceAdmin",
	HandlerType: (*InstanceAdminServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListInstanceConfigs",
			Handler:    _InstanceAdmin_ListInstanceConfigs_Handler,
		},
		{
			MethodName: "GetInstanceConfig",
			Handler:    _InstanceAdmin_GetInstanceConfig_Handler,
		},
		{
			MethodName: "CreateInstanceConfig",
			Handler:    _InstanceAdmin_CreateInstanceConfig_Handler,
		},
		{
			MethodName: "UpdateInstanceConfig",
			Handler:    _InstanceAdmin_UpdateInstanceConfig_Handler,
		},
		{
			MethodName: "DeleteInstanceConfig",
			Handler:    _InstanceAdmin_DeleteInstanceConfig_Handler,
		},
		{
			MethodName: "ListInstanceConfigOperations",
			Handler:    _InstanceAdmin_ListInstanceConfigOperations_Handler,
		},
		{
			MethodName: "ListInstances",
			Handler:    _InstanceAdmin_ListInstances_Handler,
		},
		{
			MethodName: "ListInstancePartitions",
			Handler:    _InstanceAdmin_ListInstancePartitions_Handler,
		},
		{
			MethodName: "GetInstance",
			Handler:    _InstanceAdmin_GetInstance_Handler,
		},
		{
			MethodName: "CreateInstance",
			Handler:    _InstanceAdmin_CreateInstance_Handler,
		},
		{
			MethodName: "UpdateInstance",
			Handler:    _InstanceAdmin_UpdateInstance_Handler,
		},
		{
			MethodName: "DeleteInstance",
			Handler:    _InstanceAdmin_DeleteInstance_Handler,
		},
		{
			MethodName: "SetIamPolicy",
			Handler:    _InstanceAdmin_SetIamPolicy_Handler,
		},
		{
			MethodName: "GetIamPolicy",
			Handler:    _InstanceAdmin_GetIamPolicy_Handler,
		},
		{
			MethodName: "TestIamPermissions",
			Handler:    _InstanceAdmin_TestIamPermissions_Handler,
		},
		{
			MethodName: "GetInstancePartition",
			Handler:    _InstanceAdmin_GetInstancePartition_Handler,
		},
		{
			MethodName: "CreateInstancePartition",
			Handler:    _InstanceAdmin_CreateInstancePartition_Handler,
		},
		{
			MethodName: "DeleteInstancePartition",
			Handler:    _InstanceAdmin_DeleteInstancePartition_Handler,
		},
		{
			MethodName: "UpdateInstancePartition",
			Handler:    _InstanceAdmin_UpdateInstancePartition_Handler,
		},
		{
			MethodName: "ListInstancePartitionOperations",
			Handler:    _InstanceAdmin_ListInstancePartitionOperations_Handler,
		},
		{
			MethodName: "MoveInstance",
			Handler:    _InstanceAdmin_MoveInstance_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "mockgcp/spanner/admin/instance/v1/spanner_instance_admin.proto",
}

InstanceAdmin_ServiceDesc is the grpc.ServiceDesc for InstanceAdmin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterInstanceAdminHandler

func RegisterInstanceAdminHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterInstanceAdminHandler registers the http handlers for service InstanceAdmin to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterInstanceAdminHandlerClient

func RegisterInstanceAdminHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InstanceAdminClient) error

RegisterInstanceAdminHandlerClient registers the http handlers for service InstanceAdmin to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "InstanceAdminClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "InstanceAdminClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "InstanceAdminClient" to call the correct interceptors.

func RegisterInstanceAdminHandlerFromEndpoint

func RegisterInstanceAdminHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterInstanceAdminHandlerFromEndpoint is same as RegisterInstanceAdminHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterInstanceAdminHandlerServer

func RegisterInstanceAdminHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InstanceAdminServer) error

RegisterInstanceAdminHandlerServer registers the http handlers for service InstanceAdmin to "mux". UnaryRPC :call InstanceAdminServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterInstanceAdminHandlerFromEndpoint instead.

func RegisterInstanceAdminServer

func RegisterInstanceAdminServer(s grpc.ServiceRegistrar, srv InstanceAdminServer)

Types

type AutoscalingConfig

type AutoscalingConfig struct {

	// Required. Autoscaling limits for an instance.
	AutoscalingLimits *AutoscalingConfig_AutoscalingLimits `protobuf:"bytes,1,opt,name=autoscaling_limits,json=autoscalingLimits,proto3" json:"autoscaling_limits,omitempty"`
	// Required. The autoscaling targets for an instance.
	AutoscalingTargets *AutoscalingConfig_AutoscalingTargets `protobuf:"bytes,2,opt,name=autoscaling_targets,json=autoscalingTargets,proto3" json:"autoscaling_targets,omitempty"`
	// Optional. Optional asymmetric autoscaling options.
	// Replicas matching the replica selection criteria will be autoscaled
	// independently from other replicas. The autoscaler will scale the replicas
	// based on the utilization of replicas identified by the replica selection.
	// Replica selections should not overlap with each other.
	//
	// Other replicas (those do not match any replica selection) will be
	// autoscaled together and will have the same compute capacity allocated to
	// them.
	AsymmetricAutoscalingOptions []*AutoscalingConfig_AsymmetricAutoscalingOption `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

Autoscaling configuration for an instance.

func (*AutoscalingConfig) Descriptor deprecated

func (*AutoscalingConfig) Descriptor() ([]byte, []int)

Deprecated: Use AutoscalingConfig.ProtoReflect.Descriptor instead.

func (*AutoscalingConfig) GetAsymmetricAutoscalingOptions

func (x *AutoscalingConfig) GetAsymmetricAutoscalingOptions() []*AutoscalingConfig_AsymmetricAutoscalingOption

func (*AutoscalingConfig) GetAutoscalingLimits

func (x *AutoscalingConfig) GetAutoscalingLimits() *AutoscalingConfig_AutoscalingLimits

func (*AutoscalingConfig) GetAutoscalingTargets

func (x *AutoscalingConfig) GetAutoscalingTargets() *AutoscalingConfig_AutoscalingTargets

func (*AutoscalingConfig) ProtoMessage

func (*AutoscalingConfig) ProtoMessage()

func (*AutoscalingConfig) ProtoReflect

func (x *AutoscalingConfig) ProtoReflect() protoreflect.Message

func (*AutoscalingConfig) Reset

func (x *AutoscalingConfig) Reset()

func (*AutoscalingConfig) String

func (x *AutoscalingConfig) String() string

type AutoscalingConfig_AsymmetricAutoscalingOption

type AutoscalingConfig_AsymmetricAutoscalingOption struct {

	// Required. Selects the replicas to which this AsymmetricAutoscalingOption
	// applies. Only read-only replicas are supported.
	ReplicaSelection *ReplicaSelection `protobuf:"bytes,1,opt,name=replica_selection,json=replicaSelection,proto3" json:"replica_selection,omitempty"`
	// Optional. Overrides applied to the top-level autoscaling configuration
	// for the selected replicas.
	Overrides *AutoscalingConfig_AsymmetricAutoscalingOption_AutoscalingConfigOverrides `protobuf:"bytes,2,opt,name=overrides,proto3" json:"overrides,omitempty"`
	// contains filtered or unexported fields
}

AsymmetricAutoscalingOption specifies the scaling of replicas identified by the given selection.

func (*AutoscalingConfig_AsymmetricAutoscalingOption) Descriptor deprecated

Deprecated: Use AutoscalingConfig_AsymmetricAutoscalingOption.ProtoReflect.Descriptor instead.

func (*AutoscalingConfig_AsymmetricAutoscalingOption) GetReplicaSelection

func (*AutoscalingConfig_AsymmetricAutoscalingOption) ProtoMessage

func (*AutoscalingConfig_AsymmetricAutoscalingOption) ProtoReflect

func (*AutoscalingConfig_AsymmetricAutoscalingOption) Reset

func (*AutoscalingConfig_AsymmetricAutoscalingOption) String

type AutoscalingConfig_AsymmetricAutoscalingOption_AutoscalingConfigOverrides

type AutoscalingConfig_AsymmetricAutoscalingOption_AutoscalingConfigOverrides struct {

	// Optional. If specified, overrides the min/max limit in the top-level
	// autoscaling configuration for the selected replicas.
	AutoscalingLimits *AutoscalingConfig_AutoscalingLimits `protobuf:"bytes,1,opt,name=autoscaling_limits,json=autoscalingLimits,proto3" json:"autoscaling_limits,omitempty"`
	// Optional. If specified, overrides the autoscaling target
	// high_priority_cpu_utilization_percent in the top-level autoscaling
	// configuration for the selected replicas.
	AutoscalingTargetHighPriorityCpuUtilizationPercent int32 `` /* 222-byte string literal not displayed */
	// contains filtered or unexported fields
}

Overrides the top-level autoscaling configuration for the replicas identified by `replica_selection`. All fields in this message are optional. Any unspecified fields will use the corresponding values from the top-level autoscaling configuration.

func (*AutoscalingConfig_AsymmetricAutoscalingOption_AutoscalingConfigOverrides) Descriptor deprecated

Deprecated: Use AutoscalingConfig_AsymmetricAutoscalingOption_AutoscalingConfigOverrides.ProtoReflect.Descriptor instead.

func (*AutoscalingConfig_AsymmetricAutoscalingOption_AutoscalingConfigOverrides) GetAutoscalingLimits

func (*AutoscalingConfig_AsymmetricAutoscalingOption_AutoscalingConfigOverrides) GetAutoscalingTargetHighPriorityCpuUtilizationPercent

func (x *AutoscalingConfig_AsymmetricAutoscalingOption_AutoscalingConfigOverrides) GetAutoscalingTargetHighPriorityCpuUtilizationPercent() int32

func (*AutoscalingConfig_AsymmetricAutoscalingOption_AutoscalingConfigOverrides) ProtoMessage

func (*AutoscalingConfig_AsymmetricAutoscalingOption_AutoscalingConfigOverrides) ProtoReflect

func (*AutoscalingConfig_AsymmetricAutoscalingOption_AutoscalingConfigOverrides) Reset

func (*AutoscalingConfig_AsymmetricAutoscalingOption_AutoscalingConfigOverrides) String

type AutoscalingConfig_AutoscalingLimits

type AutoscalingConfig_AutoscalingLimits struct {

	// The minimum compute capacity for the instance.
	//
	// Types that are assignable to MinLimit:
	//
	//	*AutoscalingConfig_AutoscalingLimits_MinNodes
	//	*AutoscalingConfig_AutoscalingLimits_MinProcessingUnits
	MinLimit isAutoscalingConfig_AutoscalingLimits_MinLimit `protobuf_oneof:"min_limit"`
	// The maximum compute capacity for the instance. The maximum compute
	// capacity should be less than or equal to 10X the minimum compute
	// capacity.
	//
	// Types that are assignable to MaxLimit:
	//
	//	*AutoscalingConfig_AutoscalingLimits_MaxNodes
	//	*AutoscalingConfig_AutoscalingLimits_MaxProcessingUnits
	MaxLimit isAutoscalingConfig_AutoscalingLimits_MaxLimit `protobuf_oneof:"max_limit"`
	// contains filtered or unexported fields
}

The autoscaling limits for the instance. Users can define the minimum and maximum compute capacity allocated to the instance, and the autoscaler will only scale within that range. Users can either use nodes or processing units to specify the limits, but should use the same unit to set both the min_limit and max_limit.

func (*AutoscalingConfig_AutoscalingLimits) Descriptor deprecated

func (*AutoscalingConfig_AutoscalingLimits) Descriptor() ([]byte, []int)

Deprecated: Use AutoscalingConfig_AutoscalingLimits.ProtoReflect.Descriptor instead.

func (*AutoscalingConfig_AutoscalingLimits) GetMaxLimit

func (m *AutoscalingConfig_AutoscalingLimits) GetMaxLimit() isAutoscalingConfig_AutoscalingLimits_MaxLimit

func (*AutoscalingConfig_AutoscalingLimits) GetMaxNodes

func (x *AutoscalingConfig_AutoscalingLimits) GetMaxNodes() int32

func (*AutoscalingConfig_AutoscalingLimits) GetMaxProcessingUnits

func (x *AutoscalingConfig_AutoscalingLimits) GetMaxProcessingUnits() int32

func (*AutoscalingConfig_AutoscalingLimits) GetMinLimit

func (m *AutoscalingConfig_AutoscalingLimits) GetMinLimit() isAutoscalingConfig_AutoscalingLimits_MinLimit

func (*AutoscalingConfig_AutoscalingLimits) GetMinNodes

func (x *AutoscalingConfig_AutoscalingLimits) GetMinNodes() int32

func (*AutoscalingConfig_AutoscalingLimits) GetMinProcessingUnits

func (x *AutoscalingConfig_AutoscalingLimits) GetMinProcessingUnits() int32

func (*AutoscalingConfig_AutoscalingLimits) ProtoMessage

func (*AutoscalingConfig_AutoscalingLimits) ProtoMessage()

func (*AutoscalingConfig_AutoscalingLimits) ProtoReflect

func (*AutoscalingConfig_AutoscalingLimits) Reset

func (*AutoscalingConfig_AutoscalingLimits) String

type AutoscalingConfig_AutoscalingLimits_MaxNodes

type AutoscalingConfig_AutoscalingLimits_MaxNodes struct {
	// Maximum number of nodes allocated to the instance. If set, this number
	// should be greater than or equal to min_nodes.
	MaxNodes int32 `protobuf:"varint,3,opt,name=max_nodes,json=maxNodes,proto3,oneof"`
}

type AutoscalingConfig_AutoscalingLimits_MaxProcessingUnits

type AutoscalingConfig_AutoscalingLimits_MaxProcessingUnits struct {
	// Maximum number of processing units allocated to the instance. If set,
	// this number should be multiples of 1000 and be greater than or equal to
	// min_processing_units.
	MaxProcessingUnits int32 `protobuf:"varint,4,opt,name=max_processing_units,json=maxProcessingUnits,proto3,oneof"`
}

type AutoscalingConfig_AutoscalingLimits_MinNodes

type AutoscalingConfig_AutoscalingLimits_MinNodes struct {
	// Minimum number of nodes allocated to the instance. If set, this number
	// should be greater than or equal to 1.
	MinNodes int32 `protobuf:"varint,1,opt,name=min_nodes,json=minNodes,proto3,oneof"`
}

type AutoscalingConfig_AutoscalingLimits_MinProcessingUnits

type AutoscalingConfig_AutoscalingLimits_MinProcessingUnits struct {
	// Minimum number of processing units allocated to the instance. If set,
	// this number should be multiples of 1000.
	MinProcessingUnits int32 `protobuf:"varint,2,opt,name=min_processing_units,json=minProcessingUnits,proto3,oneof"`
}

type AutoscalingConfig_AutoscalingTargets

type AutoscalingConfig_AutoscalingTargets struct {

	// Required. The target high priority cpu utilization percentage that the
	// autoscaler should be trying to achieve for the instance. This number is
	// on a scale from 0 (no utilization) to 100 (full utilization). The valid
	// range is [10, 90] inclusive.
	HighPriorityCpuUtilizationPercent int32 `` /* 167-byte string literal not displayed */
	// Required. The target storage utilization percentage that the autoscaler
	// should be trying to achieve for the instance. This number is on a scale
	// from 0 (no utilization) to 100 (full utilization). The valid range is
	// [10, 99] inclusive.
	StorageUtilizationPercent int32 `` /* 139-byte string literal not displayed */
	// contains filtered or unexported fields
}

The autoscaling targets for an instance.

func (*AutoscalingConfig_AutoscalingTargets) Descriptor deprecated

func (*AutoscalingConfig_AutoscalingTargets) Descriptor() ([]byte, []int)

Deprecated: Use AutoscalingConfig_AutoscalingTargets.ProtoReflect.Descriptor instead.

func (*AutoscalingConfig_AutoscalingTargets) GetHighPriorityCpuUtilizationPercent

func (x *AutoscalingConfig_AutoscalingTargets) GetHighPriorityCpuUtilizationPercent() int32

func (*AutoscalingConfig_AutoscalingTargets) GetStorageUtilizationPercent

func (x *AutoscalingConfig_AutoscalingTargets) GetStorageUtilizationPercent() int32

func (*AutoscalingConfig_AutoscalingTargets) ProtoMessage

func (*AutoscalingConfig_AutoscalingTargets) ProtoMessage()

func (*AutoscalingConfig_AutoscalingTargets) ProtoReflect

func (*AutoscalingConfig_AutoscalingTargets) Reset

func (*AutoscalingConfig_AutoscalingTargets) String

type CreateInstanceConfigMetadata

type CreateInstanceConfigMetadata struct {

	// The target instance configuration end state.
	InstanceConfig *InstanceConfig `protobuf:"bytes,1,opt,name=instance_config,json=instanceConfig,proto3" json:"instance_config,omitempty"`
	// The progress of the
	// [CreateInstanceConfig][mockgcp.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig]
	// operation.
	Progress *OperationProgress `protobuf:"bytes,2,opt,name=progress,proto3" json:"progress,omitempty"`
	// The time at which this operation was cancelled.
	CancelTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=cancel_time,json=cancelTime,proto3" json:"cancel_time,omitempty"`
	// contains filtered or unexported fields
}

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

func (*CreateInstanceConfigMetadata) Descriptor deprecated

func (*CreateInstanceConfigMetadata) Descriptor() ([]byte, []int)

Deprecated: Use CreateInstanceConfigMetadata.ProtoReflect.Descriptor instead.

func (*CreateInstanceConfigMetadata) GetCancelTime

func (x *CreateInstanceConfigMetadata) GetCancelTime() *timestamp.Timestamp

func (*CreateInstanceConfigMetadata) GetInstanceConfig

func (x *CreateInstanceConfigMetadata) GetInstanceConfig() *InstanceConfig

func (*CreateInstanceConfigMetadata) GetProgress

func (*CreateInstanceConfigMetadata) ProtoMessage

func (*CreateInstanceConfigMetadata) ProtoMessage()

func (*CreateInstanceConfigMetadata) ProtoReflect

func (*CreateInstanceConfigMetadata) Reset

func (x *CreateInstanceConfigMetadata) Reset()

func (*CreateInstanceConfigMetadata) String

type CreateInstanceConfigRequest

type CreateInstanceConfigRequest struct {

	// Required. The name of the project in which to create the instance
	// configuration. Values are of the form `projects/<project>`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// 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.
	InstanceConfigId string `protobuf:"bytes,2,opt,name=instance_config_id,json=instanceConfigId,proto3" json:"instance_config_id,omitempty"`
	// 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.
	InstanceConfig *InstanceConfig `protobuf:"bytes,3,opt,name=instance_config,json=instanceConfig,proto3" json:"instance_config,omitempty"`
	// An option to validate, but not actually execute, a request,
	// and provide the same response.
	ValidateOnly bool `protobuf:"varint,4,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
	// contains filtered or unexported fields
}

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

func (*CreateInstanceConfigRequest) Descriptor deprecated

func (*CreateInstanceConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateInstanceConfigRequest.ProtoReflect.Descriptor instead.

func (*CreateInstanceConfigRequest) GetInstanceConfig

func (x *CreateInstanceConfigRequest) GetInstanceConfig() *InstanceConfig

func (*CreateInstanceConfigRequest) GetInstanceConfigId

func (x *CreateInstanceConfigRequest) GetInstanceConfigId() string

func (*CreateInstanceConfigRequest) GetParent

func (x *CreateInstanceConfigRequest) GetParent() string

func (*CreateInstanceConfigRequest) GetValidateOnly

func (x *CreateInstanceConfigRequest) GetValidateOnly() bool

func (*CreateInstanceConfigRequest) ProtoMessage

func (*CreateInstanceConfigRequest) ProtoMessage()

func (*CreateInstanceConfigRequest) ProtoReflect

func (*CreateInstanceConfigRequest) Reset

func (x *CreateInstanceConfigRequest) Reset()

func (*CreateInstanceConfigRequest) String

func (x *CreateInstanceConfigRequest) String() string

type CreateInstanceMetadata

type CreateInstanceMetadata struct {

	// The instance being created.
	Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
	// The time at which the
	// [CreateInstance][mockgcp.spanner.admin.instance.v1.InstanceAdmin.CreateInstance]
	// request was received.
	StartTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// The time at which this operation was cancelled. If set, this operation is
	// in the process of undoing itself (which is guaranteed to succeed) and
	// cannot be cancelled again.
	CancelTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=cancel_time,json=cancelTime,proto3" json:"cancel_time,omitempty"`
	// The time at which this operation failed or was completed successfully.
	EndTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// The expected fulfillment period of this create operation.
	ExpectedFulfillmentPeriod FulfillmentPeriod `` /* 196-byte string literal not displayed */
	// contains filtered or unexported fields
}

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

func (*CreateInstanceMetadata) Descriptor deprecated

func (*CreateInstanceMetadata) Descriptor() ([]byte, []int)

Deprecated: Use CreateInstanceMetadata.ProtoReflect.Descriptor instead.

func (*CreateInstanceMetadata) GetCancelTime

func (x *CreateInstanceMetadata) GetCancelTime() *timestamp.Timestamp

func (*CreateInstanceMetadata) GetEndTime

func (x *CreateInstanceMetadata) GetEndTime() *timestamp.Timestamp

func (*CreateInstanceMetadata) GetExpectedFulfillmentPeriod

func (x *CreateInstanceMetadata) GetExpectedFulfillmentPeriod() FulfillmentPeriod

func (*CreateInstanceMetadata) GetInstance

func (x *CreateInstanceMetadata) GetInstance() *Instance

func (*CreateInstanceMetadata) GetStartTime

func (x *CreateInstanceMetadata) GetStartTime() *timestamp.Timestamp

func (*CreateInstanceMetadata) ProtoMessage

func (*CreateInstanceMetadata) ProtoMessage()

func (*CreateInstanceMetadata) ProtoReflect

func (x *CreateInstanceMetadata) ProtoReflect() protoreflect.Message

func (*CreateInstanceMetadata) Reset

func (x *CreateInstanceMetadata) Reset()

func (*CreateInstanceMetadata) String

func (x *CreateInstanceMetadata) String() string

type CreateInstancePartitionMetadata

type CreateInstancePartitionMetadata struct {

	// The instance partition being created.
	InstancePartition *InstancePartition `protobuf:"bytes,1,opt,name=instance_partition,json=instancePartition,proto3" json:"instance_partition,omitempty"`
	// The time at which the
	// [CreateInstancePartition][mockgcp.spanner.admin.instance.v1.InstanceAdmin.CreateInstancePartition]
	// request was received.
	StartTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// The time at which this operation was cancelled. If set, this operation is
	// in the process of undoing itself (which is guaranteed to succeed) and
	// cannot be cancelled again.
	CancelTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=cancel_time,json=cancelTime,proto3" json:"cancel_time,omitempty"`
	// The time at which this operation failed or was completed successfully.
	EndTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// contains filtered or unexported fields
}

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

func (*CreateInstancePartitionMetadata) Descriptor deprecated

func (*CreateInstancePartitionMetadata) Descriptor() ([]byte, []int)

Deprecated: Use CreateInstancePartitionMetadata.ProtoReflect.Descriptor instead.

func (*CreateInstancePartitionMetadata) GetCancelTime

func (*CreateInstancePartitionMetadata) GetEndTime

func (*CreateInstancePartitionMetadata) GetInstancePartition

func (x *CreateInstancePartitionMetadata) GetInstancePartition() *InstancePartition

func (*CreateInstancePartitionMetadata) GetStartTime

func (*CreateInstancePartitionMetadata) ProtoMessage

func (*CreateInstancePartitionMetadata) ProtoMessage()

func (*CreateInstancePartitionMetadata) ProtoReflect

func (*CreateInstancePartitionMetadata) Reset

func (*CreateInstancePartitionMetadata) String

type CreateInstancePartitionRequest

type CreateInstancePartitionRequest struct {

	// Required. The name of the instance in which to create the instance
	// partition. Values are of the form
	// `projects/<project>/instances/<instance>`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// 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.
	InstancePartitionId string `protobuf:"bytes,2,opt,name=instance_partition_id,json=instancePartitionId,proto3" json:"instance_partition_id,omitempty"`
	// Required. The instance partition to create. The instance_partition.name may
	// be omitted, but if specified must be
	// `<parent>/instancePartitions/<instance_partition_id>`.
	InstancePartition *InstancePartition `protobuf:"bytes,3,opt,name=instance_partition,json=instancePartition,proto3" json:"instance_partition,omitempty"`
	// contains filtered or unexported fields
}

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

func (*CreateInstancePartitionRequest) Descriptor deprecated

func (*CreateInstancePartitionRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateInstancePartitionRequest.ProtoReflect.Descriptor instead.

func (*CreateInstancePartitionRequest) GetInstancePartition

func (x *CreateInstancePartitionRequest) GetInstancePartition() *InstancePartition

func (*CreateInstancePartitionRequest) GetInstancePartitionId

func (x *CreateInstancePartitionRequest) GetInstancePartitionId() string

func (*CreateInstancePartitionRequest) GetParent

func (x *CreateInstancePartitionRequest) GetParent() string

func (*CreateInstancePartitionRequest) ProtoMessage

func (*CreateInstancePartitionRequest) ProtoMessage()

func (*CreateInstancePartitionRequest) ProtoReflect

func (*CreateInstancePartitionRequest) Reset

func (x *CreateInstancePartitionRequest) Reset()

func (*CreateInstancePartitionRequest) String

type CreateInstanceRequest

type CreateInstanceRequest struct {

	// Required. The name of the project in which to create the instance. Values
	// are of the form `projects/<project>`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// 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.
	InstanceId string `protobuf:"bytes,2,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
	// Required. The instance to create.  The name may be omitted, but if
	// specified must be `<parent>/instances/<instance_id>`.
	Instance *Instance `protobuf:"bytes,3,opt,name=instance,proto3" json:"instance,omitempty"`
	// contains filtered or unexported fields
}

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

func (*CreateInstanceRequest) Descriptor deprecated

func (*CreateInstanceRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateInstanceRequest.ProtoReflect.Descriptor instead.

func (*CreateInstanceRequest) GetInstance

func (x *CreateInstanceRequest) GetInstance() *Instance

func (*CreateInstanceRequest) GetInstanceId

func (x *CreateInstanceRequest) GetInstanceId() string

func (*CreateInstanceRequest) GetParent

func (x *CreateInstanceRequest) GetParent() string

func (*CreateInstanceRequest) ProtoMessage

func (*CreateInstanceRequest) ProtoMessage()

func (*CreateInstanceRequest) ProtoReflect

func (x *CreateInstanceRequest) ProtoReflect() protoreflect.Message

func (*CreateInstanceRequest) Reset

func (x *CreateInstanceRequest) Reset()

func (*CreateInstanceRequest) String

func (x *CreateInstanceRequest) String() string

type DeleteInstanceConfigRequest

type DeleteInstanceConfigRequest struct {

	// Required. The name of the instance configuration to be deleted.
	// Values are of the form
	// `projects/<project>/instanceConfigs/<instance_config>`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// 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.
	Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"`
	// An option to validate, but not actually execute, a request,
	// and provide the same response.
	ValidateOnly bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
	// contains filtered or unexported fields
}

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

func (*DeleteInstanceConfigRequest) Descriptor deprecated

func (*DeleteInstanceConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteInstanceConfigRequest.ProtoReflect.Descriptor instead.

func (*DeleteInstanceConfigRequest) GetEtag

func (x *DeleteInstanceConfigRequest) GetEtag() string

func (*DeleteInstanceConfigRequest) GetName

func (x *DeleteInstanceConfigRequest) GetName() string

func (*DeleteInstanceConfigRequest) GetValidateOnly

func (x *DeleteInstanceConfigRequest) GetValidateOnly() bool

func (*DeleteInstanceConfigRequest) ProtoMessage

func (*DeleteInstanceConfigRequest) ProtoMessage()

func (*DeleteInstanceConfigRequest) ProtoReflect

func (*DeleteInstanceConfigRequest) Reset

func (x *DeleteInstanceConfigRequest) Reset()

func (*DeleteInstanceConfigRequest) String

func (x *DeleteInstanceConfigRequest) String() string

type DeleteInstancePartitionRequest

type DeleteInstancePartitionRequest struct {

	// Required. The name of the instance partition to be deleted.
	// Values are of the form
	// `projects/{project}/instances/{instance}/instancePartitions/{instance_partition}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// 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.
	Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"`
	// contains filtered or unexported fields
}

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

func (*DeleteInstancePartitionRequest) Descriptor deprecated

func (*DeleteInstancePartitionRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteInstancePartitionRequest.ProtoReflect.Descriptor instead.

func (*DeleteInstancePartitionRequest) GetEtag

func (*DeleteInstancePartitionRequest) GetName

func (*DeleteInstancePartitionRequest) ProtoMessage

func (*DeleteInstancePartitionRequest) ProtoMessage()

func (*DeleteInstancePartitionRequest) ProtoReflect

func (*DeleteInstancePartitionRequest) Reset

func (x *DeleteInstancePartitionRequest) Reset()

func (*DeleteInstancePartitionRequest) String

type DeleteInstanceRequest

type DeleteInstanceRequest struct {

	// Required. The name of the instance to be deleted. Values are of the form
	// `projects/<project>/instances/<instance>`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

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

func (*DeleteInstanceRequest) Descriptor deprecated

func (*DeleteInstanceRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteInstanceRequest.ProtoReflect.Descriptor instead.

func (*DeleteInstanceRequest) GetName

func (x *DeleteInstanceRequest) GetName() string

func (*DeleteInstanceRequest) ProtoMessage

func (*DeleteInstanceRequest) ProtoMessage()

func (*DeleteInstanceRequest) ProtoReflect

func (x *DeleteInstanceRequest) ProtoReflect() protoreflect.Message

func (*DeleteInstanceRequest) Reset

func (x *DeleteInstanceRequest) Reset()

func (*DeleteInstanceRequest) String

func (x *DeleteInstanceRequest) String() string

type FreeInstanceMetadata

type FreeInstanceMetadata struct {

	// 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.
	ExpireTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"`
	// Output only. If present, the timestamp at which the free instance was
	// upgraded to a provisioned instance.
	UpgradeTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=upgrade_time,json=upgradeTime,proto3" json:"upgrade_time,omitempty"`
	// 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.
	ExpireBehavior FreeInstanceMetadata_ExpireBehavior `` /* 179-byte string literal not displayed */
	// contains filtered or unexported fields
}

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

func (*FreeInstanceMetadata) Descriptor deprecated

func (*FreeInstanceMetadata) Descriptor() ([]byte, []int)

Deprecated: Use FreeInstanceMetadata.ProtoReflect.Descriptor instead.

func (*FreeInstanceMetadata) GetExpireBehavior

func (*FreeInstanceMetadata) GetExpireTime

func (x *FreeInstanceMetadata) GetExpireTime() *timestamp.Timestamp

func (*FreeInstanceMetadata) GetUpgradeTime

func (x *FreeInstanceMetadata) GetUpgradeTime() *timestamp.Timestamp

func (*FreeInstanceMetadata) ProtoMessage

func (*FreeInstanceMetadata) ProtoMessage()

func (*FreeInstanceMetadata) ProtoReflect

func (x *FreeInstanceMetadata) ProtoReflect() protoreflect.Message

func (*FreeInstanceMetadata) Reset

func (x *FreeInstanceMetadata) Reset()

func (*FreeInstanceMetadata) String

func (x *FreeInstanceMetadata) String() string

type FreeInstanceMetadata_ExpireBehavior

type FreeInstanceMetadata_ExpireBehavior int32

Allows users to change behavior when a free instance expires.

const (
	// Not specified.
	FreeInstanceMetadata_EXPIRE_BEHAVIOR_UNSPECIFIED FreeInstanceMetadata_ExpireBehavior = 0
	// When the free instance expires, upgrade the instance to a provisioned
	// instance.
	FreeInstanceMetadata_FREE_TO_PROVISIONED FreeInstanceMetadata_ExpireBehavior = 1
	// When the free instance expires, disable the instance, and delete it
	// after the grace period passes if it has not been upgraded.
	FreeInstanceMetadata_REMOVE_AFTER_GRACE_PERIOD FreeInstanceMetadata_ExpireBehavior = 2
)

func (FreeInstanceMetadata_ExpireBehavior) Descriptor

func (FreeInstanceMetadata_ExpireBehavior) Enum

func (FreeInstanceMetadata_ExpireBehavior) EnumDescriptor deprecated

func (FreeInstanceMetadata_ExpireBehavior) EnumDescriptor() ([]byte, []int)

Deprecated: Use FreeInstanceMetadata_ExpireBehavior.Descriptor instead.

func (FreeInstanceMetadata_ExpireBehavior) Number

func (FreeInstanceMetadata_ExpireBehavior) String

func (FreeInstanceMetadata_ExpireBehavior) Type

type FulfillmentPeriod

type FulfillmentPeriod int32

Indicates the expected fulfillment period of an operation.

const (
	// Not specified.
	FulfillmentPeriod_FULFILLMENT_PERIOD_UNSPECIFIED FulfillmentPeriod = 0
	// Normal fulfillment period. The operation is expected to complete within
	// minutes.
	FulfillmentPeriod_FULFILLMENT_PERIOD_NORMAL FulfillmentPeriod = 1
	// Extended fulfillment period. It can take up to an hour for the operation
	// to complete.
	FulfillmentPeriod_FULFILLMENT_PERIOD_EXTENDED FulfillmentPeriod = 2
)

func (FulfillmentPeriod) Descriptor

func (FulfillmentPeriod) Enum

func (FulfillmentPeriod) EnumDescriptor deprecated

func (FulfillmentPeriod) EnumDescriptor() ([]byte, []int)

Deprecated: Use FulfillmentPeriod.Descriptor instead.

func (FulfillmentPeriod) Number

func (FulfillmentPeriod) String

func (x FulfillmentPeriod) String() string

func (FulfillmentPeriod) Type

type GetInstanceConfigRequest

type GetInstanceConfigRequest struct {

	// Required. The name of the requested instance configuration. Values are of
	// the form `projects/<project>/instanceConfigs/<config>`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

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

func (*GetInstanceConfigRequest) Descriptor deprecated

func (*GetInstanceConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetInstanceConfigRequest.ProtoReflect.Descriptor instead.

func (*GetInstanceConfigRequest) GetName

func (x *GetInstanceConfigRequest) GetName() string

func (*GetInstanceConfigRequest) ProtoMessage

func (*GetInstanceConfigRequest) ProtoMessage()

func (*GetInstanceConfigRequest) ProtoReflect

func (x *GetInstanceConfigRequest) ProtoReflect() protoreflect.Message

func (*GetInstanceConfigRequest) Reset

func (x *GetInstanceConfigRequest) Reset()

func (*GetInstanceConfigRequest) String

func (x *GetInstanceConfigRequest) String() string

type GetInstancePartitionRequest

type GetInstancePartitionRequest struct {

	// Required. The name of the requested instance partition. Values are of
	// the form
	// `projects/{project}/instances/{instance}/instancePartitions/{instance_partition}`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

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

func (*GetInstancePartitionRequest) Descriptor deprecated

func (*GetInstancePartitionRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetInstancePartitionRequest.ProtoReflect.Descriptor instead.

func (*GetInstancePartitionRequest) GetName

func (x *GetInstancePartitionRequest) GetName() string

func (*GetInstancePartitionRequest) ProtoMessage

func (*GetInstancePartitionRequest) ProtoMessage()

func (*GetInstancePartitionRequest) ProtoReflect

func (*GetInstancePartitionRequest) Reset

func (x *GetInstancePartitionRequest) Reset()

func (*GetInstancePartitionRequest) String

func (x *GetInstancePartitionRequest) String() string

type GetInstanceRequest

type GetInstanceRequest struct {

	// Required. The name of the requested instance. Values are of the form
	// `projects/<project>/instances/<instance>`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// If field_mask is present, specifies the subset of
	// [Instance][mockgcp.spanner.admin.instance.v1.Instance] fields that should be
	// returned. If absent, all
	// [Instance][mockgcp.spanner.admin.instance.v1.Instance] fields are returned.
	FieldMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
	// contains filtered or unexported fields
}

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

func (*GetInstanceRequest) Descriptor deprecated

func (*GetInstanceRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetInstanceRequest.ProtoReflect.Descriptor instead.

func (*GetInstanceRequest) GetFieldMask

func (x *GetInstanceRequest) GetFieldMask() *field_mask.FieldMask

func (*GetInstanceRequest) GetName

func (x *GetInstanceRequest) GetName() string

func (*GetInstanceRequest) ProtoMessage

func (*GetInstanceRequest) ProtoMessage()

func (*GetInstanceRequest) ProtoReflect

func (x *GetInstanceRequest) ProtoReflect() protoreflect.Message

func (*GetInstanceRequest) Reset

func (x *GetInstanceRequest) Reset()

func (*GetInstanceRequest) String

func (x *GetInstanceRequest) String() string

type Instance

type Instance struct {

	// 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.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The name of the instance's configuration. Values are of the form
	// `projects/<project>/instanceConfigs/<configuration>`. See
	// also [InstanceConfig][mockgcp.spanner.admin.instance.v1.InstanceConfig] and
	// [ListInstanceConfigs][mockgcp.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].
	Config string `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	// 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.
	DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// 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).
	NodeCount int32 `protobuf:"varint,5,opt,name=node_count,json=nodeCount,proto3" json:"node_count,omitempty"`
	// 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).
	ProcessingUnits int32 `protobuf:"varint,9,opt,name=processing_units,json=processingUnits,proto3" json:"processing_units,omitempty"`
	// 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.
	ReplicaComputeCapacity []*ReplicaComputeCapacity `` /* 130-byte string literal not displayed */
	// 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.
	AutoscalingConfig *AutoscalingConfig `protobuf:"bytes,17,opt,name=autoscaling_config,json=autoscalingConfig,proto3" json:"autoscaling_config,omitempty"`
	// Output only. The current instance state. For
	// [CreateInstance][mockgcp.spanner.admin.instance.v1.InstanceAdmin.CreateInstance],
	// the state must be either omitted or set to `CREATING`. For
	// [UpdateInstance][mockgcp.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance],
	// the state must be either omitted or set to `READY`.
	State Instance_State `protobuf:"varint,6,opt,name=state,proto3,enum=mockgcp.spanner.admin.instance.v1.Instance_State" json:"state,omitempty"`
	// 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.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// The `InstanceType` of the current instance.
	InstanceType Instance_InstanceType `` /* 160-byte string literal not displayed */
	// Deprecated. This field is not populated.
	EndpointUris []string `protobuf:"bytes,8,rep,name=endpoint_uris,json=endpointUris,proto3" json:"endpoint_uris,omitempty"`
	// Output only. The time at which the instance was created.
	CreateTime *timestamp.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. The time at which the instance was most recently updated.
	UpdateTime *timestamp.Timestamp `protobuf:"bytes,12,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// Free instance metadata. Only populated for free instances.
	FreeInstanceMetadata *FreeInstanceMetadata `protobuf:"bytes,13,opt,name=free_instance_metadata,json=freeInstanceMetadata,proto3" json:"free_instance_metadata,omitempty"`
	// Optional. The `Edition` of the current instance.
	Edition Instance_Edition `protobuf:"varint,20,opt,name=edition,proto3,enum=mockgcp.spanner.admin.instance.v1.Instance_Edition" json:"edition,omitempty"`
	// 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.
	DefaultBackupScheduleType Instance_DefaultBackupScheduleType `` /* 216-byte string literal not displayed */
	// contains filtered or unexported fields
}

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

func (*Instance) Descriptor deprecated

func (*Instance) Descriptor() ([]byte, []int)

Deprecated: Use Instance.ProtoReflect.Descriptor instead.

func (*Instance) GetAutoscalingConfig

func (x *Instance) GetAutoscalingConfig() *AutoscalingConfig

func (*Instance) GetConfig

func (x *Instance) GetConfig() string

func (*Instance) GetCreateTime

func (x *Instance) GetCreateTime() *timestamp.Timestamp

func (*Instance) GetDefaultBackupScheduleType

func (x *Instance) GetDefaultBackupScheduleType() Instance_DefaultBackupScheduleType

func (*Instance) GetDisplayName

func (x *Instance) GetDisplayName() string

func (*Instance) GetEdition

func (x *Instance) GetEdition() Instance_Edition

func (*Instance) GetEndpointUris

func (x *Instance) GetEndpointUris() []string

func (*Instance) GetFreeInstanceMetadata

func (x *Instance) GetFreeInstanceMetadata() *FreeInstanceMetadata

func (*Instance) GetInstanceType

func (x *Instance) GetInstanceType() Instance_InstanceType

func (*Instance) GetLabels

func (x *Instance) GetLabels() map[string]string

func (*Instance) GetName

func (x *Instance) GetName() string

func (*Instance) GetNodeCount

func (x *Instance) GetNodeCount() int32

func (*Instance) GetProcessingUnits

func (x *Instance) GetProcessingUnits() int32

func (*Instance) GetReplicaComputeCapacity

func (x *Instance) GetReplicaComputeCapacity() []*ReplicaComputeCapacity

func (*Instance) GetState

func (x *Instance) GetState() Instance_State

func (*Instance) GetUpdateTime

func (x *Instance) GetUpdateTime() *timestamp.Timestamp

func (*Instance) ProtoMessage

func (*Instance) ProtoMessage()

func (*Instance) ProtoReflect

func (x *Instance) ProtoReflect() protoreflect.Message

func (*Instance) Reset

func (x *Instance) Reset()

func (*Instance) String

func (x *Instance) String() string

type InstanceAdminClient

type InstanceAdminClient interface {
	// Lists the supported instance configurations for a given project.
	//
	// Returns both Google-managed configurations and user-managed
	// configurations.
	ListInstanceConfigs(ctx context.Context, in *ListInstanceConfigsRequest, opts ...grpc.CallOption) (*ListInstanceConfigsResponse, error)
	// Gets information about a particular instance configuration.
	GetInstanceConfig(ctx context.Context, in *GetInstanceConfigRequest, opts ...grpc.CallOption) (*InstanceConfig, error)
	// Creates an instance configuration and begins preparing it to be used. The
	// returned long-running operation
	// can be used to track the progress of preparing the new
	// instance configuration. The instance configuration name is assigned by the
	// caller. If the named instance configuration already exists,
	// `CreateInstanceConfig` returns `ALREADY_EXISTS`.
	//
	// Immediately after the request returns:
	//
	//   - The instance configuration is readable via the API, with all requested
	//     attributes. The instance configuration's
	//     [reconciling][mockgcp.spanner.admin.instance.v1.InstanceConfig.reconciling]
	//     field is set to true. Its state is `CREATING`.
	//
	// While the operation is pending:
	//
	//   - Cancelling the operation renders the instance configuration immediately
	//     unreadable via the API.
	//   - Except for deleting the creating resource, all other attempts to modify
	//     the instance configuration are rejected.
	//
	// Upon completion of the returned operation:
	//
	//   - Instances can be created using the instance configuration.
	//   - The instance configuration's
	//     [reconciling][mockgcp.spanner.admin.instance.v1.InstanceConfig.reconciling]
	//     field becomes false. Its state becomes `READY`.
	//
	// The returned long-running operation will
	// have a name of the format
	// `<instance_config_name>/operations/<operation_id>` and can be used to track
	// creation of the instance configuration. The
	// metadata field type is
	// [CreateInstanceConfigMetadata][mockgcp.spanner.admin.instance.v1.CreateInstanceConfigMetadata].
	// The response field type is
	// [InstanceConfig][mockgcp.spanner.admin.instance.v1.InstanceConfig], if
	// successful.
	//
	// Authorization requires `spanner.instanceConfigs.create` permission on
	// the resource
	// [parent][mockgcp.spanner.admin.instance.v1.CreateInstanceConfigRequest.parent].
	CreateInstanceConfig(ctx context.Context, in *CreateInstanceConfigRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Updates an instance configuration. The returned
	// long-running operation can be used to track
	// the progress of updating the instance. If the named instance configuration
	// does not exist, returns `NOT_FOUND`.
	//
	// Only user-managed configurations can be updated.
	//
	// Immediately after the request returns:
	//
	//   - The instance configuration's
	//     [reconciling][mockgcp.spanner.admin.instance.v1.InstanceConfig.reconciling]
	//     field is set to true.
	//
	// While the operation is pending:
	//
	//   - Cancelling the operation sets its metadata's
	//     [cancel_time][mockgcp.spanner.admin.instance.v1.UpdateInstanceConfigMetadata.cancel_time].
	//     The operation is guaranteed to succeed at undoing all changes, after
	//     which point it terminates with a `CANCELLED` status.
	//   - All other attempts to modify the instance configuration are rejected.
	//   - Reading the instance configuration via the API continues to give the
	//     pre-request values.
	//
	// Upon completion of the returned operation:
	//
	//   - Creating instances using the instance configuration uses the new
	//     values.
	//   - The new values of the instance configuration are readable via the API.
	//   - The instance configuration's
	//     [reconciling][mockgcp.spanner.admin.instance.v1.InstanceConfig.reconciling]
	//     field becomes false.
	//
	// The returned long-running operation will
	// have a name of the format
	// `<instance_config_name>/operations/<operation_id>` and can be used to track
	// the instance configuration modification.  The
	// metadata field type is
	// [UpdateInstanceConfigMetadata][mockgcp.spanner.admin.instance.v1.UpdateInstanceConfigMetadata].
	// The response field type is
	// [InstanceConfig][mockgcp.spanner.admin.instance.v1.InstanceConfig], if
	// successful.
	//
	// Authorization requires `spanner.instanceConfigs.update` permission on
	// the resource [name][mockgcp.spanner.admin.instance.v1.InstanceConfig.name].
	UpdateInstanceConfig(ctx context.Context, in *UpdateInstanceConfigRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Deletes the instance configuration. Deletion is only allowed when no
	// instances are using the configuration. If any instances are using
	// the configuration, returns `FAILED_PRECONDITION`.
	//
	// Only user-managed configurations can be deleted.
	//
	// Authorization requires `spanner.instanceConfigs.delete` permission on
	// the resource [name][mockgcp.spanner.admin.instance.v1.InstanceConfig.name].
	DeleteInstanceConfig(ctx context.Context, in *DeleteInstanceConfigRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Lists the user-managed instance configuration long-running
	// operations in the given project. An instance
	// configuration operation has a name of the form
	// `projects/<project>/instanceConfigs/<instance_config>/operations/<operation>`.
	// The long-running operation
	// metadata field type
	// `metadata.type_url` describes the type of the metadata. Operations returned
	// include those that have completed/failed/canceled within the last 7 days,
	// and pending operations. Operations returned are ordered by
	// `operation.metadata.value.start_time` in descending order starting
	// from the most recently started operation.
	ListInstanceConfigOperations(ctx context.Context, in *ListInstanceConfigOperationsRequest, opts ...grpc.CallOption) (*ListInstanceConfigOperationsResponse, error)
	// Lists all instances in the given project.
	ListInstances(ctx context.Context, in *ListInstancesRequest, opts ...grpc.CallOption) (*ListInstancesResponse, error)
	// Lists all instance partitions for the given instance.
	ListInstancePartitions(ctx context.Context, in *ListInstancePartitionsRequest, opts ...grpc.CallOption) (*ListInstancePartitionsResponse, error)
	// Gets information about a particular instance.
	GetInstance(ctx context.Context, in *GetInstanceRequest, opts ...grpc.CallOption) (*Instance, error)
	// Creates an instance and begins preparing it to begin serving. The
	// returned long-running operation
	// can be used to track the progress of preparing the new
	// instance. The instance name is assigned by the caller. If the
	// named instance already exists, `CreateInstance` returns
	// `ALREADY_EXISTS`.
	//
	// Immediately upon completion of this request:
	//
	//   - The instance is readable via the API, with all requested attributes
	//     but no allocated resources. Its state is `CREATING`.
	//
	// Until completion of the returned operation:
	//
	//   - Cancelling the operation renders the instance immediately unreadable
	//     via the API.
	//   - The instance can be deleted.
	//   - All other attempts to modify the instance are rejected.
	//
	// Upon completion of the returned operation:
	//
	//   - Billing for all successfully-allocated resources begins (some types
	//     may have lower than the requested levels).
	//   - Databases can be created in the instance.
	//   - The instance's allocated resource levels are readable via the API.
	//   - The instance's state becomes `READY`.
	//
	// The returned long-running operation will
	// have a name of the format `<instance_name>/operations/<operation_id>` and
	// can be used to track creation of the instance.  The
	// metadata field type is
	// [CreateInstanceMetadata][mockgcp.spanner.admin.instance.v1.CreateInstanceMetadata].
	// The response field type is
	// [Instance][mockgcp.spanner.admin.instance.v1.Instance], if successful.
	CreateInstance(ctx context.Context, in *CreateInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Updates an instance, and begins allocating or releasing resources
	// as requested. The returned long-running operation can be used to track the
	// progress of updating the instance. If the named instance does not
	// exist, returns `NOT_FOUND`.
	//
	// Immediately upon completion of this request:
	//
	//   - For resource types for which a decrease in the instance's allocation
	//     has been requested, billing is based on the newly-requested level.
	//
	// Until completion of the returned operation:
	//
	//   - Cancelling the operation sets its metadata's
	//     [cancel_time][mockgcp.spanner.admin.instance.v1.UpdateInstanceMetadata.cancel_time],
	//     and begins restoring resources to their pre-request values. The
	//     operation is guaranteed to succeed at undoing all resource changes,
	//     after which point it terminates with a `CANCELLED` status.
	//   - All other attempts to modify the instance are rejected.
	//   - Reading the instance via the API continues to give the pre-request
	//     resource levels.
	//
	// Upon completion of the returned operation:
	//
	//   - Billing begins for all successfully-allocated resources (some types
	//     may have lower than the requested levels).
	//   - All newly-reserved resources are available for serving the instance's
	//     tables.
	//   - The instance's new resource levels are readable via the API.
	//
	// The returned long-running operation will
	// have a name of the format `<instance_name>/operations/<operation_id>` and
	// can be used to track the instance modification.  The
	// metadata field type is
	// [UpdateInstanceMetadata][mockgcp.spanner.admin.instance.v1.UpdateInstanceMetadata].
	// The response field type is
	// [Instance][mockgcp.spanner.admin.instance.v1.Instance], if successful.
	//
	// Authorization requires `spanner.instances.update` permission on
	// the resource [name][mockgcp.spanner.admin.instance.v1.Instance.name].
	UpdateInstance(ctx context.Context, in *UpdateInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Deletes an instance.
	//
	// Immediately upon completion of the request:
	//
	//   - Billing ceases for all of the instance's reserved resources.
	//
	// Soon afterward:
	//
	//   - The instance and *all of its databases* immediately and
	//     irrevocably disappear from the API. All data in the databases
	//     is permanently deleted.
	DeleteInstance(ctx context.Context, in *DeleteInstanceRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Sets the access control policy on an instance resource. Replaces any
	// existing policy.
	//
	// Authorization requires `spanner.instances.setIamPolicy` on
	// [resource][mockgcp.iam.v1.SetIamPolicyRequest.resource].
	SetIamPolicy(ctx context.Context, in *iampb.SetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error)
	// Gets the access control policy for an instance resource. Returns an empty
	// policy if an instance exists but does not have a policy set.
	//
	// Authorization requires `spanner.instances.getIamPolicy` on
	// [resource][mockgcp.iam.v1.GetIamPolicyRequest.resource].
	GetIamPolicy(ctx context.Context, in *iampb.GetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error)
	// Returns permissions that the caller has on the specified instance resource.
	//
	// Attempting this RPC on a non-existent Cloud Spanner instance resource will
	// result in a NOT_FOUND error if the user has `spanner.instances.list`
	// permission on the containing Google Cloud Project. Otherwise returns an
	// empty set of permissions.
	TestIamPermissions(ctx context.Context, in *iampb.TestIamPermissionsRequest, opts ...grpc.CallOption) (*iampb.TestIamPermissionsResponse, error)
	// Gets information about a particular instance partition.
	GetInstancePartition(ctx context.Context, in *GetInstancePartitionRequest, opts ...grpc.CallOption) (*InstancePartition, error)
	// Creates an instance partition and begins preparing it to be used. The
	// returned long-running operation
	// can be used to track the progress of preparing the new instance partition.
	// The instance partition name is assigned by the caller. If the named
	// instance partition already exists, `CreateInstancePartition` returns
	// `ALREADY_EXISTS`.
	//
	// Immediately upon completion of this request:
	//
	//   - The instance partition is readable via the API, with all requested
	//     attributes but no allocated resources. Its state is `CREATING`.
	//
	// Until completion of the returned operation:
	//
	//   - Cancelling the operation renders the instance partition immediately
	//     unreadable via the API.
	//   - The instance partition can be deleted.
	//   - All other attempts to modify the instance partition are rejected.
	//
	// Upon completion of the returned operation:
	//
	//   - Billing for all successfully-allocated resources begins (some types
	//     may have lower than the requested levels).
	//   - Databases can start using this instance partition.
	//   - The instance partition's allocated resource levels are readable via the
	//     API.
	//   - The instance partition's state becomes `READY`.
	//
	// The returned long-running operation will
	// have a name of the format
	// `<instance_partition_name>/operations/<operation_id>` and can be used to
	// track creation of the instance partition.  The
	// metadata field type is
	// [CreateInstancePartitionMetadata][mockgcp.spanner.admin.instance.v1.CreateInstancePartitionMetadata].
	// The response field type is
	// [InstancePartition][mockgcp.spanner.admin.instance.v1.InstancePartition], if
	// successful.
	CreateInstancePartition(ctx context.Context, in *CreateInstancePartitionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Deletes an existing instance partition. Requires that the
	// instance partition is not used by any database or backup and is not the
	// default instance partition of an instance.
	//
	// Authorization requires `spanner.instancePartitions.delete` permission on
	// the resource
	// [name][mockgcp.spanner.admin.instance.v1.InstancePartition.name].
	DeleteInstancePartition(ctx context.Context, in *DeleteInstancePartitionRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Updates an instance partition, and begins allocating or releasing resources
	// as requested. The returned long-running operation can be used to track the
	// progress of updating the instance partition. If the named instance
	// partition does not exist, returns `NOT_FOUND`.
	//
	// Immediately upon completion of this request:
	//
	//   - For resource types for which a decrease in the instance partition's
	//     allocation has been requested, billing is based on the newly-requested
	//     level.
	//
	// Until completion of the returned operation:
	//
	//   - Cancelling the operation sets its metadata's
	//     [cancel_time][mockgcp.spanner.admin.instance.v1.UpdateInstancePartitionMetadata.cancel_time],
	//     and begins restoring resources to their pre-request values. The
	//     operation is guaranteed to succeed at undoing all resource changes,
	//     after which point it terminates with a `CANCELLED` status.
	//   - All other attempts to modify the instance partition are rejected.
	//   - Reading the instance partition via the API continues to give the
	//     pre-request resource levels.
	//
	// Upon completion of the returned operation:
	//
	//   - Billing begins for all successfully-allocated resources (some types
	//     may have lower than the requested levels).
	//   - All newly-reserved resources are available for serving the instance
	//     partition's tables.
	//   - The instance partition's new resource levels are readable via the API.
	//
	// The returned long-running operation will
	// have a name of the format
	// `<instance_partition_name>/operations/<operation_id>` and can be used to
	// track the instance partition modification. The
	// metadata field type is
	// [UpdateInstancePartitionMetadata][mockgcp.spanner.admin.instance.v1.UpdateInstancePartitionMetadata].
	// The response field type is
	// [InstancePartition][mockgcp.spanner.admin.instance.v1.InstancePartition], if
	// successful.
	//
	// Authorization requires `spanner.instancePartitions.update` permission on
	// the resource
	// [name][mockgcp.spanner.admin.instance.v1.InstancePartition.name].
	UpdateInstancePartition(ctx context.Context, in *UpdateInstancePartitionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Lists instance partition long-running operations in the given instance.
	// An instance partition operation has a name of the form
	// `projects/<project>/instances/<instance>/instancePartitions/<instance_partition>/operations/<operation>`.
	// The long-running operation
	// metadata field type
	// `metadata.type_url` describes the type of the metadata. Operations returned
	// include those that have completed/failed/canceled within the last 7 days,
	// and pending operations. Operations returned are ordered by
	// `operation.metadata.value.start_time` in descending order starting from the
	// most recently started operation.
	//
	// Authorization requires `spanner.instancePartitionOperations.list`
	// permission on the resource
	// [parent][mockgcp.spanner.admin.instance.v1.ListInstancePartitionOperationsRequest.parent].
	ListInstancePartitionOperations(ctx context.Context, in *ListInstancePartitionOperationsRequest, opts ...grpc.CallOption) (*ListInstancePartitionOperationsResponse, error)
	// Moves an instance to the target instance configuration. You can use the
	// returned long-running operation to track
	// the progress of moving the instance.
	//
	// `MoveInstance` returns `FAILED_PRECONDITION` if the instance meets any of
	// the following criteria:
	//
	//   - Is undergoing a move to a different instance configuration
	//   - Has backups
	//   - Has an ongoing update
	//   - Contains any CMEK-enabled databases
	//   - Is a free trial instance
	//
	// While the operation is pending:
	//
	//   - All other attempts to modify the instance, including changes to its
	//     compute capacity, are rejected.
	//
	//   - The following database and backup admin operations are rejected:
	//
	//   - `DatabaseAdmin.CreateDatabase`
	//
	//   - `DatabaseAdmin.UpdateDatabaseDdl` (disabled if default_leader is
	//     specified in the request.)
	//
	//   - `DatabaseAdmin.RestoreDatabase`
	//
	//   - `DatabaseAdmin.CreateBackup`
	//
	//   - `DatabaseAdmin.CopyBackup`
	//
	//   - Both the source and target instance configurations are subject to
	//     hourly compute and storage charges.
	//
	//   - The instance might experience higher read-write latencies and a higher
	//     transaction abort rate. However, moving an instance doesn't cause any
	//     downtime.
	//
	// The returned long-running operation has
	// a name of the format
	// `<instance_name>/operations/<operation_id>` and can be used to track
	// the move instance operation. The
	// metadata field type is
	// [MoveInstanceMetadata][mockgcp.spanner.admin.instance.v1.MoveInstanceMetadata].
	// The response field type is
	// [Instance][mockgcp.spanner.admin.instance.v1.Instance],
	// if successful.
	// Cancelling the operation sets its metadata's
	// [cancel_time][mockgcp.spanner.admin.instance.v1.MoveInstanceMetadata.cancel_time].
	// Cancellation is not immediate because it involves moving any data
	// previously moved to the target instance configuration back to the original
	// instance configuration. You can use this operation to track the progress of
	// the cancellation. Upon successful completion of the cancellation, the
	// operation terminates with `CANCELLED` status.
	//
	// If not cancelled, upon completion of the returned operation:
	//
	//   - The instance successfully moves to the target instance
	//     configuration.
	//   - You are billed for compute and storage in target instance
	//     configuration.
	//
	// Authorization requires the `spanner.instances.update` permission on
	// the resource [instance][mockgcp.spanner.admin.instance.v1.Instance].
	//
	// For more details, see
	// [Move an instance](https://cloud.google.com/spanner/docs/move-instance).
	MoveInstance(ctx context.Context, in *MoveInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
}

InstanceAdminClient is the client API for InstanceAdmin service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type InstanceAdminServer

type InstanceAdminServer interface {
	// Lists the supported instance configurations for a given project.
	//
	// Returns both Google-managed configurations and user-managed
	// configurations.
	ListInstanceConfigs(context.Context, *ListInstanceConfigsRequest) (*ListInstanceConfigsResponse, error)
	// Gets information about a particular instance configuration.
	GetInstanceConfig(context.Context, *GetInstanceConfigRequest) (*InstanceConfig, error)
	// Creates an instance configuration and begins preparing it to be used. The
	// returned long-running operation
	// can be used to track the progress of preparing the new
	// instance configuration. The instance configuration name is assigned by the
	// caller. If the named instance configuration already exists,
	// `CreateInstanceConfig` returns `ALREADY_EXISTS`.
	//
	// Immediately after the request returns:
	//
	//   - The instance configuration is readable via the API, with all requested
	//     attributes. The instance configuration's
	//     [reconciling][mockgcp.spanner.admin.instance.v1.InstanceConfig.reconciling]
	//     field is set to true. Its state is `CREATING`.
	//
	// While the operation is pending:
	//
	//   - Cancelling the operation renders the instance configuration immediately
	//     unreadable via the API.
	//   - Except for deleting the creating resource, all other attempts to modify
	//     the instance configuration are rejected.
	//
	// Upon completion of the returned operation:
	//
	//   - Instances can be created using the instance configuration.
	//   - The instance configuration's
	//     [reconciling][mockgcp.spanner.admin.instance.v1.InstanceConfig.reconciling]
	//     field becomes false. Its state becomes `READY`.
	//
	// The returned long-running operation will
	// have a name of the format
	// `<instance_config_name>/operations/<operation_id>` and can be used to track
	// creation of the instance configuration. The
	// metadata field type is
	// [CreateInstanceConfigMetadata][mockgcp.spanner.admin.instance.v1.CreateInstanceConfigMetadata].
	// The response field type is
	// [InstanceConfig][mockgcp.spanner.admin.instance.v1.InstanceConfig], if
	// successful.
	//
	// Authorization requires `spanner.instanceConfigs.create` permission on
	// the resource
	// [parent][mockgcp.spanner.admin.instance.v1.CreateInstanceConfigRequest.parent].
	CreateInstanceConfig(context.Context, *CreateInstanceConfigRequest) (*longrunningpb.Operation, error)
	// Updates an instance configuration. The returned
	// long-running operation can be used to track
	// the progress of updating the instance. If the named instance configuration
	// does not exist, returns `NOT_FOUND`.
	//
	// Only user-managed configurations can be updated.
	//
	// Immediately after the request returns:
	//
	//   - The instance configuration's
	//     [reconciling][mockgcp.spanner.admin.instance.v1.InstanceConfig.reconciling]
	//     field is set to true.
	//
	// While the operation is pending:
	//
	//   - Cancelling the operation sets its metadata's
	//     [cancel_time][mockgcp.spanner.admin.instance.v1.UpdateInstanceConfigMetadata.cancel_time].
	//     The operation is guaranteed to succeed at undoing all changes, after
	//     which point it terminates with a `CANCELLED` status.
	//   - All other attempts to modify the instance configuration are rejected.
	//   - Reading the instance configuration via the API continues to give the
	//     pre-request values.
	//
	// Upon completion of the returned operation:
	//
	//   - Creating instances using the instance configuration uses the new
	//     values.
	//   - The new values of the instance configuration are readable via the API.
	//   - The instance configuration's
	//     [reconciling][mockgcp.spanner.admin.instance.v1.InstanceConfig.reconciling]
	//     field becomes false.
	//
	// The returned long-running operation will
	// have a name of the format
	// `<instance_config_name>/operations/<operation_id>` and can be used to track
	// the instance configuration modification.  The
	// metadata field type is
	// [UpdateInstanceConfigMetadata][mockgcp.spanner.admin.instance.v1.UpdateInstanceConfigMetadata].
	// The response field type is
	// [InstanceConfig][mockgcp.spanner.admin.instance.v1.InstanceConfig], if
	// successful.
	//
	// Authorization requires `spanner.instanceConfigs.update` permission on
	// the resource [name][mockgcp.spanner.admin.instance.v1.InstanceConfig.name].
	UpdateInstanceConfig(context.Context, *UpdateInstanceConfigRequest) (*longrunningpb.Operation, error)
	// Deletes the instance configuration. Deletion is only allowed when no
	// instances are using the configuration. If any instances are using
	// the configuration, returns `FAILED_PRECONDITION`.
	//
	// Only user-managed configurations can be deleted.
	//
	// Authorization requires `spanner.instanceConfigs.delete` permission on
	// the resource [name][mockgcp.spanner.admin.instance.v1.InstanceConfig.name].
	DeleteInstanceConfig(context.Context, *DeleteInstanceConfigRequest) (*empty.Empty, error)
	// Lists the user-managed instance configuration long-running
	// operations in the given project. An instance
	// configuration operation has a name of the form
	// `projects/<project>/instanceConfigs/<instance_config>/operations/<operation>`.
	// The long-running operation
	// metadata field type
	// `metadata.type_url` describes the type of the metadata. Operations returned
	// include those that have completed/failed/canceled within the last 7 days,
	// and pending operations. Operations returned are ordered by
	// `operation.metadata.value.start_time` in descending order starting
	// from the most recently started operation.
	ListInstanceConfigOperations(context.Context, *ListInstanceConfigOperationsRequest) (*ListInstanceConfigOperationsResponse, error)
	// Lists all instances in the given project.
	ListInstances(context.Context, *ListInstancesRequest) (*ListInstancesResponse, error)
	// Lists all instance partitions for the given instance.
	ListInstancePartitions(context.Context, *ListInstancePartitionsRequest) (*ListInstancePartitionsResponse, error)
	// Gets information about a particular instance.
	GetInstance(context.Context, *GetInstanceRequest) (*Instance, error)
	// Creates an instance and begins preparing it to begin serving. The
	// returned long-running operation
	// can be used to track the progress of preparing the new
	// instance. The instance name is assigned by the caller. If the
	// named instance already exists, `CreateInstance` returns
	// `ALREADY_EXISTS`.
	//
	// Immediately upon completion of this request:
	//
	//   - The instance is readable via the API, with all requested attributes
	//     but no allocated resources. Its state is `CREATING`.
	//
	// Until completion of the returned operation:
	//
	//   - Cancelling the operation renders the instance immediately unreadable
	//     via the API.
	//   - The instance can be deleted.
	//   - All other attempts to modify the instance are rejected.
	//
	// Upon completion of the returned operation:
	//
	//   - Billing for all successfully-allocated resources begins (some types
	//     may have lower than the requested levels).
	//   - Databases can be created in the instance.
	//   - The instance's allocated resource levels are readable via the API.
	//   - The instance's state becomes `READY`.
	//
	// The returned long-running operation will
	// have a name of the format `<instance_name>/operations/<operation_id>` and
	// can be used to track creation of the instance.  The
	// metadata field type is
	// [CreateInstanceMetadata][mockgcp.spanner.admin.instance.v1.CreateInstanceMetadata].
	// The response field type is
	// [Instance][mockgcp.spanner.admin.instance.v1.Instance], if successful.
	CreateInstance(context.Context, *CreateInstanceRequest) (*longrunningpb.Operation, error)
	// Updates an instance, and begins allocating or releasing resources
	// as requested. The returned long-running operation can be used to track the
	// progress of updating the instance. If the named instance does not
	// exist, returns `NOT_FOUND`.
	//
	// Immediately upon completion of this request:
	//
	//   - For resource types for which a decrease in the instance's allocation
	//     has been requested, billing is based on the newly-requested level.
	//
	// Until completion of the returned operation:
	//
	//   - Cancelling the operation sets its metadata's
	//     [cancel_time][mockgcp.spanner.admin.instance.v1.UpdateInstanceMetadata.cancel_time],
	//     and begins restoring resources to their pre-request values. The
	//     operation is guaranteed to succeed at undoing all resource changes,
	//     after which point it terminates with a `CANCELLED` status.
	//   - All other attempts to modify the instance are rejected.
	//   - Reading the instance via the API continues to give the pre-request
	//     resource levels.
	//
	// Upon completion of the returned operation:
	//
	//   - Billing begins for all successfully-allocated resources (some types
	//     may have lower than the requested levels).
	//   - All newly-reserved resources are available for serving the instance's
	//     tables.
	//   - The instance's new resource levels are readable via the API.
	//
	// The returned long-running operation will
	// have a name of the format `<instance_name>/operations/<operation_id>` and
	// can be used to track the instance modification.  The
	// metadata field type is
	// [UpdateInstanceMetadata][mockgcp.spanner.admin.instance.v1.UpdateInstanceMetadata].
	// The response field type is
	// [Instance][mockgcp.spanner.admin.instance.v1.Instance], if successful.
	//
	// Authorization requires `spanner.instances.update` permission on
	// the resource [name][mockgcp.spanner.admin.instance.v1.Instance.name].
	UpdateInstance(context.Context, *UpdateInstanceRequest) (*longrunningpb.Operation, error)
	// Deletes an instance.
	//
	// Immediately upon completion of the request:
	//
	//   - Billing ceases for all of the instance's reserved resources.
	//
	// Soon afterward:
	//
	//   - The instance and *all of its databases* immediately and
	//     irrevocably disappear from the API. All data in the databases
	//     is permanently deleted.
	DeleteInstance(context.Context, *DeleteInstanceRequest) (*empty.Empty, error)
	// Sets the access control policy on an instance resource. Replaces any
	// existing policy.
	//
	// Authorization requires `spanner.instances.setIamPolicy` on
	// [resource][mockgcp.iam.v1.SetIamPolicyRequest.resource].
	SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error)
	// Gets the access control policy for an instance resource. Returns an empty
	// policy if an instance exists but does not have a policy set.
	//
	// Authorization requires `spanner.instances.getIamPolicy` on
	// [resource][mockgcp.iam.v1.GetIamPolicyRequest.resource].
	GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error)
	// Returns permissions that the caller has on the specified instance resource.
	//
	// Attempting this RPC on a non-existent Cloud Spanner instance resource will
	// result in a NOT_FOUND error if the user has `spanner.instances.list`
	// permission on the containing Google Cloud Project. Otherwise returns an
	// empty set of permissions.
	TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error)
	// Gets information about a particular instance partition.
	GetInstancePartition(context.Context, *GetInstancePartitionRequest) (*InstancePartition, error)
	// Creates an instance partition and begins preparing it to be used. The
	// returned long-running operation
	// can be used to track the progress of preparing the new instance partition.
	// The instance partition name is assigned by the caller. If the named
	// instance partition already exists, `CreateInstancePartition` returns
	// `ALREADY_EXISTS`.
	//
	// Immediately upon completion of this request:
	//
	//   - The instance partition is readable via the API, with all requested
	//     attributes but no allocated resources. Its state is `CREATING`.
	//
	// Until completion of the returned operation:
	//
	//   - Cancelling the operation renders the instance partition immediately
	//     unreadable via the API.
	//   - The instance partition can be deleted.
	//   - All other attempts to modify the instance partition are rejected.
	//
	// Upon completion of the returned operation:
	//
	//   - Billing for all successfully-allocated resources begins (some types
	//     may have lower than the requested levels).
	//   - Databases can start using this instance partition.
	//   - The instance partition's allocated resource levels are readable via the
	//     API.
	//   - The instance partition's state becomes `READY`.
	//
	// The returned long-running operation will
	// have a name of the format
	// `<instance_partition_name>/operations/<operation_id>` and can be used to
	// track creation of the instance partition.  The
	// metadata field type is
	// [CreateInstancePartitionMetadata][mockgcp.spanner.admin.instance.v1.CreateInstancePartitionMetadata].
	// The response field type is
	// [InstancePartition][mockgcp.spanner.admin.instance.v1.InstancePartition], if
	// successful.
	CreateInstancePartition(context.Context, *CreateInstancePartitionRequest) (*longrunningpb.Operation, error)
	// Deletes an existing instance partition. Requires that the
	// instance partition is not used by any database or backup and is not the
	// default instance partition of an instance.
	//
	// Authorization requires `spanner.instancePartitions.delete` permission on
	// the resource
	// [name][mockgcp.spanner.admin.instance.v1.InstancePartition.name].
	DeleteInstancePartition(context.Context, *DeleteInstancePartitionRequest) (*empty.Empty, error)
	// Updates an instance partition, and begins allocating or releasing resources
	// as requested. The returned long-running operation can be used to track the
	// progress of updating the instance partition. If the named instance
	// partition does not exist, returns `NOT_FOUND`.
	//
	// Immediately upon completion of this request:
	//
	//   - For resource types for which a decrease in the instance partition's
	//     allocation has been requested, billing is based on the newly-requested
	//     level.
	//
	// Until completion of the returned operation:
	//
	//   - Cancelling the operation sets its metadata's
	//     [cancel_time][mockgcp.spanner.admin.instance.v1.UpdateInstancePartitionMetadata.cancel_time],
	//     and begins restoring resources to their pre-request values. The
	//     operation is guaranteed to succeed at undoing all resource changes,
	//     after which point it terminates with a `CANCELLED` status.
	//   - All other attempts to modify the instance partition are rejected.
	//   - Reading the instance partition via the API continues to give the
	//     pre-request resource levels.
	//
	// Upon completion of the returned operation:
	//
	//   - Billing begins for all successfully-allocated resources (some types
	//     may have lower than the requested levels).
	//   - All newly-reserved resources are available for serving the instance
	//     partition's tables.
	//   - The instance partition's new resource levels are readable via the API.
	//
	// The returned long-running operation will
	// have a name of the format
	// `<instance_partition_name>/operations/<operation_id>` and can be used to
	// track the instance partition modification. The
	// metadata field type is
	// [UpdateInstancePartitionMetadata][mockgcp.spanner.admin.instance.v1.UpdateInstancePartitionMetadata].
	// The response field type is
	// [InstancePartition][mockgcp.spanner.admin.instance.v1.InstancePartition], if
	// successful.
	//
	// Authorization requires `spanner.instancePartitions.update` permission on
	// the resource
	// [name][mockgcp.spanner.admin.instance.v1.InstancePartition.name].
	UpdateInstancePartition(context.Context, *UpdateInstancePartitionRequest) (*longrunningpb.Operation, error)
	// Lists instance partition long-running operations in the given instance.
	// An instance partition operation has a name of the form
	// `projects/<project>/instances/<instance>/instancePartitions/<instance_partition>/operations/<operation>`.
	// The long-running operation
	// metadata field type
	// `metadata.type_url` describes the type of the metadata. Operations returned
	// include those that have completed/failed/canceled within the last 7 days,
	// and pending operations. Operations returned are ordered by
	// `operation.metadata.value.start_time` in descending order starting from the
	// most recently started operation.
	//
	// Authorization requires `spanner.instancePartitionOperations.list`
	// permission on the resource
	// [parent][mockgcp.spanner.admin.instance.v1.ListInstancePartitionOperationsRequest.parent].
	ListInstancePartitionOperations(context.Context, *ListInstancePartitionOperationsRequest) (*ListInstancePartitionOperationsResponse, error)
	// Moves an instance to the target instance configuration. You can use the
	// returned long-running operation to track
	// the progress of moving the instance.
	//
	// `MoveInstance` returns `FAILED_PRECONDITION` if the instance meets any of
	// the following criteria:
	//
	//   - Is undergoing a move to a different instance configuration
	//   - Has backups
	//   - Has an ongoing update
	//   - Contains any CMEK-enabled databases
	//   - Is a free trial instance
	//
	// While the operation is pending:
	//
	//   - All other attempts to modify the instance, including changes to its
	//     compute capacity, are rejected.
	//
	//   - The following database and backup admin operations are rejected:
	//
	//   - `DatabaseAdmin.CreateDatabase`
	//
	//   - `DatabaseAdmin.UpdateDatabaseDdl` (disabled if default_leader is
	//     specified in the request.)
	//
	//   - `DatabaseAdmin.RestoreDatabase`
	//
	//   - `DatabaseAdmin.CreateBackup`
	//
	//   - `DatabaseAdmin.CopyBackup`
	//
	//   - Both the source and target instance configurations are subject to
	//     hourly compute and storage charges.
	//
	//   - The instance might experience higher read-write latencies and a higher
	//     transaction abort rate. However, moving an instance doesn't cause any
	//     downtime.
	//
	// The returned long-running operation has
	// a name of the format
	// `<instance_name>/operations/<operation_id>` and can be used to track
	// the move instance operation. The
	// metadata field type is
	// [MoveInstanceMetadata][mockgcp.spanner.admin.instance.v1.MoveInstanceMetadata].
	// The response field type is
	// [Instance][mockgcp.spanner.admin.instance.v1.Instance],
	// if successful.
	// Cancelling the operation sets its metadata's
	// [cancel_time][mockgcp.spanner.admin.instance.v1.MoveInstanceMetadata.cancel_time].
	// Cancellation is not immediate because it involves moving any data
	// previously moved to the target instance configuration back to the original
	// instance configuration. You can use this operation to track the progress of
	// the cancellation. Upon successful completion of the cancellation, the
	// operation terminates with `CANCELLED` status.
	//
	// If not cancelled, upon completion of the returned operation:
	//
	//   - The instance successfully moves to the target instance
	//     configuration.
	//   - You are billed for compute and storage in target instance
	//     configuration.
	//
	// Authorization requires the `spanner.instances.update` permission on
	// the resource [instance][mockgcp.spanner.admin.instance.v1.Instance].
	//
	// For more details, see
	// [Move an instance](https://cloud.google.com/spanner/docs/move-instance).
	MoveInstance(context.Context, *MoveInstanceRequest) (*longrunningpb.Operation, error)
	// contains filtered or unexported methods
}

InstanceAdminServer is the server API for InstanceAdmin service. All implementations must embed UnimplementedInstanceAdminServer for forward compatibility

type InstanceConfig

type InstanceConfig struct {

	// 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-`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The name of this instance configuration as it appears in UIs.
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Output only. Whether this instance configuration is a Google-managed or
	// user-managed configuration.
	ConfigType InstanceConfig_Type `` /* 151-byte string literal not displayed */
	// 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`.
	Replicas []*ReplicaInfo `protobuf:"bytes,3,rep,name=replicas,proto3" json:"replicas,omitempty"`
	// Output only. The available optional replicas to choose from for
	// user-managed configurations. Populated for Google-managed configurations.
	OptionalReplicas []*ReplicaInfo `protobuf:"bytes,6,rep,name=optional_replicas,json=optionalReplicas,proto3" json:"optional_replicas,omitempty"`
	// 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.
	BaseConfig string `protobuf:"bytes,7,opt,name=base_config,json=baseConfig,proto3" json:"base_config,omitempty"`
	// 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.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// 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.
	Etag string `protobuf:"bytes,9,opt,name=etag,proto3" json:"etag,omitempty"`
	// Allowed values of the "default_leader" schema option for databases in
	// instances that use this instance configuration.
	LeaderOptions []string `protobuf:"bytes,4,rep,name=leader_options,json=leaderOptions,proto3" json:"leader_options,omitempty"`
	// Output only. If true, the instance configuration is being created or
	// updated. If false, there are no ongoing operations for the instance
	// configuration.
	Reconciling bool `protobuf:"varint,10,opt,name=reconciling,proto3" json:"reconciling,omitempty"`
	// Output only. The current instance configuration state. Applicable only for
	// `USER_MANAGED` configurations.
	State InstanceConfig_State `protobuf:"varint,11,opt,name=state,proto3,enum=mockgcp.spanner.admin.instance.v1.InstanceConfig_State" json:"state,omitempty"`
	// Output only. Describes whether free instances are available to be created
	// in this instance configuration.
	FreeInstanceAvailability InstanceConfig_FreeInstanceAvailability `` /* 216-byte string literal not displayed */
	// Output only. The `QuorumType` of the instance configuration.
	QuorumType InstanceConfig_QuorumType `` /* 158-byte string literal not displayed */
	// Output only. The storage limit in bytes per processing unit.
	StorageLimitPerProcessingUnit int64 `` /* 156-byte string literal not displayed */
	// contains filtered or unexported fields
}

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

func (*InstanceConfig) Descriptor deprecated

func (*InstanceConfig) Descriptor() ([]byte, []int)

Deprecated: Use InstanceConfig.ProtoReflect.Descriptor instead.

func (*InstanceConfig) GetBaseConfig

func (x *InstanceConfig) GetBaseConfig() string

func (*InstanceConfig) GetConfigType

func (x *InstanceConfig) GetConfigType() InstanceConfig_Type

func (*InstanceConfig) GetDisplayName

func (x *InstanceConfig) GetDisplayName() string

func (*InstanceConfig) GetEtag

func (x *InstanceConfig) GetEtag() string

func (*InstanceConfig) GetFreeInstanceAvailability

func (x *InstanceConfig) GetFreeInstanceAvailability() InstanceConfig_FreeInstanceAvailability

func (*InstanceConfig) GetLabels

func (x *InstanceConfig) GetLabels() map[string]string

func (*InstanceConfig) GetLeaderOptions

func (x *InstanceConfig) GetLeaderOptions() []string

func (*InstanceConfig) GetName

func (x *InstanceConfig) GetName() string

func (*InstanceConfig) GetOptionalReplicas

func (x *InstanceConfig) GetOptionalReplicas() []*ReplicaInfo

func (*InstanceConfig) GetQuorumType

func (x *InstanceConfig) GetQuorumType() InstanceConfig_QuorumType

func (*InstanceConfig) GetReconciling

func (x *InstanceConfig) GetReconciling() bool

func (*InstanceConfig) GetReplicas

func (x *InstanceConfig) GetReplicas() []*ReplicaInfo

func (*InstanceConfig) GetState

func (x *InstanceConfig) GetState() InstanceConfig_State

func (*InstanceConfig) GetStorageLimitPerProcessingUnit

func (x *InstanceConfig) GetStorageLimitPerProcessingUnit() int64

func (*InstanceConfig) ProtoMessage

func (*InstanceConfig) ProtoMessage()

func (*InstanceConfig) ProtoReflect

func (x *InstanceConfig) ProtoReflect() protoreflect.Message

func (*InstanceConfig) Reset

func (x *InstanceConfig) Reset()

func (*InstanceConfig) String

func (x *InstanceConfig) String() string

type InstanceConfig_FreeInstanceAvailability

type InstanceConfig_FreeInstanceAvailability int32

Describes the availability for free instances to be created in an instance configuration.

const (
	// Not specified.
	InstanceConfig_FREE_INSTANCE_AVAILABILITY_UNSPECIFIED InstanceConfig_FreeInstanceAvailability = 0
	// Indicates that free instances are available to be created in this
	// instance configuration.
	InstanceConfig_AVAILABLE InstanceConfig_FreeInstanceAvailability = 1
	// Indicates that free instances are not supported in this instance
	// configuration.
	InstanceConfig_UNSUPPORTED InstanceConfig_FreeInstanceAvailability = 2
	// Indicates that free instances are currently not available to be created
	// in this instance configuration.
	InstanceConfig_DISABLED InstanceConfig_FreeInstanceAvailability = 3
	// Indicates that additional free instances cannot be created in this
	// instance configuration because the project has reached its limit of free
	// instances.
	InstanceConfig_QUOTA_EXCEEDED InstanceConfig_FreeInstanceAvailability = 4
)

func (InstanceConfig_FreeInstanceAvailability) Descriptor

func (InstanceConfig_FreeInstanceAvailability) Enum

func (InstanceConfig_FreeInstanceAvailability) EnumDescriptor deprecated

func (InstanceConfig_FreeInstanceAvailability) EnumDescriptor() ([]byte, []int)

Deprecated: Use InstanceConfig_FreeInstanceAvailability.Descriptor instead.

func (InstanceConfig_FreeInstanceAvailability) Number

func (InstanceConfig_FreeInstanceAvailability) String

func (InstanceConfig_FreeInstanceAvailability) Type

type InstanceConfig_QuorumType

type InstanceConfig_QuorumType int32

Indicates the quorum type of this instance configuration.

const (
	// Quorum type not specified.
	InstanceConfig_QUORUM_TYPE_UNSPECIFIED InstanceConfig_QuorumType = 0
	// An instance configuration tagged with `REGION` quorum type forms a write
	// quorum in a single region.
	InstanceConfig_REGION InstanceConfig_QuorumType = 1
	// An instance configuration tagged with the `DUAL_REGION` quorum type forms
	// a write quorum with exactly two read-write regions in a multi-region
	// configuration.
	//
	// This instance configuration requires failover in the event of
	// regional failures.
	InstanceConfig_DUAL_REGION InstanceConfig_QuorumType = 2
	// An instance configuration tagged with the `MULTI_REGION` quorum type
	// forms a write quorum from replicas that are spread across more than one
	// region in a multi-region configuration.
	InstanceConfig_MULTI_REGION InstanceConfig_QuorumType = 3
)

func (InstanceConfig_QuorumType) Descriptor

func (InstanceConfig_QuorumType) Enum

func (InstanceConfig_QuorumType) EnumDescriptor deprecated

func (InstanceConfig_QuorumType) EnumDescriptor() ([]byte, []int)

Deprecated: Use InstanceConfig_QuorumType.Descriptor instead.

func (InstanceConfig_QuorumType) Number

func (InstanceConfig_QuorumType) String

func (x InstanceConfig_QuorumType) String() string

func (InstanceConfig_QuorumType) Type

type InstanceConfig_State

type InstanceConfig_State int32

Indicates the current state of the instance configuration.

const (
	// Not specified.
	InstanceConfig_STATE_UNSPECIFIED InstanceConfig_State = 0
	// The instance configuration is still being created.
	InstanceConfig_CREATING InstanceConfig_State = 1
	// The instance configuration is fully created and ready to be used to
	// create instances.
	InstanceConfig_READY InstanceConfig_State = 2
)

func (InstanceConfig_State) Descriptor

func (InstanceConfig_State) Enum

func (InstanceConfig_State) EnumDescriptor deprecated

func (InstanceConfig_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use InstanceConfig_State.Descriptor instead.

func (InstanceConfig_State) Number

func (InstanceConfig_State) String

func (x InstanceConfig_State) String() string

func (InstanceConfig_State) Type

type InstanceConfig_Type

type InstanceConfig_Type int32

The type of this configuration.

const (
	// Unspecified.
	InstanceConfig_TYPE_UNSPECIFIED InstanceConfig_Type = 0
	// Google-managed configuration.
	InstanceConfig_GOOGLE_MANAGED InstanceConfig_Type = 1
	// User-managed configuration.
	InstanceConfig_USER_MANAGED InstanceConfig_Type = 2
)

func (InstanceConfig_Type) Descriptor

func (InstanceConfig_Type) Enum

func (InstanceConfig_Type) EnumDescriptor deprecated

func (InstanceConfig_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use InstanceConfig_Type.Descriptor instead.

func (InstanceConfig_Type) Number

func (InstanceConfig_Type) String

func (x InstanceConfig_Type) String() string

func (InstanceConfig_Type) Type

type InstancePartition

type InstancePartition struct {

	// 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.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The name of the instance partition's configuration. Values are of
	// the form `projects/<project>/instanceConfigs/<configuration>`. See also
	// [InstanceConfig][mockgcp.spanner.admin.instance.v1.InstanceConfig] and
	// [ListInstanceConfigs][mockgcp.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].
	Config string `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	// 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.
	DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Compute capacity defines amount of server and storage resources that are
	// available to the databases in an instance partition. At most, one of either
	// `node_count` or` processing_units` should be present in the message. For
	// more information, see
	// [Compute capacity, nodes, and processing
	// units](https://cloud.google.com/spanner/docs/compute-capacity).
	//
	// Types that are assignable to ComputeCapacity:
	//
	//	*InstancePartition_NodeCount
	//	*InstancePartition_ProcessingUnits
	ComputeCapacity isInstancePartition_ComputeCapacity `protobuf_oneof:"compute_capacity"`
	// Output only. The current instance partition state.
	State InstancePartition_State `` /* 127-byte string literal not displayed */
	// Output only. The time at which the instance partition was created.
	CreateTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. The time at which the instance partition was most recently
	// updated.
	UpdateTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// 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.
	ReferencingDatabases []string `protobuf:"bytes,10,rep,name=referencing_databases,json=referencingDatabases,proto3" json:"referencing_databases,omitempty"`
	// 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.
	//
	// Deprecated: Do not use.
	ReferencingBackups []string `protobuf:"bytes,11,rep,name=referencing_backups,json=referencingBackups,proto3" json:"referencing_backups,omitempty"`
	// 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.
	Etag string `protobuf:"bytes,12,opt,name=etag,proto3" json:"etag,omitempty"`
	// contains filtered or unexported fields
}

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

func (*InstancePartition) Descriptor deprecated

func (*InstancePartition) Descriptor() ([]byte, []int)

Deprecated: Use InstancePartition.ProtoReflect.Descriptor instead.

func (*InstancePartition) GetComputeCapacity

func (m *InstancePartition) GetComputeCapacity() isInstancePartition_ComputeCapacity

func (*InstancePartition) GetConfig

func (x *InstancePartition) GetConfig() string

func (*InstancePartition) GetCreateTime

func (x *InstancePartition) GetCreateTime() *timestamp.Timestamp

func (*InstancePartition) GetDisplayName

func (x *InstancePartition) GetDisplayName() string

func (*InstancePartition) GetEtag

func (x *InstancePartition) GetEtag() string

func (*InstancePartition) GetName

func (x *InstancePartition) GetName() string

func (*InstancePartition) GetNodeCount

func (x *InstancePartition) GetNodeCount() int32

func (*InstancePartition) GetProcessingUnits

func (x *InstancePartition) GetProcessingUnits() int32

func (*InstancePartition) GetReferencingBackups deprecated

func (x *InstancePartition) GetReferencingBackups() []string

Deprecated: Do not use.

func (*InstancePartition) GetReferencingDatabases

func (x *InstancePartition) GetReferencingDatabases() []string

func (*InstancePartition) GetState

func (*InstancePartition) GetUpdateTime

func (x *InstancePartition) GetUpdateTime() *timestamp.Timestamp

func (*InstancePartition) ProtoMessage

func (*InstancePartition) ProtoMessage()

func (*InstancePartition) ProtoReflect

func (x *InstancePartition) ProtoReflect() protoreflect.Message

func (*InstancePartition) Reset

func (x *InstancePartition) Reset()

func (*InstancePartition) String

func (x *InstancePartition) String() string

type InstancePartition_NodeCount

type InstancePartition_NodeCount struct {
	// 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`.
	NodeCount int32 `protobuf:"varint,5,opt,name=node_count,json=nodeCount,proto3,oneof"`
}

type InstancePartition_ProcessingUnits

type InstancePartition_ProcessingUnits struct {
	// 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.
	ProcessingUnits int32 `protobuf:"varint,6,opt,name=processing_units,json=processingUnits,proto3,oneof"`
}

type InstancePartition_State

type InstancePartition_State int32

Indicates the current state of the instance partition.

const (
	// Not specified.
	InstancePartition_STATE_UNSPECIFIED InstancePartition_State = 0
	// The instance partition is still being created. Resources may not be
	// available yet, and operations such as creating placements using this
	// instance partition may not work.
	InstancePartition_CREATING InstancePartition_State = 1
	// The instance partition is fully created and ready to do work such as
	// creating placements and using in databases.
	InstancePartition_READY InstancePartition_State = 2
)

func (InstancePartition_State) Descriptor

func (InstancePartition_State) Enum

func (InstancePartition_State) EnumDescriptor deprecated

func (InstancePartition_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use InstancePartition_State.Descriptor instead.

func (InstancePartition_State) Number

func (InstancePartition_State) String

func (x InstancePartition_State) String() string

func (InstancePartition_State) Type

type Instance_DefaultBackupScheduleType

type Instance_DefaultBackupScheduleType int32

Indicates the [default backup schedule](https://cloud.google.com/spanner/docs/backup#default-backup-schedules) behavior for new databases within the instance.

const (
	// Not specified.
	Instance_DEFAULT_BACKUP_SCHEDULE_TYPE_UNSPECIFIED Instance_DefaultBackupScheduleType = 0
	// A default backup schedule isn't created automatically when a new database
	// is created in the instance.
	Instance_NONE Instance_DefaultBackupScheduleType = 1
	// A default backup schedule is created automatically when a new database
	// is created in the instance. The default backup schedule creates a full
	// backup every 24 hours. These full backups are retained for 7 days.
	// You can edit or delete the default backup schedule once it's created.
	Instance_AUTOMATIC Instance_DefaultBackupScheduleType = 2
)

func (Instance_DefaultBackupScheduleType) Descriptor

func (Instance_DefaultBackupScheduleType) Enum

func (Instance_DefaultBackupScheduleType) EnumDescriptor deprecated

func (Instance_DefaultBackupScheduleType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Instance_DefaultBackupScheduleType.Descriptor instead.

func (Instance_DefaultBackupScheduleType) Number

func (Instance_DefaultBackupScheduleType) String

func (Instance_DefaultBackupScheduleType) Type

type Instance_Edition

type Instance_Edition int32

The edition selected for this instance. Different editions provide different capabilities at different price points.

const (
	// Edition not specified.
	Instance_EDITION_UNSPECIFIED Instance_Edition = 0
	// Standard edition.
	Instance_STANDARD Instance_Edition = 1
	// Enterprise edition.
	Instance_ENTERPRISE Instance_Edition = 2
	// Enterprise Plus edition.
	Instance_ENTERPRISE_PLUS Instance_Edition = 3
)

func (Instance_Edition) Descriptor

func (Instance_Edition) Enum

func (Instance_Edition) EnumDescriptor deprecated

func (Instance_Edition) EnumDescriptor() ([]byte, []int)

Deprecated: Use Instance_Edition.Descriptor instead.

func (Instance_Edition) Number

func (Instance_Edition) String

func (x Instance_Edition) String() string

func (Instance_Edition) Type

type Instance_InstanceType

type Instance_InstanceType int32

The type of this instance. The type can be used to distinguish product variants, that can affect aspects like: usage restrictions, quotas and billing. Currently this is used to distinguish FREE_INSTANCE vs PROVISIONED instances.

const (
	// Not specified.
	Instance_INSTANCE_TYPE_UNSPECIFIED Instance_InstanceType = 0
	// Provisioned instances have dedicated resources, standard usage limits and
	// support.
	Instance_PROVISIONED Instance_InstanceType = 1
	// Free instances provide no guarantee for dedicated resources,
	// [node_count, processing_units] should be 0. They come
	// with stricter usage limits and limited support.
	Instance_FREE_INSTANCE Instance_InstanceType = 2
)

func (Instance_InstanceType) Descriptor

func (Instance_InstanceType) Enum

func (Instance_InstanceType) EnumDescriptor deprecated

func (Instance_InstanceType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Instance_InstanceType.Descriptor instead.

func (Instance_InstanceType) Number

func (Instance_InstanceType) String

func (x Instance_InstanceType) String() string

func (Instance_InstanceType) Type

type Instance_State

type Instance_State int32

Indicates the current state of the instance.

const (
	// Not specified.
	Instance_STATE_UNSPECIFIED Instance_State = 0
	// The instance is still being created. Resources may not be
	// available yet, and operations such as database creation may not
	// work.
	Instance_CREATING Instance_State = 1
	// The instance is fully created and ready to do work such as
	// creating databases.
	Instance_READY Instance_State = 2
)

func (Instance_State) Descriptor

func (Instance_State) Enum

func (x Instance_State) Enum() *Instance_State

func (Instance_State) EnumDescriptor deprecated

func (Instance_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use Instance_State.Descriptor instead.

func (Instance_State) Number

func (Instance_State) String

func (x Instance_State) String() string

func (Instance_State) Type

type ListInstanceConfigOperationsRequest

type ListInstanceConfigOperationsRequest struct {

	// Required. The project of the instance configuration operations.
	// Values are of the form `projects/<project>`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// 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][mockgcp.spanner.admin.instance.v1.CreateInstanceConfigMetadata]
	//     is
	//     `type.googleapis.com/mockgcp.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/mockgcp.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][mockgcp.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.
	Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
	// Number of operations to be returned in the response. If 0 or
	// less, defaults to the server's maximum allowed page size.
	PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// If non-empty, `page_token` should contain a
	// [next_page_token][mockgcp.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.next_page_token]
	// from a previous
	// [ListInstanceConfigOperationsResponse][mockgcp.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse]
	// to the same `parent` and with the same `filter`.
	PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

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

func (*ListInstanceConfigOperationsRequest) Descriptor deprecated

func (*ListInstanceConfigOperationsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListInstanceConfigOperationsRequest.ProtoReflect.Descriptor instead.

func (*ListInstanceConfigOperationsRequest) GetFilter

func (*ListInstanceConfigOperationsRequest) GetPageSize

func (x *ListInstanceConfigOperationsRequest) GetPageSize() int32

func (*ListInstanceConfigOperationsRequest) GetPageToken

func (x *ListInstanceConfigOperationsRequest) GetPageToken() string

func (*ListInstanceConfigOperationsRequest) GetParent

func (*ListInstanceConfigOperationsRequest) ProtoMessage

func (*ListInstanceConfigOperationsRequest) ProtoMessage()

func (*ListInstanceConfigOperationsRequest) ProtoReflect

func (*ListInstanceConfigOperationsRequest) Reset

func (*ListInstanceConfigOperationsRequest) String

type ListInstanceConfigOperationsResponse

type ListInstanceConfigOperationsResponse struct {

	// 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.
	Operations []*longrunningpb.Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"`
	// `next_page_token` can be sent in a subsequent
	// [ListInstanceConfigOperations][mockgcp.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigOperations]
	// call to fetch more of the matching metadata.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

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

func (*ListInstanceConfigOperationsResponse) Descriptor deprecated

func (*ListInstanceConfigOperationsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListInstanceConfigOperationsResponse.ProtoReflect.Descriptor instead.

func (*ListInstanceConfigOperationsResponse) GetNextPageToken

func (x *ListInstanceConfigOperationsResponse) GetNextPageToken() string

func (*ListInstanceConfigOperationsResponse) GetOperations

func (*ListInstanceConfigOperationsResponse) ProtoMessage

func (*ListInstanceConfigOperationsResponse) ProtoMessage()

func (*ListInstanceConfigOperationsResponse) ProtoReflect

func (*ListInstanceConfigOperationsResponse) Reset

func (*ListInstanceConfigOperationsResponse) String

type ListInstanceConfigsRequest

type ListInstanceConfigsRequest struct {

	// Required. The name of the project for which a list of supported instance
	// configurations is requested. Values are of the form
	// `projects/<project>`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Number of instance configurations to be returned in the response. If 0 or
	// less, defaults to the server's maximum allowed page size.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// If non-empty, `page_token` should contain a
	// [next_page_token][mockgcp.spanner.admin.instance.v1.ListInstanceConfigsResponse.next_page_token]
	// from a previous
	// [ListInstanceConfigsResponse][mockgcp.spanner.admin.instance.v1.ListInstanceConfigsResponse].
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

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

func (*ListInstanceConfigsRequest) Descriptor deprecated

func (*ListInstanceConfigsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListInstanceConfigsRequest.ProtoReflect.Descriptor instead.

func (*ListInstanceConfigsRequest) GetPageSize

func (x *ListInstanceConfigsRequest) GetPageSize() int32

func (*ListInstanceConfigsRequest) GetPageToken

func (x *ListInstanceConfigsRequest) GetPageToken() string

func (*ListInstanceConfigsRequest) GetParent

func (x *ListInstanceConfigsRequest) GetParent() string

func (*ListInstanceConfigsRequest) ProtoMessage

func (*ListInstanceConfigsRequest) ProtoMessage()

func (*ListInstanceConfigsRequest) ProtoReflect

func (*ListInstanceConfigsRequest) Reset

func (x *ListInstanceConfigsRequest) Reset()

func (*ListInstanceConfigsRequest) String

func (x *ListInstanceConfigsRequest) String() string

type ListInstanceConfigsResponse

type ListInstanceConfigsResponse struct {

	// The list of requested instance configurations.
	InstanceConfigs []*InstanceConfig `protobuf:"bytes,1,rep,name=instance_configs,json=instanceConfigs,proto3" json:"instance_configs,omitempty"`
	// `next_page_token` can be sent in a subsequent
	// [ListInstanceConfigs][mockgcp.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs]
	// call to fetch more of the matching instance configurations.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

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

func (*ListInstanceConfigsResponse) Descriptor deprecated

func (*ListInstanceConfigsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListInstanceConfigsResponse.ProtoReflect.Descriptor instead.

func (*ListInstanceConfigsResponse) GetInstanceConfigs

func (x *ListInstanceConfigsResponse) GetInstanceConfigs() []*InstanceConfig

func (*ListInstanceConfigsResponse) GetNextPageToken

func (x *ListInstanceConfigsResponse) GetNextPageToken() string

func (*ListInstanceConfigsResponse) ProtoMessage

func (*ListInstanceConfigsResponse) ProtoMessage()

func (*ListInstanceConfigsResponse) ProtoReflect

func (*ListInstanceConfigsResponse) Reset

func (x *ListInstanceConfigsResponse) Reset()

func (*ListInstanceConfigsResponse) String

func (x *ListInstanceConfigsResponse) String() string

type ListInstancePartitionOperationsRequest

type ListInstancePartitionOperationsRequest struct {

	// Required. The parent instance of the instance partition operations.
	// Values are of the form `projects/<project>/instances/<instance>`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// 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][mockgcp.spanner.admin.instance.v1.CreateInstancePartitionMetadata]
	//     is
	//     `type.googleapis.com/mockgcp.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/mockgcp.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][mockgcp.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.
	Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
	// Optional. Number of operations to be returned in the response. If 0 or
	// less, defaults to the server's maximum allowed page size.
	PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. If non-empty, `page_token` should contain a
	// [next_page_token][mockgcp.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse.next_page_token]
	// from a previous
	// [ListInstancePartitionOperationsResponse][mockgcp.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse]
	// to the same `parent` and with the same `filter`.
	PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// 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][mockgcp.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse.unreachable_instance_partitions]
	// in
	// [ListInstancePartitionOperationsResponse][mockgcp.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse].
	InstancePartitionDeadline *timestamp.Timestamp `` /* 138-byte string literal not displayed */
	// contains filtered or unexported fields
}

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

func (*ListInstancePartitionOperationsRequest) Descriptor deprecated

func (*ListInstancePartitionOperationsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListInstancePartitionOperationsRequest.ProtoReflect.Descriptor instead.

func (*ListInstancePartitionOperationsRequest) GetFilter

func (*ListInstancePartitionOperationsRequest) GetInstancePartitionDeadline

func (x *ListInstancePartitionOperationsRequest) GetInstancePartitionDeadline() *timestamp.Timestamp

func (*ListInstancePartitionOperationsRequest) GetPageSize

func (*ListInstancePartitionOperationsRequest) GetPageToken

func (*ListInstancePartitionOperationsRequest) GetParent

func (*ListInstancePartitionOperationsRequest) ProtoMessage

func (*ListInstancePartitionOperationsRequest) ProtoReflect

func (*ListInstancePartitionOperationsRequest) Reset

func (*ListInstancePartitionOperationsRequest) String

type ListInstancePartitionOperationsResponse

type ListInstancePartitionOperationsResponse struct {

	// 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.
	Operations []*longrunningpb.Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"`
	// `next_page_token` can be sent in a subsequent
	// [ListInstancePartitionOperations][mockgcp.spanner.admin.instance.v1.InstanceAdmin.ListInstancePartitionOperations]
	// call to fetch more of the matching metadata.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// The list of unreachable instance partitions.
	// It includes the names of instance partitions whose operation metadata could
	// not be retrieved within
	// [instance_partition_deadline][mockgcp.spanner.admin.instance.v1.ListInstancePartitionOperationsRequest.instance_partition_deadline].
	UnreachableInstancePartitions []string `` /* 150-byte string literal not displayed */
	// contains filtered or unexported fields
}

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

func (*ListInstancePartitionOperationsResponse) Descriptor deprecated

func (*ListInstancePartitionOperationsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListInstancePartitionOperationsResponse.ProtoReflect.Descriptor instead.

func (*ListInstancePartitionOperationsResponse) GetNextPageToken

func (x *ListInstancePartitionOperationsResponse) GetNextPageToken() string

func (*ListInstancePartitionOperationsResponse) GetOperations

func (*ListInstancePartitionOperationsResponse) GetUnreachableInstancePartitions

func (x *ListInstancePartitionOperationsResponse) GetUnreachableInstancePartitions() []string

func (*ListInstancePartitionOperationsResponse) ProtoMessage

func (*ListInstancePartitionOperationsResponse) ProtoReflect

func (*ListInstancePartitionOperationsResponse) Reset

func (*ListInstancePartitionOperationsResponse) String

type ListInstancePartitionsRequest

type ListInstancePartitionsRequest struct {

	// 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/-`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Number of instance partitions to be returned in the response. If 0 or less,
	// defaults to the server's maximum allowed page size.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// If non-empty, `page_token` should contain a
	// [next_page_token][mockgcp.spanner.admin.instance.v1.ListInstancePartitionsResponse.next_page_token]
	// from a previous
	// [ListInstancePartitionsResponse][mockgcp.spanner.admin.instance.v1.ListInstancePartitionsResponse].
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Optional. Deadline used while retrieving metadata for instance partitions.
	// Instance partitions whose metadata cannot be retrieved within this deadline
	// will be added to
	// [unreachable][mockgcp.spanner.admin.instance.v1.ListInstancePartitionsResponse.unreachable]
	// in
	// [ListInstancePartitionsResponse][mockgcp.spanner.admin.instance.v1.ListInstancePartitionsResponse].
	InstancePartitionDeadline *timestamp.Timestamp `` /* 138-byte string literal not displayed */
	// contains filtered or unexported fields
}

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

func (*ListInstancePartitionsRequest) Descriptor deprecated

func (*ListInstancePartitionsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListInstancePartitionsRequest.ProtoReflect.Descriptor instead.

func (*ListInstancePartitionsRequest) GetInstancePartitionDeadline

func (x *ListInstancePartitionsRequest) GetInstancePartitionDeadline() *timestamp.Timestamp

func (*ListInstancePartitionsRequest) GetPageSize

func (x *ListInstancePartitionsRequest) GetPageSize() int32

func (*ListInstancePartitionsRequest) GetPageToken

func (x *ListInstancePartitionsRequest) GetPageToken() string

func (*ListInstancePartitionsRequest) GetParent

func (x *ListInstancePartitionsRequest) GetParent() string

func (*ListInstancePartitionsRequest) ProtoMessage

func (*ListInstancePartitionsRequest) ProtoMessage()

func (*ListInstancePartitionsRequest) ProtoReflect

func (*ListInstancePartitionsRequest) Reset

func (x *ListInstancePartitionsRequest) Reset()

func (*ListInstancePartitionsRequest) String

type ListInstancePartitionsResponse

type ListInstancePartitionsResponse struct {

	// The list of requested instancePartitions.
	InstancePartitions []*InstancePartition `protobuf:"bytes,1,rep,name=instance_partitions,json=instancePartitions,proto3" json:"instance_partitions,omitempty"`
	// `next_page_token` can be sent in a subsequent
	// [ListInstancePartitions][mockgcp.spanner.admin.instance.v1.InstanceAdmin.ListInstancePartitions]
	// call to fetch more of the matching instance partitions.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// 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][mockgcp.spanner.admin.instance.v1.ListInstancePartitionsRequest.instance_partition_deadline].
	Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
	// contains filtered or unexported fields
}

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

func (*ListInstancePartitionsResponse) Descriptor deprecated

func (*ListInstancePartitionsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListInstancePartitionsResponse.ProtoReflect.Descriptor instead.

func (*ListInstancePartitionsResponse) GetInstancePartitions

func (x *ListInstancePartitionsResponse) GetInstancePartitions() []*InstancePartition

func (*ListInstancePartitionsResponse) GetNextPageToken

func (x *ListInstancePartitionsResponse) GetNextPageToken() string

func (*ListInstancePartitionsResponse) GetUnreachable

func (x *ListInstancePartitionsResponse) GetUnreachable() []string

func (*ListInstancePartitionsResponse) ProtoMessage

func (*ListInstancePartitionsResponse) ProtoMessage()

func (*ListInstancePartitionsResponse) ProtoReflect

func (*ListInstancePartitionsResponse) Reset

func (x *ListInstancePartitionsResponse) Reset()

func (*ListInstancePartitionsResponse) String

type ListInstancesRequest

type ListInstancesRequest struct {

	// Required. The name of the project for which a list of instances is
	// requested. Values are of the form `projects/<project>`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Number of instances to be returned in the response. If 0 or less, defaults
	// to the server's maximum allowed page size.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// If non-empty, `page_token` should contain a
	// [next_page_token][mockgcp.spanner.admin.instance.v1.ListInstancesResponse.next_page_token]
	// from a previous
	// [ListInstancesResponse][mockgcp.spanner.admin.instance.v1.ListInstancesResponse].
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// 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".
	Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	// Deadline used while retrieving metadata for instances.
	// Instances whose metadata cannot be retrieved within this deadline will be
	// added to
	// [unreachable][mockgcp.spanner.admin.instance.v1.ListInstancesResponse.unreachable]
	// in
	// [ListInstancesResponse][mockgcp.spanner.admin.instance.v1.ListInstancesResponse].
	InstanceDeadline *timestamp.Timestamp `protobuf:"bytes,5,opt,name=instance_deadline,json=instanceDeadline,proto3" json:"instance_deadline,omitempty"`
	// contains filtered or unexported fields
}

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

func (*ListInstancesRequest) Descriptor deprecated

func (*ListInstancesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListInstancesRequest.ProtoReflect.Descriptor instead.

func (*ListInstancesRequest) GetFilter

func (x *ListInstancesRequest) GetFilter() string

func (*ListInstancesRequest) GetInstanceDeadline

func (x *ListInstancesRequest) GetInstanceDeadline() *timestamp.Timestamp

func (*ListInstancesRequest) GetPageSize

func (x *ListInstancesRequest) GetPageSize() int32

func (*ListInstancesRequest) GetPageToken

func (x *ListInstancesRequest) GetPageToken() string

func (*ListInstancesRequest) GetParent

func (x *ListInstancesRequest) GetParent() string

func (*ListInstancesRequest) ProtoMessage

func (*ListInstancesRequest) ProtoMessage()

func (*ListInstancesRequest) ProtoReflect

func (x *ListInstancesRequest) ProtoReflect() protoreflect.Message

func (*ListInstancesRequest) Reset

func (x *ListInstancesRequest) Reset()

func (*ListInstancesRequest) String

func (x *ListInstancesRequest) String() string

type ListInstancesResponse

type ListInstancesResponse struct {

	// The list of requested instances.
	Instances []*Instance `protobuf:"bytes,1,rep,name=instances,proto3" json:"instances,omitempty"`
	// `next_page_token` can be sent in a subsequent
	// [ListInstances][mockgcp.spanner.admin.instance.v1.InstanceAdmin.ListInstances]
	// call to fetch more of the matching instances.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// The list of unreachable instances.
	// It includes the names of instances whose metadata could not be retrieved
	// within
	// [instance_deadline][mockgcp.spanner.admin.instance.v1.ListInstancesRequest.instance_deadline].
	Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
	// contains filtered or unexported fields
}

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

func (*ListInstancesResponse) Descriptor deprecated

func (*ListInstancesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListInstancesResponse.ProtoReflect.Descriptor instead.

func (*ListInstancesResponse) GetInstances

func (x *ListInstancesResponse) GetInstances() []*Instance

func (*ListInstancesResponse) GetNextPageToken

func (x *ListInstancesResponse) GetNextPageToken() string

func (*ListInstancesResponse) GetUnreachable

func (x *ListInstancesResponse) GetUnreachable() []string

func (*ListInstancesResponse) ProtoMessage

func (*ListInstancesResponse) ProtoMessage()

func (*ListInstancesResponse) ProtoReflect

func (x *ListInstancesResponse) ProtoReflect() protoreflect.Message

func (*ListInstancesResponse) Reset

func (x *ListInstancesResponse) Reset()

func (*ListInstancesResponse) String

func (x *ListInstancesResponse) String() string

type MoveInstanceMetadata

type MoveInstanceMetadata struct {

	// The target instance configuration where to move the instance.
	// Values are of the form `projects/<project>/instanceConfigs/<config>`.
	TargetConfig string `protobuf:"bytes,1,opt,name=target_config,json=targetConfig,proto3" json:"target_config,omitempty"`
	// The progress of the
	// [MoveInstance][mockgcp.spanner.admin.instance.v1.InstanceAdmin.MoveInstance]
	// operation.
	// [progress_percent][mockgcp.spanner.admin.instance.v1.OperationProgress.progress_percent]
	// is reset when cancellation is requested.
	Progress *OperationProgress `protobuf:"bytes,2,opt,name=progress,proto3" json:"progress,omitempty"`
	// The time at which this operation was cancelled.
	CancelTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=cancel_time,json=cancelTime,proto3" json:"cancel_time,omitempty"`
	// contains filtered or unexported fields
}

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

func (*MoveInstanceMetadata) Descriptor deprecated

func (*MoveInstanceMetadata) Descriptor() ([]byte, []int)

Deprecated: Use MoveInstanceMetadata.ProtoReflect.Descriptor instead.

func (*MoveInstanceMetadata) GetCancelTime

func (x *MoveInstanceMetadata) GetCancelTime() *timestamp.Timestamp

func (*MoveInstanceMetadata) GetProgress

func (x *MoveInstanceMetadata) GetProgress() *OperationProgress

func (*MoveInstanceMetadata) GetTargetConfig

func (x *MoveInstanceMetadata) GetTargetConfig() string

func (*MoveInstanceMetadata) ProtoMessage

func (*MoveInstanceMetadata) ProtoMessage()

func (*MoveInstanceMetadata) ProtoReflect

func (x *MoveInstanceMetadata) ProtoReflect() protoreflect.Message

func (*MoveInstanceMetadata) Reset

func (x *MoveInstanceMetadata) Reset()

func (*MoveInstanceMetadata) String

func (x *MoveInstanceMetadata) String() string

type MoveInstanceRequest

type MoveInstanceRequest struct {

	// Required. The instance to move.
	// Values are of the form `projects/<project>/instances/<instance>`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The target instance configuration where to move the instance.
	// Values are of the form `projects/<project>/instanceConfigs/<config>`.
	TargetConfig string `protobuf:"bytes,2,opt,name=target_config,json=targetConfig,proto3" json:"target_config,omitempty"`
	// contains filtered or unexported fields
}

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

func (*MoveInstanceRequest) Descriptor deprecated

func (*MoveInstanceRequest) Descriptor() ([]byte, []int)

Deprecated: Use MoveInstanceRequest.ProtoReflect.Descriptor instead.

func (*MoveInstanceRequest) GetName

func (x *MoveInstanceRequest) GetName() string

func (*MoveInstanceRequest) GetTargetConfig

func (x *MoveInstanceRequest) GetTargetConfig() string

func (*MoveInstanceRequest) ProtoMessage

func (*MoveInstanceRequest) ProtoMessage()

func (*MoveInstanceRequest) ProtoReflect

func (x *MoveInstanceRequest) ProtoReflect() protoreflect.Message

func (*MoveInstanceRequest) Reset

func (x *MoveInstanceRequest) Reset()

func (*MoveInstanceRequest) String

func (x *MoveInstanceRequest) String() string

type MoveInstanceResponse

type MoveInstanceResponse struct {
	// contains filtered or unexported fields
}

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

func (*MoveInstanceResponse) Descriptor deprecated

func (*MoveInstanceResponse) Descriptor() ([]byte, []int)

Deprecated: Use MoveInstanceResponse.ProtoReflect.Descriptor instead.

func (*MoveInstanceResponse) ProtoMessage

func (*MoveInstanceResponse) ProtoMessage()

func (*MoveInstanceResponse) ProtoReflect

func (x *MoveInstanceResponse) ProtoReflect() protoreflect.Message

func (*MoveInstanceResponse) Reset

func (x *MoveInstanceResponse) Reset()

func (*MoveInstanceResponse) String

func (x *MoveInstanceResponse) String() string

type OperationProgress

type OperationProgress struct {

	// Percent completion of the operation.
	// Values are between 0 and 100 inclusive.
	ProgressPercent int32 `protobuf:"varint,1,opt,name=progress_percent,json=progressPercent,proto3" json:"progress_percent,omitempty"`
	// Time the request was received.
	StartTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// If set, the time at which this operation failed or was completed
	// successfully.
	EndTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// contains filtered or unexported fields
}

Encapsulates progress related information for a Cloud Spanner long running instance operations.

func (*OperationProgress) Descriptor deprecated

func (*OperationProgress) Descriptor() ([]byte, []int)

Deprecated: Use OperationProgress.ProtoReflect.Descriptor instead.

func (*OperationProgress) GetEndTime

func (x *OperationProgress) GetEndTime() *timestamp.Timestamp

func (*OperationProgress) GetProgressPercent

func (x *OperationProgress) GetProgressPercent() int32

func (*OperationProgress) GetStartTime

func (x *OperationProgress) GetStartTime() *timestamp.Timestamp

func (*OperationProgress) ProtoMessage

func (*OperationProgress) ProtoMessage()

func (*OperationProgress) ProtoReflect

func (x *OperationProgress) ProtoReflect() protoreflect.Message

func (*OperationProgress) Reset

func (x *OperationProgress) Reset()

func (*OperationProgress) String

func (x *OperationProgress) String() string

type ReplicaComputeCapacity

type ReplicaComputeCapacity struct {

	// Required. Identifies replicas by specified properties.
	// All replicas in the selection have the same amount of compute capacity.
	ReplicaSelection *ReplicaSelection `protobuf:"bytes,1,opt,name=replica_selection,json=replicaSelection,proto3" json:"replica_selection,omitempty"`
	// Compute capacity allocated to each replica identified by the specified
	// selection.
	// The unit is selected based on the unit used to specify the instance size
	// for non-autoscaling instances, or the unit used in autoscaling limit for
	// autoscaling instances.
	//
	// Types that are assignable to ComputeCapacity:
	//
	//	*ReplicaComputeCapacity_NodeCount
	//	*ReplicaComputeCapacity_ProcessingUnits
	ComputeCapacity isReplicaComputeCapacity_ComputeCapacity `protobuf_oneof:"compute_capacity"`
	// contains filtered or unexported fields
}

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

func (*ReplicaComputeCapacity) Descriptor deprecated

func (*ReplicaComputeCapacity) Descriptor() ([]byte, []int)

Deprecated: Use ReplicaComputeCapacity.ProtoReflect.Descriptor instead.

func (*ReplicaComputeCapacity) GetComputeCapacity

func (m *ReplicaComputeCapacity) GetComputeCapacity() isReplicaComputeCapacity_ComputeCapacity

func (*ReplicaComputeCapacity) GetNodeCount

func (x *ReplicaComputeCapacity) GetNodeCount() int32

func (*ReplicaComputeCapacity) GetProcessingUnits

func (x *ReplicaComputeCapacity) GetProcessingUnits() int32

func (*ReplicaComputeCapacity) GetReplicaSelection

func (x *ReplicaComputeCapacity) GetReplicaSelection() *ReplicaSelection

func (*ReplicaComputeCapacity) ProtoMessage

func (*ReplicaComputeCapacity) ProtoMessage()

func (*ReplicaComputeCapacity) ProtoReflect

func (x *ReplicaComputeCapacity) ProtoReflect() protoreflect.Message

func (*ReplicaComputeCapacity) Reset

func (x *ReplicaComputeCapacity) Reset()

func (*ReplicaComputeCapacity) String

func (x *ReplicaComputeCapacity) String() string

type ReplicaComputeCapacity_NodeCount

type ReplicaComputeCapacity_NodeCount struct {
	// The number of nodes allocated to each replica.
	//
	// This may be zero in API responses for instances that are not yet in
	// state `READY`.
	NodeCount int32 `protobuf:"varint,2,opt,name=node_count,json=nodeCount,proto3,oneof"`
}

type ReplicaComputeCapacity_ProcessingUnits

type ReplicaComputeCapacity_ProcessingUnits struct {
	// 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`.
	ProcessingUnits int32 `protobuf:"varint,3,opt,name=processing_units,json=processingUnits,proto3,oneof"`
}

type ReplicaInfo

type ReplicaInfo struct {

	// The location of the serving resources, e.g., "us-central1".
	Location string `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
	// The type of replica.
	Type ReplicaInfo_ReplicaType `protobuf:"varint,2,opt,name=type,proto3,enum=mockgcp.spanner.admin.instance.v1.ReplicaInfo_ReplicaType" json:"type,omitempty"`
	// 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.
	DefaultLeaderLocation bool `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ReplicaInfo) Descriptor deprecated

func (*ReplicaInfo) Descriptor() ([]byte, []int)

Deprecated: Use ReplicaInfo.ProtoReflect.Descriptor instead.

func (*ReplicaInfo) GetDefaultLeaderLocation

func (x *ReplicaInfo) GetDefaultLeaderLocation() bool

func (*ReplicaInfo) GetLocation

func (x *ReplicaInfo) GetLocation() string

func (*ReplicaInfo) GetType

func (x *ReplicaInfo) GetType() ReplicaInfo_ReplicaType

func (*ReplicaInfo) ProtoMessage

func (*ReplicaInfo) ProtoMessage()

func (*ReplicaInfo) ProtoReflect

func (x *ReplicaInfo) ProtoReflect() protoreflect.Message

func (*ReplicaInfo) Reset

func (x *ReplicaInfo) Reset()

func (*ReplicaInfo) String

func (x *ReplicaInfo) String() string

type ReplicaInfo_ReplicaType

type ReplicaInfo_ReplicaType int32

Indicates the type of replica. See the [replica types documentation](https://cloud.google.com/spanner/docs/replication#replica_types) for more details.

const (
	// Not specified.
	ReplicaInfo_TYPE_UNSPECIFIED ReplicaInfo_ReplicaType = 0
	// Read-write replicas support both reads and writes. These replicas:
	//
	// * Maintain a full copy of your data.
	// * Serve reads.
	// * Can vote whether to commit a write.
	// * Participate in leadership election.
	// * Are eligible to become a leader.
	ReplicaInfo_READ_WRITE ReplicaInfo_ReplicaType = 1
	// Read-only replicas only support reads (not writes). Read-only replicas:
	//
	// * Maintain a full copy of your data.
	// * Serve reads.
	// * Do not participate in voting to commit writes.
	// * Are not eligible to become a leader.
	ReplicaInfo_READ_ONLY ReplicaInfo_ReplicaType = 2
	// Witness replicas don't support reads but do participate in voting to
	// commit writes. Witness replicas:
	//
	// * Do not maintain a full copy of data.
	// * Do not serve reads.
	// * Vote whether to commit writes.
	// * Participate in leader election but are not eligible to become leader.
	ReplicaInfo_WITNESS ReplicaInfo_ReplicaType = 3
)

func (ReplicaInfo_ReplicaType) Descriptor

func (ReplicaInfo_ReplicaType) Enum

func (ReplicaInfo_ReplicaType) EnumDescriptor deprecated

func (ReplicaInfo_ReplicaType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ReplicaInfo_ReplicaType.Descriptor instead.

func (ReplicaInfo_ReplicaType) Number

func (ReplicaInfo_ReplicaType) String

func (x ReplicaInfo_ReplicaType) String() string

func (ReplicaInfo_ReplicaType) Type

type ReplicaSelection

type ReplicaSelection struct {

	// Required. Name of the location of the replicas (e.g., "us-central1").
	Location string `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

ReplicaSelection identifies replicas with common properties.

func (*ReplicaSelection) Descriptor deprecated

func (*ReplicaSelection) Descriptor() ([]byte, []int)

Deprecated: Use ReplicaSelection.ProtoReflect.Descriptor instead.

func (*ReplicaSelection) GetLocation

func (x *ReplicaSelection) GetLocation() string

func (*ReplicaSelection) ProtoMessage

func (*ReplicaSelection) ProtoMessage()

func (*ReplicaSelection) ProtoReflect

func (x *ReplicaSelection) ProtoReflect() protoreflect.Message

func (*ReplicaSelection) Reset

func (x *ReplicaSelection) Reset()

func (*ReplicaSelection) String

func (x *ReplicaSelection) String() string

type UnimplementedInstanceAdminServer

type UnimplementedInstanceAdminServer struct {
}

UnimplementedInstanceAdminServer must be embedded to have forward compatible implementations.

func (UnimplementedInstanceAdminServer) CreateInstance

func (UnimplementedInstanceAdminServer) CreateInstanceConfig

func (UnimplementedInstanceAdminServer) CreateInstancePartition

func (UnimplementedInstanceAdminServer) DeleteInstance

func (UnimplementedInstanceAdminServer) DeleteInstanceConfig

func (UnimplementedInstanceAdminServer) DeleteInstancePartition

func (UnimplementedInstanceAdminServer) GetIamPolicy

func (UnimplementedInstanceAdminServer) GetInstance

func (UnimplementedInstanceAdminServer) GetInstanceConfig

func (UnimplementedInstanceAdminServer) GetInstancePartition

func (UnimplementedInstanceAdminServer) ListInstances

func (UnimplementedInstanceAdminServer) MoveInstance

func (UnimplementedInstanceAdminServer) SetIamPolicy

func (UnimplementedInstanceAdminServer) UpdateInstance

func (UnimplementedInstanceAdminServer) UpdateInstanceConfig

func (UnimplementedInstanceAdminServer) UpdateInstancePartition

type UnsafeInstanceAdminServer

type UnsafeInstanceAdminServer interface {
	// contains filtered or unexported methods
}

UnsafeInstanceAdminServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InstanceAdminServer will result in compilation errors.

type UpdateInstanceConfigMetadata

type UpdateInstanceConfigMetadata struct {

	// The desired instance configuration after updating.
	InstanceConfig *InstanceConfig `protobuf:"bytes,1,opt,name=instance_config,json=instanceConfig,proto3" json:"instance_config,omitempty"`
	// The progress of the
	// [UpdateInstanceConfig][mockgcp.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig]
	// operation.
	Progress *OperationProgress `protobuf:"bytes,2,opt,name=progress,proto3" json:"progress,omitempty"`
	// The time at which this operation was cancelled.
	CancelTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=cancel_time,json=cancelTime,proto3" json:"cancel_time,omitempty"`
	// contains filtered or unexported fields
}

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

func (*UpdateInstanceConfigMetadata) Descriptor deprecated

func (*UpdateInstanceConfigMetadata) Descriptor() ([]byte, []int)

Deprecated: Use UpdateInstanceConfigMetadata.ProtoReflect.Descriptor instead.

func (*UpdateInstanceConfigMetadata) GetCancelTime

func (x *UpdateInstanceConfigMetadata) GetCancelTime() *timestamp.Timestamp

func (*UpdateInstanceConfigMetadata) GetInstanceConfig

func (x *UpdateInstanceConfigMetadata) GetInstanceConfig() *InstanceConfig

func (*UpdateInstanceConfigMetadata) GetProgress

func (*UpdateInstanceConfigMetadata) ProtoMessage

func (*UpdateInstanceConfigMetadata) ProtoMessage()

func (*UpdateInstanceConfigMetadata) ProtoReflect

func (*UpdateInstanceConfigMetadata) Reset

func (x *UpdateInstanceConfigMetadata) Reset()

func (*UpdateInstanceConfigMetadata) String

type UpdateInstanceConfigRequest

type UpdateInstanceConfigRequest struct {

	// Required. The user instance configuration to update, which must always
	// include the instance configuration name. Otherwise, only fields mentioned
	// in
	// [update_mask][mockgcp.spanner.admin.instance.v1.UpdateInstanceConfigRequest.update_mask]
	// need be included. To prevent conflicts of concurrent updates,
	// [etag][mockgcp.spanner.admin.instance.v1.InstanceConfig.reconciling] can
	// be used.
	InstanceConfig *InstanceConfig `protobuf:"bytes,1,opt,name=instance_config,json=instanceConfig,proto3" json:"instance_config,omitempty"`
	// Required. A mask specifying which fields in
	// [InstanceConfig][mockgcp.spanner.admin.instance.v1.InstanceConfig] should be
	// updated. The field mask must always be specified; this prevents any future
	// fields in [InstanceConfig][mockgcp.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.
	UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// An option to validate, but not actually execute, a request,
	// and provide the same response.
	ValidateOnly bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
	// contains filtered or unexported fields
}

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

func (*UpdateInstanceConfigRequest) Descriptor deprecated

func (*UpdateInstanceConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateInstanceConfigRequest.ProtoReflect.Descriptor instead.

func (*UpdateInstanceConfigRequest) GetInstanceConfig

func (x *UpdateInstanceConfigRequest) GetInstanceConfig() *InstanceConfig

func (*UpdateInstanceConfigRequest) GetUpdateMask

func (x *UpdateInstanceConfigRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateInstanceConfigRequest) GetValidateOnly

func (x *UpdateInstanceConfigRequest) GetValidateOnly() bool

func (*UpdateInstanceConfigRequest) ProtoMessage

func (*UpdateInstanceConfigRequest) ProtoMessage()

func (*UpdateInstanceConfigRequest) ProtoReflect

func (*UpdateInstanceConfigRequest) Reset

func (x *UpdateInstanceConfigRequest) Reset()

func (*UpdateInstanceConfigRequest) String

func (x *UpdateInstanceConfigRequest) String() string

type UpdateInstanceMetadata

type UpdateInstanceMetadata struct {

	// The desired end state of the update.
	Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
	// The time at which
	// [UpdateInstance][mockgcp.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance]
	// request was received.
	StartTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// The time at which this operation was cancelled. If set, this operation is
	// in the process of undoing itself (which is guaranteed to succeed) and
	// cannot be cancelled again.
	CancelTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=cancel_time,json=cancelTime,proto3" json:"cancel_time,omitempty"`
	// The time at which this operation failed or was completed successfully.
	EndTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// The expected fulfillment period of this update operation.
	ExpectedFulfillmentPeriod FulfillmentPeriod `` /* 196-byte string literal not displayed */
	// contains filtered or unexported fields
}

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

func (*UpdateInstanceMetadata) Descriptor deprecated

func (*UpdateInstanceMetadata) Descriptor() ([]byte, []int)

Deprecated: Use UpdateInstanceMetadata.ProtoReflect.Descriptor instead.

func (*UpdateInstanceMetadata) GetCancelTime

func (x *UpdateInstanceMetadata) GetCancelTime() *timestamp.Timestamp

func (*UpdateInstanceMetadata) GetEndTime

func (x *UpdateInstanceMetadata) GetEndTime() *timestamp.Timestamp

func (*UpdateInstanceMetadata) GetExpectedFulfillmentPeriod

func (x *UpdateInstanceMetadata) GetExpectedFulfillmentPeriod() FulfillmentPeriod

func (*UpdateInstanceMetadata) GetInstance

func (x *UpdateInstanceMetadata) GetInstance() *Instance

func (*UpdateInstanceMetadata) GetStartTime

func (x *UpdateInstanceMetadata) GetStartTime() *timestamp.Timestamp

func (*UpdateInstanceMetadata) ProtoMessage

func (*UpdateInstanceMetadata) ProtoMessage()

func (*UpdateInstanceMetadata) ProtoReflect

func (x *UpdateInstanceMetadata) ProtoReflect() protoreflect.Message

func (*UpdateInstanceMetadata) Reset

func (x *UpdateInstanceMetadata) Reset()

func (*UpdateInstanceMetadata) String

func (x *UpdateInstanceMetadata) String() string

type UpdateInstancePartitionMetadata

type UpdateInstancePartitionMetadata struct {

	// The desired end state of the update.
	InstancePartition *InstancePartition `protobuf:"bytes,1,opt,name=instance_partition,json=instancePartition,proto3" json:"instance_partition,omitempty"`
	// The time at which
	// [UpdateInstancePartition][mockgcp.spanner.admin.instance.v1.InstanceAdmin.UpdateInstancePartition]
	// request was received.
	StartTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// The time at which this operation was cancelled. If set, this operation is
	// in the process of undoing itself (which is guaranteed to succeed) and
	// cannot be cancelled again.
	CancelTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=cancel_time,json=cancelTime,proto3" json:"cancel_time,omitempty"`
	// The time at which this operation failed or was completed successfully.
	EndTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// contains filtered or unexported fields
}

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

func (*UpdateInstancePartitionMetadata) Descriptor deprecated

func (*UpdateInstancePartitionMetadata) Descriptor() ([]byte, []int)

Deprecated: Use UpdateInstancePartitionMetadata.ProtoReflect.Descriptor instead.

func (*UpdateInstancePartitionMetadata) GetCancelTime

func (*UpdateInstancePartitionMetadata) GetEndTime

func (*UpdateInstancePartitionMetadata) GetInstancePartition

func (x *UpdateInstancePartitionMetadata) GetInstancePartition() *InstancePartition

func (*UpdateInstancePartitionMetadata) GetStartTime

func (*UpdateInstancePartitionMetadata) ProtoMessage

func (*UpdateInstancePartitionMetadata) ProtoMessage()

func (*UpdateInstancePartitionMetadata) ProtoReflect

func (*UpdateInstancePartitionMetadata) Reset

func (*UpdateInstancePartitionMetadata) String

type UpdateInstancePartitionRequest

type UpdateInstancePartitionRequest struct {

	// Required. The instance partition to update, which must always include the
	// instance partition name. Otherwise, only fields mentioned in
	// [field_mask][mockgcp.spanner.admin.instance.v1.UpdateInstancePartitionRequest.field_mask]
	// need be included.
	InstancePartition *InstancePartition `protobuf:"bytes,1,opt,name=instance_partition,json=instancePartition,proto3" json:"instance_partition,omitempty"`
	// Required. A mask specifying which fields in
	// [InstancePartition][mockgcp.spanner.admin.instance.v1.InstancePartition]
	// should be updated. The field mask must always be specified; this prevents
	// any future fields in
	// [InstancePartition][mockgcp.spanner.admin.instance.v1.InstancePartition]
	// from being erased accidentally by clients that do not know about them.
	FieldMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
	// contains filtered or unexported fields
}

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

func (*UpdateInstancePartitionRequest) Descriptor deprecated

func (*UpdateInstancePartitionRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateInstancePartitionRequest.ProtoReflect.Descriptor instead.

func (*UpdateInstancePartitionRequest) GetFieldMask

func (*UpdateInstancePartitionRequest) GetInstancePartition

func (x *UpdateInstancePartitionRequest) GetInstancePartition() *InstancePartition

func (*UpdateInstancePartitionRequest) ProtoMessage

func (*UpdateInstancePartitionRequest) ProtoMessage()

func (*UpdateInstancePartitionRequest) ProtoReflect

func (*UpdateInstancePartitionRequest) Reset

func (x *UpdateInstancePartitionRequest) Reset()

func (*UpdateInstancePartitionRequest) String

type UpdateInstanceRequest

type UpdateInstanceRequest struct {

	// Required. The instance to update, which must always include the instance
	// name.  Otherwise, only fields mentioned in
	// [field_mask][mockgcp.spanner.admin.instance.v1.UpdateInstanceRequest.field_mask]
	// need be included.
	Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
	// Required. A mask specifying which fields in
	// [Instance][mockgcp.spanner.admin.instance.v1.Instance] should be updated.
	// The field mask must always be specified; this prevents any future fields in
	// [Instance][mockgcp.spanner.admin.instance.v1.Instance] from being erased
	// accidentally by clients that do not know about them.
	FieldMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
	// contains filtered or unexported fields
}

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

func (*UpdateInstanceRequest) Descriptor deprecated

func (*UpdateInstanceRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateInstanceRequest.ProtoReflect.Descriptor instead.

func (*UpdateInstanceRequest) GetFieldMask

func (x *UpdateInstanceRequest) GetFieldMask() *field_mask.FieldMask

func (*UpdateInstanceRequest) GetInstance

func (x *UpdateInstanceRequest) GetInstance() *Instance

func (*UpdateInstanceRequest) ProtoMessage

func (*UpdateInstanceRequest) ProtoMessage()

func (*UpdateInstanceRequest) ProtoReflect

func (x *UpdateInstanceRequest) ProtoReflect() protoreflect.Message

func (*UpdateInstanceRequest) Reset

func (x *UpdateInstanceRequest) Reset()

func (*UpdateInstanceRequest) String

func (x *UpdateInstanceRequest) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL