oci-core 2.119.1 → 2.121.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.
- package/lib/client.d.ts +46 -0
- package/lib/client.js +253 -1
- package/lib/client.js.map +1 -1
- package/lib/model/add-ipv4-subnet-cidr-details.d.ts +38 -0
- package/lib/model/add-ipv4-subnet-cidr-details.js +36 -0
- package/lib/model/add-ipv4-subnet-cidr-details.js.map +1 -0
- package/lib/model/create-instance-pool-details.d.ts +1 -0
- package/lib/model/create-instance-pool-details.js +6 -0
- package/lib/model/create-instance-pool-details.js.map +1 -1
- package/lib/model/create-private-ip-details.d.ts +16 -0
- package/lib/model/create-private-ip-details.js.map +1 -1
- package/lib/model/create-subnet-details.d.ts +9 -1
- package/lib/model/create-subnet-details.js.map +1 -1
- package/lib/model/create-vnic-details.d.ts +10 -0
- package/lib/model/create-vnic-details.js.map +1 -1
- package/lib/model/index.d.ts +16 -0
- package/lib/model/index.js +30 -14
- package/lib/model/index.js.map +1 -1
- package/lib/model/instance-configuration-create-vnic-details.d.ts +11 -0
- package/lib/model/instance-configuration-create-vnic-details.js.map +1 -1
- package/lib/model/instance-pool-instance.d.ts +2 -0
- package/lib/model/instance-pool-instance.js +2 -0
- package/lib/model/instance-pool-instance.js.map +1 -1
- package/lib/model/instance-pool-lifecycle-actions-details.d.ts +31 -0
- package/lib/model/instance-pool-lifecycle-actions-details.js +64 -0
- package/lib/model/instance-pool-lifecycle-actions-details.js.map +1 -0
- package/lib/model/instance-pool-lifecycle-management-details.d.ts +31 -0
- package/lib/model/instance-pool-lifecycle-management-details.js +64 -0
- package/lib/model/instance-pool-lifecycle-management-details.js.map +1 -0
- package/lib/model/instance-pool-pre-termination-action-details.d.ts +41 -0
- package/lib/model/instance-pool-pre-termination-action-details.js +64 -0
- package/lib/model/instance-pool-pre-termination-action-details.js.map +1 -0
- package/lib/model/instance-pool-pre-termination-action-handle-timeout-details.d.ts +59 -0
- package/lib/model/instance-pool-pre-termination-action-handle-timeout-details.js +58 -0
- package/lib/model/instance-pool-pre-termination-action-handle-timeout-details.js.map +1 -0
- package/lib/model/instance-pool.d.ts +1 -0
- package/lib/model/instance-pool.js +6 -0
- package/lib/model/instance-pool.js.map +1 -1
- package/lib/model/modify-ipv4-subnet-cidr-details.d.ts +38 -0
- package/lib/model/modify-ipv4-subnet-cidr-details.js +36 -0
- package/lib/model/modify-ipv4-subnet-cidr-details.js.map +1 -0
- package/lib/model/private-ip.d.ts +9 -0
- package/lib/model/private-ip.js.map +1 -1
- package/lib/model/remove-ipv4-subnet-cidr-details.d.ts +40 -0
- package/lib/model/remove-ipv4-subnet-cidr-details.js +36 -0
- package/lib/model/remove-ipv4-subnet-cidr-details.js.map +1 -0
- package/lib/model/subnet.d.ts +8 -0
- package/lib/model/subnet.js.map +1 -1
- package/lib/model/termination-proceed-instance-pool-instance-details.d.ts +34 -0
- package/lib/model/termination-proceed-instance-pool-instance-details.js +36 -0
- package/lib/model/termination-proceed-instance-pool-instance-details.js.map +1 -0
- package/lib/model/update-instance-pool-details.d.ts +1 -0
- package/lib/model/update-instance-pool-details.js +6 -0
- package/lib/model/update-instance-pool-details.js.map +1 -1
- package/lib/request/add-ipv4-subnet-cidr-request.d.ts +49 -0
- package/lib/request/add-ipv4-subnet-cidr-request.js +15 -0
- package/lib/request/add-ipv4-subnet-cidr-request.js.map +1 -0
- package/lib/request/index.d.ts +8 -0
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-compute-hosts-request.d.ts +7 -0
- package/lib/request/list-compute-hosts-request.js.map +1 -1
- package/lib/request/modify-ipv4-subnet-cidr-request.d.ts +49 -0
- package/lib/request/modify-ipv4-subnet-cidr-request.js +15 -0
- package/lib/request/modify-ipv4-subnet-cidr-request.js.map +1 -0
- package/lib/request/remove-ipv4-subnet-cidr-request.d.ts +49 -0
- package/lib/request/remove-ipv4-subnet-cidr-request.js +15 -0
- package/lib/request/remove-ipv4-subnet-cidr-request.js.map +1 -0
- package/lib/request/termination-proceed-instance-pool-instance-request.d.ts +36 -0
- package/lib/request/termination-proceed-instance-pool-instance-request.js +15 -0
- package/lib/request/termination-proceed-instance-pool-instance-request.js.map +1 -0
- package/lib/response/add-ipv4-subnet-cidr-response.d.ts +27 -0
- package/lib/response/add-ipv4-subnet-cidr-response.js +15 -0
- package/lib/response/add-ipv4-subnet-cidr-response.js.map +1 -0
- package/lib/response/index.d.ts +8 -0
- package/lib/response/modify-ipv4-subnet-cidr-response.d.ts +27 -0
- package/lib/response/modify-ipv4-subnet-cidr-response.js +15 -0
- package/lib/response/modify-ipv4-subnet-cidr-response.js.map +1 -0
- package/lib/response/remove-ipv4-subnet-cidr-response.d.ts +27 -0
- package/lib/response/remove-ipv4-subnet-cidr-response.js +15 -0
- package/lib/response/remove-ipv4-subnet-cidr-response.js.map +1 -0
- package/lib/response/termination-proceed-instance-pool-instance-response.d.ts +20 -0
- package/lib/response/termination-proceed-instance-pool-instance-response.js +15 -0
- package/lib/response/termination-proceed-instance-pool-instance-response.js.map +1 -0
- package/lib/virtualnetwork-waiter.d.ts +30 -0
- package/lib/virtualnetwork-waiter.js +45 -0
- package/lib/virtualnetwork-waiter.js.map +1 -1
- package/package.json +3 -3
package/lib/client.d.ts
CHANGED
|
@@ -4067,6 +4067,16 @@ export declare class ComputeManagementClient {
|
|
|
4067
4067
|
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/TerminateInstancePool.ts.html |here} to see how to use TerminateInstancePool API.
|
|
4068
4068
|
*/
|
|
4069
4069
|
terminateInstancePool(terminateInstancePoolRequest: requests.TerminateInstancePoolRequest): Promise<responses.TerminateInstancePoolResponse>;
|
|
4070
|
+
/**
|
|
4071
|
+
* Marks an instance in an instance pool to be ready for termination.
|
|
4072
|
+
*
|
|
4073
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
4074
|
+
* @param TerminationProceedInstancePoolInstanceRequest
|
|
4075
|
+
* @return TerminationProceedInstancePoolInstanceResponse
|
|
4076
|
+
* @throws OciError when an error occurs
|
|
4077
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/TerminationProceedInstancePoolInstance.ts.html |here} to see how to use TerminationProceedInstancePoolInstance API.
|
|
4078
|
+
*/
|
|
4079
|
+
terminationProceedInstancePoolInstance(terminationProceedInstancePoolInstanceRequest: requests.TerminationProceedInstancePoolInstanceRequest): Promise<responses.TerminationProceedInstancePoolInstanceResponse>;
|
|
4070
4080
|
/**
|
|
4071
4081
|
* Updates a [cluster network with instance pools](https://docs.oracle.com/iaas/Content/Compute/Tasks/managingclusternetworks.htm).
|
|
4072
4082
|
* The OCID of the cluster network remains the same.
|
|
@@ -4200,6 +4210,16 @@ export declare class VirtualNetworkClient {
|
|
|
4200
4210
|
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/AddDrgRouteRules.ts.html |here} to see how to use AddDrgRouteRules API.
|
|
4201
4211
|
*/
|
|
4202
4212
|
addDrgRouteRules(addDrgRouteRulesRequest: requests.AddDrgRouteRulesRequest): Promise<responses.AddDrgRouteRulesResponse>;
|
|
4213
|
+
/**
|
|
4214
|
+
* Add an IPv4 prefix to a subnet.
|
|
4215
|
+
*
|
|
4216
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4217
|
+
* @param AddIpv4SubnetCidrRequest
|
|
4218
|
+
* @return AddIpv4SubnetCidrResponse
|
|
4219
|
+
* @throws OciError when an error occurs
|
|
4220
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/AddIpv4SubnetCidr.ts.html |here} to see how to use AddIpv4SubnetCidr API.
|
|
4221
|
+
*/
|
|
4222
|
+
addIpv4SubnetCidr(addIpv4SubnetCidrRequest: requests.AddIpv4SubnetCidrRequest): Promise<responses.AddIpv4SubnetCidrResponse>;
|
|
4203
4223
|
/**
|
|
4204
4224
|
* Add an IPv6 prefix to a subnet.
|
|
4205
4225
|
*
|
|
@@ -8246,6 +8266,22 @@ export declare class VirtualNetworkClient {
|
|
|
8246
8266
|
* @param request a request which can be sent to the service operation
|
|
8247
8267
|
*/
|
|
8248
8268
|
listVtapsResponseIterator(request: requests.ListVtapsRequest): AsyncIterableIterator<responses.ListVtapsResponse>;
|
|
8269
|
+
/**
|
|
8270
|
+
* Updates the specified Ipv4 CIDR block of a Subnet. The new Ipv4 CIDR IP range must meet the following criteria:
|
|
8271
|
+
* <p>
|
|
8272
|
+
- Must be valid.
|
|
8273
|
+
* - Must not overlap with another Ipv4 CIDR block in the Subnet or the on-premises network CIDR block.
|
|
8274
|
+
* - Must not exceed the limit of Ipv4 CIDR blocks allowed per Subnet.
|
|
8275
|
+
* - Must include IP addresses from the original CIDR block that are used in the VCN's existing route rules.
|
|
8276
|
+
* - No IP address in an existing subnet should be outside of the new CIDR block range.
|
|
8277
|
+
*
|
|
8278
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
8279
|
+
* @param ModifyIpv4SubnetCidrRequest
|
|
8280
|
+
* @return ModifyIpv4SubnetCidrResponse
|
|
8281
|
+
* @throws OciError when an error occurs
|
|
8282
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/ModifyIpv4SubnetCidr.ts.html |here} to see how to use ModifyIpv4SubnetCidr API.
|
|
8283
|
+
*/
|
|
8284
|
+
modifyIpv4SubnetCidr(modifyIpv4SubnetCidrRequest: requests.ModifyIpv4SubnetCidrRequest): Promise<responses.ModifyIpv4SubnetCidrResponse>;
|
|
8249
8285
|
/**
|
|
8250
8286
|
* Updates the specified CIDR block of a VCN. The new CIDR IP range must meet the following criteria:
|
|
8251
8287
|
* <p>
|
|
@@ -8315,6 +8351,16 @@ export declare class VirtualNetworkClient {
|
|
|
8315
8351
|
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/RemoveImportDrgRouteDistribution.ts.html |here} to see how to use RemoveImportDrgRouteDistribution API.
|
|
8316
8352
|
*/
|
|
8317
8353
|
removeImportDrgRouteDistribution(removeImportDrgRouteDistributionRequest: requests.RemoveImportDrgRouteDistributionRequest): Promise<responses.RemoveImportDrgRouteDistributionResponse>;
|
|
8354
|
+
/**
|
|
8355
|
+
* Remove an IPv4 prefix from a subnet
|
|
8356
|
+
*
|
|
8357
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
8358
|
+
* @param RemoveIpv4SubnetCidrRequest
|
|
8359
|
+
* @return RemoveIpv4SubnetCidrResponse
|
|
8360
|
+
* @throws OciError when an error occurs
|
|
8361
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/RemoveIpv4SubnetCidr.ts.html |here} to see how to use RemoveIpv4SubnetCidr API.
|
|
8362
|
+
*/
|
|
8363
|
+
removeIpv4SubnetCidr(removeIpv4SubnetCidrRequest: requests.RemoveIpv4SubnetCidrRequest): Promise<responses.RemoveIpv4SubnetCidrResponse>;
|
|
8318
8364
|
/**
|
|
8319
8365
|
* Remove an IPv6 prefix from a subnet. At least one IPv6 CIDR should remain.
|
|
8320
8366
|
*
|
package/lib/client.js
CHANGED
|
@@ -11181,7 +11181,8 @@ class ComputeClient {
|
|
|
11181
11181
|
"sortOrder": listComputeHostsRequest.sortOrder,
|
|
11182
11182
|
"computeHostLifecycleState": listComputeHostsRequest.computeHostLifecycleState,
|
|
11183
11183
|
"computeHostHealth": listComputeHostsRequest.computeHostHealth,
|
|
11184
|
-
"computeHostGroupId": listComputeHostsRequest.computeHostGroupId
|
|
11184
|
+
"computeHostGroupId": listComputeHostsRequest.computeHostGroupId,
|
|
11185
|
+
"computeHostInSubtree": listComputeHostsRequest.computeHostInSubtree
|
|
11185
11186
|
};
|
|
11186
11187
|
let headerParams = {
|
|
11187
11188
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
@@ -16345,6 +16346,62 @@ class ComputeManagementClient {
|
|
|
16345
16346
|
}
|
|
16346
16347
|
});
|
|
16347
16348
|
}
|
|
16349
|
+
/**
|
|
16350
|
+
* Marks an instance in an instance pool to be ready for termination.
|
|
16351
|
+
*
|
|
16352
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
16353
|
+
* @param TerminationProceedInstancePoolInstanceRequest
|
|
16354
|
+
* @return TerminationProceedInstancePoolInstanceResponse
|
|
16355
|
+
* @throws OciError when an error occurs
|
|
16356
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/TerminationProceedInstancePoolInstance.ts.html |here} to see how to use TerminationProceedInstancePoolInstance API.
|
|
16357
|
+
*/
|
|
16358
|
+
terminationProceedInstancePoolInstance(terminationProceedInstancePoolInstanceRequest) {
|
|
16359
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16360
|
+
if (this.logger)
|
|
16361
|
+
this.logger.debug("Calling operation ComputeManagementClient#terminationProceedInstancePoolInstance.");
|
|
16362
|
+
const operationName = "terminationProceedInstancePoolInstance";
|
|
16363
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstancePoolInstance/TerminationProceedInstancePoolInstance";
|
|
16364
|
+
const pathParams = {
|
|
16365
|
+
"{instancePoolId}": terminationProceedInstancePoolInstanceRequest.instancePoolId
|
|
16366
|
+
};
|
|
16367
|
+
const queryParams = {};
|
|
16368
|
+
let headerParams = {
|
|
16369
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
16370
|
+
"opc-retry-token": terminationProceedInstancePoolInstanceRequest.opcRetryToken
|
|
16371
|
+
};
|
|
16372
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
16373
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, terminationProceedInstancePoolInstanceRequest.retryConfiguration, specRetryConfiguration);
|
|
16374
|
+
if (this.logger)
|
|
16375
|
+
retrier.logger = this.logger;
|
|
16376
|
+
const request = yield oci_common_2.composeRequest({
|
|
16377
|
+
baseEndpoint: this._endpoint,
|
|
16378
|
+
defaultHeaders: this._defaultHeaders,
|
|
16379
|
+
path: "/instancePools/{instancePoolId}/actions/terminationProceed",
|
|
16380
|
+
method: "POST",
|
|
16381
|
+
bodyContent: common.ObjectSerializer.serialize(terminationProceedInstancePoolInstanceRequest.terminationProceedInstancePoolInstanceDetails, "TerminationProceedInstancePoolInstanceDetails", model.TerminationProceedInstancePoolInstanceDetails.getJsonObj),
|
|
16382
|
+
pathParams: pathParams,
|
|
16383
|
+
headerParams: headerParams,
|
|
16384
|
+
queryParams: queryParams
|
|
16385
|
+
});
|
|
16386
|
+
try {
|
|
16387
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
16388
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
16389
|
+
responseObject: {},
|
|
16390
|
+
responseHeaders: [
|
|
16391
|
+
{
|
|
16392
|
+
value: response.headers.get("opc-request-id"),
|
|
16393
|
+
key: "opcRequestId",
|
|
16394
|
+
dataType: "string"
|
|
16395
|
+
}
|
|
16396
|
+
]
|
|
16397
|
+
});
|
|
16398
|
+
return sdkResponse;
|
|
16399
|
+
}
|
|
16400
|
+
catch (err) {
|
|
16401
|
+
throw err;
|
|
16402
|
+
}
|
|
16403
|
+
});
|
|
16404
|
+
}
|
|
16348
16405
|
/**
|
|
16349
16406
|
* Updates a [cluster network with instance pools](https://docs.oracle.com/iaas/Content/Compute/Tasks/managingclusternetworks.htm).
|
|
16350
16407
|
* The OCID of the cluster network remains the same.
|
|
@@ -16827,6 +16884,69 @@ class VirtualNetworkClient {
|
|
|
16827
16884
|
}
|
|
16828
16885
|
});
|
|
16829
16886
|
}
|
|
16887
|
+
/**
|
|
16888
|
+
* Add an IPv4 prefix to a subnet.
|
|
16889
|
+
*
|
|
16890
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
16891
|
+
* @param AddIpv4SubnetCidrRequest
|
|
16892
|
+
* @return AddIpv4SubnetCidrResponse
|
|
16893
|
+
* @throws OciError when an error occurs
|
|
16894
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/AddIpv4SubnetCidr.ts.html |here} to see how to use AddIpv4SubnetCidr API.
|
|
16895
|
+
*/
|
|
16896
|
+
addIpv4SubnetCidr(addIpv4SubnetCidrRequest) {
|
|
16897
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16898
|
+
if (this.logger)
|
|
16899
|
+
this.logger.debug("Calling operation VirtualNetworkClient#addIpv4SubnetCidr.");
|
|
16900
|
+
const operationName = "addIpv4SubnetCidr";
|
|
16901
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Subnet/AddIpv4SubnetCidr";
|
|
16902
|
+
const pathParams = {
|
|
16903
|
+
"{subnetId}": addIpv4SubnetCidrRequest.subnetId
|
|
16904
|
+
};
|
|
16905
|
+
const queryParams = {};
|
|
16906
|
+
let headerParams = {
|
|
16907
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
16908
|
+
"opc-retry-token": addIpv4SubnetCidrRequest.opcRetryToken,
|
|
16909
|
+
"if-match": addIpv4SubnetCidrRequest.ifMatch,
|
|
16910
|
+
"opc-request-id": addIpv4SubnetCidrRequest.opcRequestId
|
|
16911
|
+
};
|
|
16912
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
16913
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, addIpv4SubnetCidrRequest.retryConfiguration, specRetryConfiguration);
|
|
16914
|
+
if (this.logger)
|
|
16915
|
+
retrier.logger = this.logger;
|
|
16916
|
+
const request = yield oci_common_2.composeRequest({
|
|
16917
|
+
baseEndpoint: this._endpoint,
|
|
16918
|
+
defaultHeaders: this._defaultHeaders,
|
|
16919
|
+
path: "/subnets/{subnetId}/actions/addIpv4Cidr",
|
|
16920
|
+
method: "POST",
|
|
16921
|
+
bodyContent: common.ObjectSerializer.serialize(addIpv4SubnetCidrRequest.addIpv4SubnetCidrDetails, "AddIpv4SubnetCidrDetails", model.AddIpv4SubnetCidrDetails.getJsonObj),
|
|
16922
|
+
pathParams: pathParams,
|
|
16923
|
+
headerParams: headerParams,
|
|
16924
|
+
queryParams: queryParams
|
|
16925
|
+
});
|
|
16926
|
+
try {
|
|
16927
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
16928
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
16929
|
+
responseObject: {},
|
|
16930
|
+
responseHeaders: [
|
|
16931
|
+
{
|
|
16932
|
+
value: response.headers.get("opc-request-id"),
|
|
16933
|
+
key: "opcRequestId",
|
|
16934
|
+
dataType: "string"
|
|
16935
|
+
},
|
|
16936
|
+
{
|
|
16937
|
+
value: response.headers.get("opc-work-request-id"),
|
|
16938
|
+
key: "opcWorkRequestId",
|
|
16939
|
+
dataType: "string"
|
|
16940
|
+
}
|
|
16941
|
+
]
|
|
16942
|
+
});
|
|
16943
|
+
return sdkResponse;
|
|
16944
|
+
}
|
|
16945
|
+
catch (err) {
|
|
16946
|
+
throw err;
|
|
16947
|
+
}
|
|
16948
|
+
});
|
|
16949
|
+
}
|
|
16830
16950
|
/**
|
|
16831
16951
|
* Add an IPv6 prefix to a subnet.
|
|
16832
16952
|
*
|
|
@@ -31980,6 +32100,75 @@ class VirtualNetworkClient {
|
|
|
31980
32100
|
listVtapsResponseIterator(request) {
|
|
31981
32101
|
return oci_common_1.paginateResponses(request, req => this.listVtaps(req));
|
|
31982
32102
|
}
|
|
32103
|
+
/**
|
|
32104
|
+
* Updates the specified Ipv4 CIDR block of a Subnet. The new Ipv4 CIDR IP range must meet the following criteria:
|
|
32105
|
+
* <p>
|
|
32106
|
+
- Must be valid.
|
|
32107
|
+
* - Must not overlap with another Ipv4 CIDR block in the Subnet or the on-premises network CIDR block.
|
|
32108
|
+
* - Must not exceed the limit of Ipv4 CIDR blocks allowed per Subnet.
|
|
32109
|
+
* - Must include IP addresses from the original CIDR block that are used in the VCN's existing route rules.
|
|
32110
|
+
* - No IP address in an existing subnet should be outside of the new CIDR block range.
|
|
32111
|
+
*
|
|
32112
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
32113
|
+
* @param ModifyIpv4SubnetCidrRequest
|
|
32114
|
+
* @return ModifyIpv4SubnetCidrResponse
|
|
32115
|
+
* @throws OciError when an error occurs
|
|
32116
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/ModifyIpv4SubnetCidr.ts.html |here} to see how to use ModifyIpv4SubnetCidr API.
|
|
32117
|
+
*/
|
|
32118
|
+
modifyIpv4SubnetCidr(modifyIpv4SubnetCidrRequest) {
|
|
32119
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32120
|
+
if (this.logger)
|
|
32121
|
+
this.logger.debug("Calling operation VirtualNetworkClient#modifyIpv4SubnetCidr.");
|
|
32122
|
+
const operationName = "modifyIpv4SubnetCidr";
|
|
32123
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Subnet/ModifyIpv4SubnetCidr";
|
|
32124
|
+
const pathParams = {
|
|
32125
|
+
"{subnetId}": modifyIpv4SubnetCidrRequest.subnetId
|
|
32126
|
+
};
|
|
32127
|
+
const queryParams = {};
|
|
32128
|
+
let headerParams = {
|
|
32129
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
32130
|
+
"opc-retry-token": modifyIpv4SubnetCidrRequest.opcRetryToken,
|
|
32131
|
+
"if-match": modifyIpv4SubnetCidrRequest.ifMatch,
|
|
32132
|
+
"opc-request-id": modifyIpv4SubnetCidrRequest.opcRequestId
|
|
32133
|
+
};
|
|
32134
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
32135
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, modifyIpv4SubnetCidrRequest.retryConfiguration, specRetryConfiguration);
|
|
32136
|
+
if (this.logger)
|
|
32137
|
+
retrier.logger = this.logger;
|
|
32138
|
+
const request = yield oci_common_2.composeRequest({
|
|
32139
|
+
baseEndpoint: this._endpoint,
|
|
32140
|
+
defaultHeaders: this._defaultHeaders,
|
|
32141
|
+
path: "/subnets/{subnetId}/actions/modifyIpv4Cidr",
|
|
32142
|
+
method: "POST",
|
|
32143
|
+
bodyContent: common.ObjectSerializer.serialize(modifyIpv4SubnetCidrRequest.modifyIpv4SubnetCidrDetails, "ModifyIpv4SubnetCidrDetails", model.ModifyIpv4SubnetCidrDetails.getJsonObj),
|
|
32144
|
+
pathParams: pathParams,
|
|
32145
|
+
headerParams: headerParams,
|
|
32146
|
+
queryParams: queryParams
|
|
32147
|
+
});
|
|
32148
|
+
try {
|
|
32149
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
32150
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
32151
|
+
responseObject: {},
|
|
32152
|
+
responseHeaders: [
|
|
32153
|
+
{
|
|
32154
|
+
value: response.headers.get("opc-request-id"),
|
|
32155
|
+
key: "opcRequestId",
|
|
32156
|
+
dataType: "string"
|
|
32157
|
+
},
|
|
32158
|
+
{
|
|
32159
|
+
value: response.headers.get("opc-work-request-id"),
|
|
32160
|
+
key: "opcWorkRequestId",
|
|
32161
|
+
dataType: "string"
|
|
32162
|
+
}
|
|
32163
|
+
]
|
|
32164
|
+
});
|
|
32165
|
+
return sdkResponse;
|
|
32166
|
+
}
|
|
32167
|
+
catch (err) {
|
|
32168
|
+
throw err;
|
|
32169
|
+
}
|
|
32170
|
+
});
|
|
32171
|
+
}
|
|
31983
32172
|
/**
|
|
31984
32173
|
* Updates the specified CIDR block of a VCN. The new CIDR IP range must meet the following criteria:
|
|
31985
32174
|
* <p>
|
|
@@ -32358,6 +32547,69 @@ class VirtualNetworkClient {
|
|
|
32358
32547
|
}
|
|
32359
32548
|
});
|
|
32360
32549
|
}
|
|
32550
|
+
/**
|
|
32551
|
+
* Remove an IPv4 prefix from a subnet
|
|
32552
|
+
*
|
|
32553
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
32554
|
+
* @param RemoveIpv4SubnetCidrRequest
|
|
32555
|
+
* @return RemoveIpv4SubnetCidrResponse
|
|
32556
|
+
* @throws OciError when an error occurs
|
|
32557
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/RemoveIpv4SubnetCidr.ts.html |here} to see how to use RemoveIpv4SubnetCidr API.
|
|
32558
|
+
*/
|
|
32559
|
+
removeIpv4SubnetCidr(removeIpv4SubnetCidrRequest) {
|
|
32560
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32561
|
+
if (this.logger)
|
|
32562
|
+
this.logger.debug("Calling operation VirtualNetworkClient#removeIpv4SubnetCidr.");
|
|
32563
|
+
const operationName = "removeIpv4SubnetCidr";
|
|
32564
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Subnet/RemoveIpv4SubnetCidr";
|
|
32565
|
+
const pathParams = {
|
|
32566
|
+
"{subnetId}": removeIpv4SubnetCidrRequest.subnetId
|
|
32567
|
+
};
|
|
32568
|
+
const queryParams = {};
|
|
32569
|
+
let headerParams = {
|
|
32570
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
32571
|
+
"opc-retry-token": removeIpv4SubnetCidrRequest.opcRetryToken,
|
|
32572
|
+
"if-match": removeIpv4SubnetCidrRequest.ifMatch,
|
|
32573
|
+
"opc-request-id": removeIpv4SubnetCidrRequest.opcRequestId
|
|
32574
|
+
};
|
|
32575
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
32576
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, removeIpv4SubnetCidrRequest.retryConfiguration, specRetryConfiguration);
|
|
32577
|
+
if (this.logger)
|
|
32578
|
+
retrier.logger = this.logger;
|
|
32579
|
+
const request = yield oci_common_2.composeRequest({
|
|
32580
|
+
baseEndpoint: this._endpoint,
|
|
32581
|
+
defaultHeaders: this._defaultHeaders,
|
|
32582
|
+
path: "/subnets/{subnetId}/actions/removeIpv4Cidr",
|
|
32583
|
+
method: "POST",
|
|
32584
|
+
bodyContent: common.ObjectSerializer.serialize(removeIpv4SubnetCidrRequest.removeIpv4SubnetCidrDetails, "RemoveIpv4SubnetCidrDetails", model.RemoveIpv4SubnetCidrDetails.getJsonObj),
|
|
32585
|
+
pathParams: pathParams,
|
|
32586
|
+
headerParams: headerParams,
|
|
32587
|
+
queryParams: queryParams
|
|
32588
|
+
});
|
|
32589
|
+
try {
|
|
32590
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
32591
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
32592
|
+
responseObject: {},
|
|
32593
|
+
responseHeaders: [
|
|
32594
|
+
{
|
|
32595
|
+
value: response.headers.get("opc-request-id"),
|
|
32596
|
+
key: "opcRequestId",
|
|
32597
|
+
dataType: "string"
|
|
32598
|
+
},
|
|
32599
|
+
{
|
|
32600
|
+
value: response.headers.get("opc-work-request-id"),
|
|
32601
|
+
key: "opcWorkRequestId",
|
|
32602
|
+
dataType: "string"
|
|
32603
|
+
}
|
|
32604
|
+
]
|
|
32605
|
+
});
|
|
32606
|
+
return sdkResponse;
|
|
32607
|
+
}
|
|
32608
|
+
catch (err) {
|
|
32609
|
+
throw err;
|
|
32610
|
+
}
|
|
32611
|
+
});
|
|
32612
|
+
}
|
|
32361
32613
|
/**
|
|
32362
32614
|
* Remove an IPv6 prefix from a subnet. At least one IPv6 CIDR should remain.
|
|
32363
32615
|
*
|