From 9a47f3ddd54640d13afb6e4ec3019b2ba21efb74 Mon Sep 17 00:00:00 2001 From: colawwj <70128817+colawwj@users.noreply.github.com> Date: Mon, 5 Jul 2021 11:14:47 +0800 Subject: [PATCH] Appconfiguration release (#16190) * arm-appconfiguration-release * arm-appconfiguration-release --- .../arm-appconfiguration/LICENSE.txt | 2 +- .../arm-appconfiguration/README.md | 8 +- .../arm-appconfiguration/package.json | 4 +- .../arm-appconfiguration/rollup.config.js | 4 +- .../src/appConfigurationManagementClient.ts | 7 +- ...appConfigurationManagementClientContext.ts | 11 +- .../src/models/configurationStoresMappers.ts | 13 +- .../arm-appconfiguration/src/models/index.ts | 488 ++++++++++++++++-- .../src/models/keyValuesMappers.ts | 31 ++ .../src/models/mappers.ts | 462 +++++++++++++++-- .../src/models/operationsMappers.ts | 15 +- .../src/models/parameters.ts | 15 +- .../privateEndpointConnectionsMappers.ts | 13 +- .../src/models/privateLinkResourcesMappers.ts | 8 +- .../src/operations/configurationStores.ts | 129 ++--- .../src/operations/index.ts | 6 +- .../src/operations/keyValues.ts | 339 ++++++++++++ .../src/operations/operations.ts | 21 +- .../operations/privateEndpointConnections.ts | 18 +- .../src/operations/privateLinkResources.ts | 14 +- 20 files changed, 1355 insertions(+), 253 deletions(-) create mode 100644 sdk/appconfiguration/arm-appconfiguration/src/models/keyValuesMappers.ts create mode 100644 sdk/appconfiguration/arm-appconfiguration/src/operations/keyValues.ts diff --git a/sdk/appconfiguration/arm-appconfiguration/LICENSE.txt b/sdk/appconfiguration/arm-appconfiguration/LICENSE.txt index ea8fb1516028..2d3163745319 100644 --- a/sdk/appconfiguration/arm-appconfiguration/LICENSE.txt +++ b/sdk/appconfiguration/arm-appconfiguration/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 Microsoft +Copyright (c) 2021 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/appconfiguration/arm-appconfiguration/README.md b/sdk/appconfiguration/arm-appconfiguration/README.md index 69b807098b23..a429aeece428 100644 --- a/sdk/appconfiguration/arm-appconfiguration/README.md +++ b/sdk/appconfiguration/arm-appconfiguration/README.md @@ -1,11 +1,11 @@ ## Azure AppConfigurationManagementClient SDK for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AppConfigurationManagementClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for AppConfigurationManagementClient. ### Currently supported environments - [LTS versions of Node.js](https://nodejs.org/about/releases/) -- Latest versions of Safari, Chrome, Edge, and Firefox. +- Latest versions of Safari, Chrome, Edge and Firefox. ### Prerequisites @@ -21,7 +21,6 @@ Install both packages using the below command: ```bash npm install --save @azure/arm-appconfiguration @azure/identity ``` - > **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features. If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. @@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/ In the below samples, we pass the credential and the Azure subscription id to instantiate the client. Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. - #### nodejs - Authentication, client creation, and list configurationStores as an example written in JavaScript. ##### Sample code @@ -86,7 +84,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t const credential = new InteractiveBrowserCredential( { clientId: "", - tenantId: "" + tenant: "" }); const client = new Azure.ArmAppconfiguration.AppConfigurationManagementClient(creds, subscriptionId); const skipToken = "testskipToken"; diff --git a/sdk/appconfiguration/arm-appconfiguration/package.json b/sdk/appconfiguration/arm-appconfiguration/package.json index b7c97791c578..f88d369c650f 100644 --- a/sdk/appconfiguration/arm-appconfiguration/package.json +++ b/sdk/appconfiguration/arm-appconfiguration/package.json @@ -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.4.0", + "version": "2.0.0", "dependencies": { "@azure/ms-rest-azure-js": "^2.1.0", "@azure/ms-rest-js": "^2.2.0", @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appconfiguration/arm-appconfiguration", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/appconfiguration/arm-appconfiguration", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/appconfiguration/arm-appconfiguration/rollup.config.js b/sdk/appconfiguration/arm-appconfiguration/rollup.config.js index f2f46a79cc4c..7d64489e8bb3 100644 --- a/sdk/appconfiguration/arm-appconfiguration/rollup.config.js +++ b/sdk/appconfiguration/arm-appconfiguration/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClient.ts b/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClient.ts index b58eabc6d21f..9af478c242a3 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClient.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -22,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. @@ -40,6 +40,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); } } diff --git a/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClientContext.ts b/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClientContext.ts index 72641b89d50e..1da2220ec952 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClientContext.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -10,11 +9,11 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; -import { TokenCredential } from "@azure/core-auth"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-appconfiguration"; -const packageVersion = "1.4.0"; +const packageVersion = "2.0.0"; export class AppConfigurationManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials | TokenCredential; @@ -50,7 +49,7 @@ export class AppConfigurationManagementClientContext extends msRestAzure.AzureSe super(credentials, options); - this.apiVersion = '2020-06-01'; + this.apiVersion = '2021-03-01-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/models/configurationStoresMappers.ts b/sdk/appconfiguration/arm-appconfiguration/src/models/configurationStoresMappers.ts index d882c951bb98..332c2d807387 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/models/configurationStoresMappers.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/models/configurationStoresMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -9,22 +9,27 @@ export { ApiKey, ApiKeyListResult, + AzureEntityResource, BaseResource, ConfigurationStore, ConfigurationStoreListResult, ConfigurationStoreUpdateParameters, EncryptionProperties, - ErrorModel, + ErrorAdditionalInfo, + ErrorDetails, + ErrorResponse, KeyValue, KeyVaultProperties, - ListKeyValueParameters, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionReference, PrivateLinkServiceConnectionState, + ProxyResource, RegenerateKeyParameters, Resource, ResourceIdentity, Sku, + SystemData, + TrackedResource, UserIdentity } from "../models/mappers"; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/models/index.ts b/sdk/appconfiguration/arm-appconfiguration/src/models/index.ts index abd3af6a199f..7868061599f2 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/models/index.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -160,39 +160,82 @@ export interface Sku { } /** - * An Azure resource. + * Metadata pertaining to creation and last modification of the resource. + */ +export interface SystemData { + /** + * The identity that created the resource. + */ + createdBy?: string; + /** + * The type of identity that created the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + createdByType?: CreatedByType; + /** + * The timestamp of resource creation (UTC). + */ + createdAt?: Date; + /** + * The identity that last modified the resource. + */ + lastModifiedBy?: string; + /** + * The type of identity that last modified the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + lastModifiedByType?: CreatedByType; + /** + * The timestamp of resource last modification (UTC) + */ + lastModifiedAt?: Date; +} + +/** + * Common fields that are returned in the response for all Azure Resource Manager resources + * @summary Resource */ export interface Resource extends BaseResource { /** - * The resource ID. + * 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. + * 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. + * The type of the resource. E.g. "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 an Azure Resource Manager tracked top level resource which has + * 'tags' and a 'location' + * @summary Tracked Resource + */ +export interface TrackedResource extends Resource { /** - * The location of the resource. This cannot be changed after the resource is created. + * Resource tags. */ - location: string; + tags?: { [propertyName: string]: string }; /** - * The tags of the resource. + * The geo-location where the resource lives */ - tags?: { [propertyName: string]: string }; + location: string; } /** * The configuration store along with all resource properties. The Configuration Store will have * all information to begin utilizing it. */ -export interface ConfigurationStore extends Resource { +export interface ConfigurationStore extends TrackedResource { /** * The managed identity information, if configured. */ @@ -227,10 +270,18 @@ export interface ConfigurationStore extends Resource { * is enabled. Possible values include: 'Enabled', 'Disabled' */ publicNetworkAccess?: PublicNetworkAccess; + /** + * Disables all authentication methods other than AAD authentication. + */ + disableLocalAuth?: boolean; /** * The sku of the configuration store. */ sku: Sku; + /** + * Resource system metadata. + */ + systemData?: SystemData; } /** @@ -241,6 +292,10 @@ export interface ConfigurationStoreUpdateParameters { * The encryption settings of the configuration store. */ encryption?: EncryptionProperties; + /** + * Disables all authentication methods other than AAD authentication. + */ + disableLocalAuth?: boolean; /** * Control permission for data plane traffic coming from public networks while private endpoint * is enabled. Possible values include: 'Enabled', 'Disabled' @@ -339,23 +394,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. @@ -370,16 +426,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.** @@ -398,9 +452,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 }; } /** @@ -426,6 +479,105 @@ export interface OperationDefinitionDisplay { description?: string; } +/** + * Specifications of the Log for Azure Monitoring + */ +export interface LogSpecification { + /** + * Name of the log + */ + name?: string; + /** + * Localized friendly display name of the log + */ + displayName?: string; + /** + * Blob duration of the log + */ + blobDuration?: string; +} + +/** + * Specifications of the Dimension of metrics + */ +export interface MetricDimension { + /** + * Name of the dimension + */ + name?: string; + /** + * Localized friendly display name of the dimension + */ + displayName?: string; + /** + * Internal name of the dimension. + */ + internalName?: string; +} + +/** + * Specifications of the Metrics for Azure Monitoring + */ +export interface MetricSpecification { + /** + * Name of the metric + */ + name?: string; + /** + * Localized friendly display name of the metric + */ + displayName?: string; + /** + * Localized friendly description of the metric + */ + displayDescription?: string; + /** + * Unit that makes sense for the metric + */ + unit?: string; + /** + * Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. + */ + aggregationType?: string; + /** + * Internal metric name. + */ + internalMetricName?: string; + /** + * Dimensions of the metric + */ + dimensions?: MetricDimension[]; + /** + * Optional. If set to true, then zero will be returned for time duration where no metric is + * emitted/published. + */ + fillGapWithZero?: boolean; +} + +/** + * Service specification payload + */ +export interface ServiceSpecification { + /** + * Specifications of the Log for Azure Monitoring + */ + logSpecifications?: LogSpecification[]; + /** + * Specifications of the Metrics for Azure Monitoring + */ + metricSpecifications?: MetricSpecification[]; +} + +/** + * Extra Operation properties + */ +export interface OperationProperties { + /** + * Service specifications of the operation + */ + serviceSpecification?: ServiceSpecification; +} + /** * The definition of a configuration store operation. */ @@ -434,24 +586,70 @@ export interface OperationDefinition { * Operation name: {provider}/{resource}/{operation}. */ name?: string; + /** + * Indicates whether the operation is a data action + */ + isDataAction?: boolean; /** * The display information for the configuration store operation. */ display?: OperationDefinitionDisplay; + /** + * Origin of the operation + */ + origin?: string; + /** + * Properties of the operation + */ + properties?: OperationProperties; +} + +/** + * The resource management error additional info. + */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly info?: any; } /** - * 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; + /** + * The error additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** + * 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; } /** @@ -526,6 +724,26 @@ export interface PrivateLinkResource { readonly requiredZoneNames?: string[]; } +/** + * The resource model definition for a Azure Resource Manager proxy resource. It will not have tags + * and a location + * @summary Proxy Resource + */ +export interface ProxyResource extends Resource { +} + +/** + * The resource model definition for an Azure Resource Manager resource with an etag. + * @summary Entity Resource + */ +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. */ @@ -562,6 +780,42 @@ export interface ConfigurationStoresListKeysOptionalParams extends msRest.Reques skipToken?: string; } +/** + * Optional Parameters. + */ +export interface ConfigurationStoresListNextOptionalParams 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 ConfigurationStoresListByResourceGroupNextOptionalParams 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 ConfigurationStoresListKeysNextOptionalParams 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. */ @@ -574,6 +828,52 @@ export interface OperationsListOptionalParams extends msRest.RequestOptionsBase skipToken?: string; } +/** + * Optional Parameters. + */ +export interface OperationsListNextOptionalParams 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 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; +} + +/** + * Optional Parameters. + */ +export interface KeyValuesListByConfigurationStoreNextOptionalParams 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; +} + /** * An interface representing AppConfigurationManagementClientOptions. */ @@ -641,6 +941,18 @@ export interface PrivateLinkResourceListResult extends Array + */ +export interface KeyValueListResult extends Array { + /** + * 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, @@ -682,6 +994,14 @@ export type ActionsRequired = 'None' | 'Recreate'; */ export type PublicNetworkAccess = 'Enabled' | 'Disabled'; +/** + * Defines values for CreatedByType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * @readonly + * @enum {string} + */ +export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; + /** * Contains response data for the list operation. */ @@ -822,26 +1142,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. */ @@ -1161,3 +1461,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; + }; +}; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/models/keyValuesMappers.ts b/sdk/appconfiguration/arm-appconfiguration/src/models/keyValuesMappers.ts new file mode 100644 index 000000000000..db715a439cc4 --- /dev/null +++ b/sdk/appconfiguration/arm-appconfiguration/src/models/keyValuesMappers.ts @@ -0,0 +1,31 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + AzureEntityResource, + BaseResource, + ConfigurationStore, + EncryptionProperties, + ErrorAdditionalInfo, + ErrorDetails, + ErrorResponse, + KeyValue, + KeyValueListResult, + KeyVaultProperties, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionReference, + PrivateLinkServiceConnectionState, + ProxyResource, + Resource, + ResourceIdentity, + Sku, + SystemData, + TrackedResource, + UserIdentity +} from "../models/mappers"; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/models/mappers.ts b/sdk/appconfiguration/arm-appconfiguration/src/models/mappers.ts index 0cfebe6dbc46..bbbb2e1cc699 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/models/mappers.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -232,6 +232,52 @@ export const Sku: msRest.CompositeMapper = { } }; +export const SystemData: msRest.CompositeMapper = { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + modelProperties: { + createdBy: { + serializedName: "createdBy", + type: { + name: "String" + } + }, + createdByType: { + serializedName: "createdByType", + type: { + name: "String" + } + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String" + } + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String" + } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } + } + } + } +}; + export const Resource: msRest.CompositeMapper = { serializedName: "Resource", type: { @@ -258,14 +304,18 @@ export const Resource: msRest.CompositeMapper = { type: { name: "String" } - }, - location: { - required: true, - serializedName: "location", - type: { - name: "String" - } - }, + } + } + } +}; + +export const TrackedResource: msRest.CompositeMapper = { + serializedName: "TrackedResource", + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, tags: { serializedName: "tags", type: { @@ -276,6 +326,13 @@ export const Resource: msRest.CompositeMapper = { } } } + }, + location: { + required: true, + serializedName: "location", + type: { + name: "String" + } } } } @@ -287,7 +344,7 @@ export const ConfigurationStore: msRest.CompositeMapper = { name: "Composite", className: "ConfigurationStore", modelProperties: { - ...Resource.type.modelProperties, + ...TrackedResource.type.modelProperties, identity: { serializedName: "identity", type: { @@ -342,6 +399,12 @@ export const ConfigurationStore: msRest.CompositeMapper = { name: "String" } }, + disableLocalAuth: { + serializedName: "properties.disableLocalAuth", + type: { + name: "Boolean" + } + }, sku: { required: true, serializedName: "sku", @@ -349,6 +412,13 @@ export const ConfigurationStore: msRest.CompositeMapper = { name: "Composite", className: "Sku" } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } } } } @@ -367,6 +437,12 @@ export const ConfigurationStoreUpdateParameters: msRest.CompositeMapper = { className: "EncryptionProperties" } }, + disableLocalAuth: { + serializedName: "properties.disableLocalAuth", + type: { + name: "Boolean" + } + }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { @@ -527,87 +603,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: { @@ -656,6 +727,177 @@ export const OperationDefinitionDisplay: msRest.CompositeMapper = { } }; +export const LogSpecification: msRest.CompositeMapper = { + serializedName: "LogSpecification", + type: { + name: "Composite", + className: "LogSpecification", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + blobDuration: { + serializedName: "blobDuration", + type: { + name: "String" + } + } + } + } +}; + +export const MetricDimension: msRest.CompositeMapper = { + serializedName: "MetricDimension", + type: { + name: "Composite", + className: "MetricDimension", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + internalName: { + serializedName: "internalName", + type: { + name: "String" + } + } + } + } +}; + +export const MetricSpecification: msRest.CompositeMapper = { + serializedName: "MetricSpecification", + type: { + name: "Composite", + className: "MetricSpecification", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + displayDescription: { + serializedName: "displayDescription", + type: { + name: "String" + } + }, + unit: { + serializedName: "unit", + type: { + name: "String" + } + }, + aggregationType: { + serializedName: "aggregationType", + type: { + name: "String" + } + }, + internalMetricName: { + serializedName: "internalMetricName", + type: { + name: "String" + } + }, + dimensions: { + serializedName: "dimensions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricDimension" + } + } + } + }, + fillGapWithZero: { + serializedName: "fillGapWithZero", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ServiceSpecification: msRest.CompositeMapper = { + serializedName: "ServiceSpecification", + type: { + name: "Composite", + className: "ServiceSpecification", + modelProperties: { + logSpecifications: { + serializedName: "logSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LogSpecification" + } + } + } + }, + metricSpecifications: { + serializedName: "metricSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricSpecification" + } + } + } + } + } + } +}; + +export const OperationProperties: msRest.CompositeMapper = { + serializedName: "OperationProperties", + type: { + name: "Composite", + className: "OperationProperties", + modelProperties: { + serviceSpecification: { + serializedName: "serviceSpecification", + type: { + name: "Composite", + className: "ServiceSpecification" + } + } + } + } +}; + export const OperationDefinition: msRest.CompositeMapper = { serializedName: "OperationDefinition", type: { @@ -668,34 +910,109 @@ export const OperationDefinition: msRest.CompositeMapper = { name: "String" } }, + isDataAction: { + serializedName: "isDataAction", + type: { + name: "Boolean" + } + }, display: { serializedName: "display", type: { name: "Composite", className: "OperationDefinitionDisplay" } + }, + origin: { + serializedName: "origin", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "OperationProperties" + } } } } }; -export const ErrorModel: msRest.CompositeMapper = { - serializedName: "Error", +export const ErrorAdditionalInfo: msRest.CompositeMapper = { + serializedName: "ErrorAdditionalInfo", type: { name: "Composite", - className: "ErrorModel", + className: "ErrorAdditionalInfo", + modelProperties: { + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + info: { + readOnly: true, + serializedName: "info", + type: { + name: "Object" + } + } + } + } +}; + +export const ErrorDetails: msRest.CompositeMapper = { + serializedName: "ErrorDetails", + type: { + name: "Composite", + className: "ErrorDetails", modelProperties: { code: { + readOnly: true, serializedName: "code", type: { name: "String" } }, message: { + readOnly: true, serializedName: "message", type: { name: "String" } + }, + additionalInfo: { + readOnly: true, + serializedName: "additionalInfo", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" + } + } + } + } + } + } +}; + +export const ErrorResponse: msRest.CompositeMapper = { + serializedName: "ErrorResponse", + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetails" + } } } } @@ -816,6 +1133,35 @@ export const PrivateLinkResource: msRest.CompositeMapper = { } }; +export const ProxyResource: msRest.CompositeMapper = { + serializedName: "ProxyResource", + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + +export const AzureEntityResource: msRest.CompositeMapper = { + serializedName: "AzureEntityResource", + type: { + name: "Composite", + className: "AzureEntityResource", + modelProperties: { + ...Resource.type.modelProperties, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + export const ConfigurationStoreListResult: msRest.CompositeMapper = { serializedName: "ConfigurationStoreListResult", type: { @@ -955,3 +1301,31 @@ export const PrivateLinkResourceListResult: msRest.CompositeMapper = { } } }; + +export const KeyValueListResult: msRest.CompositeMapper = { + serializedName: "KeyValueListResult", + type: { + name: "Composite", + className: "KeyValueListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "KeyValue" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/models/operationsMappers.ts b/sdk/appconfiguration/arm-appconfiguration/src/models/operationsMappers.ts index 0c4c87228850..ecfb8d258472 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/models/operationsMappers.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/models/operationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,9 +8,16 @@ export { CheckNameAvailabilityParameters, - ErrorModel, + ErrorAdditionalInfo, + ErrorDetails, + ErrorResponse, + LogSpecification, + MetricDimension, + MetricSpecification, NameAvailabilityStatus, OperationDefinition, OperationDefinitionDisplay, - OperationDefinitionListResult + OperationDefinitionListResult, + OperationProperties, + ServiceSpecification } from "../models/mappers"; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/models/parameters.ts b/sdk/appconfiguration/arm-appconfiguration/src/models/parameters.ts index d098b569c352..56be9fbd1210 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/models/parameters.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -55,6 +54,16 @@ export const groupName: msRest.OperationURLParameter = { } } }; +export const keyValueName: msRest.OperationURLParameter = { + parameterPath: "keyValueName", + mapper: { + required: true, + serializedName: "keyValueName", + type: { + name: "String" + } + } +}; export const nextPageLink: msRest.OperationURLParameter = { parameterPath: "nextPageLink", mapper: { diff --git a/sdk/appconfiguration/arm-appconfiguration/src/models/privateEndpointConnectionsMappers.ts b/sdk/appconfiguration/arm-appconfiguration/src/models/privateEndpointConnectionsMappers.ts index 1f38807af79d..64a38f22a5ff 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/models/privateEndpointConnectionsMappers.ts @@ -1,24 +1,31 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + AzureEntityResource, BaseResource, ConfigurationStore, EncryptionProperties, - ErrorModel, + ErrorAdditionalInfo, + ErrorDetails, + ErrorResponse, + KeyValue, KeyVaultProperties, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionListResult, PrivateEndpointConnectionReference, PrivateLinkServiceConnectionState, + ProxyResource, Resource, ResourceIdentity, Sku, + SystemData, + TrackedResource, UserIdentity } from "../models/mappers"; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/models/privateLinkResourcesMappers.ts b/sdk/appconfiguration/arm-appconfiguration/src/models/privateLinkResourcesMappers.ts index 618676a35470..e97da441aa19 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/models/privateLinkResourcesMappers.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/models/privateLinkResourcesMappers.ts @@ -1,13 +1,15 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - ErrorModel, + ErrorAdditionalInfo, + ErrorDetails, + ErrorResponse, PrivateLinkResource, PrivateLinkResourceListResult } from "../models/mappers"; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/configurationStores.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/configurationStores.ts index 668188671197..0b448b6c12c8 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/operations/configurationStores.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/operations/configurationStores.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -217,42 +216,6 @@ export class ConfigurationStores { callback) as Promise; } - /** - * Lists a configuration store key-value. - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param configStoreName The name of the configuration store. - * @param listKeyValueParameters The parameters for retrieving a key-value. - * @param [options] The optional parameters - * @returns Promise - */ - listKeyValue(resourceGroupName: string, configStoreName: string, listKeyValueParameters: Models.ListKeyValueParameters, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param configStoreName The name of the configuration store. - * @param listKeyValueParameters The parameters for retrieving a key-value. - * @param callback The callback - */ - listKeyValue(resourceGroupName: string, configStoreName: string, listKeyValueParameters: Models.ListKeyValueParameters, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param configStoreName The name of the configuration store. - * @param listKeyValueParameters The parameters for retrieving a key-value. - * @param options The optional parameters - * @param callback The callback - */ - listKeyValue(resourceGroupName: string, configStoreName: string, listKeyValueParameters: Models.ListKeyValueParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listKeyValue(resourceGroupName: string, configStoreName: string, listKeyValueParameters: Models.ListKeyValueParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - configStoreName, - listKeyValueParameters, - options - }, - listKeyValueOperationSpec, - callback) as Promise; - } - /** * Creates a configuration store with the specified parameters. * @param resourceGroupName The name of the resource group to which the container registry belongs. @@ -317,7 +280,7 @@ export class ConfigurationStores { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.ConfigurationStoresListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -328,8 +291,8 @@ export class ConfigurationStores { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.ConfigurationStoresListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ConfigurationStoresListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -345,7 +308,7 @@ export class ConfigurationStores { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByResourceGroupNext(nextPageLink: string, options?: Models.ConfigurationStoresListByResourceGroupNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -356,8 +319,8 @@ export class ConfigurationStores { * @param options The optional parameters * @param callback The callback */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext(nextPageLink: string, options: Models.ConfigurationStoresListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: Models.ConfigurationStoresListByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -373,7 +336,7 @@ export class ConfigurationStores { * @param [options] The optional parameters * @returns Promise */ - listKeysNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listKeysNext(nextPageLink: string, options?: Models.ConfigurationStoresListKeysNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -384,8 +347,8 @@ export class ConfigurationStores { * @param options The optional parameters * @param callback The callback */ - listKeysNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listKeysNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listKeysNext(nextPageLink: string, options: Models.ConfigurationStoresListKeysNextOptionalParams, callback: msRest.ServiceCallback): void; + listKeysNext(nextPageLink: string, options?: Models.ConfigurationStoresListKeysNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -416,7 +379,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ConfigurationStoreListResult }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -441,7 +404,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ConfigurationStoreListResult }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -466,7 +429,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ConfigurationStore }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -474,7 +437,7 @@ const getOperationSpec: msRest.OperationSpec = { const listKeysOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/ListKeys", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/listKeys", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -492,7 +455,7 @@ const listKeysOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ApiKeyListResult }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -500,7 +463,7 @@ const listKeysOperationSpec: msRest.OperationSpec = { const regenerateKeyOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/RegenerateKey", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/regenerateKey", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -524,39 +487,7 @@ const regenerateKeyOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ApiKey }, default: { - bodyMapper: Mappers.ErrorModel - } - }, - serializer -}; - -const listKeyValueOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/listKeyValue", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.configStoreName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "listKeyValueParameters", - mapper: { - ...Mappers.ListKeyValueParameters, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.KeyValue - }, - default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -591,7 +522,7 @@ const beginCreateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ConfigurationStore }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -616,7 +547,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -651,7 +582,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ConfigurationStore }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -664,6 +595,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken + ], headerParameters: [ Parameters.acceptLanguage ], @@ -672,7 +607,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ConfigurationStoreListResult }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -685,6 +620,10 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken + ], headerParameters: [ Parameters.acceptLanguage ], @@ -693,7 +632,7 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ConfigurationStoreListResult }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -706,6 +645,10 @@ const listKeysNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken + ], headerParameters: [ Parameters.acceptLanguage ], @@ -714,7 +657,7 @@ const listKeysNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ApiKeyListResult }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/index.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/index.ts index f578b9c95302..c4b4fff227d1 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/operations/index.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/operations/index.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -12,3 +11,4 @@ export * from "./configurationStores"; export * from "./operations"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; +export * from "./keyValues"; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/keyValues.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/keyValues.ts new file mode 100644 index 000000000000..2550d0fe5650 --- /dev/null +++ b/sdk/appconfiguration/arm-appconfiguration/src/operations/keyValues.ts @@ -0,0 +1,339 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/keyValuesMappers"; +import * as Parameters from "../models/parameters"; +import { AppConfigurationManagementClientContext } from "../appConfigurationManagementClientContext"; + +/** Class representing a KeyValues. */ +export class KeyValues { + private readonly client: AppConfigurationManagementClientContext; + + /** + * Create a KeyValues. + * @param {AppConfigurationManagementClientContext} client Reference to the service client. + */ + constructor(client: AppConfigurationManagementClientContext) { + this.client = client; + } + + /** + * Lists the key-values for a given configuration store. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param configStoreName The name of the configuration store. + * @param [options] The optional parameters + * @returns Promise + */ + listByConfigurationStore(resourceGroupName: string, configStoreName: string, options?: Models.KeyValuesListByConfigurationStoreOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param configStoreName The name of the configuration store. + * @param callback The callback + */ + listByConfigurationStore(resourceGroupName: string, configStoreName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param configStoreName The name of the configuration store. + * @param options The optional parameters + * @param callback The callback + */ + listByConfigurationStore(resourceGroupName: string, configStoreName: string, options: Models.KeyValuesListByConfigurationStoreOptionalParams, callback: msRest.ServiceCallback): void; + listByConfigurationStore(resourceGroupName: string, configStoreName: string, options?: Models.KeyValuesListByConfigurationStoreOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + configStoreName, + options + }, + listByConfigurationStoreOperationSpec, + callback) as Promise; + } + + /** + * Gets the properties of the specified key-value. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param configStoreName The name of the configuration store. + * @param keyValueName Identifier of key and label combination. Key and label are joined by $ + * character. Label is optional. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, configStoreName: string, keyValueName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param configStoreName The name of the configuration store. + * @param keyValueName Identifier of key and label combination. Key and label are joined by $ + * character. Label is optional. + * @param callback The callback + */ + get(resourceGroupName: string, configStoreName: string, keyValueName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param configStoreName The name of the configuration store. + * @param keyValueName Identifier of key and label combination. Key and label are joined by $ + * character. Label is optional. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, configStoreName: string, keyValueName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, configStoreName: string, keyValueName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + configStoreName, + keyValueName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates a key-value. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param configStoreName The name of the configuration store. + * @param keyValueName Identifier of key and label combination. Key and label are joined by $ + * character. Label is optional. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, configStoreName: string, keyValueName: string, options?: Models.KeyValuesCreateOrUpdateOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param configStoreName The name of the configuration store. + * @param keyValueName Identifier of key and label combination. Key and label are joined by $ + * character. Label is optional. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, configStoreName: string, keyValueName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param configStoreName The name of the configuration store. + * @param keyValueName Identifier of key and label combination. Key and label are joined by $ + * character. Label is optional. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, configStoreName: string, keyValueName: string, options: Models.KeyValuesCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, configStoreName: string, keyValueName: string, options?: Models.KeyValuesCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + configStoreName, + keyValueName, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Deletes a key-value. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param configStoreName The name of the configuration store. + * @param keyValueName Identifier of key and label combination. Key and label are joined by $ + * character. Label is optional. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, configStoreName: string, keyValueName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,configStoreName,keyValueName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Deletes a key-value. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param configStoreName The name of the configuration store. + * @param keyValueName Identifier of key and label combination. Key and label are joined by $ + * character. Label is optional. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, configStoreName: string, keyValueName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + configStoreName, + keyValueName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Lists the key-values for a given configuration store. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByConfigurationStoreNext(nextPageLink: string, options?: Models.KeyValuesListByConfigurationStoreNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByConfigurationStoreNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByConfigurationStoreNext(nextPageLink: string, options: Models.KeyValuesListByConfigurationStoreNextOptionalParams, callback: msRest.ServiceCallback): void; + listByConfigurationStoreNext(nextPageLink: string, options?: Models.KeyValuesListByConfigurationStoreNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByConfigurationStoreNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByConfigurationStoreOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.configStoreName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.KeyValueListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.configStoreName, + Parameters.keyValueName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.KeyValue + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.configStoreName, + Parameters.keyValueName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "keyValueParameters" + ], + mapper: Mappers.KeyValue + }, + responses: { + 200: { + bodyMapper: Mappers.KeyValue + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.configStoreName, + Parameters.keyValueName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByConfigurationStoreNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.KeyValueListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/operations.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/operations.ts index 725134a5871b..72dab969b316 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/operations/operations.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -87,7 +86,7 @@ export class Operations { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.OperationsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -98,8 +97,8 @@ export class Operations { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.OperationsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.OperationsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -136,7 +135,7 @@ const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.NameAvailabilityStatus }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -157,7 +156,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.OperationDefinitionListResult }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -170,6 +169,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken + ], headerParameters: [ Parameters.acceptLanguage ], @@ -178,7 +181,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.OperationDefinitionListResult }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/privateEndpointConnections.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/privateEndpointConnections.ts index 1e14a2cb5512..3f2a7934a20f 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/operations/privateEndpointConnections.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/operations/privateEndpointConnections.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -216,7 +215,7 @@ const listByConfigurationStoreOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PrivateEndpointConnectionListResult }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -242,7 +241,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PrivateEndpointConnection }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -278,7 +277,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PrivateEndpointConnection }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -304,7 +303,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -317,6 +316,9 @@ const listByConfigurationStoreNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -325,7 +327,7 @@ const listByConfigurationStoreNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PrivateEndpointConnectionListResult }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/privateLinkResources.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/privateLinkResources.ts index 190cce104e87..752cc8b81464 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/operations/privateLinkResources.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/operations/privateLinkResources.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -144,7 +143,7 @@ const listByConfigurationStoreOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PrivateLinkResourceListResult }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -170,7 +169,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PrivateLinkResource }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -183,6 +182,9 @@ const listByConfigurationStoreNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -191,7 +193,7 @@ const listByConfigurationStoreNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PrivateLinkResourceListResult }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer