From e6d7c95ec3a0b0114eb13deea861a598820ab086 Mon Sep 17 00:00:00 2001 From: "Chang, Hui-Tang" Date: Mon, 15 Apr 2024 22:26:03 -0500 Subject: [PATCH] feat(vdp): add `secrets` field in trigger endpoints (#303) Because - We will provide functionality that allows users to put secrets in the request to override the owner's secrets. This commit - Adds a `secrets` field in trigger endpoints. --------- Co-authored-by: droplet-bot --- openapiv2/vdp/service.swagger.yaml | 40 ++++++++++++++++++++++++++++++ vdp/pipeline/v1beta/pipeline.proto | 16 ++++++++++++ 2 files changed, 56 insertions(+) diff --git a/openapiv2/vdp/service.swagger.yaml b/openapiv2/vdp/service.swagger.yaml index 09c5a565..a77c18c0 100644 --- a/openapiv2/vdp/service.swagger.yaml +++ b/openapiv2/vdp/service.swagger.yaml @@ -2876,6 +2876,11 @@ definitions: items: type: object description: Pipeline input parameters. + secrets: + type: object + additionalProperties: + type: string + description: Pipeline secrets parameters that will override the pipeline's or owner's secrets. description: |- TriggerOrganizationPipelineRequest represents a request to trigger an organization-owned pipeline synchronously. @@ -2889,6 +2894,11 @@ definitions: items: type: object description: Pipeline input parameters. + secrets: + type: object + additionalProperties: + type: string + description: Pipeline secrets parameters that will override the pipeline's or owner's secrets. description: |- TriggerOrganizationPipelineReleaseRequest represents a request to trigger a pinned release of an organization-owned pipeline asynchronously. @@ -2902,6 +2912,11 @@ definitions: items: type: object description: Pipeline input parameters. + secrets: + type: object + additionalProperties: + type: string + description: Pipeline secrets parameters that will override the pipeline's or owner's secrets. description: |- TriggerUserPipelineRequest represents a request to trigger a user-owned pipeline synchronously. @@ -2915,6 +2930,11 @@ definitions: items: type: object description: Pipeline input parameters. + secrets: + type: object + additionalProperties: + type: string + description: Pipeline secrets parameters that will override the pipeline's or owner's secrets. description: |- TriggerUserPipelineReleaseRequest represents a request to trigger a pinned release of a user-owned pipeline asynchronously. @@ -2928,6 +2948,11 @@ definitions: items: type: object description: Pipeline input parameters. + secrets: + type: object + additionalProperties: + type: string + description: Pipeline secrets parameters that will override the pipeline's or owner's secrets. description: |- TriggerOrganizationPipelineRequest represents a request to trigger an organization-owned pipeline synchronously. @@ -2941,6 +2966,11 @@ definitions: items: type: object description: Pipeline input parameters. + secrets: + type: object + additionalProperties: + type: string + description: Pipeline secrets parameters that will override the pipeline's or owner's secrets. description: |- TriggerOrganizationPipelineReleaseRequest represents a request to trigger a pinned release of an organization-owned pipeline. @@ -2954,6 +2984,11 @@ definitions: items: type: object description: Pipeline input parameters. + secrets: + type: object + additionalProperties: + type: string + description: Pipeline secrets parameters that will override the pipeline's or owner's secrets. description: |- TriggerUserPipelineRequest represents a request to trigger a user-owned pipeline synchronously. @@ -2967,6 +3002,11 @@ definitions: items: type: object description: Pipeline input parameters. + secrets: + type: object + additionalProperties: + type: string + description: Pipeline secrets parameters that will override the pipeline's or owner's secrets. description: |- TriggerUserPipelineReleaseRequest represents a request to trigger a pinned release of a user-owned pipeline. diff --git a/vdp/pipeline/v1beta/pipeline.proto b/vdp/pipeline/v1beta/pipeline.proto index 9f8638ee..3526621a 100644 --- a/vdp/pipeline/v1beta/pipeline.proto +++ b/vdp/pipeline/v1beta/pipeline.proto @@ -643,6 +643,8 @@ message TriggerUserPipelineRequest { ]; // Pipeline input parameters. repeated google.protobuf.Struct inputs = 2 [(google.api.field_behavior) = REQUIRED]; + // Pipeline secrets parameters that will override the pipeline's or owner's secrets. + map secrets = 3 [(google.api.field_behavior) = OPTIONAL]; } // TriggerUserPipelineResponse contains the pipeline execution results, i.e., @@ -669,6 +671,8 @@ message TriggerAsyncUserPipelineRequest { ]; // Pipeline input parameters. repeated google.protobuf.Struct inputs = 2 [(google.api.field_behavior) = REQUIRED]; + // Pipeline secrets parameters that will override the pipeline's or owner's secrets. + map secrets = 3 [(google.api.field_behavior) = OPTIONAL]; } // TriggerAsyncUserPipelineResponse contains the information to access the @@ -858,6 +862,8 @@ message TriggerUserPipelineReleaseRequest { ]; // Pipeline input parameters. repeated google.protobuf.Struct inputs = 2 [(google.api.field_behavior) = REQUIRED]; + // Pipeline secrets parameters that will override the pipeline's or owner's secrets. + map secrets = 3 [(google.api.field_behavior) = OPTIONAL]; } // TriggerUserPipelineReleaseResponse contains the pipeline execution results, @@ -884,6 +890,8 @@ message TriggerAsyncUserPipelineReleaseRequest { ]; // Pipeline input parameters. repeated google.protobuf.Struct inputs = 2 [(google.api.field_behavior) = REQUIRED]; + // Pipeline secrets parameters that will override the pipeline's or owner's secrets. + map secrets = 3 [(google.api.field_behavior) = OPTIONAL]; } // TriggerAsyncUserPipelineReleaseResponse contains the information to access @@ -1102,6 +1110,8 @@ message TriggerOrganizationPipelineRequest { ]; // Pipeline input parameters. repeated google.protobuf.Struct inputs = 2 [(google.api.field_behavior) = REQUIRED]; + // Pipeline secrets parameters that will override the pipeline's or owner's secrets. + map secrets = 3 [(google.api.field_behavior) = OPTIONAL]; } // TriggerOrganizationPipelineResponse contains the pipeline execution results, @@ -1128,6 +1138,8 @@ message TriggerAsyncOrganizationPipelineRequest { ]; // Pipeline input parameters. repeated google.protobuf.Struct inputs = 2 [(google.api.field_behavior) = REQUIRED]; + // Pipeline secrets parameters that will override the pipeline's or owner's secrets. + map secrets = 3 [(google.api.field_behavior) = OPTIONAL]; } // TriggerAsyncOrganizationPipelineResponse contains the information to access @@ -1324,6 +1336,8 @@ message TriggerOrganizationPipelineReleaseRequest { ]; // Pipeline input parameters. repeated google.protobuf.Struct inputs = 2 [(google.api.field_behavior) = REQUIRED]; + // Pipeline secrets parameters that will override the pipeline's or owner's secrets. + map secrets = 3 [(google.api.field_behavior) = OPTIONAL]; } // TriggerOrganizationPipelineReleaseResponse contains the pipeline execution @@ -1351,6 +1365,8 @@ message TriggerAsyncOrganizationPipelineReleaseRequest { ]; // Pipeline input parameters. repeated google.protobuf.Struct inputs = 2 [(google.api.field_behavior) = REQUIRED]; + // Pipeline secrets parameters that will override the pipeline's or owner's secrets. + map secrets = 3 [(google.api.field_behavior) = OPTIONAL]; } // TriggerAsyncOrganizationPipelineReleaseResponse contains the information to