Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
Generated from 8e3c1b45d0234eeebeab1d7ebdcc2a30ce1d7179
Browse files Browse the repository at this point in the history
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
AutorestCI committed Apr 20, 2018
1 parent 2d044cc commit 31976e5
Show file tree
Hide file tree
Showing 46 changed files with 15,294 additions and 109 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ export default class ContainerRegistryManagementClient extends AzureServiceClien

subscriptionId: string;

apiVersion: string;

acceptLanguage: string;

longRunningOperationRetryTimeout: number;
Expand All @@ -60,6 +58,9 @@ export default class ContainerRegistryManagementClient extends AzureServiceClien
operations: operations.Operations;
replications: operations.Replications;
webhooks: operations.Webhooks;
builds: operations.Builds;
buildSteps: operations.BuildSteps;
buildTasks: operations.BuildTasks;
}

export { ContainerRegistryManagementClient, models as ContainerRegistryManagementModels };
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ class ContainerRegistryManagementClient extends ServiceClient {

super(credentials, options);

this.apiVersion = '2017-10-01';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.generateClientRequestId = true;
Expand All @@ -76,6 +75,9 @@ class ContainerRegistryManagementClient extends ServiceClient {
this.operations = new operations.Operations(this);
this.replications = new operations.Replications(this);
this.webhooks = new operations.Webhooks(this);
this.builds = new operations.Builds(this);
this.buildSteps = new operations.BuildSteps(this);
this.buildTasks = new operations.BuildTasks(this);
this.models = models;
msRest.addSerializationMixin(this);
}
Expand Down
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 lib/services/containerRegistryManagement/lib/models/build.js
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;
Loading

0 comments on commit 31976e5

Please sign in to comment.