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

[AutoPR @azure/arm-cosmosdb] [CosmosDB] Add PrivateEndpointConnections to DatabaseAccountGetResult #1090

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
217 changes: 111 additions & 106 deletions sdk/cosmosdb/arm-cosmosdb/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,87 @@ export interface VirtualNetworkRule {
ignoreMissingVNetServiceEndpoint?: boolean;
}

/**
* Private endpoint which the connection belongs to.
*/
export interface PrivateEndpointProperty {
/**
* Resource id of the private endpoint.
*/
id?: string;
}

/**
* Connection State of the Private Endpoint Connection.
*/
export interface PrivateLinkServiceConnectionStateProperty {
/**
* The private link service connection status.
*/
status?: string;
/**
* Any action that is required beyond basic workflow (approve/ reject/ disconnect)
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly actionsRequired?: string;
/**
* The private link service connection description.
*/
description?: string;
}

/**
* An interface representing Resource.
*/
export interface Resource extends BaseResource {
/**
* Fully qualified resource Id for the resource. Ex -
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
* **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. Ex- Microsoft.Compute/virtualMachines or
* Microsoft.Storage/storageAccounts.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly type?: string;
}

/**
* The resource model definition for a ARM proxy resource. It will have everything other than
* required location and tags
*/
export interface ProxyResource extends Resource {
}

/**
* A private endpoint connection
*/
export interface PrivateEndpointConnection extends ProxyResource {
/**
* Private endpoint which the connection belongs to.
*/
privateEndpoint?: PrivateEndpointProperty;
/**
* Connection State of the Private Endpoint Connection.
*/
privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty;
/**
* Group id of the private endpoint.
*/
groupId?: string;
/**
* Provisioning state of the private endpoint.
*/
provisioningState?: string;
}

/**
* The core properties of ARM resources.
*/
Expand Down Expand Up @@ -211,6 +292,11 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties {
* List of Virtual Network ACL rules configured for the Cosmos DB account.
*/
virtualNetworkRules?: VirtualNetworkRule[];
/**
* List of Private Endpoint Connections configured for the Cosmos DB account.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly privateEndpointConnections?: PrivateEndpointConnection[];
/**
* Enables the account to write in multiple locations
*/
Expand Down Expand Up @@ -2194,6 +2280,31 @@ export interface PartitionMetric extends Metric {
readonly partitionKeyRangeId?: string;
}

/**
* The resource model definition for a ARM tracked top level resource
*/
export interface TrackedResource extends Resource {
/**
* Resource tags.
*/
tags?: { [propertyName: string]: string };
/**
* The geo-location where the resource lives
*/
location: string;
}

/**
* The resource model definition for a Azure Resource Manager resource with an etag.
*/
export interface AzureEntityResource extends Resource {
/**
* Resource Etag.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly etag?: string;
}

/**
* Parameters to create a notebook workspace resource
*/
Expand Down Expand Up @@ -2254,112 +2365,6 @@ export interface PrivateLinkResource extends ARMProxyResource {
readonly requiredZoneNames?: string[];
}

/**
* Private endpoint which the connection belongs to.
*/
export interface PrivateEndpointProperty {
/**
* Resource id of the private endpoint.
*/
id?: string;
}

/**
* Connection State of the Private Endpoint Connection.
*/
export interface PrivateLinkServiceConnectionStateProperty {
/**
* The private link service connection status.
*/
status?: string;
/**
* The private link service connection description.
*/
description?: string;
/**
* Any action that is required beyond basic workflow (approve/ reject/ disconnect)
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly actionsRequired?: string;
}

/**
* An interface representing Resource.
*/
export interface Resource extends BaseResource {
/**
* Fully qualified resource Id for the resource. Ex -
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
* **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. Ex- Microsoft.Compute/virtualMachines or
* Microsoft.Storage/storageAccounts.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly type?: string;
}

/**
* The resource model definition for a ARM proxy resource. It will have everything other than
* required location and tags
*/
export interface ProxyResource extends Resource {
}

/**
* A private endpoint connection
*/
export interface PrivateEndpointConnection extends ProxyResource {
/**
* Private endpoint which the connection belongs to.
*/
privateEndpoint?: PrivateEndpointProperty;
/**
* Connection State of the Private Endpoint Connection.
*/
privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty;
/**
* Group id of the private endpoint.
*/
groupId?: string;
/**
* Provisioning state of the private endpoint.
*/
provisioningState?: string;
}

/**
* The resource model definition for a ARM tracked top level resource
*/
export interface TrackedResource extends Resource {
/**
* Resource tags.
*/
tags?: { [propertyName: string]: string };
/**
* The geo-location where the resource lives
*/
location: string;
}

/**
* The resource model definition for a Azure Resource Manager resource with an etag.
*/
export interface AzureEntityResource extends Resource {
/**
* Resource Etag.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly etag?: string;
}

/**
* Optional Parameters.
*/
Expand Down
Loading