@alicloud/ddoscoo20200101 3.1.1 → 3.2.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/dist/client.d.ts CHANGED
@@ -1120,6 +1120,17 @@ export default class Client extends OpenApi {
1120
1120
  * @returns DescribeDomainBpsResponse
1121
1121
  */
1122
1122
  describeDomainBps(request: $_model.DescribeDomainBpsRequest): Promise<$_model.DescribeDomainBpsResponse>;
1123
+ /**
1124
+ * @param request - DescribeDomainCcProtectSwitchRequest
1125
+ * @param runtime - runtime options for this request RuntimeOptions
1126
+ * @returns DescribeDomainCcProtectSwitchResponse
1127
+ */
1128
+ describeDomainCcProtectSwitchWithOptions(request: $_model.DescribeDomainCcProtectSwitchRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeDomainCcProtectSwitchResponse>;
1129
+ /**
1130
+ * @param request - DescribeDomainCcProtectSwitchRequest
1131
+ * @returns DescribeDomainCcProtectSwitchResponse
1132
+ */
1133
+ describeDomainCcProtectSwitch(request: $_model.DescribeDomainCcProtectSwitchRequest): Promise<$_model.DescribeDomainCcProtectSwitchResponse>;
1123
1134
  /**
1124
1135
  * Queries the information about HTTP/2 fingerprints of a website.
1125
1136
  *
package/dist/client.js CHANGED
@@ -3170,6 +3170,44 @@ class Client extends openapi_core_1.default {
3170
3170
  let runtime = new $dara.RuntimeOptions({});
3171
3171
  return await this.describeDomainBpsWithOptions(request, runtime);
3172
3172
  }
3173
+ /**
3174
+ * @param request - DescribeDomainCcProtectSwitchRequest
3175
+ * @param runtime - runtime options for this request RuntimeOptions
3176
+ * @returns DescribeDomainCcProtectSwitchResponse
3177
+ */
3178
+ async describeDomainCcProtectSwitchWithOptions(request, runtime) {
3179
+ request.validate();
3180
+ let query = {};
3181
+ if (!$dara.isNull(request.domains)) {
3182
+ query["Domains"] = request.domains;
3183
+ }
3184
+ if (!$dara.isNull(request.resourceGroupId)) {
3185
+ query["ResourceGroupId"] = request.resourceGroupId;
3186
+ }
3187
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3188
+ query: openapi_core_2.OpenApiUtil.query(query),
3189
+ });
3190
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3191
+ action: "DescribeDomainCcProtectSwitch",
3192
+ version: "2020-01-01",
3193
+ protocol: "HTTPS",
3194
+ pathname: "/",
3195
+ method: "POST",
3196
+ authType: "AK",
3197
+ style: "RPC",
3198
+ reqBodyType: "formData",
3199
+ bodyType: "json",
3200
+ });
3201
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeDomainCcProtectSwitchResponse({}));
3202
+ }
3203
+ /**
3204
+ * @param request - DescribeDomainCcProtectSwitchRequest
3205
+ * @returns DescribeDomainCcProtectSwitchResponse
3206
+ */
3207
+ async describeDomainCcProtectSwitch(request) {
3208
+ let runtime = new $dara.RuntimeOptions({});
3209
+ return await this.describeDomainCcProtectSwitchWithOptions(request, runtime);
3210
+ }
3173
3211
  /**
3174
3212
  * Queries the information about HTTP/2 fingerprints of a website.
3175
3213
  *