This repository has been archived by the owner on May 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 8e3c1b45d0234eeebeab1d7ebdcc2a30ce1d7179
A few improvements and fixes (#4) * A few improvements and fixes * Fix the description for build arguments * Remove error schema * use 2017-10-01 tag * Add default response back
- Loading branch information
1 parent
2d044cc
commit 31976e5
Showing
46 changed files
with
15,294 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 85 additions & 0 deletions
85
lib/services/containerRegistryManagement/lib/models/baseImageDependency.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
/** | ||
* Properties that describe a base image dependency. | ||
* | ||
*/ | ||
class BaseImageDependency { | ||
/** | ||
* Create a BaseImageDependency. | ||
* @member {string} [type] The type of the base image dependency. Possible | ||
* values include: 'BuildTime', 'RunTime' | ||
* @member {string} [registry] The registry login server. | ||
* @member {string} [repository] The repository name. | ||
* @member {string} [tag] The tag name. | ||
* @member {string} [digest] The sha256-based digest of the image manifest. | ||
*/ | ||
constructor() { | ||
} | ||
|
||
/** | ||
* Defines the metadata of BaseImageDependency | ||
* | ||
* @returns {object} metadata of BaseImageDependency | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'BaseImageDependency', | ||
type: { | ||
name: 'Composite', | ||
className: 'BaseImageDependency', | ||
modelProperties: { | ||
type: { | ||
required: false, | ||
serializedName: 'type', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
registry: { | ||
required: false, | ||
serializedName: 'registry', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
repository: { | ||
required: false, | ||
serializedName: 'repository', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
tag: { | ||
required: false, | ||
serializedName: 'tag', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
digest: { | ||
required: false, | ||
serializedName: 'digest', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = BaseImageDependency; |
223 changes: 223 additions & 0 deletions
223
lib/services/containerRegistryManagement/lib/models/build.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,223 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const models = require('./index'); | ||
|
||
/** | ||
* Build resource properties | ||
* | ||
* @extends models['ProxyResource'] | ||
*/ | ||
class Build extends models['ProxyResource'] { | ||
/** | ||
* Create a Build. | ||
* @member {string} [buildId] The unique identifier for the build. | ||
* @member {string} [status] The current status of the build. Possible values | ||
* include: 'Queued', 'Started', 'Running', 'Succeeded', 'Failed', | ||
* 'Canceled', 'AbandonedAsSystemError', 'Timeout' | ||
* @member {date} [lastUpdatedTime] The last updated time for the build. | ||
* @member {string} [buildType] The type of build. Possible values include: | ||
* 'AutoBuild', 'QuickBuild' | ||
* @member {date} [createTime] The time the build was created. | ||
* @member {date} [startTime] The time the build started. | ||
* @member {date} [finishTime] The time the build finished. | ||
* @member {array} [outputImages] The list of all images that were generated | ||
* from the build. | ||
* @member {string} [buildTask] The build task with which the build was | ||
* started. | ||
* @member {object} [imageUpdateTrigger] The image update trigger that caused | ||
* the build. | ||
* @member {string} [imageUpdateTrigger.id] The unique ID of the trigger. | ||
* @member {date} [imageUpdateTrigger.timestamp] The timestamp when the image | ||
* update happened. | ||
* @member {array} [imageUpdateTrigger.images] The list of image updates that | ||
* caused the build. | ||
* @member {object} [gitCommitTrigger] The git commit trigger that caused the | ||
* build. | ||
* @member {string} [gitCommitTrigger.id] The unique ID of the trigger. | ||
* @member {string} [gitCommitTrigger.commitId] The unique ID that identifies | ||
* a commit. | ||
* @member {string} [gitCommitTrigger.repositoryUrl] The repository URL. | ||
* @member {string} [gitCommitTrigger.branchName] The branch name in the | ||
* repository. | ||
* @member {string} [gitCommitTrigger.providerType] The source control | ||
* provider type. | ||
* @member {boolean} [isArchiveEnabled] The value that indicates whether | ||
* archiving is enabled or not. | ||
* @member {object} [platform] The platform properties against which the | ||
* build will happen. | ||
* @member {string} [platform.osType] The operating system type required for | ||
* the build. Possible values include: 'Windows', 'Linux' | ||
* @member {number} [platform.cpu] The CPU configuration in terms of number | ||
* of cores required for the build. | ||
* @member {string} [provisioningState] The provisioning state of a build. | ||
* Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', | ||
* 'Failed', 'Canceled' | ||
*/ | ||
constructor() { | ||
super(); | ||
} | ||
|
||
/** | ||
* Defines the metadata of Build | ||
* | ||
* @returns {object} metadata of Build | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'Build', | ||
type: { | ||
name: 'Composite', | ||
className: 'Build', | ||
modelProperties: { | ||
id: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'id', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
name: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'name', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
type: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'type', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
buildId: { | ||
required: false, | ||
serializedName: 'properties.buildId', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
status: { | ||
required: false, | ||
serializedName: 'properties.status', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
lastUpdatedTime: { | ||
required: false, | ||
serializedName: 'properties.lastUpdatedTime', | ||
type: { | ||
name: 'DateTime' | ||
} | ||
}, | ||
buildType: { | ||
required: false, | ||
serializedName: 'properties.buildType', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
createTime: { | ||
required: false, | ||
serializedName: 'properties.createTime', | ||
type: { | ||
name: 'DateTime' | ||
} | ||
}, | ||
startTime: { | ||
required: false, | ||
serializedName: 'properties.startTime', | ||
type: { | ||
name: 'DateTime' | ||
} | ||
}, | ||
finishTime: { | ||
required: false, | ||
serializedName: 'properties.finishTime', | ||
type: { | ||
name: 'DateTime' | ||
} | ||
}, | ||
outputImages: { | ||
required: false, | ||
serializedName: 'properties.outputImages', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'ImageDescriptorElementType', | ||
type: { | ||
name: 'Composite', | ||
className: 'ImageDescriptor' | ||
} | ||
} | ||
} | ||
}, | ||
buildTask: { | ||
required: false, | ||
serializedName: 'properties.buildTask', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
imageUpdateTrigger: { | ||
required: false, | ||
serializedName: 'properties.imageUpdateTrigger', | ||
type: { | ||
name: 'Composite', | ||
className: 'ImageUpdateTrigger' | ||
} | ||
}, | ||
gitCommitTrigger: { | ||
required: false, | ||
serializedName: 'properties.gitCommitTrigger', | ||
type: { | ||
name: 'Composite', | ||
className: 'GitCommitTrigger' | ||
} | ||
}, | ||
isArchiveEnabled: { | ||
required: false, | ||
serializedName: 'properties.isArchiveEnabled', | ||
type: { | ||
name: 'Boolean' | ||
} | ||
}, | ||
platform: { | ||
required: false, | ||
serializedName: 'properties.platform', | ||
type: { | ||
name: 'Composite', | ||
className: 'PlatformProperties' | ||
} | ||
}, | ||
provisioningState: { | ||
required: false, | ||
serializedName: 'properties.provisioningState', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = Build; |
Oops, something went wrong.