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

Commit

Permalink
Generated from 5e072f9f70cfd1ff9a8eb343e4d3d42e7c338a8a
Browse files Browse the repository at this point in the history
Fix examples (#8)
  • Loading branch information
AutorestCI committed Apr 24, 2018
1 parent abd57bf commit a416985
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 859 deletions.
48 changes: 0 additions & 48 deletions lib/services/containerRegistryManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,54 +16,6 @@ export { BaseResource } from 'ms-rest-azure';
export { CloudError } from 'ms-rest-azure';


/**
* @class
* Initializes a new instance of the ImportSource class.
* @constructor
* @member {string} resourceId The resource identifier of the target Azure
* Container Registry.
* @member {string} sourceImage Repository name of the source image.
* Specify an image by repository ('hello-world'). This will use the 'latest'
* tag.
* Specify an image by tag ('hello-world:latest').
* Specify an image by sha256-based manifest digest
* ('hello-world@sha256:abc123').
*/
export interface ImportSource {
resourceId: string;
sourceImage: string;
}

/**
* @class
* Initializes a new instance of the ImportImageParameters class.
* @constructor
* @member {object} source The source of the image.
* @member {string} [source.resourceId] The resource identifier of the target
* Azure Container Registry.
* @member {string} [source.sourceImage] Repository name of the source image.
* Specify an image by repository ('hello-world'). This will use the 'latest'
* tag.
* Specify an image by tag ('hello-world:latest').
* Specify an image by sha256-based manifest digest
* ('hello-world@sha256:abc123').
* @member {array} [targetTags] List of strings of the form repo[:tag]. When
* tag is omitted the source will be used (or 'latest' if source tag is also
* omitted).
* @member {array} [untaggedTargetRepositories] List of strings of repository
* names to do a manifest only copy. No tag will be created.
* @member {string} [mode] When Force, any existing target tags will be
* overwritten. When NoForce, any existing target tags will fail the operation
* before any copying begins. Possible values include: 'NoForce', 'Force'.
* Default value: 'NoForce' .
*/
export interface ImportImageParameters {
source: ImportSource;
targetTags?: string[];
untaggedTargetRepositories?: string[];
mode?: string;
}

/**
* @class
* Initializes a new instance of the RegistryNameCheckRequest class.
Expand Down
2 changes: 0 additions & 2 deletions lib/services/containerRegistryManagement/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ var msRestAzure = require('ms-rest-azure');

exports.BaseResource = msRestAzure.BaseResource;
exports.CloudError = msRestAzure.CloudError;
exports.ImportSource = require('./importSource');
exports.ImportImageParameters = require('./importImageParameters');
exports.RegistryNameCheckRequest = require('./registryNameCheckRequest');
exports.RegistryNameStatus = require('./registryNameStatus');
exports.OperationDisplayDefinition = require('./operationDisplayDefinition');
Expand Down
236 changes: 0 additions & 236 deletions lib/services/containerRegistryManagement/lib/operations/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,124 +21,6 @@ import * as models from '../models';
export interface Registries {


/**
* Copies an image to this container registry from the specified container
* registry.
*
* @param {string} resourceGroupName The name of the resource group to which
* the container registry belongs.
*
* @param {string} registryName The name of the container registry.
*
* @param {object} parameters The parameters specifying the image to copy and
* the source container registry.
*
* @param {object} parameters.source The source of the image.
*
* @param {string} parameters.source.resourceId The resource identifier of the
* target Azure Container Registry.
*
* @param {string} parameters.source.sourceImage Repository name of the source
* image.
* Specify an image by repository ('hello-world'). This will use the 'latest'
* tag.
* Specify an image by tag ('hello-world:latest').
* Specify an image by sha256-based manifest digest
* ('hello-world@sha256:abc123').
*
* @param {array} [parameters.targetTags] List of strings of the form
* repo[:tag]. When tag is omitted the source will be used (or 'latest' if
* source tag is also omitted).
*
* @param {array} [parameters.untaggedTargetRepositories] List of strings of
* repository names to do a manifest only copy. No tag will be created.
*
* @param {string} [parameters.mode] When Force, any existing target tags will
* be overwritten. When NoForce, any existing target tags will fail the
* operation before any copying begins. Possible values include: 'NoForce',
* 'Force'
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @returns {Promise} A promise is returned
*
* @resolve {HttpOperationResponse<null>} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
importImageWithHttpOperationResponse(resourceGroupName: string, registryName: string, parameters: models.ImportImageParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<void>>;

/**
* Copies an image to this container registry from the specified container
* registry.
*
* @param {string} resourceGroupName The name of the resource group to which
* the container registry belongs.
*
* @param {string} registryName The name of the container registry.
*
* @param {object} parameters The parameters specifying the image to copy and
* the source container registry.
*
* @param {object} parameters.source The source of the image.
*
* @param {string} parameters.source.resourceId The resource identifier of the
* target Azure Container Registry.
*
* @param {string} parameters.source.sourceImage Repository name of the source
* image.
* Specify an image by repository ('hello-world'). This will use the 'latest'
* tag.
* Specify an image by tag ('hello-world:latest').
* Specify an image by sha256-based manifest digest
* ('hello-world@sha256:abc123').
*
* @param {array} [parameters.targetTags] List of strings of the form
* repo[:tag]. When tag is omitted the source will be used (or 'latest' if
* source tag is also omitted).
*
* @param {array} [parameters.untaggedTargetRepositories] List of strings of
* repository names to do a manifest only copy. No tag will be created.
*
* @param {string} [parameters.mode] When Force, any existing target tags will
* be overwritten. When NoForce, any existing target tags will fail the
* operation before any copying begins. Possible values include: 'NoForce',
* 'Force'
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {ServiceCallback} [optionalCallback] - The optional callback.
*
* @returns {ServiceCallback|Promise} If a callback was passed as the last
* parameter then it returns the callback else returns a Promise.
*
* {Promise} A promise is returned.
*
* @resolve {null} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
* {ServiceCallback} optionalCallback(err, result, request, response)
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
* {null} [result] - The deserialized result object if an error did not occur.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
importImage(resourceGroupName: string, registryName: string, parameters: models.ImportImageParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<void>;
importImage(resourceGroupName: string, registryName: string, parameters: models.ImportImageParameters, callback: ServiceCallback<void>): void;
importImage(resourceGroupName: string, registryName: string, parameters: models.ImportImageParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<void>): void;


/**
* Checks whether the container registry name is available for use. The name
* must contain only alphanumeric characters, be globally unique, and between 5
Expand Down Expand Up @@ -851,124 +733,6 @@ export interface Registries {
listUsages(resourceGroupName: string, registryName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.RegistryUsageListResult>): void;


/**
* Copies an image to this container registry from the specified container
* registry.
*
* @param {string} resourceGroupName The name of the resource group to which
* the container registry belongs.
*
* @param {string} registryName The name of the container registry.
*
* @param {object} parameters The parameters specifying the image to copy and
* the source container registry.
*
* @param {object} parameters.source The source of the image.
*
* @param {string} parameters.source.resourceId The resource identifier of the
* target Azure Container Registry.
*
* @param {string} parameters.source.sourceImage Repository name of the source
* image.
* Specify an image by repository ('hello-world'). This will use the 'latest'
* tag.
* Specify an image by tag ('hello-world:latest').
* Specify an image by sha256-based manifest digest
* ('hello-world@sha256:abc123').
*
* @param {array} [parameters.targetTags] List of strings of the form
* repo[:tag]. When tag is omitted the source will be used (or 'latest' if
* source tag is also omitted).
*
* @param {array} [parameters.untaggedTargetRepositories] List of strings of
* repository names to do a manifest only copy. No tag will be created.
*
* @param {string} [parameters.mode] When Force, any existing target tags will
* be overwritten. When NoForce, any existing target tags will fail the
* operation before any copying begins. Possible values include: 'NoForce',
* 'Force'
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @returns {Promise} A promise is returned
*
* @resolve {HttpOperationResponse<null>} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
beginImportImageWithHttpOperationResponse(resourceGroupName: string, registryName: string, parameters: models.ImportImageParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<void>>;

/**
* Copies an image to this container registry from the specified container
* registry.
*
* @param {string} resourceGroupName The name of the resource group to which
* the container registry belongs.
*
* @param {string} registryName The name of the container registry.
*
* @param {object} parameters The parameters specifying the image to copy and
* the source container registry.
*
* @param {object} parameters.source The source of the image.
*
* @param {string} parameters.source.resourceId The resource identifier of the
* target Azure Container Registry.
*
* @param {string} parameters.source.sourceImage Repository name of the source
* image.
* Specify an image by repository ('hello-world'). This will use the 'latest'
* tag.
* Specify an image by tag ('hello-world:latest').
* Specify an image by sha256-based manifest digest
* ('hello-world@sha256:abc123').
*
* @param {array} [parameters.targetTags] List of strings of the form
* repo[:tag]. When tag is omitted the source will be used (or 'latest' if
* source tag is also omitted).
*
* @param {array} [parameters.untaggedTargetRepositories] List of strings of
* repository names to do a manifest only copy. No tag will be created.
*
* @param {string} [parameters.mode] When Force, any existing target tags will
* be overwritten. When NoForce, any existing target tags will fail the
* operation before any copying begins. Possible values include: 'NoForce',
* 'Force'
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {ServiceCallback} [optionalCallback] - The optional callback.
*
* @returns {ServiceCallback|Promise} If a callback was passed as the last
* parameter then it returns the callback else returns a Promise.
*
* {Promise} A promise is returned.
*
* @resolve {null} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
* {ServiceCallback} optionalCallback(err, result, request, response)
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
* {null} [result] - The deserialized result object if an error did not occur.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
beginImportImage(resourceGroupName: string, registryName: string, parameters: models.ImportImageParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<void>;
beginImportImage(resourceGroupName: string, registryName: string, parameters: models.ImportImageParameters, callback: ServiceCallback<void>): void;
beginImportImage(resourceGroupName: string, registryName: string, parameters: models.ImportImageParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<void>): void;


/**
* Creates a container registry with the specified parameters.
*
Expand Down
Loading

0 comments on commit a416985

Please sign in to comment.