google-cloud-alloy_db-v1beta 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::V1beta::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.
@@ -276,6 +282,10 @@ module Google
276
282
  # @return [::Array<::Google::Type::DayOfWeek>]
277
283
  # Output only. Days of the week on which a continuous backup is taken. Output
278
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.
279
289
  class ContinuousBackupInfo
280
290
  include ::Google::Protobuf::MessageExts
281
291
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -360,6 +370,8 @@ module Google
360
370
  # Output only. The database engine major version. This is an output-only
361
371
  # field and it's populated at the Cluster creation time. This field cannot be
362
372
  # changed after cluster creation.
373
+ # @!attribute [rw] network_config
374
+ # @return [::Google::Cloud::AlloyDB::V1beta::Cluster::NetworkConfig]
363
375
  # @!attribute [rw] network
364
376
  # @return [::String]
365
377
  # Required. The resource link for the VPC network in which cluster resources
@@ -397,7 +409,7 @@ module Google
397
409
  # documentation for the message type.
398
410
  # @!attribute [rw] ssl_config
399
411
  # @return [::Google::Cloud::AlloyDB::V1beta::SslConfig]
400
- # SSL configuration for this AlloyDB Cluster.
412
+ # SSL configuration for this AlloyDB cluster.
401
413
  # @!attribute [rw] encryption_config
402
414
  # @return [::Google::Cloud::AlloyDB::V1beta::EncryptionConfig]
403
415
  # Optional. The encryption config can be specified to encrypt the data disks
@@ -424,6 +436,30 @@ module Google
424
436
  include ::Google::Protobuf::MessageExts
425
437
  extend ::Google::Protobuf::MessageExts::ClassMethods
426
438
 
439
+ # Metadata related to network configuration.
440
+ # @!attribute [rw] network
441
+ # @return [::String]
442
+ # Required. The resource link for the VPC network in which cluster
443
+ # resources are created and from which they are accessible via Private IP.
444
+ # The network must belong to the same project as the cluster. It is
445
+ # specified in the form:
446
+ # "projects/\\{project_number}/global/networks/\\{network_id}". This is
447
+ # required to create a cluster. It can be updated, but it cannot be
448
+ # removed.
449
+ # @!attribute [rw] allocated_ip_range
450
+ # @return [::String]
451
+ # Optional. The name of the allocated IP range for the private IP AlloyDB
452
+ # cluster. For example: "google-managed-services-default". If set, the
453
+ # instance IPs for this cluster will be created in the allocated range. The
454
+ # range name must comply with RFC 1035. Specifically, the name must be 1-63
455
+ # characters long and match the regular expression
456
+ # [a-z]([-a-z0-9]*[a-z0-9])?.
457
+ # Field name is intended to be consistent with CloudSQL.
458
+ class NetworkConfig
459
+ include ::Google::Protobuf::MessageExts
460
+ extend ::Google::Protobuf::MessageExts::ClassMethods
461
+ end
462
+
427
463
  # Configuration information for the secondary cluster. This should be set
428
464
  # if and only if the cluster is of type SECONDARY.
429
465
  # @!attribute [rw] primary_cluster_name
@@ -565,8 +601,11 @@ module Google
565
601
  # @!attribute [rw] availability_type
566
602
  # @return [::Google::Cloud::AlloyDB::V1beta::Instance::AvailabilityType]
567
603
  # Availability type of an Instance.
568
- # Defaults to REGIONAL for both primary and read instances.
569
- # Note that primary and read instances can have different availability types.
604
+ # If empty, defaults to REGIONAL for primary instances.
605
+ # For read pools, availability_type is always UNSPECIFIED. Instances in the
606
+ # read pools are evenly distributed across available zones within the region
607
+ # (i.e. read pools with more than one node will have a node in at
608
+ # least two zones).
570
609
  # @!attribute [rw] gce_zone
571
610
  # @return [::String]
572
611
  # The Compute Engine zone that the instance should serve from, per
@@ -624,6 +663,12 @@ module Google
624
663
  # Annotations to allow client tools to store small amount of arbitrary data.
625
664
  # This is distinct from labels.
626
665
  # https://google.aip.dev/128
666
+ # @!attribute [rw] update_policy
667
+ # @return [::Google::Cloud::AlloyDB::V1beta::Instance::UpdatePolicy]
668
+ # Update policy that will be applied during instance update.
669
+ # This field is not persisted when you update the instance.
670
+ # To use a non-default update policy, you must
671
+ # specify explicitly specify the value in each update request.
627
672
  class Instance
628
673
  include ::Google::Protobuf::MessageExts
629
674
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -692,6 +737,28 @@ module Google
692
737
  extend ::Google::Protobuf::MessageExts::ClassMethods
693
738
  end
694
739
 
740
+ # Policy to be used while updating the instance.
741
+ # @!attribute [rw] mode
742
+ # @return [::Google::Cloud::AlloyDB::V1beta::Instance::UpdatePolicy::Mode]
743
+ # Mode for updating the instance.
744
+ class UpdatePolicy
745
+ include ::Google::Protobuf::MessageExts
746
+ extend ::Google::Protobuf::MessageExts::ClassMethods
747
+
748
+ # Specifies the available modes of update.
749
+ module Mode
750
+ # Mode is unknown.
751
+ MODE_UNSPECIFIED = 0
752
+
753
+ # Least disruptive way to apply the update.
754
+ DEFAULT = 1
755
+
756
+ # Performs a forced update when applicable. This will be fast but may
757
+ # incur a downtime.
758
+ FORCE_APPLY = 2
759
+ end
760
+ end
761
+
695
762
  # @!attribute [rw] key
696
763
  # @return [::String]
697
764
  # @!attribute [rw] value
@@ -776,10 +843,11 @@ module Google
776
843
  end
777
844
 
778
845
  # The Availability type of an instance. Potential values:
779
- # <br><b>ZONAL</b>: The instance serves data from only one zone.
780
- # Outages in that zone affect instance availability.
781
- # <br><b>REGIONAL</b>: The instance can serve data from more than one zone
782
- # in a region (it is highly available).
846
+ #
847
+ # - ZONAL: The instance serves data from only one zone. Outages in that
848
+ # zone affect instance availability.
849
+ # - REGIONAL: The instance can serve data from more than one zone in a
850
+ # region (it is highly available).
783
851
  module AvailabilityType
784
852
  # This is an unknown Availability type.
785
853
  AVAILABILITY_TYPE_UNSPECIFIED = 0
@@ -862,7 +930,7 @@ module Google
862
930
  # @!attribute [rw] cluster_name
863
931
  # @return [::String]
864
932
  # Required. The full resource name of the backup source cluster
865
- # (e.g., projects/<project>/locations/<location>/clusters/<cluster_id>).
933
+ # (e.g., projects/\\{project}/locations/\\{region}/clusters/\\{cluster_id}).
866
934
  # @!attribute [r] reconciling
867
935
  # @return [::Boolean]
868
936
  # Output only. Reconciling (https://google.aip.dev/128#reconciliation), if
@@ -1035,16 +1103,37 @@ module Google
1035
1103
  end
1036
1104
  end
1037
1105
 
1038
- # The supported database engine versions.
1039
- module DatabaseVersion
1040
- # This is an unknown database version.
1041
- DATABASE_VERSION_UNSPECIFIED = 0
1106
+ # Message describing User object.
1107
+ # @!attribute [r] name
1108
+ # @return [::String]
1109
+ # Output only. Name of the resource in the form of
1110
+ # projects/\\{project}/locations/\\{location}/cluster/\\{cluster}/users/\\{user}.
1111
+ # @!attribute [rw] password
1112
+ # @return [::String]
1113
+ # Input only. Password for the user.
1114
+ # @!attribute [rw] database_roles
1115
+ # @return [::Array<::String>]
1116
+ # Optional. List of database roles this user has.
1117
+ # The database role strings are subject to the PostgreSQL naming conventions.
1118
+ # @!attribute [rw] user_type
1119
+ # @return [::Google::Cloud::AlloyDB::V1beta::User::UserType]
1120
+ # Optional. Type of this user.
1121
+ class User
1122
+ include ::Google::Protobuf::MessageExts
1123
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1042
1124
 
1043
- # DEPRECATED - The database version is Postgres 13.
1044
- POSTGRES_13 = 1
1125
+ # Enum that details the user type.
1126
+ module UserType
1127
+ # Unspecified user type.
1128
+ USER_TYPE_UNSPECIFIED = 0
1045
1129
 
1046
- # The database version is Postgres 14.
1047
- POSTGRES_14 = 2
1130
+ # The default user type that authenticates via password-based
1131
+ # authentication.
1132
+ ALLOYDB_BUILT_IN = 1
1133
+
1134
+ # Database user that can authenticate via IAM-Based authentication.
1135
+ ALLOYDB_IAM_USER = 2
1136
+ end
1048
1137
  end
1049
1138
 
1050
1139
  # View on Instance. Pass this enum to rpcs that returns an Instance message to
@@ -1062,6 +1151,35 @@ module Google
1062
1151
  # For read pool instance, this includes details of each node in the pool.
1063
1152
  INSTANCE_VIEW_FULL = 2
1064
1153
  end
1154
+
1155
+ # View on Cluster. Pass this enum to rpcs that returns a cluster message to
1156
+ # control which subsets of fields to get.
1157
+ module ClusterView
1158
+ # CLUSTER_VIEW_UNSPECIFIED Not specified, equivalent to BASIC.
1159
+ CLUSTER_VIEW_UNSPECIFIED = 0
1160
+
1161
+ # BASIC server responses include all the relevant cluster details, excluding
1162
+ # Cluster.ContinuousBackupInfo.EarliestRestorableTime and other view-specific
1163
+ # fields. The default value.
1164
+ CLUSTER_VIEW_BASIC = 1
1165
+
1166
+ # CONTINUOUS_BACKUP response returns all the fields from BASIC plus
1167
+ # the earliest restorable time if continuous backups are enabled.
1168
+ # May increase latency.
1169
+ CLUSTER_VIEW_CONTINUOUS_BACKUP = 2
1170
+ end
1171
+
1172
+ # The supported database engine versions.
1173
+ module DatabaseVersion
1174
+ # This is an unknown database version.
1175
+ DATABASE_VERSION_UNSPECIFIED = 0
1176
+
1177
+ # DEPRECATED - The database version is Postgres 13.
1178
+ POSTGRES_13 = 1
1179
+
1180
+ # The database version is Postgres 14.
1181
+ POSTGRES_14 = 2
1182
+ end
1065
1183
  end
1066
1184
  end
1067
1185
  end
@@ -66,6 +66,10 @@ 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::V1beta::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
@@ -73,8 +77,8 @@ module Google
73
77
 
74
78
  # @!attribute [rw] parent
75
79
  # @return [::String]
76
- # Required. The name of the parent resource (the primary cluster). For the
77
- # required format, see the comment on the Cluster.name field.
80
+ # Required. The location of the new cluster. For the required
81
+ # format, see the comment on the Cluster.name field.
78
82
  # @!attribute [rw] cluster_id
79
83
  # @return [::String]
80
84
  # Required. ID of the requesting object (the secondary cluster).
@@ -109,7 +113,7 @@ module Google
109
113
  # Message for creating a Cluster
110
114
  # @!attribute [rw] parent
111
115
  # @return [::String]
112
- # 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
113
117
  # comment on the Cluster.name field.
114
118
  # @!attribute [rw] cluster_id
115
119
  # @return [::String]
@@ -471,6 +475,7 @@ module Google
471
475
  end
472
476
 
473
477
  # Message for metadata that is specific to BatchCreateInstances API.
478
+ # NEXT_ID: 3
474
479
  # @!attribute [rw] instance_targets
475
480
  # @return [::Array<::String>]
476
481
  # The instances being created in the API call. Each string in this list
@@ -510,6 +515,7 @@ module Google
510
515
  # 2. Instance2 = ROLLED_BACK
511
516
  # 3. Instance3 = FAILED
512
517
  # 4. Instance4 = FAILED
518
+ #
513
519
  # However, while the operation is running, the instance might be in other
514
520
  # states including PENDING_CREATE, ACTIVE, DELETING and CREATING. The states
515
521
  # / do not get further updated once the operation is done.
@@ -670,6 +676,49 @@ module Google
670
676
  extend ::Google::Protobuf::MessageExts::ClassMethods
671
677
  end
672
678
 
679
+ # Message for triggering fault injection on an instance
680
+ # @!attribute [rw] fault_type
681
+ # @return [::Google::Cloud::AlloyDB::V1beta::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
+
673
722
  # @!attribute [rw] name
674
723
  # @return [::String]
675
724
  # Required. The name of the resource. For the required format, see the
@@ -916,6 +965,9 @@ module Google
916
965
  # 24 hours. The endpoint may or may not honor the hint. If the hint is left
917
966
  # unspecified or is not honored, then the endpoint will pick an appropriate
918
967
  # default duration.
968
+ # @!attribute [rw] public_key
969
+ # @return [::String]
970
+ # Optional. The public key from the client.
919
971
  class GenerateClientCertificateRequest
920
972
  include ::Google::Protobuf::MessageExts
921
973
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -929,6 +981,9 @@ module Google
929
981
  # @return [::Array<::String>]
930
982
  # Output only. The pem-encoded chain that may be used to verify the X.509
931
983
  # certificate. Expected to be in issuer-to-root order according to RFC 5246.
984
+ # @!attribute [rw] ca_cert
985
+ # @return [::String]
986
+ # Optional. The pem-encoded cluster ca X.509 certificate.
932
987
  class GenerateClientCertificateResponse
933
988
  include ::Google::Protobuf::MessageExts
934
989
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -992,6 +1047,154 @@ module Google
992
1047
  include ::Google::Protobuf::MessageExts
993
1048
  extend ::Google::Protobuf::MessageExts::ClassMethods
994
1049
  end
1050
+
1051
+ # Message for requesting list of Users
1052
+ # @!attribute [rw] parent
1053
+ # @return [::String]
1054
+ # Required. Parent value for ListUsersRequest
1055
+ # @!attribute [rw] page_size
1056
+ # @return [::Integer]
1057
+ # Optional. Requested page size. Server may return fewer items than
1058
+ # requested. If unspecified, server will pick an appropriate default.
1059
+ # @!attribute [rw] page_token
1060
+ # @return [::String]
1061
+ # Optional. A token identifying a page of results the server should return.
1062
+ # @!attribute [rw] filter
1063
+ # @return [::String]
1064
+ # Optional. Filtering results
1065
+ # @!attribute [rw] order_by
1066
+ # @return [::String]
1067
+ # Optional. Hint for how to order the results
1068
+ class ListUsersRequest
1069
+ include ::Google::Protobuf::MessageExts
1070
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1071
+ end
1072
+
1073
+ # Message for response to listing Users
1074
+ # @!attribute [rw] users
1075
+ # @return [::Array<::Google::Cloud::AlloyDB::V1beta::User>]
1076
+ # The list of User
1077
+ # @!attribute [rw] next_page_token
1078
+ # @return [::String]
1079
+ # A token identifying a page of results the server should return.
1080
+ # @!attribute [rw] unreachable
1081
+ # @return [::Array<::String>]
1082
+ # Locations that could not be reached.
1083
+ class ListUsersResponse
1084
+ include ::Google::Protobuf::MessageExts
1085
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1086
+ end
1087
+
1088
+ # Message for getting a User
1089
+ # @!attribute [rw] name
1090
+ # @return [::String]
1091
+ # Required. The name of the resource. For the required format, see the
1092
+ # comment on the User.name field.
1093
+ class GetUserRequest
1094
+ include ::Google::Protobuf::MessageExts
1095
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1096
+ end
1097
+
1098
+ # Message for creating a User
1099
+ # @!attribute [rw] parent
1100
+ # @return [::String]
1101
+ # Required. Value for parent.
1102
+ # @!attribute [rw] user_id
1103
+ # @return [::String]
1104
+ # Required. ID of the requesting object.
1105
+ # @!attribute [rw] user
1106
+ # @return [::Google::Cloud::AlloyDB::V1beta::User]
1107
+ # Required. The resource being created
1108
+ # @!attribute [rw] request_id
1109
+ # @return [::String]
1110
+ # Optional. An optional request ID to identify requests. Specify a unique
1111
+ # request ID so that if you must retry your request, the server will know to
1112
+ # ignore the request if it has already been completed. The server will
1113
+ # guarantee that for at least 60 minutes since the first request.
1114
+ #
1115
+ # For example, consider a situation where you make an initial request and
1116
+ # the request times out. If you make the request again with the same request
1117
+ # ID, the server can check if original operation with the same request ID
1118
+ # was received, and if so, will ignore the second request. This prevents
1119
+ # clients from accidentally creating duplicate commitments.
1120
+ #
1121
+ # The request ID must be a valid UUID with the exception that zero UUID is
1122
+ # not supported (00000000-0000-0000-0000-000000000000).
1123
+ # @!attribute [rw] validate_only
1124
+ # @return [::Boolean]
1125
+ # Optional. If set, the backend validates the request, but doesn't actually
1126
+ # execute it.
1127
+ class CreateUserRequest
1128
+ include ::Google::Protobuf::MessageExts
1129
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1130
+ end
1131
+
1132
+ # Message for updating a User
1133
+ # @!attribute [rw] update_mask
1134
+ # @return [::Google::Protobuf::FieldMask]
1135
+ # Optional. Field mask is used to specify the fields to be overwritten in the
1136
+ # User resource by the update.
1137
+ # The fields specified in the update_mask are relative to the resource, not
1138
+ # the full request. A field will be overwritten if it is in the mask. If the
1139
+ # user does not provide a mask then all fields will be overwritten.
1140
+ # @!attribute [rw] user
1141
+ # @return [::Google::Cloud::AlloyDB::V1beta::User]
1142
+ # Required. The resource being updated
1143
+ # @!attribute [rw] request_id
1144
+ # @return [::String]
1145
+ # Optional. An optional request ID to identify requests. Specify a unique
1146
+ # request ID so that if you must retry your request, the server will know to
1147
+ # ignore the request if it has already been completed. The server will
1148
+ # guarantee that for at least 60 minutes since the first request.
1149
+ #
1150
+ # For example, consider a situation where you make an initial request and
1151
+ # the request times out. If you make the request again with the same request
1152
+ # ID, the server can check if original operation with the same request ID
1153
+ # was received, and if so, will ignore the second request. This prevents
1154
+ # clients from accidentally creating duplicate commitments.
1155
+ #
1156
+ # The request ID must be a valid UUID with the exception that zero UUID is
1157
+ # not supported (00000000-0000-0000-0000-000000000000).
1158
+ # @!attribute [rw] validate_only
1159
+ # @return [::Boolean]
1160
+ # Optional. If set, the backend validates the request, but doesn't actually
1161
+ # execute it.
1162
+ # @!attribute [rw] allow_missing
1163
+ # @return [::Boolean]
1164
+ # Optional. Allow missing fields in the update mask.
1165
+ class UpdateUserRequest
1166
+ include ::Google::Protobuf::MessageExts
1167
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1168
+ end
1169
+
1170
+ # Message for deleting a User
1171
+ # @!attribute [rw] name
1172
+ # @return [::String]
1173
+ # Required. The name of the resource. For the required format, see the
1174
+ # comment on the User.name field.
1175
+ # @!attribute [rw] request_id
1176
+ # @return [::String]
1177
+ # Optional. An optional request ID to identify requests. Specify a unique
1178
+ # request ID so that if you must retry your request, the server will know to
1179
+ # ignore the request if it has already been completed. The server will
1180
+ # guarantee that for at least 60 minutes after the first request.
1181
+ #
1182
+ # For example, consider a situation where you make an initial request and
1183
+ # the request times out. If you make the request again with the same request
1184
+ # ID, the server can check if original operation with the same request ID
1185
+ # was received, and if so, will ignore the second request. This prevents
1186
+ # clients from accidentally creating duplicate commitments.
1187
+ #
1188
+ # The request ID must be a valid UUID with the exception that zero UUID is
1189
+ # not supported (00000000-0000-0000-0000-000000000000).
1190
+ # @!attribute [rw] validate_only
1191
+ # @return [::Boolean]
1192
+ # Optional. If set, the backend validates the request, but doesn't actually
1193
+ # execute it.
1194
+ class DeleteUserRequest
1195
+ include ::Google::Protobuf::MessageExts
1196
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1197
+ end
995
1198
  end
996
1199
  end
997
1200
  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]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-alloy_db-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.3.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: 2023-03-21 00:00:00.000000000 Z
11
+ date: 2023-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.18.0
19
+ version: 0.19.1
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.18.0
29
+ version: 0.19.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a