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

Commit

Permalink
[AutoPR containerregistry/resource-manager] [ACR] Auto Build Swagger:…
Browse files Browse the repository at this point in the history
… Added identity to registry properties (#3763)

* Generated from a9ff5f330e569cbbdfded62d6506e9fe2b71f9ae

Added identity to registry properties

* Generated from 185e2e930d7cd67eb43fee8264dd52b805f87ec0

CR comments
  • Loading branch information
AutorestCI authored Oct 8, 2018
1 parent 0240225 commit af3e54a
Show file tree
Hide file tree
Showing 7 changed files with 359 additions and 0 deletions.
30 changes: 30 additions & 0 deletions lib/services/containerRegistryManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand All @@ -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;
Expand All @@ -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
Expand All @@ -346,6 +375,7 @@ export interface Registry extends Resource {
export interface RegistryUpdateParameters {
tags?: { [propertyName: string]: string };
sku?: Sku;
identity?: RegistryIdentity;
adminUserEnabled?: boolean;
storageAccount?: StorageAccountProperties;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
15 changes: 15 additions & 0 deletions lib/services/containerRegistryManagement/lib/models/registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -72,6 +79,14 @@ class RegistryUpdateParameters {
className: 'Sku'
}
},
identity: {
required: false,
serializedName: 'identity',
type: {
name: 'Composite',
className: 'RegistryIdentity'
}
},
adminUserEnabled: {
required: false,
serializedName: 'properties.adminUserEnabled',
Expand Down
92 changes: 92 additions & 0 deletions lib/services/containerRegistryManagement/lib/operations/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -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.
*
Expand Down
Loading

0 comments on commit af3e54a

Please sign in to comment.