[AutoPR containerregistry/resource-manager] [ACR] Auto Build Swagger: Added identity to registry properties (#3763)

* Generated from a9ff5f330e569cbbdfded62d6506e9fe2b71f9ae

Added identity to registry properties

* Generated from 185e2e930d7cd67eb43fee8264dd52b805f87ec0

CR comments
This commit is contained in:
Azure SDK for Python bot 2018-10-08 15:17:28 -07:00 коммит произвёл GitHub
Родитель 0240225174
Коммит af3e54acbd
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
7 изменённых файлов: 359 добавлений и 0 удалений

Просмотреть файл

@ -228,6 +228,22 @@ export interface Sku {
readonly tier?: string;
}
/**
* @class
* Initializes a new instance of the RegistryIdentity class.
* @constructor
* The identity of the container registry.
*
* @member {string} [type] The type of identity used for the registry.
* @member {string} [principalId] The principal ID of registry identity.
* @member {string} [tenantId] The tenant ID associated with the registry.
*/
export interface RegistryIdentity {
type?: string;
principalId?: string;
tenantId?: string;
}
/**
* @class
* Initializes a new instance of the Status class.
@ -292,6 +308,12 @@ export interface Resource extends BaseResource {
* 'Standard', 'Premium'
* @member {string} [sku.tier] The SKU tier based on the SKU name. Possible
* values include: 'Classic', 'Basic', 'Standard', 'Premium'
* @member {object} [identity] The identity of the container registry.
* @member {string} [identity.type] The type of identity used for the registry.
* @member {string} [identity.principalId] The principal ID of registry
* identity.
* @member {string} [identity.tenantId] The tenant ID associated with the
* registry.
* @member {string} [loginServer] The URL that can be used to log into the
* container registry.
* @member {date} [creationDate] The creation date of the container registry in
@ -314,6 +336,7 @@ export interface Resource extends BaseResource {
*/
export interface Registry extends Resource {
sku: Sku;
identity?: RegistryIdentity;
readonly loginServer?: string;
readonly creationDate?: Date;
readonly provisioningState?: string;
@ -335,6 +358,12 @@ export interface Registry extends Resource {
* 'Standard', 'Premium'
* @member {string} [sku.tier] The SKU tier based on the SKU name. Possible
* values include: 'Classic', 'Basic', 'Standard', 'Premium'
* @member {object} [identity] The identity of the container registry.
* @member {string} [identity.type] The type of identity used for the registry.
* @member {string} [identity.principalId] The principal ID of registry
* identity.
* @member {string} [identity.tenantId] The tenant ID associated with the
* registry.
* @member {boolean} [adminUserEnabled] The value that indicates whether the
* admin user is enabled.
* @member {object} [storageAccount] The parameters of a storage account for
@ -346,6 +375,7 @@ export interface Registry extends Resource {
export interface RegistryUpdateParameters {
tags?: { [propertyName: string]: string };
sku?: Sku;
identity?: RegistryIdentity;
adminUserEnabled?: boolean;
storageAccount?: StorageAccountProperties;
}

Просмотреть файл

@ -28,6 +28,7 @@ exports.OperationMetricSpecificationDefinition = require('./operationMetricSpeci
exports.OperationServiceSpecificationDefinition = require('./operationServiceSpecificationDefinition');
exports.OperationDefinition = require('./operationDefinition');
exports.Sku = require('./sku');
exports.RegistryIdentity = require('./registryIdentity');
exports.Status = require('./status');
exports.StorageAccountProperties = require('./storageAccountProperties');
exports.Resource = require('./resource');

Просмотреть файл

@ -26,6 +26,13 @@ class Registry extends models['Resource'] {
* 'Basic', 'Standard', 'Premium'
* @member {string} [sku.tier] The SKU tier based on the SKU name. Possible
* values include: 'Classic', 'Basic', 'Standard', 'Premium'
* @member {object} [identity] The identity of the container registry.
* @member {string} [identity.type] The type of identity used for the
* registry.
* @member {string} [identity.principalId] The principal ID of registry
* identity.
* @member {string} [identity.tenantId] The tenant ID associated with the
* registry.
* @member {string} [loginServer] The URL that can be used to log into the
* container registry.
* @member {date} [creationDate] The creation date of the container registry
@ -119,6 +126,14 @@ class Registry extends models['Resource'] {
className: 'Sku'
}
},
identity: {
required: false,
serializedName: 'identity',
type: {
name: 'Composite',
className: 'RegistryIdentity'
}
},
loginServer: {
required: false,
readOnly: true,

Просмотреть файл

@ -0,0 +1,68 @@
/*
* 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';
/**
* The identity of the container registry.
*
*/
class RegistryIdentity {
/**
* Create a RegistryIdentity.
* @member {string} [type] The type of identity used for the registry.
* @member {string} [principalId] The principal ID of registry identity.
* @member {string} [tenantId] The tenant ID associated with the registry.
*/
constructor() {
}
/**
* Defines the metadata of RegistryIdentity
*
* @returns {object} metadata of RegistryIdentity
*
*/
mapper() {
return {
required: false,
serializedName: 'RegistryIdentity',
type: {
name: 'Composite',
className: 'RegistryIdentity',
modelProperties: {
type: {
required: false,
serializedName: 'type',
type: {
name: 'String'
}
},
principalId: {
required: false,
serializedName: 'principalId',
type: {
name: 'String'
}
},
tenantId: {
required: false,
serializedName: 'tenantId',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = RegistryIdentity;

Просмотреть файл

@ -24,6 +24,13 @@ class RegistryUpdateParameters {
* 'Basic', 'Standard', 'Premium'
* @member {string} [sku.tier] The SKU tier based on the SKU name. Possible
* values include: 'Classic', 'Basic', 'Standard', 'Premium'
* @member {object} [identity] The identity of the container registry.
* @member {string} [identity.type] The type of identity used for the
* registry.
* @member {string} [identity.principalId] The principal ID of registry
* identity.
* @member {string} [identity.tenantId] The tenant ID associated with the
* registry.
* @member {boolean} [adminUserEnabled] The value that indicates whether the
* admin user is enabled.
* @member {object} [storageAccount] The parameters of a storage account for
@ -72,6 +79,14 @@ class RegistryUpdateParameters {
className: 'Sku'
}
},
identity: {
required: false,
serializedName: 'identity',
type: {
name: 'Composite',
className: 'RegistryIdentity'
}
},
adminUserEnabled: {
required: false,
serializedName: 'properties.adminUserEnabled',

Просмотреть файл

@ -307,6 +307,17 @@ export interface Registries {
* Required for registry creation. Possible values include: 'Classic', 'Basic',
* 'Standard', 'Premium'
*
* @param {object} [registry.identity] The identity of the container registry.
*
* @param {string} [registry.identity.type] The type of identity used for the
* registry.
*
* @param {string} [registry.identity.principalId] The principal ID of registry
* identity.
*
* @param {string} [registry.identity.tenantId] The tenant ID associated with
* the registry.
*
* @param {boolean} [registry.adminUserEnabled] The value that indicates
* whether the admin user is enabled.
*
@ -350,6 +361,17 @@ export interface Registries {
* Required for registry creation. Possible values include: 'Classic', 'Basic',
* 'Standard', 'Premium'
*
* @param {object} [registry.identity] The identity of the container registry.
*
* @param {string} [registry.identity.type] The type of identity used for the
* registry.
*
* @param {string} [registry.identity.principalId] The principal ID of registry
* identity.
*
* @param {string} [registry.identity.tenantId] The tenant ID associated with
* the registry.
*
* @param {boolean} [registry.adminUserEnabled] The value that indicates
* whether the admin user is enabled.
*
@ -477,6 +499,18 @@ export interface Registries {
* container registry. Required for registry creation. Possible values include:
* 'Classic', 'Basic', 'Standard', 'Premium'
*
* @param {object} [registryUpdateParameters.identity] The identity of the
* container registry.
*
* @param {string} [registryUpdateParameters.identity.type] The type of
* identity used for the registry.
*
* @param {string} [registryUpdateParameters.identity.principalId] The
* principal ID of registry identity.
*
* @param {string} [registryUpdateParameters.identity.tenantId] The tenant ID
* associated with the registry.
*
* @param {boolean} [registryUpdateParameters.adminUserEnabled] The value that
* indicates whether the admin user is enabled.
*
@ -522,6 +556,18 @@ export interface Registries {
* container registry. Required for registry creation. Possible values include:
* 'Classic', 'Basic', 'Standard', 'Premium'
*
* @param {object} [registryUpdateParameters.identity] The identity of the
* container registry.
*
* @param {string} [registryUpdateParameters.identity.type] The type of
* identity used for the registry.
*
* @param {string} [registryUpdateParameters.identity.principalId] The
* principal ID of registry identity.
*
* @param {string} [registryUpdateParameters.identity.tenantId] The tenant ID
* associated with the registry.
*
* @param {boolean} [registryUpdateParameters.adminUserEnabled] The value that
* indicates whether the admin user is enabled.
*
@ -1334,6 +1380,17 @@ export interface Registries {
* Required for registry creation. Possible values include: 'Classic', 'Basic',
* 'Standard', 'Premium'
*
* @param {object} [registry.identity] The identity of the container registry.
*
* @param {string} [registry.identity.type] The type of identity used for the
* registry.
*
* @param {string} [registry.identity.principalId] The principal ID of registry
* identity.
*
* @param {string} [registry.identity.tenantId] The tenant ID associated with
* the registry.
*
* @param {boolean} [registry.adminUserEnabled] The value that indicates
* whether the admin user is enabled.
*
@ -1377,6 +1434,17 @@ export interface Registries {
* Required for registry creation. Possible values include: 'Classic', 'Basic',
* 'Standard', 'Premium'
*
* @param {object} [registry.identity] The identity of the container registry.
*
* @param {string} [registry.identity.type] The type of identity used for the
* registry.
*
* @param {string} [registry.identity.principalId] The principal ID of registry
* identity.
*
* @param {string} [registry.identity.tenantId] The tenant ID associated with
* the registry.
*
* @param {boolean} [registry.adminUserEnabled] The value that indicates
* whether the admin user is enabled.
*
@ -1504,6 +1572,18 @@ export interface Registries {
* container registry. Required for registry creation. Possible values include:
* 'Classic', 'Basic', 'Standard', 'Premium'
*
* @param {object} [registryUpdateParameters.identity] The identity of the
* container registry.
*
* @param {string} [registryUpdateParameters.identity.type] The type of
* identity used for the registry.
*
* @param {string} [registryUpdateParameters.identity.principalId] The
* principal ID of registry identity.
*
* @param {string} [registryUpdateParameters.identity.tenantId] The tenant ID
* associated with the registry.
*
* @param {boolean} [registryUpdateParameters.adminUserEnabled] The value that
* indicates whether the admin user is enabled.
*
@ -1549,6 +1629,18 @@ export interface Registries {
* container registry. Required for registry creation. Possible values include:
* 'Classic', 'Basic', 'Standard', 'Premium'
*
* @param {object} [registryUpdateParameters.identity] The identity of the
* container registry.
*
* @param {string} [registryUpdateParameters.identity.type] The type of
* identity used for the registry.
*
* @param {string} [registryUpdateParameters.identity.principalId] The
* principal ID of registry identity.
*
* @param {string} [registryUpdateParameters.identity.tenantId] The tenant ID
* associated with the registry.
*
* @param {boolean} [registryUpdateParameters.adminUserEnabled] The value that
* indicates whether the admin user is enabled.
*

Просмотреть файл

@ -454,6 +454,17 @@ function _get(resourceGroupName, registryName, options, callback) {
* Required for registry creation. Possible values include: 'Classic', 'Basic',
* 'Standard', 'Premium'
*
* @param {object} [registry.identity] The identity of the container registry.
*
* @param {string} [registry.identity.type] The type of identity used for the
* registry.
*
* @param {string} [registry.identity.principalId] The principal ID of registry
* identity.
*
* @param {string} [registry.identity.tenantId] The tenant ID associated with
* the registry.
*
* @param {boolean} [registry.adminUserEnabled] The value that indicates
* whether the admin user is enabled.
*
@ -624,6 +635,18 @@ function _deleteMethod(resourceGroupName, registryName, options, callback) {
* container registry. Required for registry creation. Possible values include:
* 'Classic', 'Basic', 'Standard', 'Premium'
*
* @param {object} [registryUpdateParameters.identity] The identity of the
* container registry.
*
* @param {string} [registryUpdateParameters.identity.type] The type of
* identity used for the registry.
*
* @param {string} [registryUpdateParameters.identity.principalId] The
* principal ID of registry identity.
*
* @param {string} [registryUpdateParameters.identity.tenantId] The tenant ID
* associated with the registry.
*
* @param {boolean} [registryUpdateParameters.adminUserEnabled] The value that
* indicates whether the admin user is enabled.
*
@ -2193,6 +2216,17 @@ function _beginImportImage(resourceGroupName, registryName, parameters, options,
* Required for registry creation. Possible values include: 'Classic', 'Basic',
* 'Standard', 'Premium'
*
* @param {object} [registry.identity] The identity of the container registry.
*
* @param {string} [registry.identity.type] The type of identity used for the
* registry.
*
* @param {string} [registry.identity.principalId] The principal ID of registry
* identity.
*
* @param {string} [registry.identity.tenantId] The tenant ID associated with
* the registry.
*
* @param {boolean} [registry.adminUserEnabled] The value that indicates
* whether the admin user is enabled.
*
@ -2552,6 +2586,18 @@ function _beginDeleteMethod(resourceGroupName, registryName, options, callback)
* container registry. Required for registry creation. Possible values include:
* 'Classic', 'Basic', 'Standard', 'Premium'
*
* @param {object} [registryUpdateParameters.identity] The identity of the
* container registry.
*
* @param {string} [registryUpdateParameters.identity.type] The type of
* identity used for the registry.
*
* @param {string} [registryUpdateParameters.identity.principalId] The
* principal ID of registry identity.
*
* @param {string} [registryUpdateParameters.identity.tenantId] The tenant ID
* associated with the registry.
*
* @param {boolean} [registryUpdateParameters.adminUserEnabled] The value that
* indicates whether the admin user is enabled.
*
@ -3779,6 +3825,17 @@ class Registries {
* Required for registry creation. Possible values include: 'Classic', 'Basic',
* 'Standard', 'Premium'
*
* @param {object} [registry.identity] The identity of the container registry.
*
* @param {string} [registry.identity.type] The type of identity used for the
* registry.
*
* @param {string} [registry.identity.principalId] The principal ID of registry
* identity.
*
* @param {string} [registry.identity.tenantId] The tenant ID associated with
* the registry.
*
* @param {boolean} [registry.adminUserEnabled] The value that indicates
* whether the admin user is enabled.
*
@ -3834,6 +3891,17 @@ class Registries {
* Required for registry creation. Possible values include: 'Classic', 'Basic',
* 'Standard', 'Premium'
*
* @param {object} [registry.identity] The identity of the container registry.
*
* @param {string} [registry.identity.type] The type of identity used for the
* registry.
*
* @param {string} [registry.identity.principalId] The principal ID of registry
* identity.
*
* @param {string} [registry.identity.tenantId] The tenant ID associated with
* the registry.
*
* @param {boolean} [registry.adminUserEnabled] The value that indicates
* whether the admin user is enabled.
*
@ -4003,6 +4071,18 @@ class Registries {
* container registry. Required for registry creation. Possible values include:
* 'Classic', 'Basic', 'Standard', 'Premium'
*
* @param {object} [registryUpdateParameters.identity] The identity of the
* container registry.
*
* @param {string} [registryUpdateParameters.identity.type] The type of
* identity used for the registry.
*
* @param {string} [registryUpdateParameters.identity.principalId] The
* principal ID of registry identity.
*
* @param {string} [registryUpdateParameters.identity.tenantId] The tenant ID
* associated with the registry.
*
* @param {boolean} [registryUpdateParameters.adminUserEnabled] The value that
* indicates whether the admin user is enabled.
*
@ -4060,6 +4140,18 @@ class Registries {
* container registry. Required for registry creation. Possible values include:
* 'Classic', 'Basic', 'Standard', 'Premium'
*
* @param {object} [registryUpdateParameters.identity] The identity of the
* container registry.
*
* @param {string} [registryUpdateParameters.identity.type] The type of
* identity used for the registry.
*
* @param {string} [registryUpdateParameters.identity.principalId] The
* principal ID of registry identity.
*
* @param {string} [registryUpdateParameters.identity.tenantId] The tenant ID
* associated with the registry.
*
* @param {boolean} [registryUpdateParameters.adminUserEnabled] The value that
* indicates whether the admin user is enabled.
*
@ -5157,6 +5249,17 @@ class Registries {
* Required for registry creation. Possible values include: 'Classic', 'Basic',
* 'Standard', 'Premium'
*
* @param {object} [registry.identity] The identity of the container registry.
*
* @param {string} [registry.identity.type] The type of identity used for the
* registry.
*
* @param {string} [registry.identity.principalId] The principal ID of registry
* identity.
*
* @param {string} [registry.identity.tenantId] The tenant ID associated with
* the registry.
*
* @param {boolean} [registry.adminUserEnabled] The value that indicates
* whether the admin user is enabled.
*
@ -5212,6 +5315,17 @@ class Registries {
* Required for registry creation. Possible values include: 'Classic', 'Basic',
* 'Standard', 'Premium'
*
* @param {object} [registry.identity] The identity of the container registry.
*
* @param {string} [registry.identity.type] The type of identity used for the
* registry.
*
* @param {string} [registry.identity.principalId] The principal ID of registry
* identity.
*
* @param {string} [registry.identity.tenantId] The tenant ID associated with
* the registry.
*
* @param {boolean} [registry.adminUserEnabled] The value that indicates
* whether the admin user is enabled.
*
@ -5381,6 +5495,18 @@ class Registries {
* container registry. Required for registry creation. Possible values include:
* 'Classic', 'Basic', 'Standard', 'Premium'
*
* @param {object} [registryUpdateParameters.identity] The identity of the
* container registry.
*
* @param {string} [registryUpdateParameters.identity.type] The type of
* identity used for the registry.
*
* @param {string} [registryUpdateParameters.identity.principalId] The
* principal ID of registry identity.
*
* @param {string} [registryUpdateParameters.identity.tenantId] The tenant ID
* associated with the registry.
*
* @param {boolean} [registryUpdateParameters.adminUserEnabled] The value that
* indicates whether the admin user is enabled.
*
@ -5438,6 +5564,18 @@ class Registries {
* container registry. Required for registry creation. Possible values include:
* 'Classic', 'Basic', 'Standard', 'Premium'
*
* @param {object} [registryUpdateParameters.identity] The identity of the
* container registry.
*
* @param {string} [registryUpdateParameters.identity.type] The type of
* identity used for the registry.
*
* @param {string} [registryUpdateParameters.identity.principalId] The
* principal ID of registry identity.
*
* @param {string} [registryUpdateParameters.identity.tenantId] The tenant ID
* associated with the registry.
*
* @param {boolean} [registryUpdateParameters.adminUserEnabled] The value that
* indicates whether the admin user is enabled.
*