Skip to content

Commit

Permalink
Generated from 35968c07303db8c640c93c184c33d2db0b2f20d8
Browse files Browse the repository at this point in the history
Added readonly to private endpoint connections.
  • Loading branch information
SDK Automation committed Apr 30, 2020
1 parent 9afbdaa commit 63c05bf
Show file tree
Hide file tree
Showing 4 changed files with 221 additions and 76 deletions.
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
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export {
PrivateEndpoint,
PrivateEndpointConnection,
PrivateEndpointConnectionListResult,
PrivateEndpointConnectionReference,
PrivateLinkServiceConnectionState,
Resource,
ResourceIdentity,
Expand Down

0 comments on commit 63c05bf

Please sign in to comment.