google-cloud-alloy_db-v1 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -100,7 +100,7 @@ module Google
100
100
  end
101
101
  end
102
102
 
103
- # SSL configuration for an AlloyDB Cluster.
103
+ # SSL configuration.
104
104
  # @!attribute [rw] ssl_mode
105
105
  # @return [::Google::Cloud::AlloyDB::V1::SslConfig::SslMode]
106
106
  # Optional. SSL mode. Specifies client-server SSL/TLS connection behavior.
@@ -114,7 +114,7 @@ module Google
114
114
 
115
115
  # SSL mode options.
116
116
  module SslMode
117
- # SSL mode not specified. Defaults to SSL_MODE_ALLOW.
117
+ # SSL mode not specified. Defaults to ENCRYPTED_ONLY.
118
118
  SSL_MODE_UNSPECIFIED = 0
119
119
 
120
120
  # SSL connections are optional. CA verification not enforced.
@@ -129,6 +129,12 @@ module Google
129
129
  # Clients must have certificates signed by a Cluster CA, e.g. via
130
130
  # GenerateClientCertificate.
131
131
  SSL_MODE_VERIFY_CA = 3
132
+
133
+ # SSL connections are optional. CA verification not enforced.
134
+ ALLOW_UNENCRYPTED_AND_ENCRYPTED = 4
135
+
136
+ # SSL connections are required. CA verification not enforced.
137
+ ENCRYPTED_ONLY = 5
132
138
  end
133
139
 
134
140
  # Certificate Authority (CA) source for SSL/TLS certificates.
@@ -241,6 +247,50 @@ module Google
241
247
  end
242
248
  end
243
249
 
250
+ # ContinuousBackupConfig describes the continuous backups recovery
251
+ # configurations of a cluster.
252
+ # @!attribute [rw] enabled
253
+ # @return [::Boolean]
254
+ # Whether ContinuousBackup is enabled.
255
+ # @!attribute [rw] recovery_window_days
256
+ # @return [::Integer]
257
+ # The number of days backups and logs will be retained, which determines the
258
+ # window of time that data is recoverable for. If not set, it defaults to 14
259
+ # days.
260
+ # @!attribute [rw] encryption_config
261
+ # @return [::Google::Cloud::AlloyDB::V1::EncryptionConfig]
262
+ # The encryption config can be specified to encrypt the
263
+ # backups with a customer-managed encryption key (CMEK). When this field is
264
+ # not specified, the backup will then use default encryption scheme to
265
+ # protect the user data.
266
+ class ContinuousBackupConfig
267
+ include ::Google::Protobuf::MessageExts
268
+ extend ::Google::Protobuf::MessageExts::ClassMethods
269
+ end
270
+
271
+ # ContinuousBackupInfo describes the continuous backup properties of a
272
+ # cluster.
273
+ # @!attribute [r] encryption_info
274
+ # @return [::Google::Cloud::AlloyDB::V1::EncryptionInfo]
275
+ # Output only. The encryption information for the WALs and backups required
276
+ # for ContinuousBackup.
277
+ # @!attribute [r] enabled_time
278
+ # @return [::Google::Protobuf::Timestamp]
279
+ # Output only. When ContinuousBackup was most recently enabled. Set to null
280
+ # if ContinuousBackup is not enabled.
281
+ # @!attribute [r] schedule
282
+ # @return [::Array<::Google::Type::DayOfWeek>]
283
+ # Output only. Days of the week on which a continuous backup is taken. Output
284
+ # only field. Ignored if passed into the request.
285
+ # @!attribute [r] earliest_restorable_time
286
+ # @return [::Google::Protobuf::Timestamp]
287
+ # Output only. The earliest restorable time that can be restored to. Output
288
+ # only field.
289
+ class ContinuousBackupInfo
290
+ include ::Google::Protobuf::MessageExts
291
+ extend ::Google::Protobuf::MessageExts::ClassMethods
292
+ end
293
+
244
294
  # Message describing a BackupSource.
245
295
  # @!attribute [r] backup_uid
246
296
  # @return [::String]
@@ -256,6 +306,20 @@ module Google
256
306
  extend ::Google::Protobuf::MessageExts::ClassMethods
257
307
  end
258
308
 
309
+ # Message describing a ContinuousBackupSource.
310
+ # @!attribute [rw] cluster
311
+ # @return [::String]
312
+ # Required. The source cluster from which to restore. This cluster must have
313
+ # continuous backup enabled for this operation to succeed. For the required
314
+ # format, see the comment on the Cluster.name field.
315
+ # @!attribute [rw] point_in_time
316
+ # @return [::Google::Protobuf::Timestamp]
317
+ # Required. The point in time to restore to.
318
+ class ContinuousBackupSource
319
+ include ::Google::Protobuf::MessageExts
320
+ extend ::Google::Protobuf::MessageExts::ClassMethods
321
+ end
322
+
259
323
  # A cluster is a collection of regional AlloyDB resources. It can include a
260
324
  # primary instance and one or more read pool instances.
261
325
  # All cluster resources share a storage layer, which scales as needed.
@@ -343,7 +407,7 @@ module Google
343
407
  # documentation for the message type.
344
408
  # @!attribute [rw] ssl_config
345
409
  # @return [::Google::Cloud::AlloyDB::V1::SslConfig]
346
- # SSL configuration for this AlloyDB Cluster.
410
+ # SSL configuration for this AlloyDB cluster.
347
411
  # @!attribute [rw] encryption_config
348
412
  # @return [::Google::Cloud::AlloyDB::V1::EncryptionConfig]
349
413
  # Optional. The encryption config can be specified to encrypt the data disks
@@ -354,6 +418,12 @@ module Google
354
418
  # @!attribute [r] encryption_info
355
419
  # @return [::Google::Cloud::AlloyDB::V1::EncryptionInfo]
356
420
  # Output only. The encryption information for the cluster.
421
+ # @!attribute [rw] continuous_backup_config
422
+ # @return [::Google::Cloud::AlloyDB::V1::ContinuousBackupConfig]
423
+ # Optional. Continuous backup configuration for this cluster.
424
+ # @!attribute [r] continuous_backup_info
425
+ # @return [::Google::Cloud::AlloyDB::V1::ContinuousBackupInfo]
426
+ # Output only. Continuous backup properties for this cluster.
357
427
  # @!attribute [rw] secondary_config
358
428
  # @return [::Google::Cloud::AlloyDB::V1::Cluster::SecondaryConfig]
359
429
  # Cross Region replication config specific to SECONDARY cluster.
@@ -505,8 +575,11 @@ module Google
505
575
  # @!attribute [rw] availability_type
506
576
  # @return [::Google::Cloud::AlloyDB::V1::Instance::AvailabilityType]
507
577
  # Availability type of an Instance.
508
- # Defaults to REGIONAL for both primary and read instances.
509
- # Note that primary and read instances can have different availability types.
578
+ # If empty, defaults to REGIONAL for primary instances.
579
+ # For read pools, availability_type is always UNSPECIFIED. Instances in the
580
+ # read pools are evenly distributed across available zones within the region
581
+ # (i.e. read pools with more than one node will have a node in at
582
+ # least two zones).
510
583
  # @!attribute [rw] gce_zone
511
584
  # @return [::String]
512
585
  # The Compute Engine zone that the instance should serve from, per
@@ -716,10 +789,11 @@ module Google
716
789
  end
717
790
 
718
791
  # The Availability type of an instance. Potential values:
719
- # <br><b>ZONAL</b>: The instance serves data from only one zone.
720
- # Outages in that zone affect instance availability.
721
- # <br><b>REGIONAL</b>: The instance can serve data from more than one zone
722
- # in a region (it is highly available).
792
+ #
793
+ # - ZONAL: The instance serves data from only one zone. Outages in that
794
+ # zone affect instance availability.
795
+ # - REGIONAL: The instance can serve data from more than one zone in a
796
+ # region (it is highly available).
723
797
  module AvailabilityType
724
798
  # This is an unknown Availability type.
725
799
  AVAILABILITY_TYPE_UNSPECIFIED = 0
@@ -779,7 +853,7 @@ module Google
779
853
  # @!attribute [rw] cluster_name
780
854
  # @return [::String]
781
855
  # Required. The full resource name of the backup source cluster
782
- # (e.g., projects/<project>/locations/<location>/clusters/<cluster_id>).
856
+ # (e.g., projects/\\{project}/locations/\\{region}/clusters/\\{cluster_id}).
783
857
  # @!attribute [r] reconciling
784
858
  # @return [::Boolean]
785
859
  # Output only. Reconciling (https://google.aip.dev/128#reconciliation), if
@@ -952,16 +1026,37 @@ module Google
952
1026
  end
953
1027
  end
954
1028
 
955
- # The supported database engine versions.
956
- module DatabaseVersion
957
- # This is an unknown database version.
958
- DATABASE_VERSION_UNSPECIFIED = 0
1029
+ # Message describing User object.
1030
+ # @!attribute [r] name
1031
+ # @return [::String]
1032
+ # Output only. Name of the resource in the form of
1033
+ # projects/\\{project}/locations/\\{location}/cluster/\\{cluster}/users/\\{user}.
1034
+ # @!attribute [rw] password
1035
+ # @return [::String]
1036
+ # Input only. Password for the user.
1037
+ # @!attribute [rw] database_roles
1038
+ # @return [::Array<::String>]
1039
+ # Optional. List of database roles this user has.
1040
+ # The database role strings are subject to the PostgreSQL naming conventions.
1041
+ # @!attribute [rw] user_type
1042
+ # @return [::Google::Cloud::AlloyDB::V1::User::UserType]
1043
+ # Optional. Type of this user.
1044
+ class User
1045
+ include ::Google::Protobuf::MessageExts
1046
+ extend ::Google::Protobuf::MessageExts::ClassMethods
959
1047
 
960
- # DEPRECATED - The database version is Postgres 13.
961
- POSTGRES_13 = 1
1048
+ # Enum that details the user type.
1049
+ module UserType
1050
+ # Unspecified user type.
1051
+ USER_TYPE_UNSPECIFIED = 0
962
1052
 
963
- # The database version is Postgres 14.
964
- POSTGRES_14 = 2
1053
+ # The default user type that authenticates via password-based
1054
+ # authentication.
1055
+ ALLOYDB_BUILT_IN = 1
1056
+
1057
+ # Database user that can authenticate via IAM-Based authentication.
1058
+ ALLOYDB_IAM_USER = 2
1059
+ end
965
1060
  end
966
1061
 
967
1062
  # View on Instance. Pass this enum to rpcs that returns an Instance message to
@@ -979,6 +1074,35 @@ module Google
979
1074
  # For read pool instance, this includes details of each node in the pool.
980
1075
  INSTANCE_VIEW_FULL = 2
981
1076
  end
1077
+
1078
+ # View on Cluster. Pass this enum to rpcs that returns a cluster message to
1079
+ # control which subsets of fields to get.
1080
+ module ClusterView
1081
+ # CLUSTER_VIEW_UNSPECIFIED Not specified, equivalent to BASIC.
1082
+ CLUSTER_VIEW_UNSPECIFIED = 0
1083
+
1084
+ # BASIC server responses include all the relevant cluster details, excluding
1085
+ # Cluster.ContinuousBackupInfo.EarliestRestorableTime and other view-specific
1086
+ # fields. The default value.
1087
+ CLUSTER_VIEW_BASIC = 1
1088
+
1089
+ # CONTINUOUS_BACKUP response returns all the fields from BASIC plus
1090
+ # the earliest restorable time if continuous backups are enabled.
1091
+ # May increase latency.
1092
+ CLUSTER_VIEW_CONTINUOUS_BACKUP = 2
1093
+ end
1094
+
1095
+ # The supported database engine versions.
1096
+ module DatabaseVersion
1097
+ # This is an unknown database version.
1098
+ DATABASE_VERSION_UNSPECIFIED = 0
1099
+
1100
+ # DEPRECATED - The database version is Postgres 13.
1101
+ POSTGRES_13 = 1
1102
+
1103
+ # The database version is Postgres 14.
1104
+ POSTGRES_14 = 2
1105
+ end
982
1106
  end
983
1107
  end
984
1108
  end
@@ -66,15 +66,54 @@ module Google
66
66
  # @return [::String]
67
67
  # Required. The name of the resource. For the required format, see the
68
68
  # comment on the Cluster.name field.
69
+ # @!attribute [rw] view
70
+ # @return [::Google::Cloud::AlloyDB::V1::ClusterView]
71
+ # Optional. The view of the cluster to return. Returns all default fields if
72
+ # not set.
69
73
  class GetClusterRequest
70
74
  include ::Google::Protobuf::MessageExts
71
75
  extend ::Google::Protobuf::MessageExts::ClassMethods
72
76
  end
73
77
 
78
+ # @!attribute [rw] parent
79
+ # @return [::String]
80
+ # Required. The location of the new cluster. For the required
81
+ # format, see the comment on the Cluster.name field.
82
+ # @!attribute [rw] cluster_id
83
+ # @return [::String]
84
+ # Required. ID of the requesting object (the secondary cluster).
85
+ # @!attribute [rw] cluster
86
+ # @return [::Google::Cloud::AlloyDB::V1::Cluster]
87
+ # Required. Configuration of the requesting object (the secondary cluster).
88
+ # @!attribute [rw] request_id
89
+ # @return [::String]
90
+ # Optional. An optional request ID to identify requests. Specify a unique
91
+ # request ID so that if you must retry your request, the server will know to
92
+ # ignore the request if it has already been completed. The server will
93
+ # guarantee that for at least 60 minutes since the first request.
94
+ #
95
+ # For example, consider a situation where you make an initial request and
96
+ # the request times out. If you make the request again with the same request
97
+ # ID, the server can check if original operation with the same request ID
98
+ # was received, and if so, will ignore the second request. This prevents
99
+ # clients from accidentally creating duplicate commitments.
100
+ #
101
+ # The request ID must be a valid UUID with the exception that zero UUID is
102
+ # not supported (00000000-0000-0000-0000-000000000000).
103
+ # @!attribute [rw] validate_only
104
+ # @return [::Boolean]
105
+ # Optional. If set, performs request validation (e.g. permission checks and
106
+ # any other type of validation), but do not actually execute the create
107
+ # request.
108
+ class CreateSecondaryClusterRequest
109
+ include ::Google::Protobuf::MessageExts
110
+ extend ::Google::Protobuf::MessageExts::ClassMethods
111
+ end
112
+
74
113
  # Message for creating a Cluster
75
114
  # @!attribute [rw] parent
76
115
  # @return [::String]
77
- # Required. The name of the parent resource. For the required format, see the
116
+ # Required. The location of the new cluster. For the required format, see the
78
117
  # comment on the Cluster.name field.
79
118
  # @!attribute [rw] cluster_id
80
119
  # @return [::String]
@@ -184,11 +223,49 @@ module Google
184
223
  extend ::Google::Protobuf::MessageExts::ClassMethods
185
224
  end
186
225
 
226
+ # Message for promoting a Cluster
227
+ # @!attribute [rw] name
228
+ # @return [::String]
229
+ # Required. The name of the resource. For the required format, see the
230
+ # comment on the Cluster.name field
231
+ # @!attribute [rw] request_id
232
+ # @return [::String]
233
+ # Optional. An optional request ID to identify requests. Specify a unique
234
+ # request ID so that if you must retry your request, the server will know to
235
+ # ignore the request if it has already been completed. The server will
236
+ # guarantee that for at least 60 minutes after the first request.
237
+ #
238
+ # For example, consider a situation where you make an initial request and
239
+ # the request times out. If you make the request again with the same request
240
+ # ID, the server can check if original operation with the same request ID
241
+ # was received, and if so, will ignore the second request. This prevents
242
+ # clients from accidentally creating duplicate commitments.
243
+ #
244
+ # The request ID must be a valid UUID with the exception that zero UUID is
245
+ # not supported (00000000-0000-0000-0000-000000000000).
246
+ # @!attribute [rw] etag
247
+ # @return [::String]
248
+ # Optional. The current etag of the Cluster.
249
+ # If an etag is provided and does not match the current etag of the Cluster,
250
+ # deletion will be blocked and an ABORTED error will be returned.
251
+ # @!attribute [rw] validate_only
252
+ # @return [::Boolean]
253
+ # Optional. If set, performs request validation (e.g. permission checks and
254
+ # any other type of validation), but do not actually execute the delete.
255
+ class PromoteClusterRequest
256
+ include ::Google::Protobuf::MessageExts
257
+ extend ::Google::Protobuf::MessageExts::ClassMethods
258
+ end
259
+
187
260
  # Message for restoring a Cluster from a backup or another cluster at a given
188
261
  # point in time.
189
262
  # @!attribute [rw] backup_source
190
263
  # @return [::Google::Cloud::AlloyDB::V1::BackupSource]
191
264
  # Backup source.
265
+ # @!attribute [rw] continuous_backup_source
266
+ # @return [::Google::Cloud::AlloyDB::V1::ContinuousBackupSource]
267
+ # ContinuousBackup source. Continuous backup needs to be enabled in the
268
+ # source cluster for this operation to succeed.
192
269
  # @!attribute [rw] parent
193
270
  # @return [::String]
194
271
  # Required. The name of the parent resource. For the required format, see the
@@ -315,6 +392,42 @@ module Google
315
392
  extend ::Google::Protobuf::MessageExts::ClassMethods
316
393
  end
317
394
 
395
+ # Message for creating a Secondary Instance
396
+ # @!attribute [rw] parent
397
+ # @return [::String]
398
+ # Required. The name of the parent resource. For the required format, see the
399
+ # comment on the Instance.name field.
400
+ # @!attribute [rw] instance_id
401
+ # @return [::String]
402
+ # Required. ID of the requesting object.
403
+ # @!attribute [rw] instance
404
+ # @return [::Google::Cloud::AlloyDB::V1::Instance]
405
+ # Required. The resource being created
406
+ # @!attribute [rw] request_id
407
+ # @return [::String]
408
+ # Optional. An optional request ID to identify requests. Specify a unique
409
+ # request ID so that if you must retry your request, the server will know to
410
+ # ignore the request if it has already been completed. The server will
411
+ # guarantee that for at least 60 minutes since the first request.
412
+ #
413
+ # For example, consider a situation where you make an initial request and
414
+ # the request times out. If you make the request again with the same request
415
+ # ID, the server can check if original operation with the same request ID
416
+ # was received, and if so, will ignore the second request. This prevents
417
+ # clients from accidentally creating duplicate commitments.
418
+ #
419
+ # The request ID must be a valid UUID with the exception that zero UUID is
420
+ # not supported (00000000-0000-0000-0000-000000000000).
421
+ # @!attribute [rw] validate_only
422
+ # @return [::Boolean]
423
+ # Optional. If set, performs request validation (e.g. permission checks and
424
+ # any other type of validation), but do not actually execute the create
425
+ # request.
426
+ class CreateSecondaryInstanceRequest
427
+ include ::Google::Protobuf::MessageExts
428
+ extend ::Google::Protobuf::MessageExts::ClassMethods
429
+ end
430
+
318
431
  # See usage below for notes.
319
432
  # @!attribute [rw] create_instance_requests
320
433
  # @return [::Array<::Google::Cloud::AlloyDB::V1::CreateInstanceRequest>]
@@ -362,6 +475,7 @@ module Google
362
475
  end
363
476
 
364
477
  # Message for metadata that is specific to BatchCreateInstances API.
478
+ # NEXT_ID: 3
365
479
  # @!attribute [rw] instance_targets
366
480
  # @return [::Array<::String>]
367
481
  # The instances being created in the API call. Each string in this list
@@ -401,6 +515,7 @@ module Google
401
515
  # 2. Instance2 = ROLLED_BACK
402
516
  # 3. Instance3 = FAILED
403
517
  # 4. Instance4 = FAILED
518
+ #
404
519
  # However, while the operation is running, the instance might be in other
405
520
  # states including PENDING_CREATE, ACTIVE, DELETING and CREATING. The states
406
521
  # / do not get further updated once the operation is done.
@@ -561,6 +676,49 @@ module Google
561
676
  extend ::Google::Protobuf::MessageExts::ClassMethods
562
677
  end
563
678
 
679
+ # Message for triggering fault injection on an instance
680
+ # @!attribute [rw] fault_type
681
+ # @return [::Google::Cloud::AlloyDB::V1::InjectFaultRequest::FaultType]
682
+ # Required. The type of fault to be injected in an instance.
683
+ # @!attribute [rw] name
684
+ # @return [::String]
685
+ # Required. The name of the resource. For the required format, see the
686
+ # comment on the Instance.name field.
687
+ # @!attribute [rw] request_id
688
+ # @return [::String]
689
+ # Optional. An optional request ID to identify requests. Specify a unique
690
+ # request ID so that if you must retry your request, the server will know to
691
+ # ignore the request if it has already been completed. The server will
692
+ # guarantee that for at least 60 minutes after the first request.
693
+ #
694
+ # For example, consider a situation where you make an initial request and
695
+ # the request times out. If you make the request again with the same request
696
+ # ID, the server can check if original operation with the same request ID
697
+ # was received, and if so, will ignore the second request. This prevents
698
+ # clients from accidentally creating duplicate commitments.
699
+ #
700
+ # The request ID must be a valid UUID with the exception that zero UUID is
701
+ # not supported (00000000-0000-0000-0000-000000000000).
702
+ # @!attribute [rw] validate_only
703
+ # @return [::Boolean]
704
+ # Optional. If set, performs request validation (e.g. permission checks and
705
+ # any other type of validation), but do not actually execute the fault
706
+ # injection.
707
+ class InjectFaultRequest
708
+ include ::Google::Protobuf::MessageExts
709
+ extend ::Google::Protobuf::MessageExts::ClassMethods
710
+
711
+ # FaultType contains all valid types of faults that can be injected to an
712
+ # instance.
713
+ module FaultType
714
+ # The fault type is unknown.
715
+ FAULT_TYPE_UNSPECIFIED = 0
716
+
717
+ # Stop the VM
718
+ STOP_VM = 1
719
+ end
720
+ end
721
+
564
722
  # @!attribute [rw] name
565
723
  # @return [::String]
566
724
  # Required. The name of the resource. For the required format, see the
@@ -809,6 +967,154 @@ module Google
809
967
  include ::Google::Protobuf::MessageExts
810
968
  extend ::Google::Protobuf::MessageExts::ClassMethods
811
969
  end
970
+
971
+ # Message for requesting list of Users
972
+ # @!attribute [rw] parent
973
+ # @return [::String]
974
+ # Required. Parent value for ListUsersRequest
975
+ # @!attribute [rw] page_size
976
+ # @return [::Integer]
977
+ # Optional. Requested page size. Server may return fewer items than
978
+ # requested. If unspecified, server will pick an appropriate default.
979
+ # @!attribute [rw] page_token
980
+ # @return [::String]
981
+ # Optional. A token identifying a page of results the server should return.
982
+ # @!attribute [rw] filter
983
+ # @return [::String]
984
+ # Optional. Filtering results
985
+ # @!attribute [rw] order_by
986
+ # @return [::String]
987
+ # Optional. Hint for how to order the results
988
+ class ListUsersRequest
989
+ include ::Google::Protobuf::MessageExts
990
+ extend ::Google::Protobuf::MessageExts::ClassMethods
991
+ end
992
+
993
+ # Message for response to listing Users
994
+ # @!attribute [rw] users
995
+ # @return [::Array<::Google::Cloud::AlloyDB::V1::User>]
996
+ # The list of User
997
+ # @!attribute [rw] next_page_token
998
+ # @return [::String]
999
+ # A token identifying a page of results the server should return.
1000
+ # @!attribute [rw] unreachable
1001
+ # @return [::Array<::String>]
1002
+ # Locations that could not be reached.
1003
+ class ListUsersResponse
1004
+ include ::Google::Protobuf::MessageExts
1005
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1006
+ end
1007
+
1008
+ # Message for getting a User
1009
+ # @!attribute [rw] name
1010
+ # @return [::String]
1011
+ # Required. The name of the resource. For the required format, see the
1012
+ # comment on the User.name field.
1013
+ class GetUserRequest
1014
+ include ::Google::Protobuf::MessageExts
1015
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1016
+ end
1017
+
1018
+ # Message for creating a User
1019
+ # @!attribute [rw] parent
1020
+ # @return [::String]
1021
+ # Required. Value for parent.
1022
+ # @!attribute [rw] user_id
1023
+ # @return [::String]
1024
+ # Required. ID of the requesting object.
1025
+ # @!attribute [rw] user
1026
+ # @return [::Google::Cloud::AlloyDB::V1::User]
1027
+ # Required. The resource being created
1028
+ # @!attribute [rw] request_id
1029
+ # @return [::String]
1030
+ # Optional. An optional request ID to identify requests. Specify a unique
1031
+ # request ID so that if you must retry your request, the server will know to
1032
+ # ignore the request if it has already been completed. The server will
1033
+ # guarantee that for at least 60 minutes since the first request.
1034
+ #
1035
+ # For example, consider a situation where you make an initial request and
1036
+ # the request times out. If you make the request again with the same request
1037
+ # ID, the server can check if original operation with the same request ID
1038
+ # was received, and if so, will ignore the second request. This prevents
1039
+ # clients from accidentally creating duplicate commitments.
1040
+ #
1041
+ # The request ID must be a valid UUID with the exception that zero UUID is
1042
+ # not supported (00000000-0000-0000-0000-000000000000).
1043
+ # @!attribute [rw] validate_only
1044
+ # @return [::Boolean]
1045
+ # Optional. If set, the backend validates the request, but doesn't actually
1046
+ # execute it.
1047
+ class CreateUserRequest
1048
+ include ::Google::Protobuf::MessageExts
1049
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1050
+ end
1051
+
1052
+ # Message for updating a User
1053
+ # @!attribute [rw] update_mask
1054
+ # @return [::Google::Protobuf::FieldMask]
1055
+ # Optional. Field mask is used to specify the fields to be overwritten in the
1056
+ # User resource by the update.
1057
+ # The fields specified in the update_mask are relative to the resource, not
1058
+ # the full request. A field will be overwritten if it is in the mask. If the
1059
+ # user does not provide a mask then all fields will be overwritten.
1060
+ # @!attribute [rw] user
1061
+ # @return [::Google::Cloud::AlloyDB::V1::User]
1062
+ # Required. The resource being updated
1063
+ # @!attribute [rw] request_id
1064
+ # @return [::String]
1065
+ # Optional. An optional request ID to identify requests. Specify a unique
1066
+ # request ID so that if you must retry your request, the server will know to
1067
+ # ignore the request if it has already been completed. The server will
1068
+ # guarantee that for at least 60 minutes since the first request.
1069
+ #
1070
+ # For example, consider a situation where you make an initial request and
1071
+ # the request times out. If you make the request again with the same request
1072
+ # ID, the server can check if original operation with the same request ID
1073
+ # was received, and if so, will ignore the second request. This prevents
1074
+ # clients from accidentally creating duplicate commitments.
1075
+ #
1076
+ # The request ID must be a valid UUID with the exception that zero UUID is
1077
+ # not supported (00000000-0000-0000-0000-000000000000).
1078
+ # @!attribute [rw] validate_only
1079
+ # @return [::Boolean]
1080
+ # Optional. If set, the backend validates the request, but doesn't actually
1081
+ # execute it.
1082
+ # @!attribute [rw] allow_missing
1083
+ # @return [::Boolean]
1084
+ # Optional. Allow missing fields in the update mask.
1085
+ class UpdateUserRequest
1086
+ include ::Google::Protobuf::MessageExts
1087
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1088
+ end
1089
+
1090
+ # Message for deleting a User
1091
+ # @!attribute [rw] name
1092
+ # @return [::String]
1093
+ # Required. The name of the resource. For the required format, see the
1094
+ # comment on the User.name field.
1095
+ # @!attribute [rw] request_id
1096
+ # @return [::String]
1097
+ # Optional. An optional request ID to identify requests. Specify a unique
1098
+ # request ID so that if you must retry your request, the server will know to
1099
+ # ignore the request if it has already been completed. The server will
1100
+ # guarantee that for at least 60 minutes after the first request.
1101
+ #
1102
+ # For example, consider a situation where you make an initial request and
1103
+ # the request times out. If you make the request again with the same request
1104
+ # ID, the server can check if original operation with the same request ID
1105
+ # was received, and if so, will ignore the second request. This prevents
1106
+ # clients from accidentally creating duplicate commitments.
1107
+ #
1108
+ # The request ID must be a valid UUID with the exception that zero UUID is
1109
+ # not supported (00000000-0000-0000-0000-000000000000).
1110
+ # @!attribute [rw] validate_only
1111
+ # @return [::Boolean]
1112
+ # Optional. If set, the backend validates the request, but doesn't actually
1113
+ # execute it.
1114
+ class DeleteUserRequest
1115
+ include ::Google::Protobuf::MessageExts
1116
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1117
+ end
812
1118
  end
813
1119
  end
814
1120
  end
@@ -43,8 +43,12 @@ module Google
43
43
  # if (any.is(Foo.class)) {
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
+ # // or ...
47
+ # if (any.isSameTypeAs(Foo.getDefaultInstance())) {
48
+ # foo = any.unpack(Foo.getDefaultInstance());
49
+ # }
46
50
  #
47
- # Example 3: Pack and unpack a message in Python.
51
+ # Example 3: Pack and unpack a message in Python.
48
52
  #
49
53
  # foo = Foo(...)
50
54
  # any = Any()
@@ -54,7 +58,7 @@ module Google
54
58
  # any.Unpack(foo)
55
59
  # ...
56
60
  #
57
- # Example 4: Pack and unpack a message in Go
61
+ # Example 4: Pack and unpack a message in Go
58
62
  #
59
63
  # foo := &pb.Foo{...}
60
64
  # any, err := anypb.New(foo)
@@ -73,9 +77,8 @@ module Google
73
77
  # in the type URL, for example "foo.bar.com/x/y.z" will yield type
74
78
  # name "y.z".
75
79
  #
76
- #
77
80
  # JSON
78
- #
81
+ # ====
79
82
  # The JSON representation of an `Any` value uses the regular
80
83
  # representation of the deserialized, embedded message, with an
81
84
  # additional field `@type` which contains the type URL. Example:
@@ -69,7 +69,6 @@ module Google
69
69
  # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
70
70
  # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
71
  #
72
- #
73
72
  # Example 5: Compute Timestamp from Java `Instant.now()`.
74
73
  #
75
74
  # Instant now = Instant.now();
@@ -78,7 +77,6 @@ module Google
78
77
  # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
79
78
  # .setNanos(now.getNano()).build();
80
79
  #
81
- #
82
80
  # Example 6: Compute Timestamp from current time in Python.
83
81
  #
84
82
  # timestamp = Timestamp()
@@ -108,7 +106,7 @@ module Google
108
106
  # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
109
107
  # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
110
108
  # the Joda Time's [`ISODateTimeFormat.dateTime()`](
111
- # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
109
+ # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
112
110
  # ) to obtain a formatter capable of generating timestamps in this format.
113
111
  # @!attribute [rw] seconds
114
112
  # @return [::Integer]