From 63c05bff18c7ee36aceb0dc73ca97bf4098933e0 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Thu, 30 Apr 2020 17:03:52 +0000 Subject: [PATCH] Generated from 35968c07303db8c640c93c184c33d2db0b2f20d8 Added readonly to private endpoint connections. --- .../src/models/configurationStoresMappers.ts | 1 + .../arm-appconfiguration/src/models/index.ts | 121 ++++++++---- .../src/models/mappers.ts | 174 +++++++++++++----- .../privateEndpointConnectionsMappers.ts | 1 + 4 files changed, 221 insertions(+), 76 deletions(-) diff --git a/sdk/appconfiguration/arm-appconfiguration/src/models/configurationStoresMappers.ts b/sdk/appconfiguration/arm-appconfiguration/src/models/configurationStoresMappers.ts index d13ed89e5d7b..d882c951bb98 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/models/configurationStoresMappers.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/models/configurationStoresMappers.ts @@ -20,6 +20,7 @@ export { ListKeyValueParameters, PrivateEndpoint, PrivateEndpointConnection, + PrivateEndpointConnectionReference, PrivateLinkServiceConnectionState, RegenerateKeyParameters, Resource, diff --git a/sdk/appconfiguration/arm-appconfiguration/src/models/index.ts b/sdk/appconfiguration/arm-appconfiguration/src/models/index.ts index 82cb8ec26c64..02142e069518 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/models/index.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/models/index.ts @@ -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. */ @@ -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. */ @@ -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 */ @@ -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[]; } /** @@ -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. */ diff --git a/sdk/appconfiguration/arm-appconfiguration/src/models/mappers.ts b/sdk/appconfiguration/arm-appconfiguration/src/models/mappers.ts index 3daad8785b7c..b27668a47927 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/models/mappers.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/models/mappers.ts @@ -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: { @@ -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", @@ -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: { @@ -721,6 +793,18 @@ export const PrivateLinkResource: msRest.CompositeMapper = { } } } + }, + requiredZoneNames: { + readOnly: true, + serializedName: "properties.requiredZoneNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } diff --git a/sdk/appconfiguration/arm-appconfiguration/src/models/privateEndpointConnectionsMappers.ts b/sdk/appconfiguration/arm-appconfiguration/src/models/privateEndpointConnectionsMappers.ts index ef40f7aeed04..1f38807af79d 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/models/privateEndpointConnectionsMappers.ts @@ -15,6 +15,7 @@ export { PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionListResult, + PrivateEndpointConnectionReference, PrivateLinkServiceConnectionState, Resource, ResourceIdentity,