Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release for appconfiguration 551 #9832

Merged
merged 2 commits into from
Jul 2, 2020
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
2 changes: 1 addition & 1 deletion sdk/appconfiguration/arm-appconfiguration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@azure/arm-appconfiguration",
"author": "Microsoft Corporation",
"description": "AppConfigurationManagementClient Library with typescript type definitions for node.js and browser.",
"version": "1.1.0",
"version": "1.2.0",
"dependencies": {
"@azure/ms-rest-azure-js": "^2.0.1",
"@azure/ms-rest-js": "^2.0.4",
Expand Down
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.1.0";
const packageVersion = "1.2.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-11-01-preview';
this.apiVersion = '2020-06-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 @@ -20,6 +20,7 @@ export {
ListKeyValueParameters,
PrivateEndpoint,
PrivateEndpointConnection,
PrivateEndpointConnectionReference,
PrivateLinkServiceConnectionState,
RegenerateKeyParameters,
Resource,
Expand Down
121 changes: 90 additions & 31 deletions sdk/appconfiguration/arm-appconfiguration/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,73 @@ export interface EncryptionProperties {
keyVaultProperties?: KeyVaultProperties;
}

/**
* Private endpoint which a connection belongs to.
*/
export interface PrivateEndpoint {
/**
* The resource Id for private endpoint
*/
id?: string;
}

/**
* The state of a private link service connection.
*/
export interface PrivateLinkServiceConnectionState {
/**
* The private link service connection status. Possible values include: 'Pending', 'Approved',
* 'Rejected', 'Disconnected'
*/
status?: ConnectionStatus;
/**
* The private link service connection description.
*/
description?: string;
/**
* Any action that is required beyond basic workflow (approve/ reject/ disconnect). Possible
* values include: 'None', 'Recreate'
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly actionsRequired?: ActionsRequired;
}

/**
* A reference to a related private endpoint connection.
*/
export interface PrivateEndpointConnectionReference {
/**
* The resource ID.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly id?: string;
/**
* The name of the resource.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly name?: string;
/**
* The type of the resource.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly type?: string;
/**
* The provisioning status of the private endpoint connection. Possible values include:
* 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly provisioningState?: ProvisioningState;
/**
* The resource of private endpoint.
*/
privateEndpoint?: PrivateEndpoint;
/**
* A collection of information about the state of the connection between service consumer and
* provider.
*/
privateLinkServiceConnectionState: PrivateLinkServiceConnectionState;
}

/**
* Describes a configuration store SKU.
*/
Expand Down Expand Up @@ -150,6 +217,16 @@ export interface ConfigurationStore extends Resource {
* The encryption settings of the configuration store.
*/
encryption?: EncryptionProperties;
/**
* The list of private endpoint connections that are set up for this resource.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly privateEndpointConnections?: PrivateEndpointConnectionReference[];
/**
* Control permission for data plane traffic coming from public networks while private endpoint
* is enabled. Possible values include: 'Enabled', 'Disabled'
*/
publicNetworkAccess?: PublicNetworkAccess;
/**
* The sku of the configuration store.
*/
Expand Down Expand Up @@ -372,37 +449,6 @@ export interface ErrorModel {
message?: string;
}

/**
* Private endpoint which a connection belongs to.
*/
export interface PrivateEndpoint {
/**
* The resource Id for private endpoint
*/
id?: string;
}

/**
* The state of a private link service connection.
*/
export interface PrivateLinkServiceConnectionState {
/**
* The private link service connection status. Possible values include: 'Pending', 'Approved',
* 'Rejected', 'Disconnected'
*/
status?: ConnectionStatus;
/**
* The private link service connection description.
*/
description?: string;
/**
* Any action that is required beyond basic workflow (approve/ reject/ disconnect). Possible
* values include: 'None', 'Recreate'
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly actionsRequired?: ActionsRequired;
}

/**
* A private endpoint connection
*/
Expand Down Expand Up @@ -468,6 +514,11 @@ export interface PrivateLinkResource {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly requiredMembers?: string[];
/**
* The list of required DNS zone names of the private link resource.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly requiredZoneNames?: string[];
}

/**
Expand Down Expand Up @@ -618,6 +669,14 @@ export type ConnectionStatus = 'Pending' | 'Approved' | 'Rejected' | 'Disconnect
*/
export type ActionsRequired = 'None' | 'Recreate';

/**
* Defines values for PublicNetworkAccess.
* Possible values include: 'Enabled', 'Disabled'
* @readonly
* @enum {string}
*/
export type PublicNetworkAccess = 'Enabled' | 'Disabled';

/**
* Contains response data for the list operation.
*/
Expand Down
174 changes: 129 additions & 45 deletions sdk/appconfiguration/arm-appconfiguration/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,104 @@ export const EncryptionProperties: msRest.CompositeMapper = {
}
};

export const PrivateEndpoint: msRest.CompositeMapper = {
serializedName: "PrivateEndpoint",
type: {
name: "Composite",
className: "PrivateEndpoint",
modelProperties: {
id: {
serializedName: "id",
type: {
name: "String"
}
}
}
}
};

export const PrivateLinkServiceConnectionState: msRest.CompositeMapper = {
serializedName: "PrivateLinkServiceConnectionState",
type: {
name: "Composite",
className: "PrivateLinkServiceConnectionState",
modelProperties: {
status: {
serializedName: "status",
type: {
name: "String"
}
},
description: {
serializedName: "description",
type: {
name: "String"
}
},
actionsRequired: {
readOnly: true,
serializedName: "actionsRequired",
type: {
name: "String"
}
}
}
}
};

export const PrivateEndpointConnectionReference: msRest.CompositeMapper = {
serializedName: "PrivateEndpointConnectionReference",
type: {
name: "Composite",
className: "PrivateEndpointConnectionReference",
modelProperties: {
id: {
readOnly: true,
serializedName: "id",
type: {
name: "String"
}
},
name: {
readOnly: true,
serializedName: "name",
type: {
name: "String"
}
},
type: {
readOnly: true,
serializedName: "type",
type: {
name: "String"
}
},
provisioningState: {
readOnly: true,
serializedName: "properties.provisioningState",
type: {
name: "String"
}
},
privateEndpoint: {
serializedName: "properties.privateEndpoint",
type: {
name: "Composite",
className: "PrivateEndpoint"
}
},
privateLinkServiceConnectionState: {
required: true,
serializedName: "properties.privateLinkServiceConnectionState",
type: {
name: "Composite",
className: "PrivateLinkServiceConnectionState"
}
}
}
}
};

export const Sku: msRest.CompositeMapper = {
serializedName: "Sku",
type: {
Expand Down Expand Up @@ -225,6 +323,25 @@ export const ConfigurationStore: msRest.CompositeMapper = {
className: "EncryptionProperties"
}
},
privateEndpointConnections: {
readOnly: true,
serializedName: "properties.privateEndpointConnections",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "PrivateEndpointConnectionReference"
}
}
}
},
publicNetworkAccess: {
serializedName: "properties.publicNetworkAccess",
type: {
name: "String"
}
},
sku: {
required: true,
serializedName: "sku",
Expand Down Expand Up @@ -578,51 +695,6 @@ export const ErrorModel: msRest.CompositeMapper = {
}
};

export const PrivateEndpoint: msRest.CompositeMapper = {
serializedName: "PrivateEndpoint",
type: {
name: "Composite",
className: "PrivateEndpoint",
modelProperties: {
id: {
serializedName: "id",
type: {
name: "String"
}
}
}
}
};

export const PrivateLinkServiceConnectionState: msRest.CompositeMapper = {
serializedName: "PrivateLinkServiceConnectionState",
type: {
name: "Composite",
className: "PrivateLinkServiceConnectionState",
modelProperties: {
status: {
serializedName: "status",
type: {
name: "String"
}
},
description: {
serializedName: "description",
type: {
name: "String"
}
},
actionsRequired: {
readOnly: true,
serializedName: "actionsRequired",
type: {
name: "String"
}
}
}
}
};

export const PrivateEndpointConnection: msRest.CompositeMapper = {
serializedName: "PrivateEndpointConnection",
type: {
Expand Down Expand Up @@ -721,6 +793,18 @@ export const PrivateLinkResource: msRest.CompositeMapper = {
}
}
}
},
requiredZoneNames: {
readOnly: true,
serializedName: "properties.requiredZoneNames",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
}
}
}
Expand Down
Loading