Skip to content

Commit f817236

Browse files
Google APIscopybara-github
authored andcommitted
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 PiperOrigin-RevId: 749889768
1 parent 4cf9437 commit f817236

3 files changed

Lines changed: 66 additions & 3 deletions

File tree

google/cloud/gdchardwaremanagement/v1alpha/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,6 @@ load(
351351

352352
csharp_proto_library(
353353
name = "gdchardwaremanagement_csharp_proto",
354-
extra_opts = [],
355354
deps = [":gdchardwaremanagement_proto"],
356355
)
357356

google/cloud/gdchardwaremanagement/v1alpha/resources.proto

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ message Order {
117117

118118
// Valid types of an Order.
119119
enum Type {
120+
option allow_alias = true;
121+
120122
// Type of the order is unspecified.
121123
TYPE_UNSPECIFIED = 0;
122124

@@ -125,6 +127,27 @@ message Order {
125127

126128
// Proof of concept for the customer.
127129
POC = 2;
130+
131+
// Not billed.
132+
UNPAID = 2;
133+
}
134+
135+
// Valid types of a deployment.
136+
enum DeploymentType {
137+
// Deployment type is unspecified.
138+
DEPLOYMENT_TYPE_UNSPECIFIED = 0;
139+
140+
// Prod deployment with SLOs.
141+
FULL_PRODUCTION = 1;
142+
143+
// Deployment with best-effort support and no SLOs.
144+
PROOF_OF_CONCEPT = 2;
145+
146+
// Internal deployment with best-effort support and no SLOs.
147+
INTERNAL = 3;
148+
149+
// Customer lab deployment that we support as though it's prod.
150+
CUSTOMER_LAB = 4;
128151
}
129152

130153
// Identifier. Name of this order.
@@ -186,13 +209,25 @@ message Order {
186209
google.protobuf.Timestamp submit_time = 14
187210
[(google.api.field_behavior) = OUTPUT_ONLY];
188211

189-
// Required. The Google Cloud Billing ID to be charged for this order.
190-
string billing_id = 15 [(google.api.field_behavior) = REQUIRED];
212+
// Output only. The Google Cloud Billing ID to be charged for this order.
213+
string billing_id = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
191214

192215
// Optional. Existing hardware to be removed as part of this order.
193216
// Note: any hardware removed will be recycled unless otherwise agreed.
194217
repeated HardwareLocation existing_hardware = 16
195218
[(google.api.field_behavior) = OPTIONAL];
219+
220+
// Output only. The deployment type of this order.
221+
DeploymentType deployment_type = 18
222+
[(google.api.field_behavior) = OUTPUT_ONLY];
223+
224+
// Output only. Actual installation date for this order.
225+
google.type.Date actual_installation_date = 19
226+
[(google.api.field_behavior) = OUTPUT_ONLY];
227+
228+
// Output only. Estimated installation date for this order.
229+
google.type.Date estimated_installation_date = 20
230+
[(google.api.field_behavior) = OUTPUT_ONLY];
196231
}
197232

198233
// A physical site where hardware will be installed.
@@ -621,6 +656,15 @@ message Sku {
621656
singular: "sku"
622657
};
623658

659+
// Inclusive range.
660+
message Range {
661+
// The minimum value of the range.
662+
int32 min = 1;
663+
664+
// The maximum value of the range.
665+
int32 max = 2;
666+
}
667+
624668
// Valid types of a SKU.
625669
enum Type {
626670
// Type of the SKU is unspecified. This is not an allowed value.
@@ -673,6 +717,11 @@ message Sku {
673717

674718
// Output only. The vCPU count associated with this SKU.
675719
int32 vcpu_count = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
720+
721+
// Output only. The inclusive ranges of hardware counts that are allowed in a
722+
// zone using this SKU.
723+
repeated Range hardware_count_ranges = 13
724+
[(google.api.field_behavior) = OUTPUT_ONLY];
676725
}
677726

678727
// A zone holding a set of hardware.
@@ -698,6 +747,9 @@ message Zone {
698747
// Factory turnup has succeeded.
699748
READY_FOR_CUSTOMER_FACTORY_TURNUP_CHECKS = 5;
700749

750+
// The Zone is running factory turnup checks.
751+
CUSTOMER_FACTORY_TURNUP_CHECKS_STARTED = 8;
752+
701753
// The Zone is ready for site turnup.
702754
READY_FOR_SITE_TURNUP = 6;
703755

google/cloud/gdchardwaremanagement/v1alpha/service.proto

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,6 +1280,9 @@ message SignalZoneStateRequest {
12801280
// State signal of the zone is unspecified.
12811281
STATE_SIGNAL_UNSPECIFIED = 0;
12821282

1283+
// Factory turnup checks have started.
1284+
FACTORY_TURNUP_CHECKS_STARTED = 3;
1285+
12831286
// The Zone is ready for site turnup.
12841287
FACTORY_TURNUP_CHECKS_PASSED = 1;
12851288

@@ -1326,6 +1329,15 @@ message SignalZoneStateRequest {
13261329
// state_signal or provisioning_state_signal must be set, but not both.
13271330
ProvisioningStateSignal provisioning_state_signal = 4
13281331
[(google.api.field_behavior) = OPTIONAL];
1332+
1333+
// Optional. The step being executed. Provides a finer grained status when the
1334+
// state_signal is FACTORY_TURNUP_CHECKS_STARTED or
1335+
// FACTORY_TURNUP_CHECKS_FAILED.
1336+
string step = 5 [(google.api.field_behavior) = OPTIONAL];
1337+
1338+
// Optional. Additional details, such as an error message when state_signal is
1339+
// FACTORY_TURNUP_CHECKS_FAILED.
1340+
string details = 6 [(google.api.field_behavior) = OPTIONAL];
13291341
}
13301342

13311343
// Represents the metadata of a long-running operation.

0 commit comments

Comments
 (0)