Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-appconfiguration] Microsoft.AppConfiguration - Correctness + Lint #2254

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading