Skip to content

Commit

Permalink
Generated from 0e5a9dba02e521c7f89a7364a3560cfee8c4f9ec
Browse files Browse the repository at this point in the history
  • Loading branch information
SDK Automation committed Oct 22, 2020
1 parent e1fbd0a commit 86c12e5
Show file tree
Hide file tree
Showing 16 changed files with 633 additions and 186 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class AppConfigurationManagementClient extends AppConfigurationManagementClientC
operations: operations.Operations;
privateEndpointConnections: operations.PrivateEndpointConnections;
privateLinkResources: operations.PrivateLinkResources;
keyValues: operations.KeyValues;

/**
* Initializes a new instance of the AppConfigurationManagementClient class.
Expand All @@ -34,6 +35,7 @@ class AppConfigurationManagementClient extends AppConfigurationManagementClientC
this.operations = new operations.Operations(this);
this.privateEndpointConnections = new operations.PrivateEndpointConnections(this);
this.privateLinkResources = new operations.PrivateLinkResources(this);
this.keyValues = new operations.KeyValues(this);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,25 +37,25 @@ export class AppConfigurationManagementClientContext extends msRestAzure.AzureSe
if (!options) {
options = {};
}
if (!options.userAgent) {
if(!options.userAgent) {
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
}

super(credentials, options);

this.apiVersion = '2020-06-01';
this.apiVersion = '2020-07-01-preview';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
this.requestContentType = "application/json; charset=utf-8";
this.credentials = credentials;
this.subscriptionId = subscriptionId;

if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
this.acceptLanguage = options.acceptLanguage;
}
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ export {
ConfigurationStoreListResult,
ConfigurationStoreUpdateParameters,
EncryptionProperties,
ErrorModel,
ErrorDetails,
ErrorResponse,
KeyValue,
KeyVaultProperties,
ListKeyValueParameters,
PrivateEndpoint,
PrivateEndpointConnection,
PrivateEndpointConnectionReference,
Expand Down
196 changes: 148 additions & 48 deletions sdk/appconfiguration/arm-appconfiguration/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,6 @@ export interface ConfigurationStoreUpdateParameters {
* The encryption settings of the configuration store.
*/
encryption?: EncryptionProperties;
/**
* Control permission for data plane traffic coming from public networks while private endpoint
* is enabled. Possible values include: 'Enabled', 'Disabled'
*/
publicNetworkAccess?: PublicNetworkAccess;
/**
* The managed identity information for the configuration store.
*/
Expand Down Expand Up @@ -339,23 +334,24 @@ export interface RegenerateKeyParameters {
}

/**
* The parameters used to list a configuration store key-value
* The key-value resource along with all resource properties.
*/
export interface ListKeyValueParameters {
export interface KeyValue extends BaseResource {
/**
* The resource ID.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly id?: string;
/**
* The key to retrieve.
* The name of the resource.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
key: string;
readonly name?: string;
/**
* The label of the key.
* The type of the resource.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
label?: string;
}

/**
* The result of a request to retrieve a key-value from the specified configuration store.
*/
export interface KeyValue {
readonly type?: string;
/**
* The primary identifier of a key-value.
* The key is used in unison with the label to uniquely identify a key-value.
Expand All @@ -370,16 +366,14 @@ export interface KeyValue {
readonly label?: string;
/**
* The value of the key-value.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly value?: string;
value?: string;
/**
* The content type of the key-value's value.
* Providing a proper content-type can enable transformations of values when they are retrieved
* by applications.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly contentType?: string;
contentType?: string;
/**
* An ETag indicating the state of a key-value within a configuration store.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
Expand All @@ -398,9 +392,8 @@ export interface KeyValue {
readonly locked?: boolean;
/**
* A dictionary of tags that can help identify what a key-value may be applicable for.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly tags?: { [propertyName: string]: string };
tags?: { [propertyName: string]: string };
}

/**
Expand Down Expand Up @@ -441,17 +434,30 @@ export interface OperationDefinition {
}

/**
* AppConfiguration error object.
* The details of the error.
*/
export interface ErrorModel {
export interface ErrorDetails {
/**
* Error code.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
code?: string;
readonly code?: string;
/**
* Error message.
* Error message indicating why the operation failed.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
message?: string;
readonly message?: string;
}

/**
* Error response indicates that the service is not able to process the incoming request. The
* reason is provided in the error message.
*/
export interface ErrorResponse {
/**
* The details of the error.
*/
error?: ErrorDetails;
}

/**
Expand Down Expand Up @@ -574,6 +580,28 @@ export interface OperationsListOptionalParams extends msRest.RequestOptionsBase
skipToken?: string;
}

/**
* Optional Parameters.
*/
export interface KeyValuesListByConfigurationStoreOptionalParams extends msRest.RequestOptionsBase {
/**
* A skip token is used to continue retrieving items after an operation returns a partial result.
* If a previous response contains a nextLink element, the value of the nextLink element will
* include a skipToken parameter that specifies a starting point to use for subsequent calls.
*/
skipToken?: string;
}

/**
* Optional Parameters.
*/
export interface KeyValuesCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase {
/**
* The parameters for creating a key-value.
*/
keyValueParameters?: KeyValue;
}

/**
* An interface representing AppConfigurationManagementClientOptions.
*/
Expand Down Expand Up @@ -641,6 +669,18 @@ export interface PrivateLinkResourceListResult extends Array<PrivateLinkResource
nextLink?: string;
}

/**
* @interface
* The result of a request to list key-values.
* @extends Array<KeyValue>
*/
export interface KeyValueListResult extends Array<KeyValue> {
/**
* The URI that can be used to request the next set of paged results.
*/
nextLink?: string;
}

/**
* Defines values for IdentityType.
* Possible values include: 'None', 'SystemAssigned', 'UserAssigned', 'SystemAssigned,
Expand Down Expand Up @@ -822,26 +862,6 @@ export type ConfigurationStoresRegenerateKeyResponse = ApiKey & {
};
};

/**
* Contains response data for the listKeyValue operation.
*/
export type ConfigurationStoresListKeyValueResponse = KeyValue & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: KeyValue;
};
};

/**
* Contains response data for the beginCreate operation.
*/
Expand Down Expand Up @@ -1161,3 +1181,83 @@ export type PrivateLinkResourcesListByConfigurationStoreNextResponse = PrivateLi
parsedBody: PrivateLinkResourceListResult;
};
};

/**
* Contains response data for the listByConfigurationStore operation.
*/
export type KeyValuesListByConfigurationStoreResponse = KeyValueListResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: KeyValueListResult;
};
};

/**
* Contains response data for the get operation.
*/
export type KeyValuesGetResponse = KeyValue & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: KeyValue;
};
};

/**
* Contains response data for the createOrUpdate operation.
*/
export type KeyValuesCreateOrUpdateResponse = KeyValue & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: KeyValue;
};
};

/**
* Contains response data for the listByConfigurationStoreNext operation.
*/
export type KeyValuesListByConfigurationStoreNextResponse = KeyValueListResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: KeyValueListResult;
};
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export {
BaseResource,
ConfigurationStore,
EncryptionProperties,
ErrorDetails,
ErrorResponse,
KeyValue,
KeyValueListResult,
KeyVaultProperties,
PrivateEndpoint,
PrivateEndpointConnection,
PrivateEndpointConnectionReference,
PrivateLinkServiceConnectionState,
Resource,
ResourceIdentity,
Sku,
UserIdentity
} from "../models/mappers";
Loading

0 comments on commit 86c12e5

Please sign in to comment.