From 7537bf0701b1b1504860e4ca2b3dc0070aaff85f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Thu, 14 Mar 2024 01:29:48 +0000 Subject: [PATCH] feat(clouddeploy): update the API #### clouddeploy:v1 The following keys were added: - schemas.AutomationRolloutMetadata.properties.currentRepairAutomationRun.description - schemas.AutomationRolloutMetadata.properties.currentRepairAutomationRun.readOnly - schemas.AutomationRolloutMetadata.properties.currentRepairAutomationRun.type The following keys were changed: - schemas.AutomationEvent.properties.type.enum - schemas.AutomationEvent.properties.type.enumDeprecated - schemas.AutomationEvent.properties.type.enumDescriptions - schemas.AutomationRun.properties.state.enum - schemas.AutomationRun.properties.state.enumDescriptions - schemas.AutomationRunEvent.properties.type.enum - schemas.AutomationRunEvent.properties.type.enumDeprecated - schemas.AutomationRunEvent.properties.type.enumDescriptions - schemas.DeliveryPipelineNotificationEvent.properties.type.enum - schemas.DeliveryPipelineNotificationEvent.properties.type.enumDeprecated - schemas.DeliveryPipelineNotificationEvent.properties.type.enumDescriptions - schemas.JobRunNotificationEvent.properties.type.enum - schemas.JobRunNotificationEvent.properties.type.enumDeprecated - schemas.JobRunNotificationEvent.properties.type.enumDescriptions - schemas.ReleaseNotificationEvent.properties.type.enum - schemas.ReleaseNotificationEvent.properties.type.enumDeprecated - schemas.ReleaseNotificationEvent.properties.type.enumDescriptions - schemas.ReleaseRenderEvent.properties.type.enum - schemas.ReleaseRenderEvent.properties.type.enumDeprecated - schemas.ReleaseRenderEvent.properties.type.enumDescriptions - schemas.RetryAttempt.properties.state.enum - schemas.RetryAttempt.properties.state.enumDescriptions - schemas.RollbackAttempt.properties.state.enum - schemas.RollbackAttempt.properties.state.enumDescriptions - schemas.RolloutNotificationEvent.properties.type.enum - schemas.RolloutNotificationEvent.properties.type.enumDeprecated - schemas.RolloutNotificationEvent.properties.type.enumDescriptions - schemas.RolloutUpdateEvent.properties.type.enum - schemas.RolloutUpdateEvent.properties.type.enumDeprecated - schemas.RolloutUpdateEvent.properties.type.enumDescriptions - schemas.TargetNotificationEvent.properties.type.enum - schemas.TargetNotificationEvent.properties.type.enumDeprecated - schemas.TargetNotificationEvent.properties.type.enumDescriptions --- discovery/clouddeploy-v1.json | 52 ++++++++++++++++++++++++++++++----- src/apis/clouddeploy/v1.ts | 4 +++ 2 files changed, 49 insertions(+), 7 deletions(-) diff --git a/discovery/clouddeploy-v1.json b/discovery/clouddeploy-v1.json index 05c14da5a7b..69758aebcd8 100644 --- a/discovery/clouddeploy-v1.json +++ b/discovery/clouddeploy-v1.json @@ -2065,7 +2065,7 @@ } } }, - "revision": "20240207", + "revision": "20240228", "rootUrl": "https://clouddeploy.googleapis.com/", "schemas": { "AbandonReleaseRequest": { @@ -2348,6 +2348,7 @@ "TYPE_RESTRICTION_VIOLATED", "TYPE_RESOURCE_DELETED", "TYPE_ROLLOUT_UPDATE", + "TYPE_DEPLOY_POLICY_EVALUATION", "TYPE_RENDER_STATUES_CHANGE" ], "enumDeprecated": [ @@ -2358,6 +2359,7 @@ false, false, false, + false, true ], "enumDescriptions": [ @@ -2368,6 +2370,7 @@ "Restriction check failed.", "Resource deleted.", "Rollout updated.", + "Deploy Policy evaluation.", "Deprecated: This field is never used. Use release_render log type instead." ], "type": "string" @@ -2401,6 +2404,11 @@ "readOnly": true, "type": "array" }, + "currentRepairAutomationRun": { + "description": "Output only. The current AutomationRun repairing the rollout.", + "readOnly": true, + "type": "string" + }, "promoteAutomationRun": { "description": "Output only. The ID of the AutomationRun initiated by a promote release rule.", "readOnly": true, @@ -2516,7 +2524,8 @@ "CANCELLED", "FAILED", "IN_PROGRESS", - "PENDING" + "PENDING", + "ABORTED" ], "enumDescriptions": [ "The `AutomationRun` has an unspecified state.", @@ -2524,7 +2533,8 @@ "The `AutomationRun` was cancelled.", "The `AutomationRun` has failed.", "The `AutomationRun` is in progress.", - "The `AutomationRun` is pending." + "The `AutomationRun` is pending.", + "The `AutomationRun` was aborted." ], "readOnly": true, "type": "string" @@ -2592,6 +2602,7 @@ "TYPE_RESTRICTION_VIOLATED", "TYPE_RESOURCE_DELETED", "TYPE_ROLLOUT_UPDATE", + "TYPE_DEPLOY_POLICY_EVALUATION", "TYPE_RENDER_STATUES_CHANGE" ], "enumDeprecated": [ @@ -2602,6 +2613,7 @@ false, false, false, + false, true ], "enumDescriptions": [ @@ -2612,6 +2624,7 @@ "Restriction check failed.", "Resource deleted.", "Rollout updated.", + "Deploy Policy evaluation.", "Deprecated: This field is never used. Use release_render log type instead." ], "type": "string" @@ -3144,6 +3157,7 @@ "TYPE_RESTRICTION_VIOLATED", "TYPE_RESOURCE_DELETED", "TYPE_ROLLOUT_UPDATE", + "TYPE_DEPLOY_POLICY_EVALUATION", "TYPE_RENDER_STATUES_CHANGE" ], "enumDeprecated": [ @@ -3154,6 +3168,7 @@ false, false, false, + false, true ], "enumDescriptions": [ @@ -3164,6 +3179,7 @@ "Restriction check failed.", "Resource deleted.", "Rollout updated.", + "Deploy Policy evaluation.", "Deprecated: This field is never used. Use release_render log type instead." ], "type": "string" @@ -3691,6 +3707,7 @@ "TYPE_RESTRICTION_VIOLATED", "TYPE_RESOURCE_DELETED", "TYPE_ROLLOUT_UPDATE", + "TYPE_DEPLOY_POLICY_EVALUATION", "TYPE_RENDER_STATUES_CHANGE" ], "enumDeprecated": [ @@ -3701,6 +3718,7 @@ false, false, false, + false, true ], "enumDescriptions": [ @@ -3711,6 +3729,7 @@ "Restriction check failed.", "Resource deleted.", "Rollout updated.", + "Deploy Policy evaluation.", "Deprecated: This field is never used. Use release_render log type instead." ], "type": "string" @@ -4688,6 +4707,7 @@ "TYPE_RESTRICTION_VIOLATED", "TYPE_RESOURCE_DELETED", "TYPE_ROLLOUT_UPDATE", + "TYPE_DEPLOY_POLICY_EVALUATION", "TYPE_RENDER_STATUES_CHANGE" ], "enumDeprecated": [ @@ -4698,6 +4718,7 @@ false, false, false, + false, true ], "enumDescriptions": [ @@ -4708,6 +4729,7 @@ "Restriction check failed.", "Resource deleted.", "Rollout updated.", + "Deploy Policy evaluation.", "Deprecated: This field is never used. Use release_render log type instead." ], "type": "string" @@ -4768,6 +4790,7 @@ "TYPE_RESTRICTION_VIOLATED", "TYPE_RESOURCE_DELETED", "TYPE_ROLLOUT_UPDATE", + "TYPE_DEPLOY_POLICY_EVALUATION", "TYPE_RENDER_STATUES_CHANGE" ], "enumDeprecated": [ @@ -4778,6 +4801,7 @@ false, false, false, + false, true ], "enumDescriptions": [ @@ -4788,6 +4812,7 @@ "Restriction check failed.", "Resource deleted.", "Rollout updated.", + "Deploy Policy evaluation.", "Deprecated: This field is never used. Use release_render log type instead." ], "type": "string" @@ -4967,7 +4992,8 @@ "REPAIR_STATE_FAILED", "REPAIR_STATE_IN_PROGRESS", "REPAIR_STATE_PENDING", - "REPAIR_STATE_SKIPPED" + "REPAIR_STATE_SKIPPED", + "REPAIR_STATE_ABORTED" ], "enumDescriptions": [ "The `repair` has an unspecified state.", @@ -4976,7 +5002,8 @@ "The `repair` action has failed.", "The `repair` action is in progress.", "The `repair` action is pending.", - "The `repair` action was skipped." + "The `repair` action was skipped.", + "The `repair` action was aborted." ], "readOnly": true, "type": "string" @@ -5098,7 +5125,8 @@ "REPAIR_STATE_FAILED", "REPAIR_STATE_IN_PROGRESS", "REPAIR_STATE_PENDING", - "REPAIR_STATE_SKIPPED" + "REPAIR_STATE_SKIPPED", + "REPAIR_STATE_ABORTED" ], "enumDescriptions": [ "The `repair` has an unspecified state.", @@ -5107,7 +5135,8 @@ "The `repair` action has failed.", "The `repair` action is in progress.", "The `repair` action is pending.", - "The `repair` action was skipped." + "The `repair` action was skipped.", + "The `repair` action was aborted." ], "readOnly": true, "type": "string" @@ -5409,6 +5438,7 @@ "TYPE_RESTRICTION_VIOLATED", "TYPE_RESOURCE_DELETED", "TYPE_ROLLOUT_UPDATE", + "TYPE_DEPLOY_POLICY_EVALUATION", "TYPE_RENDER_STATUES_CHANGE" ], "enumDeprecated": [ @@ -5419,6 +5449,7 @@ false, false, false, + false, true ], "enumDescriptions": [ @@ -5429,6 +5460,7 @@ "Restriction check failed.", "Resource deleted.", "Rollout updated.", + "Deploy Policy evaluation.", "Deprecated: This field is never used. Use release_render log type instead." ], "type": "string" @@ -5510,6 +5542,7 @@ "TYPE_RESTRICTION_VIOLATED", "TYPE_RESOURCE_DELETED", "TYPE_ROLLOUT_UPDATE", + "TYPE_DEPLOY_POLICY_EVALUATION", "TYPE_RENDER_STATUES_CHANGE" ], "enumDeprecated": [ @@ -5520,6 +5553,7 @@ false, false, false, + false, true ], "enumDescriptions": [ @@ -5530,6 +5564,7 @@ "Restriction check failed.", "Resource deleted.", "Rollout updated.", + "Deploy Policy evaluation.", "Deprecated: This field is never used. Use release_render log type instead." ], "type": "string" @@ -5972,6 +6007,7 @@ "TYPE_RESTRICTION_VIOLATED", "TYPE_RESOURCE_DELETED", "TYPE_ROLLOUT_UPDATE", + "TYPE_DEPLOY_POLICY_EVALUATION", "TYPE_RENDER_STATUES_CHANGE" ], "enumDeprecated": [ @@ -5982,6 +6018,7 @@ false, false, false, + false, true ], "enumDescriptions": [ @@ -5992,6 +6029,7 @@ "Restriction check failed.", "Resource deleted.", "Rollout updated.", + "Deploy Policy evaluation.", "Deprecated: This field is never used. Use release_render log type instead." ], "type": "string" diff --git a/src/apis/clouddeploy/v1.ts b/src/apis/clouddeploy/v1.ts index 6b9826c338e..e9361dbde82 100644 --- a/src/apis/clouddeploy/v1.ts +++ b/src/apis/clouddeploy/v1.ts @@ -343,6 +343,10 @@ export namespace clouddeploy_v1 { * Output only. The IDs of the AutomationRuns initiated by an advance rollout rule. */ advanceAutomationRuns?: string[] | null; + /** + * Output only. The current AutomationRun repairing the rollout. + */ + currentRepairAutomationRun?: string | null; /** * Output only. The ID of the AutomationRun initiated by a promote release rule. */