Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [gdchardwaremanagement] add DNS address, Kubernetes primary VLAN ID, and provisioning state to the Zone resource #5805

Merged
merged 2 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,13 @@ message Hardware {

// Output only. Address type for this MAC address.
AddressType type = 2 [(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. Static IP address (if used) that is associated with the MAC
// address. Only applicable for VIRTUAL MAC address type.
string ipv4_address = 3 [
(google.api.field_info).format = IPV4,
(google.api.field_behavior) = OUTPUT_ONLY
];
}

// Information about individual disks on a machine.
Expand Down Expand Up @@ -704,6 +711,21 @@ message Zone {
CANCELLED = 4;
}

// Valid provisioning states for configurations like MAC addresses.
enum ProvisioningState {
// Provisioning state is unspecified.
PROVISIONING_STATE_UNSPECIFIED = 0;

// Provisioning is required. Set by Google.
PROVISIONING_REQUIRED = 1;

// Provisioning is in progress. Set by customer.
PROVISIONING_IN_PROGRESS = 2;

// Provisioning is complete. Set by customer.
PROVISIONING_COMPLETE = 3;
}

// Identifier. Name of this zone.
// Format: `projects/{project}/locations/{location}/zones/{zone}`
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
Expand Down Expand Up @@ -744,6 +766,10 @@ message Zone {
// Output only. Subscription configurations for this zone.
repeated SubscriptionConfig subscription_configs = 13
[(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. Provisioning state for configurations like MAC addresses.
ProvisioningState provisioning_state = 14
[(google.api.field_behavior) = OUTPUT_ONLY];
}

// Contact information of the customer organization.
Expand Down Expand Up @@ -979,6 +1005,20 @@ message ZoneNetworkConfig {
// If unspecified, the kubernetes subnet will be the same as the management
// subnet.
Subnet kubernetes_ipv4_subnet = 5 [(google.api.field_behavior) = OPTIONAL];

// Optional. DNS nameservers.
// The GDC Infrastructure will resolve DNS queries via these IPs.
// If unspecified, Google DNS is used.
repeated string dns_ipv4_addresses = 6 [
(google.api.field_info).format = IPV4,
(google.api.field_behavior) = OPTIONAL
];

// Optional. Kubernetes VLAN ID.
// By default, the kubernetes node, including the primary kubernetes network,
// are in the same VLAN as the machine management network.
// For network segmentation purposes, these can optionally be separated.
int32 kubernetes_primary_vlan_id = 7 [(google.api.field_behavior) = OPTIONAL];
}

// Represents a subnet.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1290,6 +1290,18 @@ message SignalZoneStateRequest {
FACTORY_TURNUP_CHECKS_FAILED = 2;
}

// Valid provisioning state signals for a zone.
enum ProvisioningStateSignal {
// Provisioning state signal is unspecified.
PROVISIONING_STATE_SIGNAL_UNSPECIFIED = 0;

// Provisioning is in progress.
PROVISIONING_IN_PROGRESS = 1;

// Provisioning is complete.
PROVISIONING_COMPLETE = 2;
}

// Required. The name of the zone.
// Format: `projects/{project}/locations/{location}/zones/{zone}`
string name = 1 [
Expand All @@ -1306,8 +1318,14 @@ message SignalZoneStateRequest {
(google.api.field_behavior) = OPTIONAL
];

// Required. The state signal to send for this zone.
StateSignal state_signal = 3 [(google.api.field_behavior) = REQUIRED];
// Optional. The state signal to send for this zone. Either state_signal or
// provisioning_state_signal must be set, but not both.
StateSignal state_signal = 3 [(google.api.field_behavior) = OPTIONAL];

// Optional. The provisioning state signal to send for this zone. Either
// state_signal or provisioning_state_signal must be set, but not both.
ProvisioningStateSignal provisioning_state_signal = 4
[(google.api.field_behavior) = OPTIONAL];
}

// Represents the metadata of a long-running operation.
Expand Down
45 changes: 45 additions & 0 deletions packages/google-cloud-gdchardwaremanagement/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading