Skip to content

Commit 272c110

Browse files
authored
fix: fix breaking changes in Compute API (#701)
1 parent 63d374d commit 272c110

File tree

1 file changed

+77
-2
lines changed

1 file changed

+77
-2
lines changed

google/cloud/compute/v1/compute.proto

Lines changed: 77 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15333,6 +15333,78 @@ message MachineTypesScopedList {
1533315333
// A Managed Instance resource.
1533415334
message ManagedInstance {
1533515335
// [Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified.
15336+
enum CurrentAction {
15337+
// A value indicating that the enum field is not set.
15338+
UNDEFINED_CURRENT_ACTION = 0;
15339+
15340+
// The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group.
15341+
ABANDONING = 388244813;
15342+
15343+
// The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful.
15344+
CREATING = 455564985;
15345+
15346+
// The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased.
15347+
CREATING_WITHOUT_RETRIES = 428843785;
15348+
15349+
// The managed instance group is permanently deleting this instance.
15350+
DELETING = 528602024;
15351+
15352+
// The managed instance group has not scheduled any actions for this instance.
15353+
NONE = 2402104;
15354+
15355+
// The managed instance group is recreating this instance.
15356+
RECREATING = 287278572;
15357+
15358+
// The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance.
15359+
REFRESHING = 163266343;
15360+
15361+
// The managed instance group is restarting this instance.
15362+
RESTARTING = 320534387;
15363+
15364+
// The managed instance group is verifying this already created instance. Verification happens every time the instance is (re)created or restarted and consists of: 1. Waiting until health check specified as part of this managed instance group's autohealing policy reports HEALTHY. Note: Applies only if autohealing policy has a health check specified 2. Waiting for addition verification steps performed as post-instance creation (subject to future extensions).
15365+
VERIFYING = 16982185;
15366+
15367+
}
15368+
15369+
// [Output Only] The status of the instance. This field is empty when the instance does not exist.
15370+
enum InstanceStatus {
15371+
// A value indicating that the enum field is not set.
15372+
UNDEFINED_INSTANCE_STATUS = 0;
15373+
15374+
// The Nanny is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc.
15375+
DEPROVISIONING = 428935662;
15376+
15377+
// Resources are being allocated for the instance.
15378+
PROVISIONING = 290896621;
15379+
15380+
// The instance is in repair.
15381+
REPAIRING = 413483285;
15382+
15383+
// The instance is running.
15384+
RUNNING = 121282975;
15385+
15386+
// All required resources have been allocated and the instance is being started.
15387+
STAGING = 431072283;
15388+
15389+
// The instance has stopped successfully.
15390+
STOPPED = 444276141;
15391+
15392+
// The instance is currently stopping (either being deleted or killed).
15393+
STOPPING = 350791796;
15394+
15395+
// The instance has suspended.
15396+
SUSPENDED = 51223995;
15397+
15398+
// The instance is suspending.
15399+
SUSPENDING = 514206246;
15400+
15401+
// The instance has stopped (either by explicit action or underlying failure).
15402+
TERMINATED = 250018339;
15403+
15404+
}
15405+
15406+
// [Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified.
15407+
// Check the CurrentAction enum for the list of possible values.
1533615408
optional string current_action = 178475964;
1533715409

1533815410
// [Output only] The unique identifier for this resource. This field is empty when instance does not exist.
@@ -18043,6 +18115,9 @@ message Policy {
1804318115
// `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
1804418116
optional string etag = 3123477;
1804518117

18118+
// This is deprecated and has no effect. Do not use.
18119+
optional bool iam_owned = 450566203;
18120+
1804618121
// This is deprecated and has no effect. Do not use.
1804718122
repeated Rule rules = 108873975;
1804818123

@@ -27859,7 +27934,7 @@ service FirewallPolicies {
2785927934
body: "firewall_policy_resource"
2786027935
post: "/compute/v1/locations/global/firewallPolicies"
2786127936
};
27862-
option (google.api.method_signature) = "firewall_policy_resource";
27937+
option (google.api.method_signature) = "parent_id,firewall_policy_resource";
2786327938
option (google.cloud.operation_service) = "GlobalOrganizationOperations";
2786427939
}
2786527940

@@ -27884,7 +27959,7 @@ service FirewallPolicies {
2788427959
option (google.api.http) = {
2788527960
post: "/compute/v1/locations/global/firewallPolicies/{firewall_policy}/move"
2788627961
};
27887-
option (google.api.method_signature) = "firewall_policy";
27962+
option (google.api.method_signature) = "firewall_policy,parent_id";
2788827963
option (google.cloud.operation_service) = "GlobalOrganizationOperations";
2788927964
}
2789027965

0 commit comments

Comments
 (0)