Skip to content

Commit 6b26403

Browse files
authored
Re-synth to pick up new deadline configuration. (#6010)
Closes #5928.
1 parent e66db55 commit 6b26403

File tree

3 files changed

+89
-107
lines changed

3 files changed

+89
-107
lines changed

bigtable/google/cloud/bigtable_admin_v2/gapic/bigtable_instance_admin_client_config.py

+16-16
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
"retry_params_name": "default"
2424
},
2525
"GetInstance": {
26-
"timeout_millis": 60000,
26+
"timeout_millis": 120000,
2727
"retry_codes_name": "idempotent",
2828
"retry_params_name": "default"
2929
},
3030
"ListInstances": {
31-
"timeout_millis": 60000,
31+
"timeout_millis": 120000,
3232
"retry_codes_name": "idempotent",
3333
"retry_params_name": "default"
3434
},
@@ -43,8 +43,8 @@
4343
"retry_params_name": "default"
4444
},
4545
"DeleteInstance": {
46-
"timeout_millis": 60000,
47-
"retry_codes_name": "idempotent",
46+
"timeout_millis": 150000,
47+
"retry_codes_name": "non_idempotent",
4848
"retry_params_name": "default"
4949
},
5050
"CreateCluster": {
@@ -53,12 +53,12 @@
5353
"retry_params_name": "default"
5454
},
5555
"GetCluster": {
56-
"timeout_millis": 60000,
56+
"timeout_millis": 120000,
5757
"retry_codes_name": "idempotent",
5858
"retry_params_name": "default"
5959
},
6060
"ListClusters": {
61-
"timeout_millis": 60000,
61+
"timeout_millis": 120000,
6262
"retry_codes_name": "idempotent",
6363
"retry_params_name": "default"
6464
},
@@ -68,47 +68,47 @@
6868
"retry_params_name": "default"
6969
},
7070
"DeleteCluster": {
71-
"timeout_millis": 60000,
72-
"retry_codes_name": "idempotent",
71+
"timeout_millis": 120000,
72+
"retry_codes_name": "non_idempotent",
7373
"retry_params_name": "default"
7474
},
7575
"CreateAppProfile": {
76-
"timeout_millis": 60000,
76+
"timeout_millis": 120000,
7777
"retry_codes_name": "non_idempotent",
7878
"retry_params_name": "default"
7979
},
8080
"GetAppProfile": {
81-
"timeout_millis": 60000,
81+
"timeout_millis": 120000,
8282
"retry_codes_name": "idempotent",
8383
"retry_params_name": "default"
8484
},
8585
"ListAppProfiles": {
86-
"timeout_millis": 60000,
86+
"timeout_millis": 120000,
8787
"retry_codes_name": "idempotent",
8888
"retry_params_name": "default"
8989
},
9090
"UpdateAppProfile": {
91-
"timeout_millis": 60000,
91+
"timeout_millis": 120000,
9292
"retry_codes_name": "idempotent",
9393
"retry_params_name": "default"
9494
},
9595
"DeleteAppProfile": {
96-
"timeout_millis": 60000,
96+
"timeout_millis": 120000,
9797
"retry_codes_name": "non_idempotent",
9898
"retry_params_name": "default"
9999
},
100100
"GetIamPolicy": {
101-
"timeout_millis": 60000,
101+
"timeout_millis": 120000,
102102
"retry_codes_name": "idempotent",
103103
"retry_params_name": "default"
104104
},
105105
"SetIamPolicy": {
106-
"timeout_millis": 60000,
106+
"timeout_millis": 120000,
107107
"retry_codes_name": "non_idempotent",
108108
"retry_params_name": "default"
109109
},
110110
"TestIamPermissions": {
111-
"timeout_millis": 60000,
111+
"timeout_millis": 120000,
112112
"retry_codes_name": "idempotent",
113113
"retry_params_name": "default"
114114
}

bigtable/google/cloud/bigtable_admin_v2/gapic/bigtable_table_admin_client_config.py

+8-26
Original file line numberDiff line numberDiff line change
@@ -14,61 +14,43 @@
1414
"rpc_timeout_multiplier": 1.0,
1515
"max_rpc_timeout_millis": 20000,
1616
"total_timeout_millis": 600000
17-
},
18-
"create_table": {
19-
"initial_retry_delay_millis": 100,
20-
"retry_delay_multiplier": 1.3,
21-
"max_retry_delay_millis": 60000,
22-
"initial_rpc_timeout_millis": 130000,
23-
"rpc_timeout_multiplier": 1.0,
24-
"max_rpc_timeout_millis": 130000,
25-
"total_timeout_millis": 3600000
26-
},
27-
"drop_row_range": {
28-
"initial_retry_delay_millis": 100,
29-
"retry_delay_multiplier": 1.3,
30-
"max_retry_delay_millis": 60000,
31-
"initial_rpc_timeout_millis": 900000,
32-
"rpc_timeout_multiplier": 1.0,
33-
"max_rpc_timeout_millis": 900000,
34-
"total_timeout_millis": 3600000
3517
}
3618
},
3719
"methods": {
3820
"CreateTable": {
39-
"timeout_millis": 130000,
21+
"timeout_millis": 900000,
4022
"retry_codes_name": "non_idempotent",
41-
"retry_params_name": "create_table"
23+
"retry_params_name": "default"
4224
},
4325
"CreateTableFromSnapshot": {
4426
"timeout_millis": 60000,
4527
"retry_codes_name": "non_idempotent",
4628
"retry_params_name": "default"
4729
},
4830
"ListTables": {
49-
"timeout_millis": 60000,
31+
"timeout_millis": 120000,
5032
"retry_codes_name": "idempotent",
5133
"retry_params_name": "default"
5234
},
5335
"GetTable": {
54-
"timeout_millis": 60000,
36+
"timeout_millis": 120000,
5537
"retry_codes_name": "idempotent",
5638
"retry_params_name": "default"
5739
},
5840
"DeleteTable": {
59-
"timeout_millis": 60000,
60-
"retry_codes_name": "idempotent",
41+
"timeout_millis": 120000,
42+
"retry_codes_name": "non_idempotent",
6143
"retry_params_name": "default"
6244
},
6345
"ModifyColumnFamilies": {
64-
"timeout_millis": 60000,
46+
"timeout_millis": 900000,
6547
"retry_codes_name": "non_idempotent",
6648
"retry_params_name": "default"
6749
},
6850
"DropRowRange": {
6951
"timeout_millis": 900000,
7052
"retry_codes_name": "non_idempotent",
71-
"retry_params_name": "drop_row_range"
53+
"retry_params_name": "default"
7254
},
7355
"GenerateConsistencyToken": {
7456
"timeout_millis": 60000,

bigtable/google/cloud/bigtable_admin_v2/gapic/enums.py

+65-65
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,71 @@ class StorageType(enum.IntEnum):
3232
HDD = 2
3333

3434

35+
class Instance(object):
36+
class State(enum.IntEnum):
37+
"""
38+
Possible states of an instance.
39+
40+
Attributes:
41+
STATE_NOT_KNOWN (int): The state of the instance could not be determined.
42+
READY (int): The instance has been successfully created and can serve requests
43+
to its tables.
44+
CREATING (int): The instance is currently being created, and may be destroyed
45+
if the creation process encounters an error.
46+
"""
47+
STATE_NOT_KNOWN = 0
48+
READY = 1
49+
CREATING = 2
50+
51+
class Type(enum.IntEnum):
52+
"""
53+
The type of the instance.
54+
55+
Attributes:
56+
TYPE_UNSPECIFIED (int): The type of the instance is unspecified. If set when creating an
57+
instance, a ``PRODUCTION`` instance will be created. If set when updating
58+
an instance, the type will be left unchanged.
59+
PRODUCTION (int): An instance meant for production use. ``serve_nodes`` must be set
60+
on the cluster.
61+
DEVELOPMENT (int): The instance is meant for development and testing purposes only; it has
62+
no performance or uptime guarantees and is not covered by SLA.
63+
After a development instance is created, it can be upgraded by
64+
updating the instance to type ``PRODUCTION``. An instance created
65+
as a production instance cannot be changed to a development instance.
66+
When creating a development instance, ``serve_nodes`` on the cluster must
67+
not be set.
68+
"""
69+
TYPE_UNSPECIFIED = 0
70+
PRODUCTION = 1
71+
DEVELOPMENT = 2
72+
73+
74+
class Cluster(object):
75+
class State(enum.IntEnum):
76+
"""
77+
Possible states of a cluster.
78+
79+
Attributes:
80+
STATE_NOT_KNOWN (int): The state of the cluster could not be determined.
81+
READY (int): The cluster has been successfully created and is ready to serve requests.
82+
CREATING (int): The cluster is currently being created, and may be destroyed
83+
if the creation process encounters an error.
84+
A cluster may not be able to serve requests while being created.
85+
RESIZING (int): The cluster is currently being resized, and may revert to its previous
86+
node count if the process encounters an error.
87+
A cluster is still capable of serving requests while being resized,
88+
but may exhibit performance as if its number of allocated nodes is
89+
between the starting and requested states.
90+
DISABLED (int): The cluster has no backing nodes. The data (tables) still
91+
exist, but no operations can be performed on the cluster.
92+
"""
93+
STATE_NOT_KNOWN = 0
94+
READY = 1
95+
CREATING = 2
96+
RESIZING = 3
97+
DISABLED = 4
98+
99+
35100
class Table(object):
36101
class TimestampGranularity(enum.IntEnum):
37102
"""
@@ -104,68 +169,3 @@ class State(enum.IntEnum):
104169
STATE_NOT_KNOWN = 0
105170
READY = 1
106171
CREATING = 2
107-
108-
109-
class Instance(object):
110-
class State(enum.IntEnum):
111-
"""
112-
Possible states of an instance.
113-
114-
Attributes:
115-
STATE_NOT_KNOWN (int): The state of the instance could not be determined.
116-
READY (int): The instance has been successfully created and can serve requests
117-
to its tables.
118-
CREATING (int): The instance is currently being created, and may be destroyed
119-
if the creation process encounters an error.
120-
"""
121-
STATE_NOT_KNOWN = 0
122-
READY = 1
123-
CREATING = 2
124-
125-
class Type(enum.IntEnum):
126-
"""
127-
The type of the instance.
128-
129-
Attributes:
130-
TYPE_UNSPECIFIED (int): The type of the instance is unspecified. If set when creating an
131-
instance, a ``PRODUCTION`` instance will be created. If set when updating
132-
an instance, the type will be left unchanged.
133-
PRODUCTION (int): An instance meant for production use. ``serve_nodes`` must be set
134-
on the cluster.
135-
DEVELOPMENT (int): The instance is meant for development and testing purposes only; it has
136-
no performance or uptime guarantees and is not covered by SLA.
137-
After a development instance is created, it can be upgraded by
138-
updating the instance to type ``PRODUCTION``. An instance created
139-
as a production instance cannot be changed to a development instance.
140-
When creating a development instance, ``serve_nodes`` on the cluster must
141-
not be set.
142-
"""
143-
TYPE_UNSPECIFIED = 0
144-
PRODUCTION = 1
145-
DEVELOPMENT = 2
146-
147-
148-
class Cluster(object):
149-
class State(enum.IntEnum):
150-
"""
151-
Possible states of a cluster.
152-
153-
Attributes:
154-
STATE_NOT_KNOWN (int): The state of the cluster could not be determined.
155-
READY (int): The cluster has been successfully created and is ready to serve requests.
156-
CREATING (int): The cluster is currently being created, and may be destroyed
157-
if the creation process encounters an error.
158-
A cluster may not be able to serve requests while being created.
159-
RESIZING (int): The cluster is currently being resized, and may revert to its previous
160-
node count if the process encounters an error.
161-
A cluster is still capable of serving requests while being resized,
162-
but may exhibit performance as if its number of allocated nodes is
163-
between the starting and requested states.
164-
DISABLED (int): The cluster has no backing nodes. The data (tables) still
165-
exist, but no operations can be performed on the cluster.
166-
"""
167-
STATE_NOT_KNOWN = 0
168-
READY = 1
169-
CREATING = 2
170-
RESIZING = 3
171-
DISABLED = 4

0 commit comments

Comments
 (0)