Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions lib/services/hdInsightManagement/lib/models/cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,22 @@ class Cluster extends models['TrackedResource'] {
* @member {array} [properties.errors] The list of errors.
* @member {array} [properties.connectivityEndpoints] The list of
* connectivity endpoints.
* @member {object} [identity] The identity of the cluster, if configured.
* @member {string} [identity.principalId] The principal id of cluster
* identity. This property will only be provided for a system assigned
* identity.
* @member {string} [identity.tenantId] The tenant id associated with the
* cluster. This property will only be provided for a system assigned
* identity.
* @member {string} [identity.type] The type of identity used for the
* cluster. The type 'SystemAssigned, UserAssigned' includes both an
* implicitly created identity and a set of user assigned identities.
* Possible values include: 'SystemAssigned', 'UserAssigned',
* 'SystemAssigned, UserAssigned', 'None'
* @member {object} [identity.userAssignedIdentities] The list of user
* identities associated with the cluster. The user identity dictionary key
* references will be ARM resource ids in the form:
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
*/
constructor() {
super();
Expand Down Expand Up @@ -149,6 +165,14 @@ class Cluster extends models['TrackedResource'] {
name: 'Composite',
className: 'ClusterGetProperties'
}
},
identity: {
required: false,
serializedName: 'identity',
type: {
name: 'Composite',
className: 'ClusterIdentity'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,22 @@ class ClusterCreateParametersExtended {
* @member {object} [properties.storageProfile] The storage profile.
* @member {array} [properties.storageProfile.storageaccounts] The list of
* storage accounts in the cluster.
* @member {object} [identity] The identity of the cluster, if configured.
* @member {string} [identity.principalId] The principal id of cluster
* identity. This property will only be provided for a system assigned
* identity.
* @member {string} [identity.tenantId] The tenant id associated with the
* cluster. This property will only be provided for a system assigned
* identity.
* @member {string} [identity.type] The type of identity used for the
* cluster. The type 'SystemAssigned, UserAssigned' includes both an
* implicitly created identity and a set of user assigned identities.
* Possible values include: 'SystemAssigned', 'UserAssigned',
* 'SystemAssigned, UserAssigned', 'None'
* @member {object} [identity.userAssignedIdentities] The list of user
* identities associated with the cluster. The user identity dictionary key
* references will be ARM resource ids in the form:
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
*/
constructor() {
}
Expand Down Expand Up @@ -106,6 +122,14 @@ class ClusterCreateParametersExtended {
name: 'Composite',
className: 'ClusterCreateProperties'
}
},
identity: {
required: false,
serializedName: 'identity',
type: {
name: 'Composite',
className: 'ClusterIdentity'
}
}
}
}
Expand Down
95 changes: 95 additions & 0 deletions lib/services/hdInsightManagement/lib/models/clusterIdentity.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
/*
* 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';

/**
* Identity for the cluster.
*
*/
class ClusterIdentity {
/**
* Create a ClusterIdentity.
* @member {string} [principalId] The principal id of cluster identity. This
* property will only be provided for a system assigned identity.
* @member {string} [tenantId] The tenant id associated with the cluster.
* This property will only be provided for a system assigned identity.
* @member {string} [type] The type of identity used for the cluster. The
* type 'SystemAssigned, UserAssigned' includes both an implicitly created
* identity and a set of user assigned identities. Possible values include:
* 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None'
* @member {object} [userAssignedIdentities] The list of user identities
* associated with the cluster. The user identity dictionary key references
* will be ARM resource ids in the form:
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
*/
constructor() {
}

/**
* Defines the metadata of ClusterIdentity
*
* @returns {object} metadata of ClusterIdentity
*
*/
mapper() {
return {
required: false,
serializedName: 'ClusterIdentity',
type: {
name: 'Composite',
className: 'ClusterIdentity',
modelProperties: {
principalId: {
required: false,
readOnly: true,
serializedName: 'principalId',
type: {
name: 'String'
}
},
tenantId: {
required: false,
readOnly: true,
serializedName: 'tenantId',
type: {
name: 'String'
}
},
type: {
required: false,
serializedName: 'type',
type: {
name: 'Enum',
allowedValues: [ 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None' ]
}
},
userAssignedIdentities: {
required: false,
serializedName: 'userAssignedIdentities',
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'ClusterIdentityUserAssignedIdentitiesValueElementType',
type: {
name: 'Composite',
className: 'ClusterIdentityUserAssignedIdentitiesValue'
}
}
}
}
}
}
};
}
}

module.exports = ClusterIdentity;
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/*
* 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';

/**
* Class representing a ClusterIdentityUserAssignedIdentitiesValue.
*/
class ClusterIdentityUserAssignedIdentitiesValue {
/**
* Create a ClusterIdentityUserAssignedIdentitiesValue.
* @member {string} [principalId] The principal id of user assigned identity.
* @member {string} [clientId] The client id of user assigned identity.
*/
constructor() {
}

/**
* Defines the metadata of ClusterIdentityUserAssignedIdentitiesValue
*
* @returns {object} metadata of ClusterIdentityUserAssignedIdentitiesValue
*
*/
mapper() {
return {
required: false,
serializedName: 'ClusterIdentity_userAssignedIdentitiesValue',
type: {
name: 'Composite',
className: 'ClusterIdentityUserAssignedIdentitiesValue',
modelProperties: {
principalId: {
required: false,
readOnly: true,
serializedName: 'principalId',
type: {
name: 'String'
}
},
clientId: {
required: false,
readOnly: true,
serializedName: 'clientId',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = ClusterIdentityUserAssignedIdentitiesValue;
68 changes: 68 additions & 0 deletions lib/services/hdInsightManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,44 @@ export interface ClusterCreateProperties {
storageProfile?: StorageProfile;
}

/**
* @class
* Initializes a new instance of the ClusterIdentityUserAssignedIdentitiesValue class.
* @constructor
* @member {string} [principalId] The principal id of user assigned identity.
* @member {string} [clientId] The client id of user assigned identity.
*/
export interface ClusterIdentityUserAssignedIdentitiesValue {
readonly principalId?: string;
readonly clientId?: string;
}

/**
* @class
* Initializes a new instance of the ClusterIdentity class.
* @constructor
* Identity for the cluster.
*
* @member {string} [principalId] The principal id of cluster identity. This
* property will only be provided for a system assigned identity.
* @member {string} [tenantId] The tenant id associated with the cluster. This
* property will only be provided for a system assigned identity.
* @member {string} [type] The type of identity used for the cluster. The type
* 'SystemAssigned, UserAssigned' includes both an implicitly created identity
* and a set of user assigned identities. Possible values include:
* 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None'
* @member {object} [userAssignedIdentities] The list of user identities
* associated with the cluster. The user identity dictionary key references
* will be ARM resource ids in the form:
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
*/
export interface ClusterIdentity {
readonly principalId?: string;
readonly tenantId?: string;
type?: string;
userAssignedIdentities?: { [propertyName: string]: ClusterIdentityUserAssignedIdentitiesValue };
}

/**
* @class
* Initializes a new instance of the ClusterCreateParametersExtended class.
Expand Down Expand Up @@ -381,11 +419,26 @@ export interface ClusterCreateProperties {
* @member {object} [properties.storageProfile] The storage profile.
* @member {array} [properties.storageProfile.storageaccounts] The list of
* storage accounts in the cluster.
* @member {object} [identity] The identity of the cluster, if configured.
* @member {string} [identity.principalId] The principal id of cluster
* identity. This property will only be provided for a system assigned
* identity.
* @member {string} [identity.tenantId] The tenant id associated with the
* cluster. This property will only be provided for a system assigned identity.
* @member {string} [identity.type] The type of identity used for the cluster.
* The type 'SystemAssigned, UserAssigned' includes both an implicitly created
* identity and a set of user assigned identities. Possible values include:
* 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None'
* @member {object} [identity.userAssignedIdentities] The list of user
* identities associated with the cluster. The user identity dictionary key
* references will be ARM resource ids in the form:
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
*/
export interface ClusterCreateParametersExtended {
location?: string;
tags?: { [propertyName: string]: string };
properties?: ClusterCreateProperties;
identity?: ClusterIdentity;
}

/**
Expand Down Expand Up @@ -596,10 +649,25 @@ export interface TrackedResource extends Resource {
* @member {array} [properties.errors] The list of errors.
* @member {array} [properties.connectivityEndpoints] The list of connectivity
* endpoints.
* @member {object} [identity] The identity of the cluster, if configured.
* @member {string} [identity.principalId] The principal id of cluster
* identity. This property will only be provided for a system assigned
* identity.
* @member {string} [identity.tenantId] The tenant id associated with the
* cluster. This property will only be provided for a system assigned identity.
* @member {string} [identity.type] The type of identity used for the cluster.
* The type 'SystemAssigned, UserAssigned' includes both an implicitly created
* identity and a set of user assigned identities. Possible values include:
* 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None'
* @member {object} [identity.userAssignedIdentities] The list of user
* identities associated with the cluster. The user identity dictionary key
* references will be ARM resource ids in the form:
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
*/
export interface Cluster extends TrackedResource {
etag?: string;
properties?: ClusterGetProperties;
identity?: ClusterIdentity;
}

/**
Expand Down
2 changes: 2 additions & 0 deletions lib/services/hdInsightManagement/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ exports.ComputeProfile = require('./computeProfile');
exports.StorageAccount = require('./storageAccount');
exports.StorageProfile = require('./storageProfile');
exports.ClusterCreateProperties = require('./clusterCreateProperties');
exports.ClusterIdentityUserAssignedIdentitiesValue = require('./clusterIdentityUserAssignedIdentitiesValue');
exports.ClusterIdentity = require('./clusterIdentity');
exports.ClusterCreateParametersExtended = require('./clusterCreateParametersExtended');
exports.ClusterPatchParameters = require('./clusterPatchParameters');
exports.QuotaInfo = require('./quotaInfo');
Expand Down
Loading