@alicloud/cloudsso20210515 1.5.4 → 1.6.0

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.
Files changed (33) hide show
  1. package/dist/client.d.ts +42 -0
  2. package/dist/client.js +93 -8
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/GetAttributePassingSettingRequest.d.ts +21 -0
  5. package/dist/models/GetAttributePassingSettingRequest.js +58 -0
  6. package/dist/models/GetAttributePassingSettingRequest.js.map +1 -0
  7. package/dist/models/GetAttributePassingSettingResponse.d.ts +19 -0
  8. package/dist/models/GetAttributePassingSettingResponse.js +69 -0
  9. package/dist/models/GetAttributePassingSettingResponse.js.map +1 -0
  10. package/dist/models/GetAttributePassingSettingResponseBody.d.ts +50 -0
  11. package/dist/models/GetAttributePassingSettingResponseBody.js +82 -0
  12. package/dist/models/GetAttributePassingSettingResponseBody.js.map +1 -0
  13. package/dist/models/UpdateAttributePassingSettingRequest.d.ts +35 -0
  14. package/dist/models/UpdateAttributePassingSettingRequest.js +60 -0
  15. package/dist/models/UpdateAttributePassingSettingRequest.js.map +1 -0
  16. package/dist/models/UpdateAttributePassingSettingResponse.d.ts +19 -0
  17. package/dist/models/UpdateAttributePassingSettingResponse.js +69 -0
  18. package/dist/models/UpdateAttributePassingSettingResponse.js.map +1 -0
  19. package/dist/models/UpdateAttributePassingSettingResponseBody.d.ts +21 -0
  20. package/dist/models/UpdateAttributePassingSettingResponseBody.js +58 -0
  21. package/dist/models/UpdateAttributePassingSettingResponseBody.js.map +1 -0
  22. package/dist/models/model.d.ts +7 -0
  23. package/dist/models/model.js +21 -7
  24. package/dist/models/model.js.map +1 -1
  25. package/package.json +1 -1
  26. package/src/client.ts +100 -8
  27. package/src/models/GetAttributePassingSettingRequest.ts +34 -0
  28. package/src/models/GetAttributePassingSettingResponse.ts +40 -0
  29. package/src/models/GetAttributePassingSettingResponseBody.ts +78 -0
  30. package/src/models/UpdateAttributePassingSettingRequest.ts +50 -0
  31. package/src/models/UpdateAttributePassingSettingResponse.ts +40 -0
  32. package/src/models/UpdateAttributePassingSettingResponseBody.ts +34 -0
  33. package/src/models/model.ts +7 -0
package/dist/client.d.ts CHANGED
@@ -610,6 +610,27 @@ export default class Client extends OpenApi {
610
610
  * @returns GetAccessConfigurationResponse
611
611
  */
612
612
  getAccessConfiguration(request: $_model.GetAccessConfigurationRequest): Promise<$_model.GetAccessConfigurationResponse>;
613
+ /**
614
+ * Queries the attribute passing settings of a specified directory to retrieve the current configuration of the SourceIdentity pass-through mode.
615
+ *
616
+ * @remarks
617
+ * You must have the cloudsso:GetAttributePassingSetting permission to call this operation. If the directory is not explicitly configured, SourceIdentityPassing returns Disabled by default.
618
+ *
619
+ * @param request - GetAttributePassingSettingRequest
620
+ * @param runtime - runtime options for this request RuntimeOptions
621
+ * @returns GetAttributePassingSettingResponse
622
+ */
623
+ getAttributePassingSettingWithOptions(request: $_model.GetAttributePassingSettingRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetAttributePassingSettingResponse>;
624
+ /**
625
+ * Queries the attribute passing settings of a specified directory to retrieve the current configuration of the SourceIdentity pass-through mode.
626
+ *
627
+ * @remarks
628
+ * You must have the cloudsso:GetAttributePassingSetting permission to call this operation. If the directory is not explicitly configured, SourceIdentityPassing returns Disabled by default.
629
+ *
630
+ * @param request - GetAttributePassingSettingRequest
631
+ * @returns GetAttributePassingSettingResponse
632
+ */
633
+ getAttributePassingSetting(request: $_model.GetAttributePassingSettingRequest): Promise<$_model.GetAttributePassingSettingResponse>;
613
634
  /**
614
635
  * Queries information about a directory.
615
636
  *
@@ -1583,6 +1604,27 @@ export default class Client extends OpenApi {
1583
1604
  * @returns UpdateAccessConfigurationResponse
1584
1605
  */
1585
1606
  updateAccessConfiguration(request: $_model.UpdateAccessConfigurationRequest): Promise<$_model.UpdateAccessConfigurationResponse>;
1607
+ /**
1608
+ * Updates the attribute passing settings for a specified directory, allowing you to set the SourceIdentity pass-through mode to IdP, UserName, or Disabled.
1609
+ *
1610
+ * @remarks
1611
+ * You must have the cloudsso:UpdateAttributePassingSetting permission to call this operation. If the SourceIdentityPassing request parameter is not specified, the existing value is retained. If an invalid enum value is specified, the InvalidParameter.SourceIdentityPassing error is returned.
1612
+ *
1613
+ * @param request - UpdateAttributePassingSettingRequest
1614
+ * @param runtime - runtime options for this request RuntimeOptions
1615
+ * @returns UpdateAttributePassingSettingResponse
1616
+ */
1617
+ updateAttributePassingSettingWithOptions(request: $_model.UpdateAttributePassingSettingRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateAttributePassingSettingResponse>;
1618
+ /**
1619
+ * Updates the attribute passing settings for a specified directory, allowing you to set the SourceIdentity pass-through mode to IdP, UserName, or Disabled.
1620
+ *
1621
+ * @remarks
1622
+ * You must have the cloudsso:UpdateAttributePassingSetting permission to call this operation. If the SourceIdentityPassing request parameter is not specified, the existing value is retained. If an invalid enum value is specified, the InvalidParameter.SourceIdentityPassing error is returned.
1623
+ *
1624
+ * @param request - UpdateAttributePassingSettingRequest
1625
+ * @returns UpdateAttributePassingSettingResponse
1626
+ */
1627
+ updateAttributePassingSetting(request: $_model.UpdateAttributePassingSettingRequest): Promise<$_model.UpdateAttributePassingSettingResponse>;
1586
1628
  /**
1587
1629
  * Changes the name of a directory.
1588
1630
  *
package/dist/client.js CHANGED
@@ -49,14 +49,6 @@ class Client extends openapi_core_1.default {
49
49
  constructor(config) {
50
50
  super(config);
51
51
  this._endpointRule = "regional";
52
- this._endpointMap = {
53
- 'cn-shanghai': "cloudsso.cn-shanghai.aliyuncs.com",
54
- 'cn-hongkong': "cloudsso.cn-hongkong.aliyuncs.com",
55
- 'ap-northeast-2': "cloudsso.ap-northeast-2.aliyuncs.com",
56
- 'ap-southeast-1': "cloudsso.ap-southeast-1.aliyuncs.com",
57
- 'us-west-1': "cloudsso.us-west-1.aliyuncs.com",
58
- 'eu-central-1': "cloudsso.eu-central-1.aliyuncs.com",
59
- };
60
52
  this.checkConfig(config);
61
53
  this._endpoint = this.getEndpoint("cloudsso", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
62
54
  }
@@ -1458,6 +1450,51 @@ class Client extends openapi_core_1.default {
1458
1450
  let runtime = new $dara.RuntimeOptions({});
1459
1451
  return await this.getAccessConfigurationWithOptions(request, runtime);
1460
1452
  }
1453
+ /**
1454
+ * Queries the attribute passing settings of a specified directory to retrieve the current configuration of the SourceIdentity pass-through mode.
1455
+ *
1456
+ * @remarks
1457
+ * You must have the cloudsso:GetAttributePassingSetting permission to call this operation. If the directory is not explicitly configured, SourceIdentityPassing returns Disabled by default.
1458
+ *
1459
+ * @param request - GetAttributePassingSettingRequest
1460
+ * @param runtime - runtime options for this request RuntimeOptions
1461
+ * @returns GetAttributePassingSettingResponse
1462
+ */
1463
+ async getAttributePassingSettingWithOptions(request, runtime) {
1464
+ request.validate();
1465
+ let query = {};
1466
+ if (!$dara.isNull(request.directoryId)) {
1467
+ query["DirectoryId"] = request.directoryId;
1468
+ }
1469
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1470
+ query: openapi_core_2.OpenApiUtil.query(query),
1471
+ });
1472
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1473
+ action: "GetAttributePassingSetting",
1474
+ version: "2021-05-15",
1475
+ protocol: "HTTPS",
1476
+ pathname: "/",
1477
+ method: "POST",
1478
+ authType: "AK",
1479
+ style: "RPC",
1480
+ reqBodyType: "formData",
1481
+ bodyType: "json",
1482
+ });
1483
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetAttributePassingSettingResponse({}));
1484
+ }
1485
+ /**
1486
+ * Queries the attribute passing settings of a specified directory to retrieve the current configuration of the SourceIdentity pass-through mode.
1487
+ *
1488
+ * @remarks
1489
+ * You must have the cloudsso:GetAttributePassingSetting permission to call this operation. If the directory is not explicitly configured, SourceIdentityPassing returns Disabled by default.
1490
+ *
1491
+ * @param request - GetAttributePassingSettingRequest
1492
+ * @returns GetAttributePassingSettingResponse
1493
+ */
1494
+ async getAttributePassingSetting(request) {
1495
+ let runtime = new $dara.RuntimeOptions({});
1496
+ return await this.getAttributePassingSettingWithOptions(request, runtime);
1497
+ }
1461
1498
  /**
1462
1499
  * Queries information about a directory.
1463
1500
  *
@@ -3913,6 +3950,54 @@ class Client extends openapi_core_1.default {
3913
3950
  let runtime = new $dara.RuntimeOptions({});
3914
3951
  return await this.updateAccessConfigurationWithOptions(request, runtime);
3915
3952
  }
3953
+ /**
3954
+ * Updates the attribute passing settings for a specified directory, allowing you to set the SourceIdentity pass-through mode to IdP, UserName, or Disabled.
3955
+ *
3956
+ * @remarks
3957
+ * You must have the cloudsso:UpdateAttributePassingSetting permission to call this operation. If the SourceIdentityPassing request parameter is not specified, the existing value is retained. If an invalid enum value is specified, the InvalidParameter.SourceIdentityPassing error is returned.
3958
+ *
3959
+ * @param request - UpdateAttributePassingSettingRequest
3960
+ * @param runtime - runtime options for this request RuntimeOptions
3961
+ * @returns UpdateAttributePassingSettingResponse
3962
+ */
3963
+ async updateAttributePassingSettingWithOptions(request, runtime) {
3964
+ request.validate();
3965
+ let query = {};
3966
+ if (!$dara.isNull(request.directoryId)) {
3967
+ query["DirectoryId"] = request.directoryId;
3968
+ }
3969
+ if (!$dara.isNull(request.sourceIdentityPassing)) {
3970
+ query["SourceIdentityPassing"] = request.sourceIdentityPassing;
3971
+ }
3972
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3973
+ query: openapi_core_2.OpenApiUtil.query(query),
3974
+ });
3975
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3976
+ action: "UpdateAttributePassingSetting",
3977
+ version: "2021-05-15",
3978
+ protocol: "HTTPS",
3979
+ pathname: "/",
3980
+ method: "POST",
3981
+ authType: "AK",
3982
+ style: "RPC",
3983
+ reqBodyType: "formData",
3984
+ bodyType: "json",
3985
+ });
3986
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateAttributePassingSettingResponse({}));
3987
+ }
3988
+ /**
3989
+ * Updates the attribute passing settings for a specified directory, allowing you to set the SourceIdentity pass-through mode to IdP, UserName, or Disabled.
3990
+ *
3991
+ * @remarks
3992
+ * You must have the cloudsso:UpdateAttributePassingSetting permission to call this operation. If the SourceIdentityPassing request parameter is not specified, the existing value is retained. If an invalid enum value is specified, the InvalidParameter.SourceIdentityPassing error is returned.
3993
+ *
3994
+ * @param request - UpdateAttributePassingSettingRequest
3995
+ * @returns UpdateAttributePassingSettingResponse
3996
+ */
3997
+ async updateAttributePassingSetting(request) {
3998
+ let runtime = new $dara.RuntimeOptions({});
3999
+ return await this.updateAttributePassingSettingWithOptions(request, runtime);
4000
+ }
3916
4001
  /**
3917
4002
  * Changes the name of a directory.
3918
4003
  *