Skip to content

Commit

Permalink
feat(cloudbuild): update the API
Browse files Browse the repository at this point in the history
#### cloudbuild:v1alpha1

The following keys were added:
- schemas.Build.properties.warnings.description
- schemas.Build.properties.warnings.items.$ref
- schemas.Build.properties.warnings.readOnly
- schemas.Build.properties.warnings.type
- schemas.Warning.description
- schemas.Warning.id
- schemas.Warning.properties.priority.description
- schemas.Warning.properties.priority.enum
- schemas.Warning.properties.priority.enumDescriptions
- schemas.Warning.properties.priority.type
- schemas.Warning.properties.text.description
- schemas.Warning.properties.text.type
- schemas.Warning.type

#### cloudbuild:v1alpha2

The following keys were added:
- schemas.Build.properties.warnings.description
- schemas.Build.properties.warnings.items.$ref
- schemas.Build.properties.warnings.readOnly
- schemas.Build.properties.warnings.type
- schemas.Warning.description
- schemas.Warning.id
- schemas.Warning.properties.priority.description
- schemas.Warning.properties.priority.enum
- schemas.Warning.properties.priority.enumDescriptions
- schemas.Warning.properties.priority.type
- schemas.Warning.properties.text.description
- schemas.Warning.properties.text.type
- schemas.Warning.type

#### cloudbuild:v1beta1

The following keys were added:
- schemas.Build.properties.warnings.description
- schemas.Build.properties.warnings.items.$ref
- schemas.Build.properties.warnings.readOnly
- schemas.Build.properties.warnings.type
- schemas.Warning.description
- schemas.Warning.id
- schemas.Warning.properties.priority.description
- schemas.Warning.properties.priority.enum
- schemas.Warning.properties.priority.enumDescriptions
- schemas.Warning.properties.priority.type
- schemas.Warning.properties.text.description
- schemas.Warning.properties.text.type
- schemas.Warning.type

#### cloudbuild:v1

The following keys were added:
- schemas.Build.properties.warnings.description
- schemas.Build.properties.warnings.items.$ref
- schemas.Build.properties.warnings.readOnly
- schemas.Build.properties.warnings.type
- schemas.Warning.description
- schemas.Warning.id
- schemas.Warning.properties.priority.description
- schemas.Warning.properties.priority.enum
- schemas.Warning.properties.priority.enumDescriptions
- schemas.Warning.properties.priority.type
- schemas.Warning.properties.text.description
- schemas.Warning.properties.text.type
- schemas.Warning.type
  • Loading branch information
yoshi-automation authored and sofisl committed May 21, 2021
1 parent d169994 commit 760d16f
Show file tree
Hide file tree
Showing 8 changed files with 224 additions and 10 deletions.
37 changes: 36 additions & 1 deletion discovery/cloudbuild-v1.json
Expand Up @@ -819,7 +819,7 @@
}
}
},
"revision": "20210415",
"revision": "20210514",
"rootUrl": "https://cloudbuild.googleapis.com/",
"schemas": {
"ArtifactObjects": {
Expand Down Expand Up @@ -1046,6 +1046,14 @@
"description": "Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps * PUSH: time to push all specified images. * FETCHSOURCE: time to fetch source. If the build does not specify source or images, these keys will not be included.",
"readOnly": true,
"type": "object"
},
"warnings": {
"description": "Output only. Non-fatal problems encountered during the execution of the build.",
"items": {
"$ref": "Warning"
},
"readOnly": true,
"type": "array"
}
},
"type": "object"
Expand Down Expand Up @@ -2176,6 +2184,33 @@
}
},
"type": "object"
},
"Warning": {
"description": "A non-fatal problem encountered during the execution of the build.",
"id": "Warning",
"properties": {
"priority": {
"description": "The priority for this warning.",
"enum": [
"PRIORITY_UNSPECIFIED",
"INFO",
"WARNING",
"ALERT"
],
"enumDescriptions": [
"Should not be used.",
"e.g. deprecation warnings and alternative feature highlights.",
"e.g. automated detection of possible issues with the build.",
"e.g. alerts that a feature used in the build is pending removal"
],
"type": "string"
},
"text": {
"description": "Explanation of the warning generated.",
"type": "string"
}
},
"type": "object"
}
},
"servicePath": "",
Expand Down
37 changes: 36 additions & 1 deletion discovery/cloudbuild-v1alpha1.json
Expand Up @@ -306,7 +306,7 @@
}
}
},
"revision": "20210402",
"revision": "20210514",
"rootUrl": "https://cloudbuild.googleapis.com/",
"schemas": {
"ArtifactObjects": {
Expand Down Expand Up @@ -533,6 +533,14 @@
"description": "Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps * PUSH: time to push all specified images. * FETCHSOURCE: time to fetch source. If the build does not specify source or images, these keys will not be included.",
"readOnly": true,
"type": "object"
},
"warnings": {
"description": "Output only. Non-fatal problems encountered during the execution of the build.",
"items": {
"$ref": "Warning"
},
"readOnly": true,
"type": "array"
}
},
"type": "object"
Expand Down Expand Up @@ -1394,6 +1402,33 @@
},
"type": "object"
},
"Warning": {
"description": "A non-fatal problem encountered during the execution of the build.",
"id": "Warning",
"properties": {
"priority": {
"description": "The priority for this warning.",
"enum": [
"PRIORITY_UNSPECIFIED",
"INFO",
"WARNING",
"ALERT"
],
"enumDescriptions": [
"Should not be used.",
"e.g. deprecation warnings and alternative feature highlights.",
"e.g. automated detection of possible issues with the build.",
"e.g. alerts that a feature used in the build is pending removal"
],
"type": "string"
},
"text": {
"description": "Explanation of the warning generated.",
"type": "string"
}
},
"type": "object"
},
"WorkerConfig": {
"description": "WorkerConfig defines the configuration to be used for a creating workers in the pool.",
"id": "WorkerConfig",
Expand Down
37 changes: 36 additions & 1 deletion discovery/cloudbuild-v1alpha2.json
Expand Up @@ -317,7 +317,7 @@
}
}
},
"revision": "20210402",
"revision": "20210514",
"rootUrl": "https://cloudbuild.googleapis.com/",
"schemas": {
"ArtifactObjects": {
Expand Down Expand Up @@ -544,6 +544,14 @@
"description": "Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps * PUSH: time to push all specified images. * FETCHSOURCE: time to fetch source. If the build does not specify source or images, these keys will not be included.",
"readOnly": true,
"type": "object"
},
"warnings": {
"description": "Output only. Non-fatal problems encountered during the execution of the build.",
"items": {
"$ref": "Warning"
},
"readOnly": true,
"type": "array"
}
},
"type": "object"
Expand Down Expand Up @@ -1397,6 +1405,33 @@
},
"type": "object"
},
"Warning": {
"description": "A non-fatal problem encountered during the execution of the build.",
"id": "Warning",
"properties": {
"priority": {
"description": "The priority for this warning.",
"enum": [
"PRIORITY_UNSPECIFIED",
"INFO",
"WARNING",
"ALERT"
],
"enumDescriptions": [
"Should not be used.",
"e.g. deprecation warnings and alternative feature highlights.",
"e.g. automated detection of possible issues with the build.",
"e.g. alerts that a feature used in the build is pending removal"
],
"type": "string"
},
"text": {
"description": "Explanation of the warning generated.",
"type": "string"
}
},
"type": "object"
},
"WorkerConfig": {
"description": "WorkerConfig defines the configuration to be used for a creating workers in the pool.",
"id": "WorkerConfig",
Expand Down
37 changes: 36 additions & 1 deletion discovery/cloudbuild-v1beta1.json
Expand Up @@ -317,7 +317,7 @@
}
}
},
"revision": "20210402",
"revision": "20210514",
"rootUrl": "https://cloudbuild.googleapis.com/",
"schemas": {
"ArtifactObjects": {
Expand Down Expand Up @@ -544,6 +544,14 @@
"description": "Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps * PUSH: time to push all specified images. * FETCHSOURCE: time to fetch source. If the build does not specify source or images, these keys will not be included.",
"readOnly": true,
"type": "object"
},
"warnings": {
"description": "Output only. Non-fatal problems encountered during the execution of the build.",
"items": {
"$ref": "Warning"
},
"readOnly": true,
"type": "array"
}
},
"type": "object"
Expand Down Expand Up @@ -1397,6 +1405,33 @@
},
"type": "object"
},
"Warning": {
"description": "A non-fatal problem encountered during the execution of the build.",
"id": "Warning",
"properties": {
"priority": {
"description": "The priority for this warning.",
"enum": [
"PRIORITY_UNSPECIFIED",
"INFO",
"WARNING",
"ALERT"
],
"enumDescriptions": [
"Should not be used.",
"e.g. deprecation warnings and alternative feature highlights.",
"e.g. automated detection of possible issues with the build.",
"e.g. alerts that a feature used in the build is pending removal"
],
"type": "string"
},
"text": {
"description": "Explanation of the warning generated.",
"type": "string"
}
},
"type": "object"
},
"WorkerConfig": {
"description": "Defines the configuration to be used for creating workers in the pool.",
"id": "WorkerConfig",
Expand Down
35 changes: 29 additions & 6 deletions src/apis/cloudbuild/v1.ts
Expand Up @@ -278,6 +278,10 @@ export namespace cloudbuild_v1 {
* Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps * PUSH: time to push all specified images. * FETCHSOURCE: time to fetch source. If the build does not specify source or images, these keys will not be included.
*/
timing?: {[key: string]: Schema$TimeSpan} | null;
/**
* Output only. Non-fatal problems encountered during the execution of the build.
*/
warnings?: Schema$Warning[];
}
/**
* Metadata for build operations.
Expand Down Expand Up @@ -1070,6 +1074,19 @@ export namespace cloudbuild_v1 {
*/
path?: string | null;
}
/**
* A non-fatal problem encountered during the execution of the build.
*/
export interface Schema$Warning {
/**
* The priority for this warning.
*/
priority?: string | null;
/**
* Explanation of the warning generated.
*/
text?: string | null;
}

export class Resource$Operations {
context: APIRequestContext;
Expand Down Expand Up @@ -1446,7 +1463,8 @@ export namespace cloudbuild_v1 {
* // "substitutions": {},
* // "tags": [],
* // "timeout": "my_timeout",
* // "timing": {}
* // "timing": {},
* // "warnings": []
* // }
* }
*
Expand Down Expand Up @@ -1601,7 +1619,8 @@ export namespace cloudbuild_v1 {
* // "substitutions": {},
* // "tags": [],
* // "timeout": "my_timeout",
* // "timing": {}
* // "timing": {},
* // "warnings": []
* // }
* },
* });
Expand Down Expand Up @@ -1771,7 +1790,8 @@ export namespace cloudbuild_v1 {
* // "substitutions": {},
* // "tags": [],
* // "timeout": "my_timeout",
* // "timing": {}
* // "timing": {},
* // "warnings": []
* // }
* }
*
Expand Down Expand Up @@ -2327,7 +2347,8 @@ export namespace cloudbuild_v1 {
* // "substitutions": {},
* // "tags": [],
* // "timeout": "my_timeout",
* // "timing": {}
* // "timing": {},
* // "warnings": []
* // }
* }
*
Expand Down Expand Up @@ -2480,7 +2501,8 @@ export namespace cloudbuild_v1 {
* // "substitutions": {},
* // "tags": [],
* // "timeout": "my_timeout",
* // "timing": {}
* // "timing": {},
* // "warnings": []
* // }
* },
* });
Expand Down Expand Up @@ -2650,7 +2672,8 @@ export namespace cloudbuild_v1 {
* // "substitutions": {},
* // "tags": [],
* // "timeout": "my_timeout",
* // "timing": {}
* // "timing": {},
* // "warnings": []
* // }
* }
*
Expand Down
17 changes: 17 additions & 0 deletions src/apis/cloudbuild/v1alpha1.ts
Expand Up @@ -276,6 +276,10 @@ export namespace cloudbuild_v1alpha1 {
* Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps * PUSH: time to push all specified images. * FETCHSOURCE: time to fetch source. If the build does not specify source or images, these keys will not be included.
*/
timing?: {[key: string]: Schema$TimeSpan} | null;
/**
* Output only. Non-fatal problems encountered during the execution of the build.
*/
warnings?: Schema$Warning[];
}
/**
* Metadata for build operations.
Expand Down Expand Up @@ -868,6 +872,19 @@ export namespace cloudbuild_v1alpha1 {
*/
path?: string | null;
}
/**
* A non-fatal problem encountered during the execution of the build.
*/
export interface Schema$Warning {
/**
* The priority for this warning.
*/
priority?: string | null;
/**
* Explanation of the warning generated.
*/
text?: string | null;
}
/**
* WorkerConfig defines the configuration to be used for a creating workers in the pool.
*/
Expand Down
17 changes: 17 additions & 0 deletions src/apis/cloudbuild/v1alpha2.ts
Expand Up @@ -276,6 +276,10 @@ export namespace cloudbuild_v1alpha2 {
* Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps * PUSH: time to push all specified images. * FETCHSOURCE: time to fetch source. If the build does not specify source or images, these keys will not be included.
*/
timing?: {[key: string]: Schema$TimeSpan} | null;
/**
* Output only. Non-fatal problems encountered during the execution of the build.
*/
warnings?: Schema$Warning[];
}
/**
* Metadata for build operations.
Expand Down Expand Up @@ -860,6 +864,19 @@ export namespace cloudbuild_v1alpha2 {
*/
path?: string | null;
}
/**
* A non-fatal problem encountered during the execution of the build.
*/
export interface Schema$Warning {
/**
* The priority for this warning.
*/
priority?: string | null;
/**
* Explanation of the warning generated.
*/
text?: string | null;
}
/**
* WorkerConfig defines the configuration to be used for a creating workers in the pool.
*/
Expand Down

0 comments on commit 760d16f

Please sign in to comment.