diff --git a/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/cloud_deploy.proto b/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/cloud_deploy.proto index 04aa22f18aa..13ceec1cd07 100644 --- a/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/cloud_deploy.proto +++ b/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/cloud_deploy.proto @@ -35,6 +35,10 @@ option (google.api.resource_definition) = { type: "cloudbuild.googleapis.com/Build" pattern: "projects/{project}/locations/{location}/builds/{build}" }; +option (google.api.resource_definition) = { + type: "cloudbuild.googleapis.com/Repository" + pattern: "projects/{project}/locations/{location}/connections/{connection}/repositories/{repository}" +}; option (google.api.resource_definition) = { type: "container.googleapis.com/Cluster" pattern: "projects/{project}/locations/{location}/clusters/{cluster}" @@ -1606,7 +1610,7 @@ message SkaffoldModules { // Optional. Relative path from the repository root to the Skaffold file. string path = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Git ref the package should be cloned from. + // Optional. Git branch or tag to use when cloning the repository. string ref = 3 [(google.api.field_behavior) = OPTIONAL]; } @@ -1621,6 +1625,26 @@ message SkaffoldModules { string path = 2 [(google.api.field_behavior) = OPTIONAL]; } + // Cloud Build V2 Repository containing Skaffold Configs. + message SkaffoldGCBRepoSource { + // Required. Name of the Cloud Build V2 Repository. + // Format is + // projects/{project}/locations/{location}/connections/{connection}/repositories/{repository}. + string repository = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudbuild.googleapis.com/Repository" + } + ]; + + // Optional. Relative path from the repository root to the Skaffold Config + // file. + string path = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Branch or tag to use when cloning the repository. + string ref = 3 [(google.api.field_behavior) = OPTIONAL]; + } + // Optional. The Skaffold Config modules to use from the specified source. repeated string configs = 1 [(google.api.field_behavior) = OPTIONAL]; @@ -1631,6 +1655,9 @@ message SkaffoldModules { // Cloud Storage bucket containing the Skaffold Config modules. SkaffoldGCSSource google_cloud_storage = 3; + + // Cloud Build V2 repository containing the Skaffold Config modules. + SkaffoldGCBRepoSource google_cloud_build_repo = 4; } } diff --git a/packages/google-cloud-deploy/protos/protos.d.ts b/packages/google-cloud-deploy/protos/protos.d.ts index 9dc2c4c834d..3a93b71a0b3 100644 --- a/packages/google-cloud-deploy/protos/protos.d.ts +++ b/packages/google-cloud-deploy/protos/protos.d.ts @@ -6513,6 +6513,9 @@ export namespace google { /** SkaffoldModules googleCloudStorage */ googleCloudStorage?: (google.cloud.deploy.v1.SkaffoldModules.ISkaffoldGCSSource|null); + + /** SkaffoldModules googleCloudBuildRepo */ + googleCloudBuildRepo?: (google.cloud.deploy.v1.SkaffoldModules.ISkaffoldGCBRepoSource|null); } /** Represents a SkaffoldModules. */ @@ -6533,8 +6536,11 @@ export namespace google { /** SkaffoldModules googleCloudStorage. */ public googleCloudStorage?: (google.cloud.deploy.v1.SkaffoldModules.ISkaffoldGCSSource|null); + /** SkaffoldModules googleCloudBuildRepo. */ + public googleCloudBuildRepo?: (google.cloud.deploy.v1.SkaffoldModules.ISkaffoldGCBRepoSource|null); + /** SkaffoldModules source. */ - public source?: ("git"|"googleCloudStorage"); + public source?: ("git"|"googleCloudStorage"|"googleCloudBuildRepo"); /** * Creates a new SkaffoldModules instance using the specified properties. @@ -6827,6 +6833,115 @@ export namespace google { */ public static getTypeUrl(typeUrlPrefix?: string): string; } + + /** Properties of a SkaffoldGCBRepoSource. */ + interface ISkaffoldGCBRepoSource { + + /** SkaffoldGCBRepoSource repository */ + repository?: (string|null); + + /** SkaffoldGCBRepoSource path */ + path?: (string|null); + + /** SkaffoldGCBRepoSource ref */ + ref?: (string|null); + } + + /** Represents a SkaffoldGCBRepoSource. */ + class SkaffoldGCBRepoSource implements ISkaffoldGCBRepoSource { + + /** + * Constructs a new SkaffoldGCBRepoSource. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.deploy.v1.SkaffoldModules.ISkaffoldGCBRepoSource); + + /** SkaffoldGCBRepoSource repository. */ + public repository: string; + + /** SkaffoldGCBRepoSource path. */ + public path: string; + + /** SkaffoldGCBRepoSource ref. */ + public ref: string; + + /** + * Creates a new SkaffoldGCBRepoSource instance using the specified properties. + * @param [properties] Properties to set + * @returns SkaffoldGCBRepoSource instance + */ + public static create(properties?: google.cloud.deploy.v1.SkaffoldModules.ISkaffoldGCBRepoSource): google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource; + + /** + * Encodes the specified SkaffoldGCBRepoSource message. Does not implicitly {@link google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource.verify|verify} messages. + * @param message SkaffoldGCBRepoSource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.deploy.v1.SkaffoldModules.ISkaffoldGCBRepoSource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SkaffoldGCBRepoSource message, length delimited. Does not implicitly {@link google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource.verify|verify} messages. + * @param message SkaffoldGCBRepoSource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.deploy.v1.SkaffoldModules.ISkaffoldGCBRepoSource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SkaffoldGCBRepoSource message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SkaffoldGCBRepoSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource; + + /** + * Decodes a SkaffoldGCBRepoSource message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SkaffoldGCBRepoSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource; + + /** + * Verifies a SkaffoldGCBRepoSource message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SkaffoldGCBRepoSource message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SkaffoldGCBRepoSource + */ + public static fromObject(object: { [k: string]: any }): google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource; + + /** + * Creates a plain object from a SkaffoldGCBRepoSource message. Also converts values to other types if specified. + * @param message SkaffoldGCBRepoSource + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SkaffoldGCBRepoSource to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SkaffoldGCBRepoSource + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } /** Properties of a ListCustomTargetTypesRequest. */ diff --git a/packages/google-cloud-deploy/protos/protos.js b/packages/google-cloud-deploy/protos/protos.js index 658f3b6aab1..0b225fe370f 100644 --- a/packages/google-cloud-deploy/protos/protos.js +++ b/packages/google-cloud-deploy/protos/protos.js @@ -15841,6 +15841,7 @@ * @property {Array.|null} [configs] SkaffoldModules configs * @property {google.cloud.deploy.v1.SkaffoldModules.ISkaffoldGitSource|null} [git] SkaffoldModules git * @property {google.cloud.deploy.v1.SkaffoldModules.ISkaffoldGCSSource|null} [googleCloudStorage] SkaffoldModules googleCloudStorage + * @property {google.cloud.deploy.v1.SkaffoldModules.ISkaffoldGCBRepoSource|null} [googleCloudBuildRepo] SkaffoldModules googleCloudBuildRepo */ /** @@ -15883,17 +15884,25 @@ */ SkaffoldModules.prototype.googleCloudStorage = null; + /** + * SkaffoldModules googleCloudBuildRepo. + * @member {google.cloud.deploy.v1.SkaffoldModules.ISkaffoldGCBRepoSource|null|undefined} googleCloudBuildRepo + * @memberof google.cloud.deploy.v1.SkaffoldModules + * @instance + */ + SkaffoldModules.prototype.googleCloudBuildRepo = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; /** * SkaffoldModules source. - * @member {"git"|"googleCloudStorage"|undefined} source + * @member {"git"|"googleCloudStorage"|"googleCloudBuildRepo"|undefined} source * @memberof google.cloud.deploy.v1.SkaffoldModules * @instance */ Object.defineProperty(SkaffoldModules.prototype, "source", { - get: $util.oneOfGetter($oneOfFields = ["git", "googleCloudStorage"]), + get: $util.oneOfGetter($oneOfFields = ["git", "googleCloudStorage", "googleCloudBuildRepo"]), set: $util.oneOfSetter($oneOfFields) }); @@ -15928,6 +15937,8 @@ $root.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource.encode(message.git, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.googleCloudStorage != null && Object.hasOwnProperty.call(message, "googleCloudStorage")) $root.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource.encode(message.googleCloudStorage, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.googleCloudBuildRepo != null && Object.hasOwnProperty.call(message, "googleCloudBuildRepo")) + $root.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource.encode(message.googleCloudBuildRepo, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -15976,6 +15987,10 @@ message.googleCloudStorage = $root.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource.decode(reader, reader.uint32()); break; } + case 4: { + message.googleCloudBuildRepo = $root.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -16037,6 +16052,16 @@ return "googleCloudStorage." + error; } } + if (message.googleCloudBuildRepo != null && message.hasOwnProperty("googleCloudBuildRepo")) { + if (properties.source === 1) + return "source: multiple values"; + properties.source = 1; + { + var error = $root.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource.verify(message.googleCloudBuildRepo); + if (error) + return "googleCloudBuildRepo." + error; + } + } return null; }; @@ -16069,6 +16094,11 @@ throw TypeError(".google.cloud.deploy.v1.SkaffoldModules.googleCloudStorage: object expected"); message.googleCloudStorage = $root.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource.fromObject(object.googleCloudStorage); } + if (object.googleCloudBuildRepo != null) { + if (typeof object.googleCloudBuildRepo !== "object") + throw TypeError(".google.cloud.deploy.v1.SkaffoldModules.googleCloudBuildRepo: object expected"); + message.googleCloudBuildRepo = $root.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource.fromObject(object.googleCloudBuildRepo); + } return message; }; @@ -16102,6 +16132,11 @@ if (options.oneofs) object.source = "googleCloudStorage"; } + if (message.googleCloudBuildRepo != null && message.hasOwnProperty("googleCloudBuildRepo")) { + object.googleCloudBuildRepo = $root.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource.toObject(message.googleCloudBuildRepo, options); + if (options.oneofs) + object.source = "googleCloudBuildRepo"; + } return object; }; @@ -16608,6 +16643,256 @@ return SkaffoldGCSSource; })(); + SkaffoldModules.SkaffoldGCBRepoSource = (function() { + + /** + * Properties of a SkaffoldGCBRepoSource. + * @memberof google.cloud.deploy.v1.SkaffoldModules + * @interface ISkaffoldGCBRepoSource + * @property {string|null} [repository] SkaffoldGCBRepoSource repository + * @property {string|null} [path] SkaffoldGCBRepoSource path + * @property {string|null} [ref] SkaffoldGCBRepoSource ref + */ + + /** + * Constructs a new SkaffoldGCBRepoSource. + * @memberof google.cloud.deploy.v1.SkaffoldModules + * @classdesc Represents a SkaffoldGCBRepoSource. + * @implements ISkaffoldGCBRepoSource + * @constructor + * @param {google.cloud.deploy.v1.SkaffoldModules.ISkaffoldGCBRepoSource=} [properties] Properties to set + */ + function SkaffoldGCBRepoSource(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SkaffoldGCBRepoSource repository. + * @member {string} repository + * @memberof google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource + * @instance + */ + SkaffoldGCBRepoSource.prototype.repository = ""; + + /** + * SkaffoldGCBRepoSource path. + * @member {string} path + * @memberof google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource + * @instance + */ + SkaffoldGCBRepoSource.prototype.path = ""; + + /** + * SkaffoldGCBRepoSource ref. + * @member {string} ref + * @memberof google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource + * @instance + */ + SkaffoldGCBRepoSource.prototype.ref = ""; + + /** + * Creates a new SkaffoldGCBRepoSource instance using the specified properties. + * @function create + * @memberof google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource + * @static + * @param {google.cloud.deploy.v1.SkaffoldModules.ISkaffoldGCBRepoSource=} [properties] Properties to set + * @returns {google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource} SkaffoldGCBRepoSource instance + */ + SkaffoldGCBRepoSource.create = function create(properties) { + return new SkaffoldGCBRepoSource(properties); + }; + + /** + * Encodes the specified SkaffoldGCBRepoSource message. Does not implicitly {@link google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource.verify|verify} messages. + * @function encode + * @memberof google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource + * @static + * @param {google.cloud.deploy.v1.SkaffoldModules.ISkaffoldGCBRepoSource} message SkaffoldGCBRepoSource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SkaffoldGCBRepoSource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.repository != null && Object.hasOwnProperty.call(message, "repository")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.repository); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + if (message.ref != null && Object.hasOwnProperty.call(message, "ref")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.ref); + return writer; + }; + + /** + * Encodes the specified SkaffoldGCBRepoSource message, length delimited. Does not implicitly {@link google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource + * @static + * @param {google.cloud.deploy.v1.SkaffoldModules.ISkaffoldGCBRepoSource} message SkaffoldGCBRepoSource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SkaffoldGCBRepoSource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SkaffoldGCBRepoSource message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource} SkaffoldGCBRepoSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SkaffoldGCBRepoSource.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.repository = reader.string(); + break; + } + case 2: { + message.path = reader.string(); + break; + } + case 3: { + message.ref = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SkaffoldGCBRepoSource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource} SkaffoldGCBRepoSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SkaffoldGCBRepoSource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SkaffoldGCBRepoSource message. + * @function verify + * @memberof google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SkaffoldGCBRepoSource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.repository != null && message.hasOwnProperty("repository")) + if (!$util.isString(message.repository)) + return "repository: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + if (message.ref != null && message.hasOwnProperty("ref")) + if (!$util.isString(message.ref)) + return "ref: string expected"; + return null; + }; + + /** + * Creates a SkaffoldGCBRepoSource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource} SkaffoldGCBRepoSource + */ + SkaffoldGCBRepoSource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource) + return object; + var message = new $root.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource(); + if (object.repository != null) + message.repository = String(object.repository); + if (object.path != null) + message.path = String(object.path); + if (object.ref != null) + message.ref = String(object.ref); + return message; + }; + + /** + * Creates a plain object from a SkaffoldGCBRepoSource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource + * @static + * @param {google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource} message SkaffoldGCBRepoSource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SkaffoldGCBRepoSource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.repository = ""; + object.path = ""; + object.ref = ""; + } + if (message.repository != null && message.hasOwnProperty("repository")) + object.repository = message.repository; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + if (message.ref != null && message.hasOwnProperty("ref")) + object.ref = message.ref; + return object; + }; + + /** + * Converts this SkaffoldGCBRepoSource to JSON. + * @function toJSON + * @memberof google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource + * @instance + * @returns {Object.} JSON object + */ + SkaffoldGCBRepoSource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SkaffoldGCBRepoSource + * @function getTypeUrl + * @memberof google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SkaffoldGCBRepoSource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource"; + }; + + return SkaffoldGCBRepoSource; + })(); + return SkaffoldModules; })(); diff --git a/packages/google-cloud-deploy/protos/protos.json b/packages/google-cloud-deploy/protos/protos.json index 46ef32e1506..70e67b6f611 100644 --- a/packages/google-cloud-deploy/protos/protos.json +++ b/packages/google-cloud-deploy/protos/protos.json @@ -2363,7 +2363,8 @@ "source": { "oneof": [ "git", - "googleCloudStorage" + "googleCloudStorage", + "googleCloudBuildRepo" ] } }, @@ -2383,6 +2384,10 @@ "googleCloudStorage": { "type": "SkaffoldGCSSource", "id": 3 + }, + "googleCloudBuildRepo": { + "type": "SkaffoldGCBRepoSource", + "id": 4 } }, "nested": { @@ -2428,6 +2433,32 @@ } } } + }, + "SkaffoldGCBRepoSource": { + "fields": { + "repository": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "cloudbuild.googleapis.com/Repository" + } + }, + "path": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "ref": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } } } }, diff --git a/packages/google-cloud-deploy/src/v1/cloud_deploy_client.ts b/packages/google-cloud-deploy/src/v1/cloud_deploy_client.ts index a6b1693ac3e..6d51b098351 100644 --- a/packages/google-cloud-deploy/src/v1/cloud_deploy_client.ts +++ b/packages/google-cloud-deploy/src/v1/cloud_deploy_client.ts @@ -340,6 +340,9 @@ export class CloudDeployClient { { get: '/v1/{resource=projects/*/locations/*/targets/*}:getIamPolicy', }, + { + get: '/v1/{resource=projects/*/locations/*/customTargetTypes/*}:getIamPolicy', + }, ], }, { @@ -351,6 +354,10 @@ export class CloudDeployClient { post: '/v1/{resource=projects/*/locations/*/targets/*}:setIamPolicy', body: '*', }, + { + post: '/v1/{resource=projects/*/locations/*/customTargetTypes/*}:setIamPolicy', + body: '*', + }, ], }, {