Skip to content

Commit a66badc

Browse files
feat: [google-cloud-gdchardwaremanagement] accept status updates in the SignalZoneState method (#13816)
BEGIN_COMMIT_OVERRIDE feat: accept status updates in the SignalZoneState method feat: expose the allowed hardware count for each SKU feat: add deployment type and installation dates to orders docs: make billing_id an output-only field END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. feat: expose the allowed hardware count for each SKU feat: add deployment type and installation dates to orders docs: make billing_id an output-only field PiperOrigin-RevId: 749889768 Source-Link: googleapis/googleapis@f817236 Source-Link: googleapis/googleapis-gen@3224fda Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWdkY2hhcmR3YXJlbWFuYWdlbWVudC8uT3dsQm90LnlhbWwiLCJoIjoiMzIyNGZkYTJkNzEyMmUyNzA1YmJlYTE2ZDA1ZjcxOWVjYjRiMjc1MSJ9 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 92d823f commit a66badc

11 files changed

+158
-47
lines changed

packages/google-cloud-gdchardwaremanagement/google/cloud/gdchardwaremanagement_v1alpha/services/gdc_hardware_management/async_client.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,6 @@ async def sample_create_order():
593593
order.organization_contact.contacts.phone = "phone_value"
594594
order.customer_motivation = "customer_motivation_value"
595595
order.region_code = "region_code_value"
596-
order.billing_id = "billing_id_value"
597596
598597
request = gdchardwaremanagement_v1alpha.CreateOrderRequest(
599598
parent="parent_value",
@@ -751,7 +750,6 @@ async def sample_update_order():
751750
order.organization_contact.contacts.phone = "phone_value"
752751
order.customer_motivation = "customer_motivation_value"
753752
order.region_code = "region_code_value"
754-
order.billing_id = "billing_id_value"
755753
756754
request = gdchardwaremanagement_v1alpha.UpdateOrderRequest(
757755
order=order,

packages/google-cloud-gdchardwaremanagement/google/cloud/gdchardwaremanagement_v1alpha/services/gdc_hardware_management/client.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,6 @@ def sample_create_order():
11511151
order.organization_contact.contacts.phone = "phone_value"
11521152
order.customer_motivation = "customer_motivation_value"
11531153
order.region_code = "region_code_value"
1154-
order.billing_id = "billing_id_value"
11551154
11561155
request = gdchardwaremanagement_v1alpha.CreateOrderRequest(
11571156
parent="parent_value",
@@ -1306,7 +1305,6 @@ def sample_update_order():
13061305
order.organization_contact.contacts.phone = "phone_value"
13071306
order.customer_motivation = "customer_motivation_value"
13081307
order.region_code = "region_code_value"
1309-
order.billing_id = "billing_id_value"
13101308
13111309
request = gdchardwaremanagement_v1alpha.UpdateOrderRequest(
13121310
order=order,

packages/google-cloud-gdchardwaremanagement/google/cloud/gdchardwaremanagement_v1alpha/types/resources.py

Lines changed: 85 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,21 @@ class Order(proto.Message):
142142
submitted. Is auto-populated to the current time
143143
when an order is submitted.
144144
billing_id (str):
145-
Required. The Google Cloud Billing ID to be
146-
charged for this order.
145+
Output only. The Google Cloud Billing ID to
146+
be charged for this order.
147147
existing_hardware (MutableSequence[google.cloud.gdchardwaremanagement_v1alpha.types.HardwareLocation]):
148148
Optional. Existing hardware to be removed as
149149
part of this order. Note: any hardware removed
150150
will be recycled unless otherwise agreed.
151+
deployment_type (google.cloud.gdchardwaremanagement_v1alpha.types.Order.DeploymentType):
152+
Output only. The deployment type of this
153+
order.
154+
actual_installation_date (google.type.date_pb2.Date):
155+
Output only. Actual installation date for
156+
this order.
157+
estimated_installation_date (google.type.date_pb2.Date):
158+
Output only. Estimated installation date for
159+
this order.
151160
"""
152161

153162
class State(proto.Enum):
@@ -212,10 +221,38 @@ class Type(proto.Enum):
212221
Paid by the customer.
213222
POC (2):
214223
Proof of concept for the customer.
224+
UNPAID (2):
225+
Not billed.
215226
"""
227+
_pb_options = {"allow_alias": True}
216228
TYPE_UNSPECIFIED = 0
217229
PAID = 1
218230
POC = 2
231+
UNPAID = 2
232+
233+
class DeploymentType(proto.Enum):
234+
r"""Valid types of a deployment.
235+
236+
Values:
237+
DEPLOYMENT_TYPE_UNSPECIFIED (0):
238+
Deployment type is unspecified.
239+
FULL_PRODUCTION (1):
240+
Prod deployment with SLOs.
241+
PROOF_OF_CONCEPT (2):
242+
Deployment with best-effort support and no
243+
SLOs.
244+
INTERNAL (3):
245+
Internal deployment with best-effort support
246+
and no SLOs.
247+
CUSTOMER_LAB (4):
248+
Customer lab deployment that we support as
249+
though it's prod.
250+
"""
251+
DEPLOYMENT_TYPE_UNSPECIFIED = 0
252+
FULL_PRODUCTION = 1
253+
PROOF_OF_CONCEPT = 2
254+
INTERNAL = 3
255+
CUSTOMER_LAB = 4
219256

220257
name: str = proto.Field(
221258
proto.STRING,
@@ -290,6 +327,21 @@ class Type(proto.Enum):
290327
number=16,
291328
message="HardwareLocation",
292329
)
330+
deployment_type: DeploymentType = proto.Field(
331+
proto.ENUM,
332+
number=18,
333+
enum=DeploymentType,
334+
)
335+
actual_installation_date: date_pb2.Date = proto.Field(
336+
proto.MESSAGE,
337+
number=19,
338+
message=date_pb2.Date,
339+
)
340+
estimated_installation_date: date_pb2.Date = proto.Field(
341+
proto.MESSAGE,
342+
number=20,
343+
message=date_pb2.Date,
344+
)
293345

294346

295347
class Site(proto.Message):
@@ -972,6 +1024,10 @@ class Sku(proto.Message):
9721024
vcpu_count (int):
9731025
Output only. The vCPU count associated with
9741026
this SKU.
1027+
hardware_count_ranges (MutableSequence[google.cloud.gdchardwaremanagement_v1alpha.types.Sku.Range]):
1028+
Output only. The inclusive ranges of hardware
1029+
counts that are allowed in a zone using this
1030+
SKU.
9751031
"""
9761032

9771033
class Type(proto.Enum):
@@ -990,6 +1046,25 @@ class Type(proto.Enum):
9901046
RACK = 1
9911047
SERVER = 2
9921048

1049+
class Range(proto.Message):
1050+
r"""Inclusive range.
1051+
1052+
Attributes:
1053+
min_ (int):
1054+
The minimum value of the range.
1055+
max_ (int):
1056+
The maximum value of the range.
1057+
"""
1058+
1059+
min_: int = proto.Field(
1060+
proto.INT32,
1061+
number=1,
1062+
)
1063+
max_: int = proto.Field(
1064+
proto.INT32,
1065+
number=2,
1066+
)
1067+
9931068
name: str = proto.Field(
9941069
proto.STRING,
9951070
number=1,
@@ -1039,6 +1114,11 @@ class Type(proto.Enum):
10391114
proto.INT32,
10401115
number=12,
10411116
)
1117+
hardware_count_ranges: MutableSequence[Range] = proto.RepeatedField(
1118+
proto.MESSAGE,
1119+
number=13,
1120+
message=Range,
1121+
)
10421122

10431123

10441124
class Zone(proto.Message):
@@ -1095,6 +1175,8 @@ class State(proto.Enum):
10951175
Google is preparing the Zone.
10961176
READY_FOR_CUSTOMER_FACTORY_TURNUP_CHECKS (5):
10971177
Factory turnup has succeeded.
1178+
CUSTOMER_FACTORY_TURNUP_CHECKS_STARTED (8):
1179+
The Zone is running factory turnup checks.
10981180
READY_FOR_SITE_TURNUP (6):
10991181
The Zone is ready for site turnup.
11001182
CUSTOMER_FACTORY_TURNUP_CHECKS_FAILED (7):
@@ -1108,6 +1190,7 @@ class State(proto.Enum):
11081190
ADDITIONAL_INFO_NEEDED = 1
11091191
PREPARING = 2
11101192
READY_FOR_CUSTOMER_FACTORY_TURNUP_CHECKS = 5
1193+
CUSTOMER_FACTORY_TURNUP_CHECKS_STARTED = 8
11111194
READY_FOR_SITE_TURNUP = 6
11121195
CUSTOMER_FACTORY_TURNUP_CHECKS_FAILED = 7
11131196
ACTIVE = 3

packages/google-cloud-gdchardwaremanagement/google/cloud/gdchardwaremanagement_v1alpha/types/service.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,6 +1484,14 @@ class SignalZoneStateRequest(proto.Message):
14841484
Optional. The provisioning state signal to send for this
14851485
zone. Either state_signal or provisioning_state_signal must
14861486
be set, but not both.
1487+
step (str):
1488+
Optional. The step being executed. Provides a finer grained
1489+
status when the state_signal is
1490+
FACTORY_TURNUP_CHECKS_STARTED or
1491+
FACTORY_TURNUP_CHECKS_FAILED.
1492+
details (str):
1493+
Optional. Additional details, such as an error message when
1494+
state_signal is FACTORY_TURNUP_CHECKS_FAILED.
14871495
"""
14881496

14891497
class StateSignal(proto.Enum):
@@ -1492,6 +1500,8 @@ class StateSignal(proto.Enum):
14921500
Values:
14931501
STATE_SIGNAL_UNSPECIFIED (0):
14941502
State signal of the zone is unspecified.
1503+
FACTORY_TURNUP_CHECKS_STARTED (3):
1504+
Factory turnup checks have started.
14951505
FACTORY_TURNUP_CHECKS_PASSED (1):
14961506
The Zone is ready for site turnup.
14971507
READY_FOR_SITE_TURNUP (1):
@@ -1502,6 +1512,7 @@ class StateSignal(proto.Enum):
15021512
"""
15031513
_pb_options = {"allow_alias": True}
15041514
STATE_SIGNAL_UNSPECIFIED = 0
1515+
FACTORY_TURNUP_CHECKS_STARTED = 3
15051516
FACTORY_TURNUP_CHECKS_PASSED = 1
15061517
READY_FOR_SITE_TURNUP = 1
15071518
FACTORY_TURNUP_CHECKS_FAILED = 2
@@ -1539,6 +1550,14 @@ class ProvisioningStateSignal(proto.Enum):
15391550
number=4,
15401551
enum=ProvisioningStateSignal,
15411552
)
1553+
step: str = proto.Field(
1554+
proto.STRING,
1555+
number=5,
1556+
)
1557+
details: str = proto.Field(
1558+
proto.STRING,
1559+
number=6,
1560+
)
15421561

15431562

15441563
class OperationMetadata(proto.Message):

packages/google-cloud-gdchardwaremanagement/samples/generated_samples/gdchardwaremanagement_v1alpha_generated_gdc_hardware_management_create_order_async.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ async def sample_create_order():
4545
order.organization_contact.contacts.phone = "phone_value"
4646
order.customer_motivation = "customer_motivation_value"
4747
order.region_code = "region_code_value"
48-
order.billing_id = "billing_id_value"
4948

5049
request = gdchardwaremanagement_v1alpha.CreateOrderRequest(
5150
parent="parent_value",

packages/google-cloud-gdchardwaremanagement/samples/generated_samples/gdchardwaremanagement_v1alpha_generated_gdc_hardware_management_create_order_sync.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def sample_create_order():
4545
order.organization_contact.contacts.phone = "phone_value"
4646
order.customer_motivation = "customer_motivation_value"
4747
order.region_code = "region_code_value"
48-
order.billing_id = "billing_id_value"
4948

5049
request = gdchardwaremanagement_v1alpha.CreateOrderRequest(
5150
parent="parent_value",

packages/google-cloud-gdchardwaremanagement/samples/generated_samples/gdchardwaremanagement_v1alpha_generated_gdc_hardware_management_update_order_async.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ async def sample_update_order():
4545
order.organization_contact.contacts.phone = "phone_value"
4646
order.customer_motivation = "customer_motivation_value"
4747
order.region_code = "region_code_value"
48-
order.billing_id = "billing_id_value"
4948

5049
request = gdchardwaremanagement_v1alpha.UpdateOrderRequest(
5150
order=order,

packages/google-cloud-gdchardwaremanagement/samples/generated_samples/gdchardwaremanagement_v1alpha_generated_gdc_hardware_management_update_order_sync.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def sample_update_order():
4545
order.organization_contact.contacts.phone = "phone_value"
4646
order.customer_motivation = "customer_motivation_value"
4747
order.region_code = "region_code_value"
48-
order.billing_id = "billing_id_value"
4948

5049
request = gdchardwaremanagement_v1alpha.UpdateOrderRequest(
5150
order=order,

0 commit comments

Comments
 (0)