Skip to content

Commit d5c9c03

Browse files
author
SDKAuto
committed
CodeGen from PR 13718 in Azure/azure-rest-api-specs
Merge e555055006b24ccd0481c739014edf726df9e881 into 6a38cb16662cd02a3659665f9242d5ce011e032e
1 parent b32066c commit d5c9c03

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+14112
-1164
lines changed

sdk/cdn/arm-cdn/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2020 Microsoft
3+
Copyright (c) 2021 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/cdn/arm-cdn/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ npm install @azure/arm-cdn
1515

1616
### How to use
1717

18-
#### nodejs - Authentication, client creation and list profiles as an example written in TypeScript.
18+
#### nodejs - client creation and list profiles as an example written in TypeScript.
1919

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

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

2727
##### Sample code
2828

29+
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
2930
```typescript
30-
import * as msRest from "@azure/ms-rest-js";
31-
import * as msRestAzure from "@azure/ms-rest-azure-js";
32-
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
33-
import { CdnManagementClient, CdnManagementModels, CdnManagementMappers } from "@azure/arm-cdn";
31+
const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
32+
const { CdnManagementClient } = require("@azure/arm-cdn");
3433
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
3534

3635
msRestNodeAuth.interactiveLogin().then((creds) => {

sdk/cdn/arm-cdn/rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const config = {
2121
"@azure/ms-rest-azure-js": "msRestAzure"
2222
},
2323
banner: `/*
24-
* Copyright (c) Microsoft Corporation. All rights reserved.
25-
* Licensed under the MIT License. See License.txt in the project root for license information.
24+
* Copyright (c) Microsoft Corporation.
25+
* Licensed under the MIT License.
2626
*
2727
* Code generated by Microsoft (R) AutoRest Code Generator.
2828
* Changes may cause incorrect behavior and will be lost if the code is regenerated.

sdk/cdn/arm-cdn/src/cdnManagementClient.ts

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for
4-
* license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
54
*
65
* Code generated by Microsoft (R) AutoRest Code Generator.
76
* Changes may cause incorrect behavior and will be lost if the code is
@@ -26,6 +25,18 @@ class CdnManagementClient extends CdnManagementClientContext {
2625
resourceUsage: operations.ResourceUsageOperations;
2726
operations: operations.Operations;
2827
edgeNodes: operations.EdgeNodes;
28+
aFDProfiles: operations.AFDProfiles;
29+
aFDCustomDomains: operations.AFDCustomDomains;
30+
aFDEndpoints: operations.AFDEndpoints;
31+
aFDOriginGroups: operations.AFDOriginGroups;
32+
aFDOrigins: operations.AFDOrigins;
33+
routes: operations.Routes;
34+
ruleSets: operations.RuleSets;
35+
rules: operations.Rules;
36+
securityPolicies: operations.SecurityPolicies;
37+
secrets: operations.Secrets;
38+
validate: operations.Validate;
39+
logAnalytics: operations.LogAnalytics;
2940
policies: operations.Policies;
3041
managedRuleSets: operations.ManagedRuleSets;
3142

@@ -45,6 +56,18 @@ class CdnManagementClient extends CdnManagementClientContext {
4556
this.resourceUsage = new operations.ResourceUsageOperations(this);
4657
this.operations = new operations.Operations(this);
4758
this.edgeNodes = new operations.EdgeNodes(this);
59+
this.aFDProfiles = new operations.AFDProfiles(this);
60+
this.aFDCustomDomains = new operations.AFDCustomDomains(this);
61+
this.aFDEndpoints = new operations.AFDEndpoints(this);
62+
this.aFDOriginGroups = new operations.AFDOriginGroups(this);
63+
this.aFDOrigins = new operations.AFDOrigins(this);
64+
this.routes = new operations.Routes(this);
65+
this.ruleSets = new operations.RuleSets(this);
66+
this.rules = new operations.Rules(this);
67+
this.securityPolicies = new operations.SecurityPolicies(this);
68+
this.secrets = new operations.Secrets(this);
69+
this.validate = new operations.Validate(this);
70+
this.logAnalytics = new operations.LogAnalytics(this);
4871
this.policies = new operations.Policies(this);
4972
this.managedRuleSets = new operations.ManagedRuleSets(this);
5073
}

sdk/cdn/arm-cdn/src/cdnManagementClientContext.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for
4-
* license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
54
*
65
* Code generated by Microsoft (R) AutoRest Code Generator.
76
* Changes may cause incorrect behavior and will be lost if the code is
@@ -44,7 +43,7 @@ export class CdnManagementClientContext extends msRestAzure.AzureServiceClient {
4443

4544
super(credentials, options);
4645

47-
this.apiVersion = '2020-04-15';
46+
this.apiVersion = '2020-09-01';
4847
this.acceptLanguage = 'en-US';
4948
this.longRunningOperationRetryTimeout = 30;
5049
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
4+
*
5+
* Code generated by Microsoft (R) AutoRest Code Generator.
6+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
*/
8+
9+
export {
10+
discriminators,
11+
AFDDomain,
12+
AFDDomainHttpsParameters,
13+
AFDDomainListResult,
14+
AFDDomainUpdateParameters,
15+
AFDEndpoint,
16+
AFDEndpointUpdateParameters,
17+
AfdErrorResponse,
18+
AFDOrigin,
19+
AFDOriginGroup,
20+
AFDOriginGroupUpdateParameters,
21+
AFDOriginUpdateParameters,
22+
BaseResource,
23+
CacheExpirationActionParameters,
24+
CacheKeyQueryStringActionParameters,
25+
CdnEndpoint,
26+
CdnWebApplicationFirewallPolicy,
27+
CdnWebApplicationFirewallPolicyPatchParameters,
28+
CidrIpAddress,
29+
CookiesMatchConditionParameters,
30+
CustomDomain,
31+
CustomerCertificateParameters,
32+
CustomRule,
33+
CustomRuleList,
34+
DeepCreatedOrigin,
35+
DeepCreatedOriginGroup,
36+
DeliveryRule,
37+
DeliveryRuleAction,
38+
DeliveryRuleCacheExpirationAction,
39+
DeliveryRuleCacheKeyQueryStringAction,
40+
DeliveryRuleCondition,
41+
DeliveryRuleCookiesCondition,
42+
DeliveryRuleHttpVersionCondition,
43+
DeliveryRuleIsDeviceCondition,
44+
DeliveryRulePostArgsCondition,
45+
DeliveryRuleQueryStringCondition,
46+
DeliveryRuleRemoteAddressCondition,
47+
DeliveryRuleRequestBodyCondition,
48+
DeliveryRuleRequestHeaderAction,
49+
DeliveryRuleRequestHeaderCondition,
50+
DeliveryRuleRequestMethodCondition,
51+
DeliveryRuleRequestSchemeCondition,
52+
DeliveryRuleRequestUriCondition,
53+
DeliveryRuleResponseHeaderAction,
54+
DeliveryRuleUrlFileExtensionCondition,
55+
DeliveryRuleUrlFileNameCondition,
56+
DeliveryRuleUrlPathCondition,
57+
DomainValidationProperties,
58+
EdgeNode,
59+
Endpoint,
60+
EndpointPropertiesUpdateParametersDeliveryPolicy,
61+
EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink,
62+
EndpointUpdateParameters,
63+
ErrorResponse,
64+
GeoFilter,
65+
HeaderActionParameters,
66+
HealthProbeParameters,
67+
HttpErrorRangeParameters,
68+
HttpVersionMatchConditionParameters,
69+
IpAddressGroup,
70+
IsDeviceMatchConditionParameters,
71+
KeyVaultSigningKeyParameters,
72+
LoadBalancingSettingsParameters,
73+
ManagedCertificateParameters,
74+
ManagedRuleDefinition,
75+
ManagedRuleGroupDefinition,
76+
ManagedRuleGroupOverride,
77+
ManagedRuleOverride,
78+
ManagedRuleSet,
79+
ManagedRuleSetDefinition,
80+
ManagedRuleSetList,
81+
MatchCondition,
82+
Origin,
83+
OriginGroup,
84+
OriginGroupOverrideAction,
85+
OriginGroupOverrideActionParameters,
86+
OriginGroupUpdateParameters,
87+
OriginUpdateParameters,
88+
PolicySettings,
89+
PostArgsMatchConditionParameters,
90+
Profile,
91+
ProfileUpdateParameters,
92+
ProxyResource,
93+
QueryStringMatchConditionParameters,
94+
RateLimitRule,
95+
RateLimitRuleList,
96+
RemoteAddressMatchConditionParameters,
97+
RequestBodyMatchConditionParameters,
98+
RequestHeaderMatchConditionParameters,
99+
RequestMethodMatchConditionParameters,
100+
RequestSchemeMatchConditionParameters,
101+
RequestUriMatchConditionParameters,
102+
Resource,
103+
ResourceReference,
104+
ResponseBasedOriginErrorDetectionParameters,
105+
Route,
106+
Rule,
107+
RuleSet,
108+
Secret,
109+
SecretParameters,
110+
SecurityPolicy,
111+
SecurityPolicyParameters,
112+
SecurityPolicyWebApplicationFirewallAssociation,
113+
SecurityPolicyWebApplicationFirewallParameters,
114+
Sku,
115+
SystemData,
116+
TrackedResource,
117+
UrlFileExtensionMatchConditionParameters,
118+
UrlFileNameMatchConditionParameters,
119+
UrlPathMatchConditionParameters,
120+
UrlRedirectAction,
121+
UrlRedirectActionParameters,
122+
UrlRewriteAction,
123+
UrlRewriteActionParameters,
124+
UrlSigningAction,
125+
UrlSigningActionParameters,
126+
UrlSigningKey,
127+
UrlSigningKeyParameters,
128+
UrlSigningParamIdentifier,
129+
ValidationToken
130+
} from "../models/mappers";
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
4+
*
5+
* Code generated by Microsoft (R) AutoRest Code Generator.
6+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
*/
8+
9+
export {
10+
discriminators,
11+
AFDDomain,
12+
AFDDomainHttpsParameters,
13+
AFDEndpoint,
14+
AFDEndpointListResult,
15+
AFDEndpointUpdateParameters,
16+
AfdErrorResponse,
17+
AFDOrigin,
18+
AFDOriginGroup,
19+
AFDOriginGroupUpdateParameters,
20+
AFDOriginUpdateParameters,
21+
AfdPurgeParameters,
22+
BaseResource,
23+
CacheExpirationActionParameters,
24+
CacheKeyQueryStringActionParameters,
25+
CdnEndpoint,
26+
CdnWebApplicationFirewallPolicy,
27+
CdnWebApplicationFirewallPolicyPatchParameters,
28+
CidrIpAddress,
29+
CookiesMatchConditionParameters,
30+
CustomDomain,
31+
CustomerCertificateParameters,
32+
CustomRule,
33+
CustomRuleList,
34+
DeepCreatedOrigin,
35+
DeepCreatedOriginGroup,
36+
DeliveryRule,
37+
DeliveryRuleAction,
38+
DeliveryRuleCacheExpirationAction,
39+
DeliveryRuleCacheKeyQueryStringAction,
40+
DeliveryRuleCondition,
41+
DeliveryRuleCookiesCondition,
42+
DeliveryRuleHttpVersionCondition,
43+
DeliveryRuleIsDeviceCondition,
44+
DeliveryRulePostArgsCondition,
45+
DeliveryRuleQueryStringCondition,
46+
DeliveryRuleRemoteAddressCondition,
47+
DeliveryRuleRequestBodyCondition,
48+
DeliveryRuleRequestHeaderAction,
49+
DeliveryRuleRequestHeaderCondition,
50+
DeliveryRuleRequestMethodCondition,
51+
DeliveryRuleRequestSchemeCondition,
52+
DeliveryRuleRequestUriCondition,
53+
DeliveryRuleResponseHeaderAction,
54+
DeliveryRuleUrlFileExtensionCondition,
55+
DeliveryRuleUrlFileNameCondition,
56+
DeliveryRuleUrlPathCondition,
57+
DomainValidationProperties,
58+
EdgeNode,
59+
Endpoint,
60+
EndpointPropertiesUpdateParametersDeliveryPolicy,
61+
EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink,
62+
EndpointUpdateParameters,
63+
ErrorResponse,
64+
GeoFilter,
65+
HeaderActionParameters,
66+
HealthProbeParameters,
67+
HttpErrorRangeParameters,
68+
HttpVersionMatchConditionParameters,
69+
IpAddressGroup,
70+
IsDeviceMatchConditionParameters,
71+
KeyVaultSigningKeyParameters,
72+
LoadBalancingSettingsParameters,
73+
ManagedCertificateParameters,
74+
ManagedRuleDefinition,
75+
ManagedRuleGroupDefinition,
76+
ManagedRuleGroupOverride,
77+
ManagedRuleOverride,
78+
ManagedRuleSet,
79+
ManagedRuleSetDefinition,
80+
ManagedRuleSetList,
81+
MatchCondition,
82+
Origin,
83+
OriginGroup,
84+
OriginGroupOverrideAction,
85+
OriginGroupOverrideActionParameters,
86+
OriginGroupUpdateParameters,
87+
OriginUpdateParameters,
88+
PolicySettings,
89+
PostArgsMatchConditionParameters,
90+
Profile,
91+
ProfileUpdateParameters,
92+
ProxyResource,
93+
QueryStringMatchConditionParameters,
94+
RateLimitRule,
95+
RateLimitRuleList,
96+
RemoteAddressMatchConditionParameters,
97+
RequestBodyMatchConditionParameters,
98+
RequestHeaderMatchConditionParameters,
99+
RequestMethodMatchConditionParameters,
100+
RequestSchemeMatchConditionParameters,
101+
RequestUriMatchConditionParameters,
102+
Resource,
103+
ResourceReference,
104+
ResponseBasedOriginErrorDetectionParameters,
105+
Route,
106+
Rule,
107+
RuleSet,
108+
Secret,
109+
SecretParameters,
110+
SecurityPolicy,
111+
SecurityPolicyParameters,
112+
SecurityPolicyWebApplicationFirewallAssociation,
113+
SecurityPolicyWebApplicationFirewallParameters,
114+
Sku,
115+
SystemData,
116+
TrackedResource,
117+
UrlFileExtensionMatchConditionParameters,
118+
UrlFileNameMatchConditionParameters,
119+
UrlPathMatchConditionParameters,
120+
UrlRedirectAction,
121+
UrlRedirectActionParameters,
122+
UrlRewriteAction,
123+
UrlRewriteActionParameters,
124+
UrlSigningAction,
125+
UrlSigningActionParameters,
126+
UrlSigningKey,
127+
UrlSigningKeyParameters,
128+
UrlSigningParamIdentifier,
129+
Usage,
130+
UsageName,
131+
UsagesListResult,
132+
ValidateCustomDomainInput,
133+
ValidateCustomDomainOutput
134+
} from "../models/mappers";

0 commit comments

Comments
 (0)