google-cloud-spanner-admin-instance-v1 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -651,6 +651,14 @@ module Google
651
651
  # * `name:howl labels.env:dev` --> The instance's name contains "howl" and
652
652
  # it has the label "env" with its value
653
653
  # containing "dev".
654
+ # @!attribute [rw] instance_deadline
655
+ # @return [::Google::Protobuf::Timestamp]
656
+ # Deadline used while retrieving metadata for instances.
657
+ # Instances whose metadata cannot be retrieved within this deadline will be
658
+ # added to
659
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::ListInstancesResponse#unreachable unreachable}
660
+ # in
661
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::ListInstancesResponse ListInstancesResponse}.
654
662
  class ListInstancesRequest
655
663
  include ::Google::Protobuf::MessageExts
656
664
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -666,6 +674,12 @@ module Google
666
674
  # `next_page_token` can be sent in a subsequent
667
675
  # {::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client#list_instances ListInstances}
668
676
  # call to fetch more of the matching instances.
677
+ # @!attribute [rw] unreachable
678
+ # @return [::Array<::String>]
679
+ # The list of unreachable instances.
680
+ # It includes the names of instances whose metadata could not be retrieved
681
+ # within
682
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::ListInstancesRequest#instance_deadline instance_deadline}.
669
683
  class ListInstancesResponse
670
684
  include ::Google::Protobuf::MessageExts
671
685
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -783,6 +797,366 @@ module Google
783
797
  include ::Google::Protobuf::MessageExts
784
798
  extend ::Google::Protobuf::MessageExts::ClassMethods
785
799
  end
800
+
801
+ # An isolated set of Cloud Spanner resources that databases can define
802
+ # placements on.
803
+ # @!attribute [rw] name
804
+ # @return [::String]
805
+ # Required. A unique identifier for the instance partition. Values are of the
806
+ # form
807
+ # `projects/<project>/instances/<instance>/instancePartitions/[a-z][-a-z0-9]*[a-z0-9]`.
808
+ # The final segment of the name must be between 2 and 64 characters in
809
+ # length. An instance partition's name cannot be changed after the instance
810
+ # partition is created.
811
+ # @!attribute [rw] config
812
+ # @return [::String]
813
+ # Required. The name of the instance partition's configuration. Values are of
814
+ # the form `projects/<project>/instanceConfigs/<configuration>`. See also
815
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::InstanceConfig InstanceConfig} and
816
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client#list_instance_configs ListInstanceConfigs}.
817
+ # @!attribute [rw] display_name
818
+ # @return [::String]
819
+ # Required. The descriptive name for this instance partition as it appears in
820
+ # UIs. Must be unique per project and between 4 and 30 characters in length.
821
+ # @!attribute [rw] node_count
822
+ # @return [::Integer]
823
+ # The number of nodes allocated to this instance partition.
824
+ #
825
+ # Users can set the node_count field to specify the target number of nodes
826
+ # allocated to the instance partition.
827
+ #
828
+ # This may be zero in API responses for instance partitions that are not
829
+ # yet in state `READY`.
830
+ # @!attribute [rw] processing_units
831
+ # @return [::Integer]
832
+ # The number of processing units allocated to this instance partition.
833
+ #
834
+ # Users can set the processing_units field to specify the target number of
835
+ # processing units allocated to the instance partition.
836
+ #
837
+ # This may be zero in API responses for instance partitions that are not
838
+ # yet in state `READY`.
839
+ # @!attribute [r] state
840
+ # @return [::Google::Cloud::Spanner::Admin::Instance::V1::InstancePartition::State]
841
+ # Output only. The current instance partition state.
842
+ # @!attribute [r] create_time
843
+ # @return [::Google::Protobuf::Timestamp]
844
+ # Output only. The time at which the instance partition was created.
845
+ # @!attribute [r] update_time
846
+ # @return [::Google::Protobuf::Timestamp]
847
+ # Output only. The time at which the instance partition was most recently
848
+ # updated.
849
+ # @!attribute [r] referencing_databases
850
+ # @return [::Array<::String>]
851
+ # Output only. The names of the databases that reference this
852
+ # instance partition. Referencing databases should share the parent instance.
853
+ # The existence of any referencing database prevents the instance partition
854
+ # from being deleted.
855
+ # @!attribute [r] referencing_backups
856
+ # @return [::Array<::String>]
857
+ # Output only. The names of the backups that reference this instance
858
+ # partition. Referencing backups should share the parent instance. The
859
+ # existence of any referencing backup prevents the instance partition from
860
+ # being deleted.
861
+ # @!attribute [rw] etag
862
+ # @return [::String]
863
+ # Used for optimistic concurrency control as a way
864
+ # to help prevent simultaneous updates of a instance partition from
865
+ # overwriting each other. It is strongly suggested that systems make use of
866
+ # the etag in the read-modify-write cycle to perform instance partition
867
+ # updates in order to avoid race conditions: An etag is returned in the
868
+ # response which contains instance partitions, and systems are expected to
869
+ # put that etag in the request to update instance partitions to ensure that
870
+ # their change will be applied to the same version of the instance partition.
871
+ # If no etag is provided in the call to update instance partition, then the
872
+ # existing instance partition is overwritten blindly.
873
+ class InstancePartition
874
+ include ::Google::Protobuf::MessageExts
875
+ extend ::Google::Protobuf::MessageExts::ClassMethods
876
+
877
+ # Indicates the current state of the instance partition.
878
+ module State
879
+ # Not specified.
880
+ STATE_UNSPECIFIED = 0
881
+
882
+ # The instance partition is still being created. Resources may not be
883
+ # available yet, and operations such as creating placements using this
884
+ # instance partition may not work.
885
+ CREATING = 1
886
+
887
+ # The instance partition is fully created and ready to do work such as
888
+ # creating placements and using in databases.
889
+ READY = 2
890
+ end
891
+ end
892
+
893
+ # Metadata type for the operation returned by
894
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client#create_instance_partition CreateInstancePartition}.
895
+ # @!attribute [rw] instance_partition
896
+ # @return [::Google::Cloud::Spanner::Admin::Instance::V1::InstancePartition]
897
+ # The instance partition being created.
898
+ # @!attribute [rw] start_time
899
+ # @return [::Google::Protobuf::Timestamp]
900
+ # The time at which the
901
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client#create_instance_partition CreateInstancePartition}
902
+ # request was received.
903
+ # @!attribute [rw] cancel_time
904
+ # @return [::Google::Protobuf::Timestamp]
905
+ # The time at which this operation was cancelled. If set, this operation is
906
+ # in the process of undoing itself (which is guaranteed to succeed) and
907
+ # cannot be cancelled again.
908
+ # @!attribute [rw] end_time
909
+ # @return [::Google::Protobuf::Timestamp]
910
+ # The time at which this operation failed or was completed successfully.
911
+ class CreateInstancePartitionMetadata
912
+ include ::Google::Protobuf::MessageExts
913
+ extend ::Google::Protobuf::MessageExts::ClassMethods
914
+ end
915
+
916
+ # The request for
917
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client#create_instance_partition CreateInstancePartition}.
918
+ # @!attribute [rw] parent
919
+ # @return [::String]
920
+ # Required. The name of the instance in which to create the instance
921
+ # partition. Values are of the form
922
+ # `projects/<project>/instances/<instance>`.
923
+ # @!attribute [rw] instance_partition_id
924
+ # @return [::String]
925
+ # Required. The ID of the instance partition to create. Valid identifiers are
926
+ # of the form `[a-z][-a-z0-9]*[a-z0-9]` and must be between 2 and 64
927
+ # characters in length.
928
+ # @!attribute [rw] instance_partition
929
+ # @return [::Google::Cloud::Spanner::Admin::Instance::V1::InstancePartition]
930
+ # Required. The instance partition to create. The instance_partition.name may
931
+ # be omitted, but if specified must be
932
+ # `<parent>/instancePartitions/<instance_partition_id>`.
933
+ class CreateInstancePartitionRequest
934
+ include ::Google::Protobuf::MessageExts
935
+ extend ::Google::Protobuf::MessageExts::ClassMethods
936
+ end
937
+
938
+ # The request for
939
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client#delete_instance_partition DeleteInstancePartition}.
940
+ # @!attribute [rw] name
941
+ # @return [::String]
942
+ # Required. The name of the instance partition to be deleted.
943
+ # Values are of the form
944
+ # `projects/{project}/instances/{instance}/instancePartitions/{instance_partition}`
945
+ # @!attribute [rw] etag
946
+ # @return [::String]
947
+ # Optional. If not empty, the API only deletes the instance partition when
948
+ # the etag provided matches the current status of the requested instance
949
+ # partition. Otherwise, deletes the instance partition without checking the
950
+ # current status of the requested instance partition.
951
+ class DeleteInstancePartitionRequest
952
+ include ::Google::Protobuf::MessageExts
953
+ extend ::Google::Protobuf::MessageExts::ClassMethods
954
+ end
955
+
956
+ # The request for
957
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client#get_instance_partition GetInstancePartition}.
958
+ # @!attribute [rw] name
959
+ # @return [::String]
960
+ # Required. The name of the requested instance partition. Values are of
961
+ # the form
962
+ # `projects/{project}/instances/{instance}/instancePartitions/{instance_partition}`.
963
+ class GetInstancePartitionRequest
964
+ include ::Google::Protobuf::MessageExts
965
+ extend ::Google::Protobuf::MessageExts::ClassMethods
966
+ end
967
+
968
+ # The request for
969
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client#update_instance_partition UpdateInstancePartition}.
970
+ # @!attribute [rw] instance_partition
971
+ # @return [::Google::Cloud::Spanner::Admin::Instance::V1::InstancePartition]
972
+ # Required. The instance partition to update, which must always include the
973
+ # instance partition name. Otherwise, only fields mentioned in
974
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::UpdateInstancePartitionRequest#field_mask field_mask}
975
+ # need be included.
976
+ # @!attribute [rw] field_mask
977
+ # @return [::Google::Protobuf::FieldMask]
978
+ # Required. A mask specifying which fields in
979
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::InstancePartition InstancePartition}
980
+ # should be updated. The field mask must always be specified; this prevents
981
+ # any future fields in
982
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::InstancePartition InstancePartition}
983
+ # from being erased accidentally by clients that do not know about them.
984
+ class UpdateInstancePartitionRequest
985
+ include ::Google::Protobuf::MessageExts
986
+ extend ::Google::Protobuf::MessageExts::ClassMethods
987
+ end
988
+
989
+ # Metadata type for the operation returned by
990
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client#update_instance_partition UpdateInstancePartition}.
991
+ # @!attribute [rw] instance_partition
992
+ # @return [::Google::Cloud::Spanner::Admin::Instance::V1::InstancePartition]
993
+ # The desired end state of the update.
994
+ # @!attribute [rw] start_time
995
+ # @return [::Google::Protobuf::Timestamp]
996
+ # The time at which
997
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client#update_instance_partition UpdateInstancePartition}
998
+ # request was received.
999
+ # @!attribute [rw] cancel_time
1000
+ # @return [::Google::Protobuf::Timestamp]
1001
+ # The time at which this operation was cancelled. If set, this operation is
1002
+ # in the process of undoing itself (which is guaranteed to succeed) and
1003
+ # cannot be cancelled again.
1004
+ # @!attribute [rw] end_time
1005
+ # @return [::Google::Protobuf::Timestamp]
1006
+ # The time at which this operation failed or was completed successfully.
1007
+ class UpdateInstancePartitionMetadata
1008
+ include ::Google::Protobuf::MessageExts
1009
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1010
+ end
1011
+
1012
+ # The request for
1013
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client#list_instance_partitions ListInstancePartitions}.
1014
+ # @!attribute [rw] parent
1015
+ # @return [::String]
1016
+ # Required. The instance whose instance partitions should be listed. Values
1017
+ # are of the form `projects/<project>/instances/<instance>`.
1018
+ # @!attribute [rw] page_size
1019
+ # @return [::Integer]
1020
+ # Number of instance partitions to be returned in the response. If 0 or less,
1021
+ # defaults to the server's maximum allowed page size.
1022
+ # @!attribute [rw] page_token
1023
+ # @return [::String]
1024
+ # If non-empty, `page_token` should contain a
1025
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::ListInstancePartitionsResponse#next_page_token next_page_token}
1026
+ # from a previous
1027
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::ListInstancePartitionsResponse ListInstancePartitionsResponse}.
1028
+ # @!attribute [rw] instance_partition_deadline
1029
+ # @return [::Google::Protobuf::Timestamp]
1030
+ # Optional. Deadline used while retrieving metadata for instance partitions.
1031
+ # Instance partitions whose metadata cannot be retrieved within this deadline
1032
+ # will be added to
1033
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::ListInstancePartitionsResponse#unreachable unreachable}
1034
+ # in
1035
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::ListInstancePartitionsResponse ListInstancePartitionsResponse}.
1036
+ class ListInstancePartitionsRequest
1037
+ include ::Google::Protobuf::MessageExts
1038
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1039
+ end
1040
+
1041
+ # The response for
1042
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client#list_instance_partitions ListInstancePartitions}.
1043
+ # @!attribute [rw] instance_partitions
1044
+ # @return [::Array<::Google::Cloud::Spanner::Admin::Instance::V1::InstancePartition>]
1045
+ # The list of requested instancePartitions.
1046
+ # @!attribute [rw] next_page_token
1047
+ # @return [::String]
1048
+ # `next_page_token` can be sent in a subsequent
1049
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client#list_instance_partitions ListInstancePartitions}
1050
+ # call to fetch more of the matching instance partitions.
1051
+ # @!attribute [rw] unreachable
1052
+ # @return [::Array<::String>]
1053
+ # The list of unreachable instance partitions.
1054
+ # It includes the names of instance partitions whose metadata could
1055
+ # not be retrieved within
1056
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::ListInstancePartitionsRequest#instance_partition_deadline instance_partition_deadline}.
1057
+ class ListInstancePartitionsResponse
1058
+ include ::Google::Protobuf::MessageExts
1059
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1060
+ end
1061
+
1062
+ # The request for
1063
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client#list_instance_partition_operations ListInstancePartitionOperations}.
1064
+ # @!attribute [rw] parent
1065
+ # @return [::String]
1066
+ # Required. The parent instance of the instance partition operations.
1067
+ # Values are of the form `projects/<project>/instances/<instance>`.
1068
+ # @!attribute [rw] filter
1069
+ # @return [::String]
1070
+ # Optional. An expression that filters the list of returned operations.
1071
+ #
1072
+ # A filter expression consists of a field name, a
1073
+ # comparison operator, and a value for filtering.
1074
+ # The value must be a string, a number, or a boolean. The comparison operator
1075
+ # must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
1076
+ # Colon `:` is the contains operator. Filter rules are not case sensitive.
1077
+ #
1078
+ # The following fields in the {::Google::Longrunning::Operation Operation}
1079
+ # are eligible for filtering:
1080
+ #
1081
+ # * `name` - The name of the long-running operation
1082
+ # * `done` - False if the operation is in progress, else true.
1083
+ # * `metadata.@type` - the type of metadata. For example, the type string
1084
+ # for
1085
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::CreateInstancePartitionMetadata CreateInstancePartitionMetadata}
1086
+ # is
1087
+ # `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstancePartitionMetadata`.
1088
+ # * `metadata.<field_name>` - any field in metadata.value.
1089
+ # `metadata.@type` must be specified first, if filtering on metadata
1090
+ # fields.
1091
+ # * `error` - Error associated with the long-running operation.
1092
+ # * `response.@type` - the type of response.
1093
+ # * `response.<field_name>` - any field in response.value.
1094
+ #
1095
+ # You can combine multiple expressions by enclosing each expression in
1096
+ # parentheses. By default, expressions are combined with AND logic. However,
1097
+ # you can specify AND, OR, and NOT logic explicitly.
1098
+ #
1099
+ # Here are a few examples:
1100
+ #
1101
+ # * `done:true` - The operation is complete.
1102
+ # * `(metadata.@type=` \
1103
+ # `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstancePartitionMetadata)
1104
+ # AND` \
1105
+ # `(metadata.instance_partition.name:custom-instance-partition) AND` \
1106
+ # `(metadata.start_time < \"2021-03-28T14:50:00Z\") AND` \
1107
+ # `(error:*)` - Return operations where:
1108
+ # * The operation's metadata type is
1109
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::CreateInstancePartitionMetadata CreateInstancePartitionMetadata}.
1110
+ # * The instance partition name contains "custom-instance-partition".
1111
+ # * The operation started before 2021-03-28T14:50:00Z.
1112
+ # * The operation resulted in an error.
1113
+ # @!attribute [rw] page_size
1114
+ # @return [::Integer]
1115
+ # Optional. Number of operations to be returned in the response. If 0 or
1116
+ # less, defaults to the server's maximum allowed page size.
1117
+ # @!attribute [rw] page_token
1118
+ # @return [::String]
1119
+ # Optional. If non-empty, `page_token` should contain a
1120
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::ListInstancePartitionOperationsResponse#next_page_token next_page_token}
1121
+ # from a previous
1122
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::ListInstancePartitionOperationsResponse ListInstancePartitionOperationsResponse}
1123
+ # to the same `parent` and with the same `filter`.
1124
+ # @!attribute [rw] instance_partition_deadline
1125
+ # @return [::Google::Protobuf::Timestamp]
1126
+ # Optional. Deadline used while retrieving metadata for instance partition
1127
+ # operations. Instance partitions whose operation metadata cannot be
1128
+ # retrieved within this deadline will be added to
1129
+ # [unreachable][ListInstancePartitionOperationsResponse.unreachable] in
1130
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::ListInstancePartitionOperationsResponse ListInstancePartitionOperationsResponse}.
1131
+ class ListInstancePartitionOperationsRequest
1132
+ include ::Google::Protobuf::MessageExts
1133
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1134
+ end
1135
+
1136
+ # The response for
1137
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client#list_instance_partition_operations ListInstancePartitionOperations}.
1138
+ # @!attribute [rw] operations
1139
+ # @return [::Array<::Google::Longrunning::Operation>]
1140
+ # The list of matching instance partition [long-running
1141
+ # operations][google.longrunning.Operation]. Each operation's name will be
1142
+ # prefixed by the instance partition's name. The operation's
1143
+ # {::Google::Longrunning::Operation#metadata metadata} field type
1144
+ # `metadata.type_url` describes the type of the metadata.
1145
+ # @!attribute [rw] next_page_token
1146
+ # @return [::String]
1147
+ # `next_page_token` can be sent in a subsequent
1148
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client#list_instance_partition_operations ListInstancePartitionOperations}
1149
+ # call to fetch more of the matching metadata.
1150
+ # @!attribute [rw] unreachable_instance_partitions
1151
+ # @return [::Array<::String>]
1152
+ # The list of unreachable instance partitions.
1153
+ # It includes the names of instance partitions whose operation metadata could
1154
+ # not be retrieved within
1155
+ # {::Google::Cloud::Spanner::Admin::Instance::V1::ListInstancePartitionOperationsRequest#instance_partition_deadline instance_partition_deadline}.
1156
+ class ListInstancePartitionOperationsResponse
1157
+ include ::Google::Protobuf::MessageExts
1158
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1159
+ end
786
1160
  end
787
1161
  end
788
1162
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-spanner-admin-instance-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common