Skip to content

Commit

Permalink
feat: Exposing InstanceType in Instance configuration (to define PROV…
Browse files Browse the repository at this point in the history
…ISIONED or FREE spanner instance) (#7937)

feat: Exposing FreeInstanceMetadata in Instance configuration (to define the metadata related to FREE instance type)
feat: Exposing storage_limit_per_processing_unit in InstanceConfig
feat: Exposing QuorumType in InstanceConfig
feat: Exposing FreeInstanceAvailability in InstanceConfig
docs: A comment for method `ListInstanceConfigs` in service `InstanceAdmin` is changed
docs: A comment for method `CreateInstanceConfig` in service `InstanceAdmin` is changed
docs: A comment for method `UpdateInstanceConfig` in service `InstanceAdmin` is changed
docs: A comment for method `ListInstanceConfigOperations` in service `InstanceAdmin` is changed
docs: A comment for method `CreateInstance` in service `InstanceAdmin` is changed
docs: A comment for method `UpdateInstance` in service `InstanceAdmin` is changed
docs: A comment for method `CreateInstancePartition` in service `InstanceAdmin` is changed
docs: A comment for method `UpdateInstancePartition` in service `InstanceAdmin` is changed
docs: A comment for method `ListInstancePartitionOperations` in service `InstanceAdmin` is changed
docs: A comment for method `MoveInstance` in service `InstanceAdmin` is changed
docs: A comment for field `location` in message `.google.spanner.admin.instance.v1.ReplicaInfo` is changed
docs: A comment for enum value `GOOGLE_MANAGED` in enum `Type` is changed
docs: A comment for enum value `USER_MANAGED` in enum `Type` is changed
docs: A comment for field `replicas` in message `.google.spanner.admin.instance.v1.InstanceConfig` is changed
docs: A comment for field `optional_replicas` in message `.google.spanner.admin.instance.v1.InstanceConfig` is changed
docs: A comment for field `base_config` in message `.google.spanner.admin.instance.v1.InstanceConfig` is changed
docs: A comment for field `storage_utilization_percent` in message `.google.spanner.admin.instance.v1.AutoscalingConfig` is changed
docs: A comment for enum `DefaultBackupScheduleType` is changed
docs: A comment for enum value `NONE` in enum `DefaultBackupScheduleType` is changed
docs: A comment for enum value `AUTOMATIC` in enum `DefaultBackupScheduleType` is changed
docs: A comment for field `node_count` in message `.google.spanner.admin.instance.v1.Instance` is changed
docs: A comment for field `processing_units` in message `.google.spanner.admin.instance.v1.Instance` is changed
docs: A comment for field `default_backup_schedule_type` in message `.google.spanner.admin.instance.v1.Instance` is changed
docs: A comment for message `CreateInstanceConfigRequest` is changed
docs: A comment for field `instance_config` in message `.google.spanner.admin.instance.v1.CreateInstanceConfigRequest` is changed
docs: A comment for message `UpdateInstanceConfigRequest` is changed
docs: A comment for message `DeleteInstanceConfigRequest` is changed
docs: A comment for field `filter` in message `.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest` is changed
docs: A comment for field `operations` in message `.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse` is changed
docs: A comment for field `node_count` in message `.google.spanner.admin.instance.v1.InstancePartition` is changed
docs: A comment for field `processing_units` in message `.google.spanner.admin.instance.v1.InstancePartition` is changed
docs: A comment for field `referencing_backups` in message `.google.spanner.admin.instance.v1.InstancePartition` is changed
docs: A comment for field `parent` in message `.google.spanner.admin.instance.v1.ListInstancePartitionsRequest` is changed
docs: A comment for field `unreachable` in message `.google.spanner.admin.instance.v1.ListInstancePartitionsResponse` is changed
docs: A comment for field `filter` in message `.google.spanner.admin.instance.v1.ListInstancePartitionOperationsRequest` is changed
docs: A comment for field `instance_partition_deadline` in message `.google.spanner.admin.instance.v1.ListInstancePartitionOperationsRequest` is changed
docs: A comment for field `operations` in message `.google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse` is changed
PiperOrigin-RevId: 706945550
Source-Link: googleapis/googleapis@3db0452
Source-Link: googleapis/googleapis-gen@6c42be3
Copy-Tag: eyJwIjoiU3Bhbm5lci8uT3dsQm90LnlhbWwiLCJoIjoiNmM0MmJlM2JmNTQ2ZjEwZjA5Y2FkOThiM2Y1NmY3N2MyNzFmYzhlMiJ9
  • Loading branch information
gcf-owl-bot[bot] authored Dec 18, 2024
1 parent 0890336 commit c9f8ad0
Show file tree
Hide file tree
Showing 27 changed files with 951 additions and 268 deletions.
Binary file modified Spanner/metadata/Admin/Instance/V1/Common.php
Binary file not shown.
Binary file modified Spanner/metadata/Admin/Instance/V1/SpannerInstanceAdmin.php
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

72 changes: 36 additions & 36 deletions Spanner/src/Admin/Instance/V1/Client/InstanceAdminClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ public function __call($method, $args)

/**
* Creates an instance and begins preparing it to begin serving. The
* returned [long-running operation][google.longrunning.Operation]
* 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
Expand All @@ -410,12 +410,12 @@ public function __call($method, $args)
* * The instance's allocated resource levels are readable via the API.
* * The instance's state becomes `READY`.
*
* The returned [long-running operation][google.longrunning.Operation] will
* 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][google.longrunning.Operation.metadata] field type is
* metadata field type is
* [CreateInstanceMetadata][google.spanner.admin.instance.v1.CreateInstanceMetadata].
* The [response][google.longrunning.Operation.response] field type is
* The response field type is
* [Instance][google.spanner.admin.instance.v1.Instance], if successful.
*
* The async variant is {@see InstanceAdminClient::createInstanceAsync()} .
Expand Down Expand Up @@ -443,7 +443,7 @@ public function createInstance(CreateInstanceRequest $request, array $callOption

/**
* Creates an instance configuration and begins preparing it to be used. The
* returned [long-running operation][google.longrunning.Operation]
* 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,
Expand All @@ -470,13 +470,13 @@ public function createInstance(CreateInstanceRequest $request, array $callOption
* [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling]
* field becomes false. Its state becomes `READY`.
*
* The returned [long-running operation][google.longrunning.Operation] will
* 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][google.longrunning.Operation.metadata] field type is
* metadata field type is
* [CreateInstanceConfigMetadata][google.spanner.admin.instance.v1.CreateInstanceConfigMetadata].
* The [response][google.longrunning.Operation.response] field type is
* The response field type is
* [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], if
* successful.
*
Expand Down Expand Up @@ -509,7 +509,7 @@ public function createInstanceConfig(CreateInstanceConfigRequest $request, array

/**
* Creates an instance partition and begins preparing it to be used. The
* returned [long-running operation][google.longrunning.Operation]
* 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
Expand All @@ -536,13 +536,13 @@ public function createInstanceConfig(CreateInstanceConfigRequest $request, array
* API.
* * The instance partition's state becomes `READY`.
*
* The returned [long-running operation][google.longrunning.Operation] will
* 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][google.longrunning.Operation.metadata] field type is
* metadata field type is
* [CreateInstancePartitionMetadata][google.spanner.admin.instance.v1.CreateInstancePartitionMetadata].
* The [response][google.longrunning.Operation.response] field type is
* The response field type is
* [InstancePartition][google.spanner.admin.instance.v1.InstancePartition], if
* successful.
*
Expand Down Expand Up @@ -775,12 +775,12 @@ public function getInstancePartition(GetInstancePartitionRequest $request, array
}

/**
* Lists the user-managed instance configuration [long-running
* operations][google.longrunning.Operation] in the given project. An instance
* 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][google.longrunning.Operation.metadata] field type
* 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
Expand Down Expand Up @@ -814,6 +814,9 @@ public function listInstanceConfigOperations(ListInstanceConfigOperationsRequest
/**
* Lists the supported instance configurations for a given project.
*
* Returns both Google-managed configurations and user-managed
* configurations.
*
* The async variant is {@see InstanceAdminClient::listInstanceConfigsAsync()} .
*
* @example samples/V1/InstanceAdminClient/list_instance_configs.php
Expand All @@ -838,12 +841,11 @@ public function listInstanceConfigs(ListInstanceConfigsRequest $request, array $
}

/**
* Lists instance partition [long-running
* operations][google.longrunning.Operation] in the given instance.
* 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][google.longrunning.Operation.metadata] field type
* 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
Expand Down Expand Up @@ -932,7 +934,7 @@ public function listInstances(ListInstancesRequest $request, array $callOptions

/**
* Moves an instance to the target instance configuration. You can use the
* returned [long-running operation][google.longrunning.Operation] to track
* returned long-running operation to track
* the progress of moving the instance.
*
* `MoveInstance` returns `FAILED_PRECONDITION` if the instance meets any of
Expand Down Expand Up @@ -963,13 +965,13 @@ public function listInstances(ListInstancesRequest $request, array $callOptions
* transaction abort rate. However, moving an instance doesn't cause any
* downtime.
*
* The returned [long-running operation][google.longrunning.Operation] has
* 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][google.longrunning.Operation.metadata] field type is
* metadata field type is
* [MoveInstanceMetadata][google.spanner.admin.instance.v1.MoveInstanceMetadata].
* The [response][google.longrunning.Operation.response] field type is
* The response field type is
* [Instance][google.spanner.admin.instance.v1.Instance],
* if successful.
* Cancelling the operation sets its metadata's
Expand Down Expand Up @@ -1079,8 +1081,7 @@ public function testIamPermissions(TestIamPermissionsRequest $request, array $ca

/**
* Updates an instance, and begins allocating or releasing resources
* as requested. The returned [long-running
* operation][google.longrunning.Operation] can be used to track the
* 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`.
*
Expand Down Expand Up @@ -1108,12 +1109,12 @@ public function testIamPermissions(TestIamPermissionsRequest $request, array $ca
* tables.
* * The instance's new resource levels are readable via the API.
*
* The returned [long-running operation][google.longrunning.Operation] will
* 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][google.longrunning.Operation.metadata] field type is
* metadata field type is
* [UpdateInstanceMetadata][google.spanner.admin.instance.v1.UpdateInstanceMetadata].
* The [response][google.longrunning.Operation.response] field type is
* The response field type is
* [Instance][google.spanner.admin.instance.v1.Instance], if successful.
*
* Authorization requires `spanner.instances.update` permission on
Expand Down Expand Up @@ -1144,7 +1145,7 @@ public function updateInstance(UpdateInstanceRequest $request, array $callOption

/**
* Updates an instance configuration. The returned
* [long-running operation][google.longrunning.Operation] can be used to track
* 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`.
*
Expand Down Expand Up @@ -1175,13 +1176,13 @@ public function updateInstance(UpdateInstanceRequest $request, array $callOption
* [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling]
* field becomes false.
*
* The returned [long-running operation][google.longrunning.Operation] will
* 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][google.longrunning.Operation.metadata] field type is
* metadata field type is
* [UpdateInstanceConfigMetadata][google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata].
* The [response][google.longrunning.Operation.response] field type is
* The response field type is
* [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], if
* successful.
*
Expand Down Expand Up @@ -1213,8 +1214,7 @@ public function updateInstanceConfig(UpdateInstanceConfigRequest $request, array

/**
* Updates an instance partition, and begins allocating or releasing resources
* as requested. The returned [long-running
* operation][google.longrunning.Operation] can be used to track the
* 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`.
*
Expand Down Expand Up @@ -1243,13 +1243,13 @@ public function updateInstanceConfig(UpdateInstanceConfigRequest $request, array
* partition's tables.
* * The instance partition's new resource levels are readable via the API.
*
* The returned [long-running operation][google.longrunning.Operation] will
* 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][google.longrunning.Operation.metadata] field type is
* metadata field type is
* [UpdateInstancePartitionMetadata][google.spanner.admin.instance.v1.UpdateInstancePartitionMetadata].
* The [response][google.longrunning.Operation.response] field type is
* The response field type is
* [InstancePartition][google.spanner.admin.instance.v1.InstancePartition], if
* successful.
*
Expand Down
32 changes: 16 additions & 16 deletions Spanner/src/Admin/Instance/V1/CreateInstanceConfigRequest.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c9f8ad0

Please sign in to comment.