Skip to content

Commit

Permalink
Generated from b28a73b9e36bb16c04df99ba0ae8972e6580dd66
Browse files Browse the repository at this point in the history
Merge remote-tracking branch 'source/master' into appconfig/keyvalues
  • Loading branch information
SDK Automation committed Aug 25, 2020
1 parent 14af578 commit a9108cc
Show file tree
Hide file tree
Showing 13 changed files with 248 additions and 121 deletions.
2 changes: 1 addition & 1 deletion sdk/appconfiguration/arm-appconfiguration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@azure/arm-appconfiguration",
"author": "Microsoft Corporation",
"description": "AppConfigurationManagementClient Library with typescript type definitions for node.js and browser.",
"version": "1.2.0",
"version": "1.3.0",
"dependencies": {
"@azure/ms-rest-azure-js": "^2.0.1",
"@azure/ms-rest-js": "^2.0.4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";

const packageName = "@azure/arm-appconfiguration";
const packageVersion = "1.2.0";
const packageVersion = "1.3.0";

export class AppConfigurationManagementClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
Expand Down Expand Up @@ -44,7 +44,7 @@ export class AppConfigurationManagementClientContext extends msRestAzure.AzureSe

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";
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
96 changes: 66 additions & 30 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 key to retrieve.
* The resource ID.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
key: string;
readonly id?: string;
/**
* The label of the key.
* The name 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 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 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 @@ -562,6 +568,16 @@ export interface ConfigurationStoresListKeysOptionalParams extends msRest.Reques
skipToken?: string;
}

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

/**
* Optional Parameters.
*/
Expand Down Expand Up @@ -823,9 +839,29 @@ export type ConfigurationStoresRegenerateKeyResponse = ApiKey & {
};

/**
* Contains response data for the listKeyValue operation.
* Contains response data for the getKeyValue operation.
*/
export type ConfigurationStoresGetKeyValueResponse = 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 createKeyValue operation.
*/
export type ConfigurationStoresListKeyValueResponse = KeyValue & {
export type ConfigurationStoresCreateKeyValueResponse = KeyValue & {
/**
* The underlying HTTP response.
*/
Expand Down
86 changes: 47 additions & 39 deletions sdk/appconfiguration/arm-appconfiguration/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,12 +367,6 @@ export const ConfigurationStoreUpdateParameters: msRest.CompositeMapper = {
className: "EncryptionProperties"
}
},
publicNetworkAccess: {
serializedName: "properties.publicNetworkAccess",
type: {
name: "String"
}
},
identity: {
serializedName: "identity",
type: {
Expand Down Expand Up @@ -527,87 +521,82 @@ export const RegenerateKeyParameters: msRest.CompositeMapper = {
}
};

export const ListKeyValueParameters: msRest.CompositeMapper = {
serializedName: "ListKeyValueParameters",
export const KeyValue: msRest.CompositeMapper = {
serializedName: "KeyValue",
type: {
name: "Composite",
className: "ListKeyValueParameters",
className: "KeyValue",
modelProperties: {
key: {
required: true,
serializedName: "key",
id: {
readOnly: true,
serializedName: "id",
type: {
name: "String"
}
},
label: {
serializedName: "label",
name: {
readOnly: true,
serializedName: "name",
type: {
name: "String"
}
}
}
}
};

export const KeyValue: msRest.CompositeMapper = {
serializedName: "KeyValue",
type: {
name: "Composite",
className: "KeyValue",
modelProperties: {
},
type: {
readOnly: true,
serializedName: "type",
type: {
name: "String"
}
},
key: {
readOnly: true,
serializedName: "key",
serializedName: "properties.key",
type: {
name: "String"
}
},
label: {
readOnly: true,
serializedName: "label",
serializedName: "properties.label",
type: {
name: "String"
}
},
value: {
readOnly: true,
serializedName: "value",
serializedName: "properties.value",
type: {
name: "String"
}
},
contentType: {
readOnly: true,
serializedName: "contentType",
serializedName: "properties.contentType",
type: {
name: "String"
}
},
eTag: {
readOnly: true,
serializedName: "eTag",
serializedName: "properties.eTag",
type: {
name: "String"
}
},
lastModified: {
readOnly: true,
serializedName: "lastModified",
serializedName: "properties.lastModified",
type: {
name: "DateTime"
}
},
locked: {
readOnly: true,
serializedName: "locked",
serializedName: "properties.locked",
type: {
name: "Boolean"
}
},
tags: {
readOnly: true,
serializedName: "tags",
serializedName: "properties.tags",
type: {
name: "Dictionary",
value: {
Expand Down Expand Up @@ -679,19 +668,21 @@ export const OperationDefinition: msRest.CompositeMapper = {
}
};

export const ErrorModel: msRest.CompositeMapper = {
serializedName: "Error",
export const ErrorDetails: msRest.CompositeMapper = {
serializedName: "ErrorDetails",
type: {
name: "Composite",
className: "ErrorModel",
className: "ErrorDetails",
modelProperties: {
code: {
readOnly: true,
serializedName: "code",
type: {
name: "String"
}
},
message: {
readOnly: true,
serializedName: "message",
type: {
name: "String"
Expand All @@ -701,6 +692,23 @@ export const ErrorModel: msRest.CompositeMapper = {
}
};

export const ErrorResponse: msRest.CompositeMapper = {
serializedName: "ErrorResponse",
type: {
name: "Composite",
className: "ErrorResponse",
modelProperties: {
error: {
serializedName: "error",
type: {
name: "Composite",
className: "ErrorDetails"
}
}
}
}
};

export const PrivateEndpointConnection: msRest.CompositeMapper = {
serializedName: "PrivateEndpointConnection",
type: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

export {
CheckNameAvailabilityParameters,
ErrorModel,
ErrorDetails,
ErrorResponse,
NameAvailabilityStatus,
OperationDefinition,
OperationDefinitionDisplay,
Expand Down
Loading

0 comments on commit a9108cc

Please sign in to comment.