@azure/arm-domainregistration 1.0.0-alpha.20251120.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +115 -0
- package/dist/browser/domainRegistrationManagementClient.d.ts +24 -0
- package/dist/browser/domainRegistrationManagementClient.d.ts.map +1 -0
- package/dist/browser/domainRegistrationManagementClient.js +103 -0
- package/dist/browser/domainRegistrationManagementClient.js.map +1 -0
- package/dist/browser/index.d.ts +5 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +10 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/lroImpl.d.ts +11 -0
- package/dist/browser/lroImpl.d.ts.map +1 -0
- package/dist/browser/lroImpl.js +20 -0
- package/dist/browser/lroImpl.js.map +1 -0
- package/dist/browser/models/index.d.ts +3096 -0
- package/dist/browser/models/index.d.ts.map +1 -0
- package/dist/browser/models/index.js +219 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.d.ts +147 -0
- package/dist/browser/models/mappers.d.ts.map +1 -0
- package/dist/browser/models/mappers.js +6638 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/dist/browser/models/parameters.d.ts +19 -0
- package/dist/browser/models/parameters.d.ts.map +1 -0
- package/dist/browser/models/parameters.js +150 -0
- package/dist/browser/models/parameters.js.map +1 -0
- package/dist/browser/operations/domainRegistrationProvider.d.ts +34 -0
- package/dist/browser/operations/domainRegistrationProvider.d.ts.map +1 -0
- package/dist/browser/operations/domainRegistrationProvider.js +113 -0
- package/dist/browser/operations/domainRegistrationProvider.js.map +1 -0
- package/dist/browser/operations/domains.d.ts +199 -0
- package/dist/browser/operations/domains.d.ts.map +1 -0
- package/dist/browser/operations/domains.js +859 -0
- package/dist/browser/operations/domains.js.map +1 -0
- package/dist/browser/operations/index.d.ts +4 -0
- package/dist/browser/operations/index.d.ts.map +1 -0
- package/dist/browser/operations/index.js +8 -0
- package/dist/browser/operations/index.js.map +1 -0
- package/dist/browser/operations/topLevelDomains.d.ts +62 -0
- package/dist/browser/operations/topLevelDomains.d.ts.map +1 -0
- package/dist/browser/operations/topLevelDomains.js +239 -0
- package/dist/browser/operations/topLevelDomains.js.map +1 -0
- package/dist/browser/operationsInterfaces/domainRegistrationProvider.d.ts +12 -0
- package/dist/browser/operationsInterfaces/domainRegistrationProvider.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/domainRegistrationProvider.js +4 -0
- package/dist/browser/operationsInterfaces/domainRegistrationProvider.js.map +1 -0
- package/dist/browser/operationsInterfaces/domains.d.ts +130 -0
- package/dist/browser/operationsInterfaces/domains.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/domains.js +4 -0
- package/dist/browser/operationsInterfaces/domains.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +4 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/index.js +8 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/dist/browser/operationsInterfaces/topLevelDomains.d.ts +24 -0
- package/dist/browser/operationsInterfaces/topLevelDomains.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/topLevelDomains.js +4 -0
- package/dist/browser/operationsInterfaces/topLevelDomains.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.d.ts +13 -0
- package/dist/browser/pagingHelper.d.ts.map +1 -0
- package/dist/browser/pagingHelper.js +25 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/domainRegistrationManagementClient.d.ts +24 -0
- package/dist/commonjs/domainRegistrationManagementClient.d.ts.map +1 -0
- package/dist/commonjs/domainRegistrationManagementClient.js +108 -0
- package/dist/commonjs/domainRegistrationManagementClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +16 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/lroImpl.d.ts +11 -0
- package/dist/commonjs/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/lroImpl.js +23 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +3096 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +222 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +147 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +6643 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +19 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +153 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/domainRegistrationProvider.d.ts +34 -0
- package/dist/commonjs/operations/domainRegistrationProvider.d.ts.map +1 -0
- package/dist/commonjs/operations/domainRegistrationProvider.js +118 -0
- package/dist/commonjs/operations/domainRegistrationProvider.js.map +1 -0
- package/dist/commonjs/operations/domains.d.ts +199 -0
- package/dist/commonjs/operations/domains.d.ts.map +1 -0
- package/dist/commonjs/operations/domains.js +864 -0
- package/dist/commonjs/operations/domains.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +4 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +11 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/topLevelDomains.d.ts +62 -0
- package/dist/commonjs/operations/topLevelDomains.d.ts.map +1 -0
- package/dist/commonjs/operations/topLevelDomains.js +244 -0
- package/dist/commonjs/operations/topLevelDomains.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/domainRegistrationProvider.d.ts +12 -0
- package/dist/commonjs/operationsInterfaces/domainRegistrationProvider.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/domainRegistrationProvider.js +5 -0
- package/dist/commonjs/operationsInterfaces/domainRegistrationProvider.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/domains.d.ts +130 -0
- package/dist/commonjs/operationsInterfaces/domains.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/domains.js +5 -0
- package/dist/commonjs/operationsInterfaces/domains.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +4 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +11 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/topLevelDomains.d.ts +24 -0
- package/dist/commonjs/operationsInterfaces/topLevelDomains.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/topLevelDomains.js +5 -0
- package/dist/commonjs/operationsInterfaces/topLevelDomains.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +29 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/domainRegistrationManagementClient.d.ts +24 -0
- package/dist/esm/domainRegistrationManagementClient.d.ts.map +1 -0
- package/dist/esm/domainRegistrationManagementClient.js +103 -0
- package/dist/esm/domainRegistrationManagementClient.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +10 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lroImpl.d.ts +11 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/dist/esm/lroImpl.js +20 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +3096 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +219 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +147 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +6638 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +19 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +150 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/domainRegistrationProvider.d.ts +34 -0
- package/dist/esm/operations/domainRegistrationProvider.d.ts.map +1 -0
- package/dist/esm/operations/domainRegistrationProvider.js +113 -0
- package/dist/esm/operations/domainRegistrationProvider.js.map +1 -0
- package/dist/esm/operations/domains.d.ts +199 -0
- package/dist/esm/operations/domains.d.ts.map +1 -0
- package/dist/esm/operations/domains.js +859 -0
- package/dist/esm/operations/domains.js.map +1 -0
- package/dist/esm/operations/index.d.ts +4 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +8 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/topLevelDomains.d.ts +62 -0
- package/dist/esm/operations/topLevelDomains.d.ts.map +1 -0
- package/dist/esm/operations/topLevelDomains.js +239 -0
- package/dist/esm/operations/topLevelDomains.js.map +1 -0
- package/dist/esm/operationsInterfaces/domainRegistrationProvider.d.ts +12 -0
- package/dist/esm/operationsInterfaces/domainRegistrationProvider.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/domainRegistrationProvider.js +4 -0
- package/dist/esm/operationsInterfaces/domainRegistrationProvider.js.map +1 -0
- package/dist/esm/operationsInterfaces/domains.d.ts +130 -0
- package/dist/esm/operationsInterfaces/domains.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/domains.js +4 -0
- package/dist/esm/operationsInterfaces/domains.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +4 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +8 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/topLevelDomains.d.ts +24 -0
- package/dist/esm/operationsInterfaces/topLevelDomains.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/topLevelDomains.js +4 -0
- package/dist/esm/operationsInterfaces/topLevelDomains.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +25 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/react-native/domainRegistrationManagementClient.d.ts +24 -0
- package/dist/react-native/domainRegistrationManagementClient.d.ts.map +1 -0
- package/dist/react-native/domainRegistrationManagementClient.js +103 -0
- package/dist/react-native/domainRegistrationManagementClient.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +10 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/lroImpl.d.ts +11 -0
- package/dist/react-native/lroImpl.d.ts.map +1 -0
- package/dist/react-native/lroImpl.js +20 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +3096 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +219 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +147 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +6638 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +19 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +150 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/domainRegistrationProvider.d.ts +34 -0
- package/dist/react-native/operations/domainRegistrationProvider.d.ts.map +1 -0
- package/dist/react-native/operations/domainRegistrationProvider.js +113 -0
- package/dist/react-native/operations/domainRegistrationProvider.js.map +1 -0
- package/dist/react-native/operations/domains.d.ts +199 -0
- package/dist/react-native/operations/domains.d.ts.map +1 -0
- package/dist/react-native/operations/domains.js +859 -0
- package/dist/react-native/operations/domains.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +4 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +8 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/topLevelDomains.d.ts +62 -0
- package/dist/react-native/operations/topLevelDomains.d.ts.map +1 -0
- package/dist/react-native/operations/topLevelDomains.js +239 -0
- package/dist/react-native/operations/topLevelDomains.js.map +1 -0
- package/dist/react-native/operationsInterfaces/domainRegistrationProvider.d.ts +12 -0
- package/dist/react-native/operationsInterfaces/domainRegistrationProvider.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/domainRegistrationProvider.js +4 -0
- package/dist/react-native/operationsInterfaces/domainRegistrationProvider.js.map +1 -0
- package/dist/react-native/operationsInterfaces/domains.d.ts +130 -0
- package/dist/react-native/operationsInterfaces/domains.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/domains.js +4 -0
- package/dist/react-native/operationsInterfaces/domains.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +4 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +8 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/topLevelDomains.d.ts +24 -0
- package/dist/react-native/operationsInterfaces/topLevelDomains.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/topLevelDomains.js +4 -0
- package/dist/react-native/operationsInterfaces/topLevelDomains.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +25 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +135 -0
|
@@ -0,0 +1,859 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { setContinuationToken } from "../pagingHelper.js";
|
|
4
|
+
import * as coreClient from "@azure/core-client";
|
|
5
|
+
import * as Mappers from "../models/mappers.js";
|
|
6
|
+
import * as Parameters from "../models/parameters.js";
|
|
7
|
+
import { createHttpPoller } from "@azure/core-lro";
|
|
8
|
+
import { createLroSpec } from "../lroImpl.js";
|
|
9
|
+
/// <reference lib="esnext.asynciterable" />
|
|
10
|
+
/** Class containing Domains operations. */
|
|
11
|
+
export class DomainsImpl {
|
|
12
|
+
client;
|
|
13
|
+
/**
|
|
14
|
+
* Initialize a new instance of the class Domains class.
|
|
15
|
+
* @param client Reference to the service client
|
|
16
|
+
*/
|
|
17
|
+
constructor(client) {
|
|
18
|
+
this.client = client;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Description for Get all domains in a subscription.
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
list(options) {
|
|
25
|
+
const iter = this.listPagingAll(options);
|
|
26
|
+
return {
|
|
27
|
+
next() {
|
|
28
|
+
return iter.next();
|
|
29
|
+
},
|
|
30
|
+
[Symbol.asyncIterator]() {
|
|
31
|
+
return this;
|
|
32
|
+
},
|
|
33
|
+
byPage: (settings) => {
|
|
34
|
+
if (settings?.maxPageSize) {
|
|
35
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
36
|
+
}
|
|
37
|
+
return this.listPagingPage(options, settings);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
async *listPagingPage(options, settings) {
|
|
42
|
+
let result;
|
|
43
|
+
let continuationToken = settings?.continuationToken;
|
|
44
|
+
if (!continuationToken) {
|
|
45
|
+
result = await this._list(options);
|
|
46
|
+
const page = result.value || [];
|
|
47
|
+
continuationToken = result.nextLink;
|
|
48
|
+
setContinuationToken(page, continuationToken);
|
|
49
|
+
yield page;
|
|
50
|
+
}
|
|
51
|
+
while (continuationToken) {
|
|
52
|
+
result = await this._listNext(continuationToken, options);
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
const page = result.value || [];
|
|
55
|
+
setContinuationToken(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
async *listPagingAll(options) {
|
|
60
|
+
for await (const page of this.listPagingPage(options)) {
|
|
61
|
+
yield* page;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Description for Get domain name recommendations based on keywords.
|
|
66
|
+
* @param parameters Search parameters for domain name recommendations.
|
|
67
|
+
* @param options The options parameters.
|
|
68
|
+
*/
|
|
69
|
+
listRecommendations(parameters, options) {
|
|
70
|
+
const iter = this.listRecommendationsPagingAll(parameters, options);
|
|
71
|
+
return {
|
|
72
|
+
next() {
|
|
73
|
+
return iter.next();
|
|
74
|
+
},
|
|
75
|
+
[Symbol.asyncIterator]() {
|
|
76
|
+
return this;
|
|
77
|
+
},
|
|
78
|
+
byPage: (settings) => {
|
|
79
|
+
if (settings?.maxPageSize) {
|
|
80
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
81
|
+
}
|
|
82
|
+
return this.listRecommendationsPagingPage(parameters, options, settings);
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
async *listRecommendationsPagingPage(parameters, options, settings) {
|
|
87
|
+
let result;
|
|
88
|
+
let continuationToken = settings?.continuationToken;
|
|
89
|
+
if (!continuationToken) {
|
|
90
|
+
result = await this._listRecommendations(parameters, options);
|
|
91
|
+
const page = result.value || [];
|
|
92
|
+
continuationToken = result.nextLink;
|
|
93
|
+
setContinuationToken(page, continuationToken);
|
|
94
|
+
yield page;
|
|
95
|
+
}
|
|
96
|
+
while (continuationToken) {
|
|
97
|
+
result = await this._listRecommendationsNext(parameters, continuationToken, options);
|
|
98
|
+
continuationToken = result.nextLink;
|
|
99
|
+
const page = result.value || [];
|
|
100
|
+
setContinuationToken(page, continuationToken);
|
|
101
|
+
yield page;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
async *listRecommendationsPagingAll(parameters, options) {
|
|
105
|
+
for await (const page of this.listRecommendationsPagingPage(parameters, options)) {
|
|
106
|
+
yield* page;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Description for Get all domains in a resource group.
|
|
111
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
112
|
+
* @param options The options parameters.
|
|
113
|
+
*/
|
|
114
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
115
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
116
|
+
return {
|
|
117
|
+
next() {
|
|
118
|
+
return iter.next();
|
|
119
|
+
},
|
|
120
|
+
[Symbol.asyncIterator]() {
|
|
121
|
+
return this;
|
|
122
|
+
},
|
|
123
|
+
byPage: (settings) => {
|
|
124
|
+
if (settings?.maxPageSize) {
|
|
125
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
126
|
+
}
|
|
127
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
128
|
+
},
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
132
|
+
let result;
|
|
133
|
+
let continuationToken = settings?.continuationToken;
|
|
134
|
+
if (!continuationToken) {
|
|
135
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
136
|
+
const page = result.value || [];
|
|
137
|
+
continuationToken = result.nextLink;
|
|
138
|
+
setContinuationToken(page, continuationToken);
|
|
139
|
+
yield page;
|
|
140
|
+
}
|
|
141
|
+
while (continuationToken) {
|
|
142
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
143
|
+
continuationToken = result.nextLink;
|
|
144
|
+
const page = result.value || [];
|
|
145
|
+
setContinuationToken(page, continuationToken);
|
|
146
|
+
yield page;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
150
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
151
|
+
yield* page;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Description for Lists domain ownership identifiers.
|
|
156
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
157
|
+
* @param domainName Name of domain.
|
|
158
|
+
* @param options The options parameters.
|
|
159
|
+
*/
|
|
160
|
+
listOwnershipIdentifiers(resourceGroupName, domainName, options) {
|
|
161
|
+
const iter = this.listOwnershipIdentifiersPagingAll(resourceGroupName, domainName, options);
|
|
162
|
+
return {
|
|
163
|
+
next() {
|
|
164
|
+
return iter.next();
|
|
165
|
+
},
|
|
166
|
+
[Symbol.asyncIterator]() {
|
|
167
|
+
return this;
|
|
168
|
+
},
|
|
169
|
+
byPage: (settings) => {
|
|
170
|
+
if (settings?.maxPageSize) {
|
|
171
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
172
|
+
}
|
|
173
|
+
return this.listOwnershipIdentifiersPagingPage(resourceGroupName, domainName, options, settings);
|
|
174
|
+
},
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
async *listOwnershipIdentifiersPagingPage(resourceGroupName, domainName, options, settings) {
|
|
178
|
+
let result;
|
|
179
|
+
let continuationToken = settings?.continuationToken;
|
|
180
|
+
if (!continuationToken) {
|
|
181
|
+
result = await this._listOwnershipIdentifiers(resourceGroupName, domainName, options);
|
|
182
|
+
const page = result.value || [];
|
|
183
|
+
continuationToken = result.nextLink;
|
|
184
|
+
setContinuationToken(page, continuationToken);
|
|
185
|
+
yield page;
|
|
186
|
+
}
|
|
187
|
+
while (continuationToken) {
|
|
188
|
+
result = await this._listOwnershipIdentifiersNext(resourceGroupName, domainName, continuationToken, options);
|
|
189
|
+
continuationToken = result.nextLink;
|
|
190
|
+
const page = result.value || [];
|
|
191
|
+
setContinuationToken(page, continuationToken);
|
|
192
|
+
yield page;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
async *listOwnershipIdentifiersPagingAll(resourceGroupName, domainName, options) {
|
|
196
|
+
for await (const page of this.listOwnershipIdentifiersPagingPage(resourceGroupName, domainName, options)) {
|
|
197
|
+
yield* page;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Description for Check if a domain is available for registration.
|
|
202
|
+
* @param identifier Name of the domain.
|
|
203
|
+
* @param options The options parameters.
|
|
204
|
+
*/
|
|
205
|
+
checkAvailability(identifier, options) {
|
|
206
|
+
return this.client.sendOperationRequest({ identifier, options }, checkAvailabilityOperationSpec);
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Description for Get all domains in a subscription.
|
|
210
|
+
* @param options The options parameters.
|
|
211
|
+
*/
|
|
212
|
+
_list(options) {
|
|
213
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Description for Generate a single sign-on request for the domain management portal.
|
|
217
|
+
* @param options The options parameters.
|
|
218
|
+
*/
|
|
219
|
+
getControlCenterSsoRequest(options) {
|
|
220
|
+
return this.client.sendOperationRequest({ options }, getControlCenterSsoRequestOperationSpec);
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Description for Get domain name recommendations based on keywords.
|
|
224
|
+
* @param parameters Search parameters for domain name recommendations.
|
|
225
|
+
* @param options The options parameters.
|
|
226
|
+
*/
|
|
227
|
+
_listRecommendations(parameters, options) {
|
|
228
|
+
return this.client.sendOperationRequest({ parameters, options }, listRecommendationsOperationSpec);
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Description for Get all domains in a resource group.
|
|
232
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
233
|
+
* @param options The options parameters.
|
|
234
|
+
*/
|
|
235
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
236
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Description for Get a domain.
|
|
240
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
241
|
+
* @param domainName Name of the domain.
|
|
242
|
+
* @param options The options parameters.
|
|
243
|
+
*/
|
|
244
|
+
get(resourceGroupName, domainName, options) {
|
|
245
|
+
return this.client.sendOperationRequest({ resourceGroupName, domainName, options }, getOperationSpec);
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Description for Creates or updates a domain.
|
|
249
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
250
|
+
* @param domainName Name of the domain.
|
|
251
|
+
* @param domain Domain registration information.
|
|
252
|
+
* @param options The options parameters.
|
|
253
|
+
*/
|
|
254
|
+
async beginCreateOrUpdate(resourceGroupName, domainName, domain, options) {
|
|
255
|
+
const directSendOperation = async (args, spec) => {
|
|
256
|
+
return this.client.sendOperationRequest(args, spec);
|
|
257
|
+
};
|
|
258
|
+
const sendOperationFn = async (args, spec) => {
|
|
259
|
+
let currentRawResponse = undefined;
|
|
260
|
+
const providedCallback = args.options?.onResponse;
|
|
261
|
+
const callback = (rawResponse, flatResponse) => {
|
|
262
|
+
currentRawResponse = rawResponse;
|
|
263
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
264
|
+
};
|
|
265
|
+
const updatedArgs = {
|
|
266
|
+
...args,
|
|
267
|
+
options: {
|
|
268
|
+
...args.options,
|
|
269
|
+
onResponse: callback,
|
|
270
|
+
},
|
|
271
|
+
};
|
|
272
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
273
|
+
return {
|
|
274
|
+
flatResponse,
|
|
275
|
+
rawResponse: {
|
|
276
|
+
statusCode: currentRawResponse.status,
|
|
277
|
+
body: currentRawResponse.parsedBody,
|
|
278
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
279
|
+
},
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
const lro = createLroSpec({
|
|
283
|
+
sendOperationFn,
|
|
284
|
+
args: { resourceGroupName, domainName, domain, options },
|
|
285
|
+
spec: createOrUpdateOperationSpec,
|
|
286
|
+
});
|
|
287
|
+
const poller = await createHttpPoller(lro, {
|
|
288
|
+
restoreFrom: options?.resumeFrom,
|
|
289
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
290
|
+
});
|
|
291
|
+
await poller.poll();
|
|
292
|
+
return poller;
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Description for Creates or updates a domain.
|
|
296
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
297
|
+
* @param domainName Name of the domain.
|
|
298
|
+
* @param domain Domain registration information.
|
|
299
|
+
* @param options The options parameters.
|
|
300
|
+
*/
|
|
301
|
+
async beginCreateOrUpdateAndWait(resourceGroupName, domainName, domain, options) {
|
|
302
|
+
const poller = await this.beginCreateOrUpdate(resourceGroupName, domainName, domain, options);
|
|
303
|
+
return poller.pollUntilDone();
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Description for Delete a domain.
|
|
307
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
308
|
+
* @param domainName Name of the domain.
|
|
309
|
+
* @param options The options parameters.
|
|
310
|
+
*/
|
|
311
|
+
delete(resourceGroupName, domainName, options) {
|
|
312
|
+
return this.client.sendOperationRequest({ resourceGroupName, domainName, options }, deleteOperationSpec);
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* Description for Creates or updates a domain.
|
|
316
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
317
|
+
* @param domainName Name of the domain.
|
|
318
|
+
* @param domain Domain registration information.
|
|
319
|
+
* @param options The options parameters.
|
|
320
|
+
*/
|
|
321
|
+
update(resourceGroupName, domainName, domain, options) {
|
|
322
|
+
return this.client.sendOperationRequest({ resourceGroupName, domainName, domain, options }, updateOperationSpec);
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* Description for Lists domain ownership identifiers.
|
|
326
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
327
|
+
* @param domainName Name of domain.
|
|
328
|
+
* @param options The options parameters.
|
|
329
|
+
*/
|
|
330
|
+
_listOwnershipIdentifiers(resourceGroupName, domainName, options) {
|
|
331
|
+
return this.client.sendOperationRequest({ resourceGroupName, domainName, options }, listOwnershipIdentifiersOperationSpec);
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* Description for Get ownership identifier for domain
|
|
335
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
336
|
+
* @param domainName Name of domain.
|
|
337
|
+
* @param name Name of identifier.
|
|
338
|
+
* @param options The options parameters.
|
|
339
|
+
*/
|
|
340
|
+
getOwnershipIdentifier(resourceGroupName, domainName, name, options) {
|
|
341
|
+
return this.client.sendOperationRequest({ resourceGroupName, domainName, name, options }, getOwnershipIdentifierOperationSpec);
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Description for Creates an ownership identifier for a domain or updates identifier details for an
|
|
345
|
+
* existing identifier
|
|
346
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
347
|
+
* @param domainName Name of domain.
|
|
348
|
+
* @param name Name of identifier.
|
|
349
|
+
* @param domainOwnershipIdentifier A JSON representation of the domain ownership properties.
|
|
350
|
+
* @param options The options parameters.
|
|
351
|
+
*/
|
|
352
|
+
createOrUpdateOwnershipIdentifier(resourceGroupName, domainName, name, domainOwnershipIdentifier, options) {
|
|
353
|
+
return this.client.sendOperationRequest({
|
|
354
|
+
resourceGroupName,
|
|
355
|
+
domainName,
|
|
356
|
+
name,
|
|
357
|
+
domainOwnershipIdentifier,
|
|
358
|
+
options,
|
|
359
|
+
}, createOrUpdateOwnershipIdentifierOperationSpec);
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Description for Delete ownership identifier for domain
|
|
363
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
364
|
+
* @param domainName Name of domain.
|
|
365
|
+
* @param name Name of identifier.
|
|
366
|
+
* @param options The options parameters.
|
|
367
|
+
*/
|
|
368
|
+
deleteOwnershipIdentifier(resourceGroupName, domainName, name, options) {
|
|
369
|
+
return this.client.sendOperationRequest({ resourceGroupName, domainName, name, options }, deleteOwnershipIdentifierOperationSpec);
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Description for Creates an ownership identifier for a domain or updates identifier details for an
|
|
373
|
+
* existing identifier
|
|
374
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
375
|
+
* @param domainName Name of domain.
|
|
376
|
+
* @param name Name of identifier.
|
|
377
|
+
* @param domainOwnershipIdentifier A JSON representation of the domain ownership properties.
|
|
378
|
+
* @param options The options parameters.
|
|
379
|
+
*/
|
|
380
|
+
updateOwnershipIdentifier(resourceGroupName, domainName, name, domainOwnershipIdentifier, options) {
|
|
381
|
+
return this.client.sendOperationRequest({
|
|
382
|
+
resourceGroupName,
|
|
383
|
+
domainName,
|
|
384
|
+
name,
|
|
385
|
+
domainOwnershipIdentifier,
|
|
386
|
+
options,
|
|
387
|
+
}, updateOwnershipIdentifierOperationSpec);
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* Description for Renew a domain.
|
|
391
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
392
|
+
* @param domainName Name of the domain.
|
|
393
|
+
* @param options The options parameters.
|
|
394
|
+
*/
|
|
395
|
+
renew(resourceGroupName, domainName, options) {
|
|
396
|
+
return this.client.sendOperationRequest({ resourceGroupName, domainName, options }, renewOperationSpec);
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* Transfer out domain to another registrar
|
|
400
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
401
|
+
* @param domainName Name of domain.
|
|
402
|
+
* @param options The options parameters.
|
|
403
|
+
*/
|
|
404
|
+
transferOut(resourceGroupName, domainName, options) {
|
|
405
|
+
return this.client.sendOperationRequest({ resourceGroupName, domainName, options }, transferOutOperationSpec);
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* ListNext
|
|
409
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
410
|
+
* @param options The options parameters.
|
|
411
|
+
*/
|
|
412
|
+
_listNext(nextLink, options) {
|
|
413
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* ListRecommendationsNext
|
|
417
|
+
* @param parameters Search parameters for domain name recommendations.
|
|
418
|
+
* @param nextLink The nextLink from the previous successful call to the ListRecommendations method.
|
|
419
|
+
* @param options The options parameters.
|
|
420
|
+
*/
|
|
421
|
+
_listRecommendationsNext(parameters, nextLink, options) {
|
|
422
|
+
return this.client.sendOperationRequest({ parameters, nextLink, options }, listRecommendationsNextOperationSpec);
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* ListByResourceGroupNext
|
|
426
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
427
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
428
|
+
* @param options The options parameters.
|
|
429
|
+
*/
|
|
430
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
431
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* ListOwnershipIdentifiersNext
|
|
435
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
436
|
+
* @param domainName Name of domain.
|
|
437
|
+
* @param nextLink The nextLink from the previous successful call to the ListOwnershipIdentifiers
|
|
438
|
+
* method.
|
|
439
|
+
* @param options The options parameters.
|
|
440
|
+
*/
|
|
441
|
+
_listOwnershipIdentifiersNext(resourceGroupName, domainName, nextLink, options) {
|
|
442
|
+
return this.client.sendOperationRequest({ resourceGroupName, domainName, nextLink, options }, listOwnershipIdentifiersNextOperationSpec);
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
// Operation Specifications
|
|
446
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
447
|
+
const checkAvailabilityOperationSpec = {
|
|
448
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/checkDomainAvailability",
|
|
449
|
+
httpMethod: "POST",
|
|
450
|
+
responses: {
|
|
451
|
+
200: {
|
|
452
|
+
bodyMapper: Mappers.DomainAvailabilityCheckResult,
|
|
453
|
+
},
|
|
454
|
+
default: {
|
|
455
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
456
|
+
},
|
|
457
|
+
},
|
|
458
|
+
requestBody: Parameters.identifier,
|
|
459
|
+
queryParameters: [Parameters.apiVersion],
|
|
460
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
461
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
462
|
+
mediaType: "json",
|
|
463
|
+
serializer,
|
|
464
|
+
};
|
|
465
|
+
const listOperationSpec = {
|
|
466
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/domains",
|
|
467
|
+
httpMethod: "GET",
|
|
468
|
+
responses: {
|
|
469
|
+
200: {
|
|
470
|
+
bodyMapper: Mappers.DomainCollection,
|
|
471
|
+
},
|
|
472
|
+
default: {
|
|
473
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
474
|
+
},
|
|
475
|
+
},
|
|
476
|
+
queryParameters: [Parameters.apiVersion],
|
|
477
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
478
|
+
headerParameters: [Parameters.accept],
|
|
479
|
+
serializer,
|
|
480
|
+
};
|
|
481
|
+
const getControlCenterSsoRequestOperationSpec = {
|
|
482
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/generateSsoRequest",
|
|
483
|
+
httpMethod: "POST",
|
|
484
|
+
responses: {
|
|
485
|
+
200: {
|
|
486
|
+
bodyMapper: Mappers.DomainControlCenterSsoRequest,
|
|
487
|
+
},
|
|
488
|
+
default: {
|
|
489
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
490
|
+
},
|
|
491
|
+
},
|
|
492
|
+
queryParameters: [Parameters.apiVersion],
|
|
493
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
494
|
+
headerParameters: [Parameters.accept],
|
|
495
|
+
serializer,
|
|
496
|
+
};
|
|
497
|
+
const listRecommendationsOperationSpec = {
|
|
498
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/listDomainRecommendations",
|
|
499
|
+
httpMethod: "POST",
|
|
500
|
+
responses: {
|
|
501
|
+
200: {
|
|
502
|
+
bodyMapper: Mappers.NameIdentifierCollection,
|
|
503
|
+
},
|
|
504
|
+
default: {
|
|
505
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
506
|
+
},
|
|
507
|
+
},
|
|
508
|
+
requestBody: Parameters.parameters,
|
|
509
|
+
queryParameters: [Parameters.apiVersion],
|
|
510
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
511
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
512
|
+
mediaType: "json",
|
|
513
|
+
serializer,
|
|
514
|
+
};
|
|
515
|
+
const listByResourceGroupOperationSpec = {
|
|
516
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains",
|
|
517
|
+
httpMethod: "GET",
|
|
518
|
+
responses: {
|
|
519
|
+
200: {
|
|
520
|
+
bodyMapper: Mappers.DomainCollection,
|
|
521
|
+
},
|
|
522
|
+
default: {
|
|
523
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
524
|
+
},
|
|
525
|
+
},
|
|
526
|
+
queryParameters: [Parameters.apiVersion],
|
|
527
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName],
|
|
528
|
+
headerParameters: [Parameters.accept],
|
|
529
|
+
serializer,
|
|
530
|
+
};
|
|
531
|
+
const getOperationSpec = {
|
|
532
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}",
|
|
533
|
+
httpMethod: "GET",
|
|
534
|
+
responses: {
|
|
535
|
+
200: {
|
|
536
|
+
bodyMapper: Mappers.Domain,
|
|
537
|
+
},
|
|
538
|
+
default: {
|
|
539
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
540
|
+
},
|
|
541
|
+
},
|
|
542
|
+
queryParameters: [Parameters.apiVersion],
|
|
543
|
+
urlParameters: [
|
|
544
|
+
Parameters.$host,
|
|
545
|
+
Parameters.subscriptionId,
|
|
546
|
+
Parameters.resourceGroupName,
|
|
547
|
+
Parameters.domainName,
|
|
548
|
+
],
|
|
549
|
+
headerParameters: [Parameters.accept],
|
|
550
|
+
serializer,
|
|
551
|
+
};
|
|
552
|
+
const createOrUpdateOperationSpec = {
|
|
553
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}",
|
|
554
|
+
httpMethod: "PUT",
|
|
555
|
+
responses: {
|
|
556
|
+
200: {
|
|
557
|
+
bodyMapper: Mappers.Domain,
|
|
558
|
+
},
|
|
559
|
+
201: {
|
|
560
|
+
bodyMapper: Mappers.Domain,
|
|
561
|
+
},
|
|
562
|
+
202: {
|
|
563
|
+
bodyMapper: Mappers.Domain,
|
|
564
|
+
},
|
|
565
|
+
204: {
|
|
566
|
+
bodyMapper: Mappers.Domain,
|
|
567
|
+
},
|
|
568
|
+
default: {
|
|
569
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
570
|
+
},
|
|
571
|
+
},
|
|
572
|
+
requestBody: Parameters.domain,
|
|
573
|
+
queryParameters: [Parameters.apiVersion],
|
|
574
|
+
urlParameters: [
|
|
575
|
+
Parameters.$host,
|
|
576
|
+
Parameters.subscriptionId,
|
|
577
|
+
Parameters.resourceGroupName,
|
|
578
|
+
Parameters.domainName1,
|
|
579
|
+
],
|
|
580
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
581
|
+
mediaType: "json",
|
|
582
|
+
serializer,
|
|
583
|
+
};
|
|
584
|
+
const deleteOperationSpec = {
|
|
585
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}",
|
|
586
|
+
httpMethod: "DELETE",
|
|
587
|
+
responses: {
|
|
588
|
+
200: {},
|
|
589
|
+
204: {},
|
|
590
|
+
default: {
|
|
591
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
592
|
+
},
|
|
593
|
+
},
|
|
594
|
+
queryParameters: [Parameters.apiVersion, Parameters.forceHardDeleteDomain],
|
|
595
|
+
urlParameters: [
|
|
596
|
+
Parameters.$host,
|
|
597
|
+
Parameters.subscriptionId,
|
|
598
|
+
Parameters.resourceGroupName,
|
|
599
|
+
Parameters.domainName,
|
|
600
|
+
],
|
|
601
|
+
headerParameters: [Parameters.accept],
|
|
602
|
+
serializer,
|
|
603
|
+
};
|
|
604
|
+
const updateOperationSpec = {
|
|
605
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}",
|
|
606
|
+
httpMethod: "PATCH",
|
|
607
|
+
responses: {
|
|
608
|
+
200: {
|
|
609
|
+
bodyMapper: Mappers.Domain,
|
|
610
|
+
},
|
|
611
|
+
202: {
|
|
612
|
+
bodyMapper: Mappers.Domain,
|
|
613
|
+
},
|
|
614
|
+
default: {
|
|
615
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
616
|
+
},
|
|
617
|
+
},
|
|
618
|
+
requestBody: Parameters.domain1,
|
|
619
|
+
queryParameters: [Parameters.apiVersion],
|
|
620
|
+
urlParameters: [
|
|
621
|
+
Parameters.$host,
|
|
622
|
+
Parameters.subscriptionId,
|
|
623
|
+
Parameters.resourceGroupName,
|
|
624
|
+
Parameters.domainName1,
|
|
625
|
+
],
|
|
626
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
627
|
+
mediaType: "json",
|
|
628
|
+
serializer,
|
|
629
|
+
};
|
|
630
|
+
const listOwnershipIdentifiersOperationSpec = {
|
|
631
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers",
|
|
632
|
+
httpMethod: "GET",
|
|
633
|
+
responses: {
|
|
634
|
+
200: {
|
|
635
|
+
bodyMapper: Mappers.DomainOwnershipIdentifierCollection,
|
|
636
|
+
},
|
|
637
|
+
default: {
|
|
638
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
639
|
+
},
|
|
640
|
+
},
|
|
641
|
+
queryParameters: [Parameters.apiVersion],
|
|
642
|
+
urlParameters: [
|
|
643
|
+
Parameters.$host,
|
|
644
|
+
Parameters.subscriptionId,
|
|
645
|
+
Parameters.resourceGroupName,
|
|
646
|
+
Parameters.domainName,
|
|
647
|
+
],
|
|
648
|
+
headerParameters: [Parameters.accept],
|
|
649
|
+
serializer,
|
|
650
|
+
};
|
|
651
|
+
const getOwnershipIdentifierOperationSpec = {
|
|
652
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}",
|
|
653
|
+
httpMethod: "GET",
|
|
654
|
+
responses: {
|
|
655
|
+
200: {
|
|
656
|
+
bodyMapper: Mappers.DomainOwnershipIdentifier,
|
|
657
|
+
},
|
|
658
|
+
default: {
|
|
659
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
660
|
+
},
|
|
661
|
+
},
|
|
662
|
+
queryParameters: [Parameters.apiVersion],
|
|
663
|
+
urlParameters: [
|
|
664
|
+
Parameters.$host,
|
|
665
|
+
Parameters.subscriptionId,
|
|
666
|
+
Parameters.resourceGroupName,
|
|
667
|
+
Parameters.domainName,
|
|
668
|
+
Parameters.name,
|
|
669
|
+
],
|
|
670
|
+
headerParameters: [Parameters.accept],
|
|
671
|
+
serializer,
|
|
672
|
+
};
|
|
673
|
+
const createOrUpdateOwnershipIdentifierOperationSpec = {
|
|
674
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}",
|
|
675
|
+
httpMethod: "PUT",
|
|
676
|
+
responses: {
|
|
677
|
+
200: {
|
|
678
|
+
bodyMapper: Mappers.DomainOwnershipIdentifier,
|
|
679
|
+
},
|
|
680
|
+
default: {
|
|
681
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
682
|
+
},
|
|
683
|
+
},
|
|
684
|
+
requestBody: Parameters.domainOwnershipIdentifier,
|
|
685
|
+
queryParameters: [Parameters.apiVersion],
|
|
686
|
+
urlParameters: [
|
|
687
|
+
Parameters.$host,
|
|
688
|
+
Parameters.subscriptionId,
|
|
689
|
+
Parameters.resourceGroupName,
|
|
690
|
+
Parameters.domainName,
|
|
691
|
+
Parameters.name,
|
|
692
|
+
],
|
|
693
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
694
|
+
mediaType: "json",
|
|
695
|
+
serializer,
|
|
696
|
+
};
|
|
697
|
+
const deleteOwnershipIdentifierOperationSpec = {
|
|
698
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}",
|
|
699
|
+
httpMethod: "DELETE",
|
|
700
|
+
responses: {
|
|
701
|
+
200: {},
|
|
702
|
+
204: {},
|
|
703
|
+
default: {
|
|
704
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
705
|
+
},
|
|
706
|
+
},
|
|
707
|
+
queryParameters: [Parameters.apiVersion],
|
|
708
|
+
urlParameters: [
|
|
709
|
+
Parameters.$host,
|
|
710
|
+
Parameters.subscriptionId,
|
|
711
|
+
Parameters.resourceGroupName,
|
|
712
|
+
Parameters.domainName,
|
|
713
|
+
Parameters.name,
|
|
714
|
+
],
|
|
715
|
+
headerParameters: [Parameters.accept],
|
|
716
|
+
serializer,
|
|
717
|
+
};
|
|
718
|
+
const updateOwnershipIdentifierOperationSpec = {
|
|
719
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}",
|
|
720
|
+
httpMethod: "PATCH",
|
|
721
|
+
responses: {
|
|
722
|
+
200: {
|
|
723
|
+
bodyMapper: Mappers.DomainOwnershipIdentifier,
|
|
724
|
+
},
|
|
725
|
+
default: {
|
|
726
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
727
|
+
},
|
|
728
|
+
},
|
|
729
|
+
requestBody: Parameters.domainOwnershipIdentifier,
|
|
730
|
+
queryParameters: [Parameters.apiVersion],
|
|
731
|
+
urlParameters: [
|
|
732
|
+
Parameters.$host,
|
|
733
|
+
Parameters.subscriptionId,
|
|
734
|
+
Parameters.resourceGroupName,
|
|
735
|
+
Parameters.domainName,
|
|
736
|
+
Parameters.name,
|
|
737
|
+
],
|
|
738
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
739
|
+
mediaType: "json",
|
|
740
|
+
serializer,
|
|
741
|
+
};
|
|
742
|
+
const renewOperationSpec = {
|
|
743
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/renew",
|
|
744
|
+
httpMethod: "POST",
|
|
745
|
+
responses: {
|
|
746
|
+
200: {},
|
|
747
|
+
202: {},
|
|
748
|
+
204: {},
|
|
749
|
+
default: {
|
|
750
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
751
|
+
},
|
|
752
|
+
},
|
|
753
|
+
queryParameters: [Parameters.apiVersion],
|
|
754
|
+
urlParameters: [
|
|
755
|
+
Parameters.$host,
|
|
756
|
+
Parameters.subscriptionId,
|
|
757
|
+
Parameters.resourceGroupName,
|
|
758
|
+
Parameters.domainName,
|
|
759
|
+
],
|
|
760
|
+
headerParameters: [Parameters.accept],
|
|
761
|
+
serializer,
|
|
762
|
+
};
|
|
763
|
+
const transferOutOperationSpec = {
|
|
764
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/transferOut",
|
|
765
|
+
httpMethod: "PUT",
|
|
766
|
+
responses: {
|
|
767
|
+
200: {
|
|
768
|
+
bodyMapper: Mappers.Domain,
|
|
769
|
+
},
|
|
770
|
+
400: {
|
|
771
|
+
isError: true,
|
|
772
|
+
},
|
|
773
|
+
default: {
|
|
774
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
775
|
+
},
|
|
776
|
+
},
|
|
777
|
+
queryParameters: [Parameters.apiVersion],
|
|
778
|
+
urlParameters: [
|
|
779
|
+
Parameters.$host,
|
|
780
|
+
Parameters.subscriptionId,
|
|
781
|
+
Parameters.resourceGroupName,
|
|
782
|
+
Parameters.domainName,
|
|
783
|
+
],
|
|
784
|
+
headerParameters: [Parameters.accept],
|
|
785
|
+
serializer,
|
|
786
|
+
};
|
|
787
|
+
const listNextOperationSpec = {
|
|
788
|
+
path: "{nextLink}",
|
|
789
|
+
httpMethod: "GET",
|
|
790
|
+
responses: {
|
|
791
|
+
200: {
|
|
792
|
+
bodyMapper: Mappers.DomainCollection,
|
|
793
|
+
},
|
|
794
|
+
default: {
|
|
795
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
796
|
+
},
|
|
797
|
+
},
|
|
798
|
+
urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.subscriptionId],
|
|
799
|
+
headerParameters: [Parameters.accept],
|
|
800
|
+
serializer,
|
|
801
|
+
};
|
|
802
|
+
const listRecommendationsNextOperationSpec = {
|
|
803
|
+
path: "{nextLink}",
|
|
804
|
+
httpMethod: "GET",
|
|
805
|
+
responses: {
|
|
806
|
+
200: {
|
|
807
|
+
bodyMapper: Mappers.NameIdentifierCollection,
|
|
808
|
+
},
|
|
809
|
+
default: {
|
|
810
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
811
|
+
},
|
|
812
|
+
},
|
|
813
|
+
urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.subscriptionId],
|
|
814
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
815
|
+
mediaType: "json",
|
|
816
|
+
serializer,
|
|
817
|
+
};
|
|
818
|
+
const listByResourceGroupNextOperationSpec = {
|
|
819
|
+
path: "{nextLink}",
|
|
820
|
+
httpMethod: "GET",
|
|
821
|
+
responses: {
|
|
822
|
+
200: {
|
|
823
|
+
bodyMapper: Mappers.DomainCollection,
|
|
824
|
+
},
|
|
825
|
+
default: {
|
|
826
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
827
|
+
},
|
|
828
|
+
},
|
|
829
|
+
urlParameters: [
|
|
830
|
+
Parameters.$host,
|
|
831
|
+
Parameters.nextLink,
|
|
832
|
+
Parameters.subscriptionId,
|
|
833
|
+
Parameters.resourceGroupName,
|
|
834
|
+
],
|
|
835
|
+
headerParameters: [Parameters.accept],
|
|
836
|
+
serializer,
|
|
837
|
+
};
|
|
838
|
+
const listOwnershipIdentifiersNextOperationSpec = {
|
|
839
|
+
path: "{nextLink}",
|
|
840
|
+
httpMethod: "GET",
|
|
841
|
+
responses: {
|
|
842
|
+
200: {
|
|
843
|
+
bodyMapper: Mappers.DomainOwnershipIdentifierCollection,
|
|
844
|
+
},
|
|
845
|
+
default: {
|
|
846
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
847
|
+
},
|
|
848
|
+
},
|
|
849
|
+
urlParameters: [
|
|
850
|
+
Parameters.$host,
|
|
851
|
+
Parameters.nextLink,
|
|
852
|
+
Parameters.subscriptionId,
|
|
853
|
+
Parameters.resourceGroupName,
|
|
854
|
+
Parameters.domainName,
|
|
855
|
+
],
|
|
856
|
+
headerParameters: [Parameters.accept],
|
|
857
|
+
serializer,
|
|
858
|
+
};
|
|
859
|
+
//# sourceMappingURL=domains.js.map
|