diff --git a/sdk/appconfiguration/arm-appconfiguration/src/models/index.ts b/sdk/appconfiguration/arm-appconfiguration/src/models/index.ts index 82cb8ec26c64..f9065a282792 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/models/index.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/models/index.ts @@ -82,6 +82,72 @@ 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 private endpoint connection + */ +export interface PrivateEndpointConnection extends BaseResource { + /** + * The resource ID. + */ + 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 +216,11 @@ export interface ConfigurationStore extends Resource { * The encryption settings of the configuration store. */ encryption?: EncryptionProperties; + /** + * private endpoint connections of configuration store + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly privateEndpointConnections?: PrivateEndpointConnection[]; /** * The sku of the configuration store. */ @@ -372,73 +443,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 - */ -export interface PrivateEndpointConnection extends BaseResource { - /** - * 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; -} - /** * A resource that supports private link capabilities. */ diff --git a/sdk/appconfiguration/arm-appconfiguration/src/models/mappers.ts b/sdk/appconfiguration/arm-appconfiguration/src/models/mappers.ts index 3daad8785b7c..90060843f245 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/models/mappers.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/models/mappers.ts @@ -117,6 +117,103 @@ 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 PrivateEndpointConnection: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnection", + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { + id: { + 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 +322,19 @@ export const ConfigurationStore: msRest.CompositeMapper = { className: "EncryptionProperties" } }, + privateEndpointConnections: { + readOnly: true, + serializedName: "properties.privateEndpointConnections", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + }, sku: { required: true, serializedName: "sku", @@ -578,104 +688,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: { - name: "Composite", - className: "PrivateEndpointConnection", - 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 PrivateLinkResource: msRest.CompositeMapper = { serializedName: "PrivateLinkResource", type: {