Skip to content
Closed
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
2 changes: 1 addition & 1 deletion sdk/appconfiguration/arm-appconfiguration/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2019 Microsoft
Copyright (c) 2020 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion sdk/appconfiguration/arm-appconfiguration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to

- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fappconfiguration%2Farm-appconfiguration%2FREADME.png)
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/appconfiguration/arm-appconfiguration/README.png)
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";

const packageName = "@azure/arm-appconfiguration";
const packageVersion = "1.0.0";
const packageVersion = "1.1.0";

export class AppConfigurationManagementClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
Expand Down Expand Up @@ -44,7 +44,7 @@ export class AppConfigurationManagementClientContext extends msRestAzure.AzureSe

super(credentials, options);

this.apiVersion = '2019-02-01-preview';
this.apiVersion = '2019-10-01';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@ export {
KeyValue,
ListKeyValueParameters,
RegenerateKeyParameters,
Resource
Resource,
ResourceIdentity,
Sku,
UserIdentity
} from "../models/mappers";
82 changes: 82 additions & 0 deletions sdk/appconfiguration/arm-appconfiguration/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,63 @@ import * as msRest from "@azure/ms-rest-js";

export { BaseResource, CloudError };

/**
* An interface representing UserIdentity.
*/
export interface UserIdentity {
/**
* The principal ID of the user-assigned identity.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly principalId?: string;
/**
* The client ID of the user-assigned identity.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly clientId?: string;
}

/**
* An interface representing ResourceIdentity.
*/
export interface ResourceIdentity {
/**
* The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an
* implicitly created identity and a set of user-assigned identities. The type 'None' will remove
* any identities. Possible values include: 'None', 'SystemAssigned', 'UserAssigned',
* 'SystemAssigned, UserAssigned'
*/
type?: IdentityType;
/**
* The list of user-assigned identities associated with the resource. The user-assigned identity
* dictionary keys will be ARM resource ids in the form:
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
*/
userAssignedIdentities?: { [propertyName: string]: UserIdentity };
/**
* The principal id of the identity. This property will only be provided for a system-assigned
* identity.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly principalId?: string;
/**
* The tenant id associated with the resource's identity. This property will only be provided for
* a system-assigned identity.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly tenantId?: string;
}

/**
* Describes a configuration store SKU.
*/
export interface Sku {
/**
* The SKU name of the configuration store.
*/
name: string;
}

/**
* An Azure resource.
*/
Expand Down Expand Up @@ -45,6 +102,10 @@ export interface Resource extends BaseResource {
* all information to begin utilizing it.
*/
export interface ConfigurationStore extends Resource {
/**
* The managed identity information, if configured.
*/
identity?: ResourceIdentity;
/**
* The provisioning state of the configuration store. Possible values include: 'Creating',
* 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
Expand All @@ -61,6 +122,10 @@ export interface ConfigurationStore extends Resource {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly endpoint?: string;
/**
* The sku of the configuration store.
*/
sku: Sku;
}

/**
Expand All @@ -71,6 +136,14 @@ export interface ConfigurationStoreUpdateParameters {
* The properties for updating a configuration store.
*/
properties?: any;
/**
* The managed identity information for the configuration store.
*/
identity?: ResourceIdentity;
/**
* The SKU of the configuration store.
*/
sku?: Sku;
/**
* The ARM resource tags.
*/
Expand Down Expand Up @@ -362,6 +435,15 @@ export interface OperationDefinitionListResult extends Array<OperationDefinition
nextLink?: string;
}

/**
* Defines values for IdentityType.
* Possible values include: 'None', 'SystemAssigned', 'UserAssigned', 'SystemAssigned,
* UserAssigned'
* @readonly
* @enum {string}
*/
export type IdentityType = 'None' | 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned, UserAssigned';

/**
* Defines values for ProvisioningState.
* Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
Expand Down
112 changes: 112 additions & 0 deletions sdk/appconfiguration/arm-appconfiguration/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,89 @@ import * as msRest from "@azure/ms-rest-js";
export const CloudError = CloudErrorMapper;
export const BaseResource = BaseResourceMapper;

export const UserIdentity: msRest.CompositeMapper = {
serializedName: "UserIdentity",
type: {
name: "Composite",
className: "UserIdentity",
modelProperties: {
principalId: {
readOnly: true,
serializedName: "principalId",
type: {
name: "String"
}
},
clientId: {
readOnly: true,
serializedName: "clientId",
type: {
name: "String"
}
}
}
}
};

export const ResourceIdentity: msRest.CompositeMapper = {
serializedName: "ResourceIdentity",
type: {
name: "Composite",
className: "ResourceIdentity",
modelProperties: {
type: {
serializedName: "type",
type: {
name: "String"
}
},
userAssignedIdentities: {
serializedName: "userAssignedIdentities",
type: {
name: "Dictionary",
value: {
type: {
name: "Composite",
className: "UserIdentity"
}
}
}
},
principalId: {
readOnly: true,
serializedName: "principalId",
type: {
name: "String"
}
},
tenantId: {
readOnly: true,
serializedName: "tenantId",
type: {
name: "String"
}
}
}
}
};

export const Sku: msRest.CompositeMapper = {
serializedName: "Sku",
type: {
name: "Composite",
className: "Sku",
modelProperties: {
name: {
required: true,
serializedName: "name",
type: {
name: "String"
}
}
}
}
};

export const Resource: msRest.CompositeMapper = {
serializedName: "Resource",
type: {
Expand Down Expand Up @@ -68,6 +151,13 @@ export const ConfigurationStore: msRest.CompositeMapper = {
className: "ConfigurationStore",
modelProperties: {
...Resource.type.modelProperties,
identity: {
serializedName: "identity",
type: {
name: "Composite",
className: "ResourceIdentity"
}
},
provisioningState: {
readOnly: true,
serializedName: "properties.provisioningState",
Expand All @@ -88,6 +178,14 @@ export const ConfigurationStore: msRest.CompositeMapper = {
type: {
name: "String"
}
},
sku: {
required: true,
serializedName: "sku",
type: {
name: "Composite",
className: "Sku"
}
}
}
}
Expand All @@ -105,6 +203,20 @@ export const ConfigurationStoreUpdateParameters: msRest.CompositeMapper = {
name: "Object"
}
},
identity: {
serializedName: "identity",
type: {
name: "Composite",
className: "ResourceIdentity"
}
},
sku: {
serializedName: "sku",
type: {
name: "Composite",
className: "Sku"
}
},
tags: {
serializedName: "tags",
type: {
Expand Down