oci-filestorage 2.103.0 → 2.105.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 (70) hide show
  1. package/lib/client.d.ts +95 -0
  2. package/lib/client.js +430 -0
  3. package/lib/client.js.map +1 -1
  4. package/lib/model/create-file-system-details.d.ts +4 -0
  5. package/lib/model/create-file-system-details.js.map +1 -1
  6. package/lib/model/create-quota-rule-details.d.ts +61 -0
  7. package/lib/model/create-quota-rule-details.js +39 -0
  8. package/lib/model/create-quota-rule-details.js.map +1 -0
  9. package/lib/model/file-system-summary.d.ts +21 -0
  10. package/lib/model/file-system-summary.js +14 -0
  11. package/lib/model/file-system-summary.js.map +1 -1
  12. package/lib/model/file-system.d.ts +25 -0
  13. package/lib/model/file-system.js +14 -0
  14. package/lib/model/file-system.js.map +1 -1
  15. package/lib/model/index.d.ts +10 -0
  16. package/lib/model/index.js +12 -2
  17. package/lib/model/index.js.map +1 -1
  18. package/lib/model/quota-rule-summary.d.ts +104 -0
  19. package/lib/model/quota-rule-summary.js +44 -0
  20. package/lib/model/quota-rule-summary.js.map +1 -0
  21. package/lib/model/quota-rule.d.ts +91 -0
  22. package/lib/model/quota-rule.js +44 -0
  23. package/lib/model/quota-rule.js.map +1 -0
  24. package/lib/model/toggle-quota-rules-details.d.ts +27 -0
  25. package/lib/model/toggle-quota-rules-details.js +31 -0
  26. package/lib/model/toggle-quota-rules-details.js.map +1 -0
  27. package/lib/model/update-quota-rule-details.d.ts +35 -0
  28. package/lib/model/update-quota-rule-details.js +31 -0
  29. package/lib/model/update-quota-rule-details.js.map +1 -0
  30. package/lib/request/create-quota-rule-request.d.ts +51 -0
  31. package/lib/request/create-quota-rule-request.js +15 -0
  32. package/lib/request/create-quota-rule-request.js.map +1 -0
  33. package/lib/request/delete-quota-rule-request.d.ts +41 -0
  34. package/lib/request/delete-quota-rule-request.js +15 -0
  35. package/lib/request/delete-quota-rule-request.js.map +1 -0
  36. package/lib/request/get-quota-rule-request.d.ts +41 -0
  37. package/lib/request/get-quota-rule-request.js +15 -0
  38. package/lib/request/get-quota-rule-request.js.map +1 -0
  39. package/lib/request/index.d.ts +12 -0
  40. package/lib/request/index.js +3 -1
  41. package/lib/request/index.js.map +1 -1
  42. package/lib/request/list-quota-rules-request.d.ts +97 -0
  43. package/lib/request/list-quota-rules-request.js +32 -0
  44. package/lib/request/list-quota-rules-request.js.map +1 -0
  45. package/lib/request/toggle-quota-rules-request.d.ts +51 -0
  46. package/lib/request/toggle-quota-rules-request.js +15 -0
  47. package/lib/request/toggle-quota-rules-request.js.map +1 -0
  48. package/lib/request/update-quota-rule-request.d.ts +46 -0
  49. package/lib/request/update-quota-rule-request.js +15 -0
  50. package/lib/request/update-quota-rule-request.js.map +1 -0
  51. package/lib/response/create-quota-rule-response.d.ts +30 -0
  52. package/lib/response/create-quota-rule-response.js +15 -0
  53. package/lib/response/create-quota-rule-response.js.map +1 -0
  54. package/lib/response/delete-quota-rule-response.d.ts +21 -0
  55. package/lib/response/delete-quota-rule-response.js +15 -0
  56. package/lib/response/delete-quota-rule-response.js.map +1 -0
  57. package/lib/response/get-quota-rule-response.d.ts +30 -0
  58. package/lib/response/get-quota-rule-response.js +15 -0
  59. package/lib/response/get-quota-rule-response.js.map +1 -0
  60. package/lib/response/index.d.ts +12 -0
  61. package/lib/response/list-quota-rules-response.d.ts +35 -0
  62. package/lib/response/list-quota-rules-response.js +15 -0
  63. package/lib/response/list-quota-rules-response.js.map +1 -0
  64. package/lib/response/toggle-quota-rules-response.d.ts +21 -0
  65. package/lib/response/toggle-quota-rules-response.js +15 -0
  66. package/lib/response/toggle-quota-rules-response.js.map +1 -0
  67. package/lib/response/update-quota-rule-response.d.ts +30 -0
  68. package/lib/response/update-quota-rule-response.js +15 -0
  69. package/lib/response/update-quota-rule-response.js.map +1 -0
  70. package/package.json +3 -3
package/lib/client.d.ts CHANGED
@@ -356,6 +356,17 @@ export declare class FileStorageClient {
356
356
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/CreateOutboundConnector.ts.html |here} to see how to use CreateOutboundConnector API.
357
357
  */
358
358
  createOutboundConnector(createOutboundConnectorRequest: requests.CreateOutboundConnectorRequest): Promise<responses.CreateOutboundConnectorResponse>;
359
+ /**
360
+ * Create a file system, user, or group quota rule given the `fileSystemId`, `principalId`, `principalType` and
361
+ * `isHardQuota` parameters.
362
+ *
363
+ * This operation does not retry by default if the user has not defined a retry configuration.
364
+ * @param CreateQuotaRuleRequest
365
+ * @return CreateQuotaRuleResponse
366
+ * @throws OciError when an error occurs
367
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/CreateQuotaRule.ts.html |here} to see how to use CreateQuotaRule API.
368
+ */
369
+ createQuotaRule(createQuotaRuleRequest: requests.CreateQuotaRuleRequest): Promise<responses.CreateQuotaRuleResponse>;
359
370
  /**
360
371
  * Creates a new replication in the specified compartment.
361
372
  * Replications are the primary resource that governs the policy of cross-region replication between source
@@ -456,6 +467,16 @@ export declare class FileStorageClient {
456
467
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/DeleteOutboundConnector.ts.html |here} to see how to use DeleteOutboundConnector API.
457
468
  */
458
469
  deleteOutboundConnector(deleteOutboundConnectorRequest: requests.DeleteOutboundConnectorRequest): Promise<responses.DeleteOutboundConnectorResponse>;
470
+ /**
471
+ * Remove a file system, user, or group quota rule given the `fileSystemId` and `quotaRuleId` parameters.
472
+ *
473
+ * This operation does not retry by default if the user has not defined a retry configuration.
474
+ * @param DeleteQuotaRuleRequest
475
+ * @return DeleteQuotaRuleResponse
476
+ * @throws OciError when an error occurs
477
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/DeleteQuotaRule.ts.html |here} to see how to use DeleteQuotaRule API.
478
+ */
479
+ deleteQuotaRule(deleteQuotaRuleRequest: requests.DeleteQuotaRuleRequest): Promise<responses.DeleteQuotaRuleResponse>;
459
480
  /**
460
481
  * Deletes the specified replication and the the associated replication target.
461
482
  *
@@ -563,6 +584,16 @@ export declare class FileStorageClient {
563
584
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/GetOutboundConnector.ts.html |here} to see how to use GetOutboundConnector API.
564
585
  */
565
586
  getOutboundConnector(getOutboundConnectorRequest: requests.GetOutboundConnectorRequest): Promise<responses.GetOutboundConnectorResponse>;
587
+ /**
588
+ * Get a file system, user, or group quota rule given the `fileSystemId` and `quotaRuleId` parameters.
589
+ *
590
+ * This operation does not retry by default if the user has not defined a retry configuration.
591
+ * @param GetQuotaRuleRequest
592
+ * @return GetQuotaRuleResponse
593
+ * @throws OciError when an error occurs
594
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/GetQuotaRule.ts.html |here} to see how to use GetQuotaRule API.
595
+ */
596
+ getQuotaRule(getQuotaRuleRequest: requests.GetQuotaRuleRequest): Promise<responses.GetQuotaRuleResponse>;
566
597
  /**
567
598
  * Gets the specified replication's information.
568
599
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -845,6 +876,48 @@ export declare class FileStorageClient {
845
876
  * @param request a request which can be sent to the service operation
846
877
  */
847
878
  listOutboundConnectorsResponseIterator(request: requests.ListOutboundConnectorsRequest): AsyncIterableIterator<responses.ListOutboundConnectorsResponse>;
879
+ /**
880
+ * List user or group usages and their quota rules by certain principal type.
881
+ *
882
+ * This operation does not retry by default if the user has not defined a retry configuration.
883
+ * @param ListQuotaRulesRequest
884
+ * @return ListQuotaRulesResponse
885
+ * @throws OciError when an error occurs
886
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ListQuotaRules.ts.html |here} to see how to use ListQuotaRules API.
887
+ */
888
+ listQuotaRules(listQuotaRulesRequest: requests.ListQuotaRulesRequest): Promise<responses.ListQuotaRulesResponse>;
889
+ /**
890
+ * NOTE: This function is deprecated in favor of listQuotaRulesRecordIterator function.
891
+ * Creates a new async iterator which will iterate over the models.QuotaRuleSummary objects
892
+ * contained in responses from the listQuotaRules operation. This iterator will fetch more data from the
893
+ * server as needed.
894
+ *
895
+ * @param request a request which can be sent to the service operation
896
+ */
897
+ listAllQuotaRules(request: requests.ListQuotaRulesRequest): AsyncIterableIterator<model.QuotaRuleSummary>;
898
+ /**
899
+ * NOTE: This function is deprecated in favor of listQuotaRulesResponseIterator function.
900
+ * Creates a new async iterator which will iterate over the responses received from the listQuotaRules operation. This iterator
901
+ * will fetch more data from the server as needed.
902
+ *
903
+ * @param request a request which can be sent to the service operation
904
+ */
905
+ listAllQuotaRulesResponses(request: requests.ListQuotaRulesRequest): AsyncIterableIterator<responses.ListQuotaRulesResponse>;
906
+ /**
907
+ * Creates a new async iterator which will iterate over the models.QuotaRuleSummary objects
908
+ * contained in responses from the listQuotaRules operation. This iterator will fetch more data from the
909
+ * server as needed.
910
+ *
911
+ * @param request a request which can be sent to the service operation
912
+ */
913
+ listQuotaRulesRecordIterator(request: requests.ListQuotaRulesRequest): AsyncIterableIterator<model.QuotaRuleSummary>;
914
+ /**
915
+ * Creates a new async iterator which will iterate over the responses received from the listQuotaRules operation. This iterator
916
+ * will fetch more data from the server as needed.
917
+ *
918
+ * @param request a request which can be sent to the service operation
919
+ */
920
+ listQuotaRulesResponseIterator(request: requests.ListQuotaRulesRequest): AsyncIterableIterator<responses.ListQuotaRulesResponse>;
848
921
  /**
849
922
  * Lists the replication target resources in the specified compartment.
850
923
  *
@@ -1065,6 +1138,18 @@ export declare class FileStorageClient {
1065
1138
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ScheduleDowngradeShapeMountTarget.ts.html |here} to see how to use ScheduleDowngradeShapeMountTarget API.
1066
1139
  */
1067
1140
  scheduleDowngradeShapeMountTarget(scheduleDowngradeShapeMountTargetRequest: requests.ScheduleDowngradeShapeMountTargetRequest): Promise<responses.ScheduleDowngradeShapeMountTargetResponse>;
1141
+ /**
1142
+ * Enable or disable quota enforcement for the file system.
1143
+ * If `areQuotaRulesEnabled` = `true`, then the quota enforcement will be enabled.
1144
+ * If `areQuotaRulesEnabled` = `false`, then the quota enforcement will be disabled.
1145
+ *
1146
+ * This operation does not retry by default if the user has not defined a retry configuration.
1147
+ * @param ToggleQuotaRulesRequest
1148
+ * @return ToggleQuotaRulesResponse
1149
+ * @throws OciError when an error occurs
1150
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ToggleQuotaRules.ts.html |here} to see how to use ToggleQuotaRules API.
1151
+ */
1152
+ toggleQuotaRules(toggleQuotaRulesRequest: requests.ToggleQuotaRulesRequest): Promise<responses.ToggleQuotaRulesResponse>;
1068
1153
  /**
1069
1154
  * This operation unpauses a paused file system snapshot policy and updates the lifecycle state of the file system snapshot policy from
1070
1155
  * INACTIVE to ACTIVE. By default, file system snapshot policies are in the ACTIVE state. When a file system snapshot policy is not paused, or in the ACTIVE state, file systems that are associated with the
@@ -1135,6 +1220,16 @@ export declare class FileStorageClient {
1135
1220
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/UpdateOutboundConnector.ts.html |here} to see how to use UpdateOutboundConnector API.
1136
1221
  */
1137
1222
  updateOutboundConnector(updateOutboundConnectorRequest: requests.UpdateOutboundConnectorRequest): Promise<responses.UpdateOutboundConnectorResponse>;
1223
+ /**
1224
+ * Edit a file system, user, or group quota rule given the `fileSystemId` and `quotaRuleId` parameters.
1225
+ *
1226
+ * This operation does not retry by default if the user has not defined a retry configuration.
1227
+ * @param UpdateQuotaRuleRequest
1228
+ * @return UpdateQuotaRuleResponse
1229
+ * @throws OciError when an error occurs
1230
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/UpdateQuotaRule.ts.html |here} to see how to use UpdateQuotaRule API.
1231
+ */
1232
+ updateQuotaRule(updateQuotaRuleRequest: requests.UpdateQuotaRuleRequest): Promise<responses.UpdateQuotaRuleResponse>;
1138
1233
  /**
1139
1234
  * Updates the information for the specified replication and its associated replication target.
1140
1235
  *
package/lib/client.js CHANGED
@@ -1433,6 +1433,74 @@ class FileStorageClient {
1433
1433
  }
1434
1434
  });
1435
1435
  }
1436
+ /**
1437
+ * Create a file system, user, or group quota rule given the `fileSystemId`, `principalId`, `principalType` and
1438
+ * `isHardQuota` parameters.
1439
+ *
1440
+ * This operation does not retry by default if the user has not defined a retry configuration.
1441
+ * @param CreateQuotaRuleRequest
1442
+ * @return CreateQuotaRuleResponse
1443
+ * @throws OciError when an error occurs
1444
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/CreateQuotaRule.ts.html |here} to see how to use CreateQuotaRule API.
1445
+ */
1446
+ createQuotaRule(createQuotaRuleRequest) {
1447
+ return __awaiter(this, void 0, void 0, function* () {
1448
+ if (this.logger)
1449
+ this.logger.debug("Calling operation FileStorageClient#createQuotaRule.");
1450
+ const operationName = "createQuotaRule";
1451
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/CreateQuotaRule";
1452
+ const pathParams = {
1453
+ "{fileSystemId}": createQuotaRuleRequest.fileSystemId
1454
+ };
1455
+ const queryParams = {};
1456
+ let headerParams = {
1457
+ "Content-Type": common.Constants.APPLICATION_JSON,
1458
+ "if-match": createQuotaRuleRequest.ifMatch,
1459
+ "opc-request-id": createQuotaRuleRequest.opcRequestId,
1460
+ "opc-retry-token": createQuotaRuleRequest.opcRetryToken
1461
+ };
1462
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1463
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createQuotaRuleRequest.retryConfiguration, specRetryConfiguration);
1464
+ if (this.logger)
1465
+ retrier.logger = this.logger;
1466
+ const request = yield oci_common_2.composeRequest({
1467
+ baseEndpoint: this._endpoint,
1468
+ defaultHeaders: this._defaultHeaders,
1469
+ path: "/fileSystems/{fileSystemId}/quotaRules",
1470
+ method: "POST",
1471
+ bodyContent: common.ObjectSerializer.serialize(createQuotaRuleRequest.createQuotaRuleDetails, "CreateQuotaRuleDetails", model.CreateQuotaRuleDetails.getJsonObj),
1472
+ pathParams: pathParams,
1473
+ headerParams: headerParams,
1474
+ queryParams: queryParams
1475
+ });
1476
+ try {
1477
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1478
+ const sdkResponse = oci_common_2.composeResponse({
1479
+ responseObject: {},
1480
+ body: yield response.json(),
1481
+ bodyKey: "quotaRule",
1482
+ bodyModel: model.QuotaRule,
1483
+ type: "model.QuotaRule",
1484
+ responseHeaders: [
1485
+ {
1486
+ value: response.headers.get("etag"),
1487
+ key: "etag",
1488
+ dataType: "string"
1489
+ },
1490
+ {
1491
+ value: response.headers.get("opc-request-id"),
1492
+ key: "opcRequestId",
1493
+ dataType: "string"
1494
+ }
1495
+ ]
1496
+ });
1497
+ return sdkResponse;
1498
+ }
1499
+ catch (err) {
1500
+ throw err;
1501
+ }
1502
+ });
1503
+ }
1436
1504
  /**
1437
1505
  * Creates a new replication in the specified compartment.
1438
1506
  * Replications are the primary resource that governs the policy of cross-region replication between source
@@ -1882,6 +1950,63 @@ class FileStorageClient {
1882
1950
  }
1883
1951
  });
1884
1952
  }
1953
+ /**
1954
+ * Remove a file system, user, or group quota rule given the `fileSystemId` and `quotaRuleId` parameters.
1955
+ *
1956
+ * This operation does not retry by default if the user has not defined a retry configuration.
1957
+ * @param DeleteQuotaRuleRequest
1958
+ * @return DeleteQuotaRuleResponse
1959
+ * @throws OciError when an error occurs
1960
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/DeleteQuotaRule.ts.html |here} to see how to use DeleteQuotaRule API.
1961
+ */
1962
+ deleteQuotaRule(deleteQuotaRuleRequest) {
1963
+ return __awaiter(this, void 0, void 0, function* () {
1964
+ if (this.logger)
1965
+ this.logger.debug("Calling operation FileStorageClient#deleteQuotaRule.");
1966
+ const operationName = "deleteQuotaRule";
1967
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/DeleteQuotaRule";
1968
+ const pathParams = {
1969
+ "{fileSystemId}": deleteQuotaRuleRequest.fileSystemId,
1970
+ "{quotaRuleId}": deleteQuotaRuleRequest.quotaRuleId
1971
+ };
1972
+ const queryParams = {};
1973
+ let headerParams = {
1974
+ "Content-Type": common.Constants.APPLICATION_JSON,
1975
+ "if-match": deleteQuotaRuleRequest.ifMatch,
1976
+ "opc-request-id": deleteQuotaRuleRequest.opcRequestId
1977
+ };
1978
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1979
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteQuotaRuleRequest.retryConfiguration, specRetryConfiguration);
1980
+ if (this.logger)
1981
+ retrier.logger = this.logger;
1982
+ const request = yield oci_common_2.composeRequest({
1983
+ baseEndpoint: this._endpoint,
1984
+ defaultHeaders: this._defaultHeaders,
1985
+ path: "/fileSystems/{fileSystemId}/quotaRules/{quotaRuleId}",
1986
+ method: "DELETE",
1987
+ pathParams: pathParams,
1988
+ headerParams: headerParams,
1989
+ queryParams: queryParams
1990
+ });
1991
+ try {
1992
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1993
+ const sdkResponse = oci_common_2.composeResponse({
1994
+ responseObject: {},
1995
+ responseHeaders: [
1996
+ {
1997
+ value: response.headers.get("opc-request-id"),
1998
+ key: "opcRequestId",
1999
+ dataType: "string"
2000
+ }
2001
+ ]
2002
+ });
2003
+ return sdkResponse;
2004
+ }
2005
+ catch (err) {
2006
+ throw err;
2007
+ }
2008
+ });
2009
+ }
1885
2010
  /**
1886
2011
  * Deletes the specified replication and the the associated replication target.
1887
2012
  *
@@ -2561,6 +2686,72 @@ class FileStorageClient {
2561
2686
  }
2562
2687
  });
2563
2688
  }
2689
+ /**
2690
+ * Get a file system, user, or group quota rule given the `fileSystemId` and `quotaRuleId` parameters.
2691
+ *
2692
+ * This operation does not retry by default if the user has not defined a retry configuration.
2693
+ * @param GetQuotaRuleRequest
2694
+ * @return GetQuotaRuleResponse
2695
+ * @throws OciError when an error occurs
2696
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/GetQuotaRule.ts.html |here} to see how to use GetQuotaRule API.
2697
+ */
2698
+ getQuotaRule(getQuotaRuleRequest) {
2699
+ return __awaiter(this, void 0, void 0, function* () {
2700
+ if (this.logger)
2701
+ this.logger.debug("Calling operation FileStorageClient#getQuotaRule.");
2702
+ const operationName = "getQuotaRule";
2703
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/GetQuotaRule";
2704
+ const pathParams = {
2705
+ "{fileSystemId}": getQuotaRuleRequest.fileSystemId,
2706
+ "{quotaRuleId}": getQuotaRuleRequest.quotaRuleId
2707
+ };
2708
+ const queryParams = {};
2709
+ let headerParams = {
2710
+ "Content-Type": common.Constants.APPLICATION_JSON,
2711
+ "if-match": getQuotaRuleRequest.ifMatch,
2712
+ "opc-request-id": getQuotaRuleRequest.opcRequestId
2713
+ };
2714
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2715
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getQuotaRuleRequest.retryConfiguration, specRetryConfiguration);
2716
+ if (this.logger)
2717
+ retrier.logger = this.logger;
2718
+ const request = yield oci_common_2.composeRequest({
2719
+ baseEndpoint: this._endpoint,
2720
+ defaultHeaders: this._defaultHeaders,
2721
+ path: "/fileSystems/{fileSystemId}/quotaRules/{quotaRuleId}",
2722
+ method: "GET",
2723
+ pathParams: pathParams,
2724
+ headerParams: headerParams,
2725
+ queryParams: queryParams
2726
+ });
2727
+ try {
2728
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2729
+ const sdkResponse = oci_common_2.composeResponse({
2730
+ responseObject: {},
2731
+ body: yield response.json(),
2732
+ bodyKey: "quotaRule",
2733
+ bodyModel: model.QuotaRule,
2734
+ type: "model.QuotaRule",
2735
+ responseHeaders: [
2736
+ {
2737
+ value: response.headers.get("etag"),
2738
+ key: "etag",
2739
+ dataType: "string"
2740
+ },
2741
+ {
2742
+ value: response.headers.get("opc-request-id"),
2743
+ key: "opcRequestId",
2744
+ dataType: "string"
2745
+ }
2746
+ ]
2747
+ });
2748
+ return sdkResponse;
2749
+ }
2750
+ catch (err) {
2751
+ throw err;
2752
+ }
2753
+ });
2754
+ }
2564
2755
  /**
2565
2756
  * Gets the specified replication's information.
2566
2757
  * This operation does not retry by default if the user has not defined a retry configuration.
@@ -3429,6 +3620,118 @@ class FileStorageClient {
3429
3620
  listOutboundConnectorsResponseIterator(request) {
3430
3621
  return oci_common_1.paginateResponses(request, req => this.listOutboundConnectors(req));
3431
3622
  }
3623
+ /**
3624
+ * List user or group usages and their quota rules by certain principal type.
3625
+ *
3626
+ * This operation does not retry by default if the user has not defined a retry configuration.
3627
+ * @param ListQuotaRulesRequest
3628
+ * @return ListQuotaRulesResponse
3629
+ * @throws OciError when an error occurs
3630
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ListQuotaRules.ts.html |here} to see how to use ListQuotaRules API.
3631
+ */
3632
+ listQuotaRules(listQuotaRulesRequest) {
3633
+ return __awaiter(this, void 0, void 0, function* () {
3634
+ if (this.logger)
3635
+ this.logger.debug("Calling operation FileStorageClient#listQuotaRules.");
3636
+ const operationName = "listQuotaRules";
3637
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/ListQuotaRules";
3638
+ const pathParams = {
3639
+ "{fileSystemId}": listQuotaRulesRequest.fileSystemId
3640
+ };
3641
+ const queryParams = {
3642
+ "limit": listQuotaRulesRequest.limit,
3643
+ "page": listQuotaRulesRequest.page,
3644
+ "principalType": listQuotaRulesRequest.principalType,
3645
+ "principalId": listQuotaRulesRequest.principalId,
3646
+ "areViolatorsOnly": listQuotaRulesRequest.areViolatorsOnly,
3647
+ "sortOrder": listQuotaRulesRequest.sortOrder
3648
+ };
3649
+ let headerParams = {
3650
+ "Content-Type": common.Constants.APPLICATION_JSON,
3651
+ "if-match": listQuotaRulesRequest.ifMatch,
3652
+ "opc-request-id": listQuotaRulesRequest.opcRequestId
3653
+ };
3654
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
3655
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listQuotaRulesRequest.retryConfiguration, specRetryConfiguration);
3656
+ if (this.logger)
3657
+ retrier.logger = this.logger;
3658
+ const request = yield oci_common_2.composeRequest({
3659
+ baseEndpoint: this._endpoint,
3660
+ defaultHeaders: this._defaultHeaders,
3661
+ path: "/fileSystems/{fileSystemId}/quotaRules",
3662
+ method: "GET",
3663
+ pathParams: pathParams,
3664
+ headerParams: headerParams,
3665
+ queryParams: queryParams
3666
+ });
3667
+ try {
3668
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
3669
+ const sdkResponse = oci_common_2.composeResponse({
3670
+ responseObject: {},
3671
+ body: yield response.json(),
3672
+ bodyKey: "items",
3673
+ bodyModel: model.QuotaRuleSummary,
3674
+ type: "Array<model.QuotaRuleSummary>",
3675
+ responseHeaders: [
3676
+ {
3677
+ value: response.headers.get("opc-next-page"),
3678
+ key: "opcNextPage",
3679
+ dataType: "string"
3680
+ },
3681
+ {
3682
+ value: response.headers.get("opc-request-id"),
3683
+ key: "opcRequestId",
3684
+ dataType: "string"
3685
+ }
3686
+ ]
3687
+ });
3688
+ return sdkResponse;
3689
+ }
3690
+ catch (err) {
3691
+ throw err;
3692
+ }
3693
+ });
3694
+ }
3695
+ /**
3696
+ * NOTE: This function is deprecated in favor of listQuotaRulesRecordIterator function.
3697
+ * Creates a new async iterator which will iterate over the models.QuotaRuleSummary objects
3698
+ * contained in responses from the listQuotaRules operation. This iterator will fetch more data from the
3699
+ * server as needed.
3700
+ *
3701
+ * @param request a request which can be sent to the service operation
3702
+ */
3703
+ listAllQuotaRules(request) {
3704
+ return oci_common_1.paginateRecords(request, req => this.listQuotaRules(req));
3705
+ }
3706
+ /**
3707
+ * NOTE: This function is deprecated in favor of listQuotaRulesResponseIterator function.
3708
+ * Creates a new async iterator which will iterate over the responses received from the listQuotaRules operation. This iterator
3709
+ * will fetch more data from the server as needed.
3710
+ *
3711
+ * @param request a request which can be sent to the service operation
3712
+ */
3713
+ listAllQuotaRulesResponses(request) {
3714
+ return oci_common_1.paginateResponses(request, req => this.listQuotaRules(req));
3715
+ }
3716
+ /**
3717
+ * Creates a new async iterator which will iterate over the models.QuotaRuleSummary objects
3718
+ * contained in responses from the listQuotaRules operation. This iterator will fetch more data from the
3719
+ * server as needed.
3720
+ *
3721
+ * @param request a request which can be sent to the service operation
3722
+ */
3723
+ listQuotaRulesRecordIterator(request) {
3724
+ return oci_common_1.paginateRecords(request, req => this.listQuotaRules(req));
3725
+ }
3726
+ /**
3727
+ * Creates a new async iterator which will iterate over the responses received from the listQuotaRules operation. This iterator
3728
+ * will fetch more data from the server as needed.
3729
+ *
3730
+ * @param request a request which can be sent to the service operation
3731
+ */
3732
+ listQuotaRulesResponseIterator(request) {
3733
+ return oci_common_1.paginateResponses(request, req => this.listQuotaRules(req));
3734
+ }
3432
3735
  /**
3433
3736
  * Lists the replication target resources in the specified compartment.
3434
3737
  *
@@ -4364,6 +4667,66 @@ class FileStorageClient {
4364
4667
  }
4365
4668
  });
4366
4669
  }
4670
+ /**
4671
+ * Enable or disable quota enforcement for the file system.
4672
+ * If `areQuotaRulesEnabled` = `true`, then the quota enforcement will be enabled.
4673
+ * If `areQuotaRulesEnabled` = `false`, then the quota enforcement will be disabled.
4674
+ *
4675
+ * This operation does not retry by default if the user has not defined a retry configuration.
4676
+ * @param ToggleQuotaRulesRequest
4677
+ * @return ToggleQuotaRulesResponse
4678
+ * @throws OciError when an error occurs
4679
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ToggleQuotaRules.ts.html |here} to see how to use ToggleQuotaRules API.
4680
+ */
4681
+ toggleQuotaRules(toggleQuotaRulesRequest) {
4682
+ return __awaiter(this, void 0, void 0, function* () {
4683
+ if (this.logger)
4684
+ this.logger.debug("Calling operation FileStorageClient#toggleQuotaRules.");
4685
+ const operationName = "toggleQuotaRules";
4686
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/ToggleQuotaRules";
4687
+ const pathParams = {
4688
+ "{fileSystemId}": toggleQuotaRulesRequest.fileSystemId
4689
+ };
4690
+ const queryParams = {};
4691
+ let headerParams = {
4692
+ "Content-Type": common.Constants.APPLICATION_JSON,
4693
+ "if-match": toggleQuotaRulesRequest.ifMatch,
4694
+ "opc-retry-token": toggleQuotaRulesRequest.opcRetryToken,
4695
+ "opc-request-id": toggleQuotaRulesRequest.opcRequestId
4696
+ };
4697
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
4698
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, toggleQuotaRulesRequest.retryConfiguration, specRetryConfiguration);
4699
+ if (this.logger)
4700
+ retrier.logger = this.logger;
4701
+ const request = yield oci_common_2.composeRequest({
4702
+ baseEndpoint: this._endpoint,
4703
+ defaultHeaders: this._defaultHeaders,
4704
+ path: "/fileSystems/{fileSystemId}/actions/toggleQuotaRules",
4705
+ method: "POST",
4706
+ bodyContent: common.ObjectSerializer.serialize(toggleQuotaRulesRequest.toggleQuotaRulesDetails, "ToggleQuotaRulesDetails", model.ToggleQuotaRulesDetails.getJsonObj),
4707
+ pathParams: pathParams,
4708
+ headerParams: headerParams,
4709
+ queryParams: queryParams
4710
+ });
4711
+ try {
4712
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
4713
+ const sdkResponse = oci_common_2.composeResponse({
4714
+ responseObject: {},
4715
+ responseHeaders: [
4716
+ {
4717
+ value: response.headers.get("opc-request-id"),
4718
+ key: "opcRequestId",
4719
+ dataType: "string"
4720
+ }
4721
+ ]
4722
+ });
4723
+ return sdkResponse;
4724
+ }
4725
+ catch (err) {
4726
+ throw err;
4727
+ }
4728
+ });
4729
+ }
4367
4730
  /**
4368
4731
  * This operation unpauses a paused file system snapshot policy and updates the lifecycle state of the file system snapshot policy from
4369
4732
  * INACTIVE to ACTIVE. By default, file system snapshot policies are in the ACTIVE state. When a file system snapshot policy is not paused, or in the ACTIVE state, file systems that are associated with the
@@ -4837,6 +5200,73 @@ class FileStorageClient {
4837
5200
  }
4838
5201
  });
4839
5202
  }
5203
+ /**
5204
+ * Edit a file system, user, or group quota rule given the `fileSystemId` and `quotaRuleId` parameters.
5205
+ *
5206
+ * This operation does not retry by default if the user has not defined a retry configuration.
5207
+ * @param UpdateQuotaRuleRequest
5208
+ * @return UpdateQuotaRuleResponse
5209
+ * @throws OciError when an error occurs
5210
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/UpdateQuotaRule.ts.html |here} to see how to use UpdateQuotaRule API.
5211
+ */
5212
+ updateQuotaRule(updateQuotaRuleRequest) {
5213
+ return __awaiter(this, void 0, void 0, function* () {
5214
+ if (this.logger)
5215
+ this.logger.debug("Calling operation FileStorageClient#updateQuotaRule.");
5216
+ const operationName = "updateQuotaRule";
5217
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/UpdateQuotaRule";
5218
+ const pathParams = {
5219
+ "{fileSystemId}": updateQuotaRuleRequest.fileSystemId,
5220
+ "{quotaRuleId}": updateQuotaRuleRequest.quotaRuleId
5221
+ };
5222
+ const queryParams = {};
5223
+ let headerParams = {
5224
+ "Content-Type": common.Constants.APPLICATION_JSON,
5225
+ "if-match": updateQuotaRuleRequest.ifMatch,
5226
+ "opc-request-id": updateQuotaRuleRequest.opcRequestId
5227
+ };
5228
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
5229
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateQuotaRuleRequest.retryConfiguration, specRetryConfiguration);
5230
+ if (this.logger)
5231
+ retrier.logger = this.logger;
5232
+ const request = yield oci_common_2.composeRequest({
5233
+ baseEndpoint: this._endpoint,
5234
+ defaultHeaders: this._defaultHeaders,
5235
+ path: "/fileSystems/{fileSystemId}/quotaRules/{quotaRuleId}",
5236
+ method: "PUT",
5237
+ bodyContent: common.ObjectSerializer.serialize(updateQuotaRuleRequest.updateQuotaRuleDetails, "UpdateQuotaRuleDetails", model.UpdateQuotaRuleDetails.getJsonObj),
5238
+ pathParams: pathParams,
5239
+ headerParams: headerParams,
5240
+ queryParams: queryParams
5241
+ });
5242
+ try {
5243
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
5244
+ const sdkResponse = oci_common_2.composeResponse({
5245
+ responseObject: {},
5246
+ body: yield response.json(),
5247
+ bodyKey: "quotaRule",
5248
+ bodyModel: model.QuotaRule,
5249
+ type: "model.QuotaRule",
5250
+ responseHeaders: [
5251
+ {
5252
+ value: response.headers.get("etag"),
5253
+ key: "etag",
5254
+ dataType: "string"
5255
+ },
5256
+ {
5257
+ value: response.headers.get("opc-request-id"),
5258
+ key: "opcRequestId",
5259
+ dataType: "string"
5260
+ }
5261
+ ]
5262
+ });
5263
+ return sdkResponse;
5264
+ }
5265
+ catch (err) {
5266
+ throw err;
5267
+ }
5268
+ });
5269
+ }
4840
5270
  /**
4841
5271
  * Updates the information for the specified replication and its associated replication target.
4842
5272
  *