Skip to content
Open
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
138 changes: 71 additions & 67 deletions sdk/appconfiguration/arm-appconfiguration/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
*/
Expand Down
208 changes: 110 additions & 98 deletions sdk/appconfiguration/arm-appconfiguration/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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: {
Expand Down