Skip to content

Commit

Permalink
CodeGen from PR 12659 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
add query parameter to Namedvalue and Certificate (Azure#12659)

* add filter flag

* rephrase

Co-authored-by: Kacie Kang <jikang@microsoft.com>
  • Loading branch information
SDKAuto and KacieKK committed Feb 4, 2021
1 parent 2d4f843 commit fccfb38
Show file tree
Hide file tree
Showing 149 changed files with 12,722 additions and 3,374 deletions.
2 changes: 1 addition & 1 deletion sdk/apimanagement/arm-apimanagement/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 4 additions & 5 deletions sdk/apimanagement/arm-apimanagement/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm install @azure/arm-apimanagement

### How to use

#### nodejs - Authentication, client creation and listByService api as an example written in TypeScript.
#### nodejs - client creation and listByService api as an example written in TypeScript.

##### Install @azure/ms-rest-nodeauth

Expand All @@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0"

##### Sample code

While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
```typescript
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
import { ApiManagementClient, ApiManagementModels, ApiManagementMappers } from "@azure/arm-apimanagement";
const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
const { ApiManagementClient } = require("@azure/arm-apimanagement");
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];

msRestNodeAuth.interactiveLogin().then((creds) => {
Expand Down
4 changes: 2 additions & 2 deletions sdk/apimanagement/arm-apimanagement/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
17 changes: 14 additions & 3 deletions sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -37,6 +36,9 @@ class ApiManagementClient extends ApiManagementClientContext {
backend: operations.Backend;
cache: operations.Cache;
certificate: operations.Certificate;
contentType: operations.ContentType;
contentItem: operations.ContentItem;
deletedServices: operations.DeletedServices;
apiManagementOperations: operations.ApiManagementOperations;
apiManagementServiceSkus: operations.ApiManagementServiceSkus;
apiManagementService: operations.ApiManagementService;
Expand All @@ -58,6 +60,8 @@ class ApiManagementClient extends ApiManagementClientContext {
openIdConnectProvider: operations.OpenIdConnectProvider;
policy: operations.Policy;
policyDescription: operations.PolicyDescription;
portalRevision: operations.PortalRevision;
portalSettings: operations.PortalSettings;
signInSettings: operations.SignInSettings;
signUpSettings: operations.SignUpSettings;
delegationSettings: operations.DelegationSettings;
Expand All @@ -70,6 +74,7 @@ class ApiManagementClient extends ApiManagementClientContext {
quotaByPeriodKeys: operations.QuotaByPeriodKeys;
region: operations.Region;
reports: operations.Reports;
tenantSettings: operations.TenantSettings;
subscription: operations.Subscription;
tagResource: operations.TagResource;
tenantAccess: operations.TenantAccess;
Expand Down Expand Up @@ -111,6 +116,9 @@ class ApiManagementClient extends ApiManagementClientContext {
this.backend = new operations.Backend(this);
this.cache = new operations.Cache(this);
this.certificate = new operations.Certificate(this);
this.contentType = new operations.ContentType(this);
this.contentItem = new operations.ContentItem(this);
this.deletedServices = new operations.DeletedServices(this);
this.apiManagementOperations = new operations.ApiManagementOperations(this);
this.apiManagementServiceSkus = new operations.ApiManagementServiceSkus(this);
this.apiManagementService = new operations.ApiManagementService(this);
Expand All @@ -132,6 +140,8 @@ class ApiManagementClient extends ApiManagementClientContext {
this.openIdConnectProvider = new operations.OpenIdConnectProvider(this);
this.policy = new operations.Policy(this);
this.policyDescription = new operations.PolicyDescription(this);
this.portalRevision = new operations.PortalRevision(this);
this.portalSettings = new operations.PortalSettings(this);
this.signInSettings = new operations.SignInSettings(this);
this.signUpSettings = new operations.SignUpSettings(this);
this.delegationSettings = new operations.DelegationSettings(this);
Expand All @@ -144,6 +154,7 @@ class ApiManagementClient extends ApiManagementClientContext {
this.quotaByPeriodKeys = new operations.QuotaByPeriodKeys(this);
this.region = new operations.Region(this);
this.reports = new operations.Reports(this);
this.tenantSettings = new operations.TenantSettings(this);
this.subscription = new operations.Subscription(this);
this.tagResource = new operations.TagResource(this);
this.tenantAccess = new operations.TenantAccess(this);
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -45,7 +44,7 @@ export class ApiManagementClientContext extends msRestAzure.AzureServiceClient {

super(credentials, options);

this.apiVersion = '2019-12-01';
this.apiVersion = '2020-06-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
@@ -1,17 +1,19 @@
/*
* 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 {
AccessInformationContract,
AdditionalLocation,
ApiContract,
ApiDiagnosticCreateOrUpdateHeaders,
ApiDiagnosticGetEntityTagHeaders,
ApiDiagnosticGetHeaders,
ApiDiagnosticUpdateHeaders,
ApiManagementServiceIdentity,
ApiManagementServiceResource,
ApiManagementServiceSkuProperties,
Expand Down Expand Up @@ -39,6 +41,11 @@ export {
CertificateConfiguration,
CertificateContract,
CertificateInformation,
ContentItemContract,
ContentTypeContract,
DataMasking,
DataMaskingEntity,
DeletedServiceContract,
DiagnosticCollection,
DiagnosticContract,
EmailTemplateContract,
Expand All @@ -56,6 +63,9 @@ export {
IssueAttachmentContract,
IssueCommentContract,
IssueContract,
KeyVaultContractCreateProperties,
KeyVaultContractProperties,
KeyVaultLastAccessStatusContractProperties,
LoggerContract,
NamedValueContract,
NamedValueCreateContract,
Expand All @@ -69,6 +79,8 @@ export {
PolicyContract,
PolicyDescriptionContract,
PortalDelegationSettings,
PortalRevisionContract,
PortalSettingsContract,
PortalSigninSettings,
PortalSignupSettings,
ProductContract,
Expand All @@ -88,6 +100,7 @@ export {
SubscriptionsDelegationSettingsProperties,
TagContract,
TagDescriptionContract,
TenantSettingsContract,
TermsOfServiceProperties,
TokenBodyParameterContract,
UserContract,
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
/*
* 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 {
AccessInformationContract,
AdditionalLocation,
ApiContract,
ApiIssueAttachmentCreateOrUpdateHeaders,
Expand Down Expand Up @@ -39,6 +40,11 @@ export {
CertificateConfiguration,
CertificateContract,
CertificateInformation,
ContentItemContract,
ContentTypeContract,
DataMasking,
DataMaskingEntity,
DeletedServiceContract,
DiagnosticContract,
EmailTemplateContract,
EmailTemplateParametersContractProperties,
Expand All @@ -56,6 +62,9 @@ export {
IssueAttachmentContract,
IssueCommentContract,
IssueContract,
KeyVaultContractCreateProperties,
KeyVaultContractProperties,
KeyVaultLastAccessStatusContractProperties,
LoggerContract,
NamedValueContract,
NamedValueCreateContract,
Expand All @@ -69,6 +78,8 @@ export {
PolicyContract,
PolicyDescriptionContract,
PortalDelegationSettings,
PortalRevisionContract,
PortalSettingsContract,
PortalSigninSettings,
PortalSignupSettings,
ProductContract,
Expand All @@ -88,6 +99,7 @@ export {
SubscriptionsDelegationSettingsProperties,
TagContract,
TagDescriptionContract,
TenantSettingsContract,
TermsOfServiceProperties,
TokenBodyParameterContract,
UserContract,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
/*
* 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 {
AccessInformationContract,
AdditionalLocation,
ApiContract,
ApiIssueCommentCreateOrUpdateHeaders,
Expand Down Expand Up @@ -39,6 +40,11 @@ export {
CertificateConfiguration,
CertificateContract,
CertificateInformation,
ContentItemContract,
ContentTypeContract,
DataMasking,
DataMaskingEntity,
DeletedServiceContract,
DiagnosticContract,
EmailTemplateContract,
EmailTemplateParametersContractProperties,
Expand All @@ -56,6 +62,9 @@ export {
IssueCommentCollection,
IssueCommentContract,
IssueContract,
KeyVaultContractCreateProperties,
KeyVaultContractProperties,
KeyVaultLastAccessStatusContractProperties,
LoggerContract,
NamedValueContract,
NamedValueCreateContract,
Expand All @@ -69,6 +78,8 @@ export {
PolicyContract,
PolicyDescriptionContract,
PortalDelegationSettings,
PortalRevisionContract,
PortalSettingsContract,
PortalSigninSettings,
PortalSignupSettings,
ProductContract,
Expand All @@ -88,6 +99,7 @@ export {
SubscriptionsDelegationSettingsProperties,
TagContract,
TagDescriptionContract,
TenantSettingsContract,
TermsOfServiceProperties,
TokenBodyParameterContract,
UserContract,
Expand Down
17 changes: 15 additions & 2 deletions sdk/apimanagement/arm-apimanagement/src/models/apiIssueMappers.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
/*
* 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 {
AccessInformationContract,
AdditionalLocation,
ApiContract,
ApiIssueCreateOrUpdateHeaders,
ApiIssueGetEntityTagHeaders,
ApiIssueGetHeaders,
ApiIssueUpdateHeaders,
ApiManagementServiceIdentity,
ApiManagementServiceResource,
ApiManagementServiceSkuProperties,
Expand Down Expand Up @@ -39,6 +41,11 @@ export {
CertificateConfiguration,
CertificateContract,
CertificateInformation,
ContentItemContract,
ContentTypeContract,
DataMasking,
DataMaskingEntity,
DeletedServiceContract,
DiagnosticContract,
EmailTemplateContract,
EmailTemplateParametersContractProperties,
Expand All @@ -57,6 +64,9 @@ export {
IssueCommentContract,
IssueContract,
IssueUpdateContract,
KeyVaultContractCreateProperties,
KeyVaultContractProperties,
KeyVaultLastAccessStatusContractProperties,
LoggerContract,
NamedValueContract,
NamedValueCreateContract,
Expand All @@ -70,6 +80,8 @@ export {
PolicyContract,
PolicyDescriptionContract,
PortalDelegationSettings,
PortalRevisionContract,
PortalSettingsContract,
PortalSigninSettings,
PortalSignupSettings,
ProductContract,
Expand All @@ -89,6 +101,7 @@ export {
SubscriptionsDelegationSettingsProperties,
TagContract,
TagDescriptionContract,
TenantSettingsContract,
TermsOfServiceProperties,
TokenBodyParameterContract,
UserContract,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
/*
* 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 {
CloudError,
ErrorFieldContract,
ErrorResponse,
Operation,
OperationDisplay,
OperationListResult
Expand Down
Loading

0 comments on commit fccfb38

Please sign in to comment.