oci-core 2.131.1 → 2.132.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 +43 -0
- package/lib/client.js +149 -0
- package/lib/client.js.map +1 -1
- package/lib/model/compute-cluster.d.ts +7 -5
- package/lib/model/compute-cluster.js.map +1 -1
- package/lib/model/index.d.ts +12 -0
- package/lib/model/index.js +19 -7
- package/lib/model/index.js.map +1 -1
- package/lib/model/patch-subnet-details.d.ts +49 -0
- package/lib/model/patch-subnet-details.js +68 -0
- package/lib/model/patch-subnet-details.js.map +1 -0
- package/lib/model/patch-subnet-instruction.d.ts +37 -0
- package/lib/model/patch-subnet-instruction.js +75 -0
- package/lib/model/patch-subnet-instruction.js.map +1 -0
- package/lib/model/patch-subnet-replace-instruction.d.ts +48 -0
- package/lib/model/patch-subnet-replace-instruction.js +61 -0
- package/lib/model/patch-subnet-replace-instruction.js.map +1 -0
- package/lib/model/patch-vcn-details.d.ts +70 -0
- package/lib/model/patch-vcn-details.js +68 -0
- package/lib/model/patch-vcn-details.js.map +1 -0
- package/lib/model/patch-vcn-instruction.d.ts +37 -0
- package/lib/model/patch-vcn-instruction.js +75 -0
- package/lib/model/patch-vcn-instruction.js.map +1 -0
- package/lib/model/patch-vcn-replace-instruction.d.ts +48 -0
- package/lib/model/patch-vcn-replace-instruction.js +61 -0
- package/lib/model/patch-vcn-replace-instruction.js.map +1 -0
- package/lib/request/index.d.ts +4 -0
- package/lib/request/patch-subnet-request.d.ts +49 -0
- package/lib/request/patch-subnet-request.js +15 -0
- package/lib/request/patch-subnet-request.js.map +1 -0
- package/lib/request/patch-vcn-request.d.ts +49 -0
- package/lib/request/patch-vcn-request.js +15 -0
- package/lib/request/patch-vcn-request.js.map +1 -0
- package/lib/response/index.d.ts +4 -0
- package/lib/response/patch-subnet-response.d.ts +27 -0
- package/lib/response/patch-subnet-response.js +15 -0
- package/lib/response/patch-subnet-response.js.map +1 -0
- package/lib/response/patch-vcn-response.d.ts +27 -0
- package/lib/response/patch-vcn-response.js +15 -0
- package/lib/response/patch-vcn-response.js.map +1 -0
- package/lib/virtualnetwork-waiter.d.ts +20 -0
- package/lib/virtualnetwork-waiter.js +30 -0
- package/lib/virtualnetwork-waiter.js.map +1 -1
- package/package.json +3 -3
package/lib/client.d.ts
CHANGED
|
@@ -8419,6 +8419,49 @@ export declare class VirtualNetworkClient {
|
|
|
8419
8419
|
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/ModifyVcnCidr.ts.html |here} to see how to use ModifyVcnCidr API.
|
|
8420
8420
|
*/
|
|
8421
8421
|
modifyVcnCidr(modifyVcnCidrRequest: requests.ModifyVcnCidrRequest): Promise<responses.ModifyVcnCidrResponse>;
|
|
8422
|
+
/**
|
|
8423
|
+
* Updates a Subnet by evaluating a sequence of patch instructions (JSON List Patch).
|
|
8424
|
+
* This operation is restricted to IPv6 CIDR-related fields only.
|
|
8425
|
+
* Supported selections (exact match) are:
|
|
8426
|
+
* - ipv6CidrBlock
|
|
8427
|
+
* - ipv6CidrBlocks
|
|
8428
|
+
* Only the REPLACE operation is supported.
|
|
8429
|
+
* The request must include the If-Match header for optimistic concurrency control.
|
|
8430
|
+
* This is an asynchronous operation. The subnet\u2019s lifecycleState is set to UPDATING while the patch work request
|
|
8431
|
+
* is in progress, and changes back to AVAILABLE after the patch operation is complete.
|
|
8432
|
+
* All patch instructions are applied atomically as a single operation; either all succeed or none are applied.
|
|
8433
|
+
*
|
|
8434
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
8435
|
+
* @param PatchSubnetRequest
|
|
8436
|
+
* @return PatchSubnetResponse
|
|
8437
|
+
* @throws OciError when an error occurs
|
|
8438
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/PatchSubnet.ts.html |here} to see how to use PatchSubnet API.
|
|
8439
|
+
*/
|
|
8440
|
+
patchSubnet(patchSubnetRequest: requests.PatchSubnetRequest): Promise<responses.PatchSubnetResponse>;
|
|
8441
|
+
/**
|
|
8442
|
+
* Updates a VCN by evaluating a sequence of patch instructions (JSON List Patch).
|
|
8443
|
+
* This operation is restricted to IPv6 CIDR-related fields only.
|
|
8444
|
+
* Supported selections (exact match) are:
|
|
8445
|
+
* - ipv6CidrBlock
|
|
8446
|
+
* - ipv6PublicCidrBlock
|
|
8447
|
+
* - ipv6PrivateCidrBlocks
|
|
8448
|
+
* - byoipv6CidrDetails
|
|
8449
|
+
* Only the REPLACE operation is supported.
|
|
8450
|
+
* The request must include the If-Match header for optimistic concurrency control.
|
|
8451
|
+
* This is an asynchronous operation. The VCN\u2019s lifecycleState is set to UPDATING while the patch work request
|
|
8452
|
+
* is in progress, and changes back to AVAILABLE after the patch operation is complete.
|
|
8453
|
+
* All patch instructions are applied atomically as a single operation; either all succeed or none are applied.
|
|
8454
|
+
* NOTE:
|
|
8455
|
+
* `ipv6PublicCidrBlock` represents Oracle provided GUA on VCN. With PATCH API, customer can only remove it if present.
|
|
8456
|
+
* Since this is Oracle provided CIDR, there is no concept of replacing with customer provided CIDR.
|
|
8457
|
+
*
|
|
8458
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
8459
|
+
* @param PatchVcnRequest
|
|
8460
|
+
* @return PatchVcnResponse
|
|
8461
|
+
* @throws OciError when an error occurs
|
|
8462
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/PatchVcn.ts.html |here} to see how to use PatchVcn API.
|
|
8463
|
+
*/
|
|
8464
|
+
patchVcn(patchVcnRequest: requests.PatchVcnRequest): Promise<responses.PatchVcnResponse>;
|
|
8422
8465
|
/**
|
|
8423
8466
|
* Unassign the specified PrivateIP address from Virtual Network Interface Card (VNIC). You must specify the PrivateIP [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
|
|
8424
8467
|
*
|
package/lib/client.js
CHANGED
|
@@ -32998,6 +32998,155 @@ class VirtualNetworkClient {
|
|
|
32998
32998
|
}
|
|
32999
32999
|
});
|
|
33000
33000
|
}
|
|
33001
|
+
/**
|
|
33002
|
+
* Updates a Subnet by evaluating a sequence of patch instructions (JSON List Patch).
|
|
33003
|
+
* This operation is restricted to IPv6 CIDR-related fields only.
|
|
33004
|
+
* Supported selections (exact match) are:
|
|
33005
|
+
* - ipv6CidrBlock
|
|
33006
|
+
* - ipv6CidrBlocks
|
|
33007
|
+
* Only the REPLACE operation is supported.
|
|
33008
|
+
* The request must include the If-Match header for optimistic concurrency control.
|
|
33009
|
+
* This is an asynchronous operation. The subnet\u2019s lifecycleState is set to UPDATING while the patch work request
|
|
33010
|
+
* is in progress, and changes back to AVAILABLE after the patch operation is complete.
|
|
33011
|
+
* All patch instructions are applied atomically as a single operation; either all succeed or none are applied.
|
|
33012
|
+
*
|
|
33013
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
33014
|
+
* @param PatchSubnetRequest
|
|
33015
|
+
* @return PatchSubnetResponse
|
|
33016
|
+
* @throws OciError when an error occurs
|
|
33017
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/PatchSubnet.ts.html |here} to see how to use PatchSubnet API.
|
|
33018
|
+
*/
|
|
33019
|
+
patchSubnet(patchSubnetRequest) {
|
|
33020
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33021
|
+
if (this.logger)
|
|
33022
|
+
this.logger.debug("Calling operation VirtualNetworkClient#patchSubnet.");
|
|
33023
|
+
const operationName = "patchSubnet";
|
|
33024
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Subnet/PatchSubnet";
|
|
33025
|
+
const pathParams = {
|
|
33026
|
+
"{subnetId}": patchSubnetRequest.subnetId
|
|
33027
|
+
};
|
|
33028
|
+
const queryParams = {};
|
|
33029
|
+
let headerParams = {
|
|
33030
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
33031
|
+
"opc-retry-token": patchSubnetRequest.opcRetryToken,
|
|
33032
|
+
"if-match": patchSubnetRequest.ifMatch,
|
|
33033
|
+
"opc-request-id": patchSubnetRequest.opcRequestId
|
|
33034
|
+
};
|
|
33035
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
33036
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, patchSubnetRequest.retryConfiguration, specRetryConfiguration);
|
|
33037
|
+
if (this.logger)
|
|
33038
|
+
retrier.logger = this.logger;
|
|
33039
|
+
const request = yield oci_common_2.composeRequest({
|
|
33040
|
+
baseEndpoint: this._endpoint,
|
|
33041
|
+
defaultHeaders: this._defaultHeaders,
|
|
33042
|
+
path: "/subnets/{subnetId}",
|
|
33043
|
+
method: "PATCH",
|
|
33044
|
+
bodyContent: common.ObjectSerializer.serialize(patchSubnetRequest.patchSubnetDetails, "PatchSubnetDetails", model.PatchSubnetDetails.getJsonObj),
|
|
33045
|
+
pathParams: pathParams,
|
|
33046
|
+
headerParams: headerParams,
|
|
33047
|
+
queryParams: queryParams
|
|
33048
|
+
});
|
|
33049
|
+
try {
|
|
33050
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
33051
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
33052
|
+
responseObject: {},
|
|
33053
|
+
responseHeaders: [
|
|
33054
|
+
{
|
|
33055
|
+
value: response.headers.get("opc-request-id"),
|
|
33056
|
+
key: "opcRequestId",
|
|
33057
|
+
dataType: "string"
|
|
33058
|
+
},
|
|
33059
|
+
{
|
|
33060
|
+
value: response.headers.get("opc-work-request-id"),
|
|
33061
|
+
key: "opcWorkRequestId",
|
|
33062
|
+
dataType: "string"
|
|
33063
|
+
}
|
|
33064
|
+
]
|
|
33065
|
+
});
|
|
33066
|
+
return sdkResponse;
|
|
33067
|
+
}
|
|
33068
|
+
catch (err) {
|
|
33069
|
+
throw err;
|
|
33070
|
+
}
|
|
33071
|
+
});
|
|
33072
|
+
}
|
|
33073
|
+
/**
|
|
33074
|
+
* Updates a VCN by evaluating a sequence of patch instructions (JSON List Patch).
|
|
33075
|
+
* This operation is restricted to IPv6 CIDR-related fields only.
|
|
33076
|
+
* Supported selections (exact match) are:
|
|
33077
|
+
* - ipv6CidrBlock
|
|
33078
|
+
* - ipv6PublicCidrBlock
|
|
33079
|
+
* - ipv6PrivateCidrBlocks
|
|
33080
|
+
* - byoipv6CidrDetails
|
|
33081
|
+
* Only the REPLACE operation is supported.
|
|
33082
|
+
* The request must include the If-Match header for optimistic concurrency control.
|
|
33083
|
+
* This is an asynchronous operation. The VCN\u2019s lifecycleState is set to UPDATING while the patch work request
|
|
33084
|
+
* is in progress, and changes back to AVAILABLE after the patch operation is complete.
|
|
33085
|
+
* All patch instructions are applied atomically as a single operation; either all succeed or none are applied.
|
|
33086
|
+
* NOTE:
|
|
33087
|
+
* `ipv6PublicCidrBlock` represents Oracle provided GUA on VCN. With PATCH API, customer can only remove it if present.
|
|
33088
|
+
* Since this is Oracle provided CIDR, there is no concept of replacing with customer provided CIDR.
|
|
33089
|
+
*
|
|
33090
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
33091
|
+
* @param PatchVcnRequest
|
|
33092
|
+
* @return PatchVcnResponse
|
|
33093
|
+
* @throws OciError when an error occurs
|
|
33094
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/PatchVcn.ts.html |here} to see how to use PatchVcn API.
|
|
33095
|
+
*/
|
|
33096
|
+
patchVcn(patchVcnRequest) {
|
|
33097
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33098
|
+
if (this.logger)
|
|
33099
|
+
this.logger.debug("Calling operation VirtualNetworkClient#patchVcn.");
|
|
33100
|
+
const operationName = "patchVcn";
|
|
33101
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vcn/PatchVcn";
|
|
33102
|
+
const pathParams = {
|
|
33103
|
+
"{vcnId}": patchVcnRequest.vcnId
|
|
33104
|
+
};
|
|
33105
|
+
const queryParams = {};
|
|
33106
|
+
let headerParams = {
|
|
33107
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
33108
|
+
"opc-request-id": patchVcnRequest.opcRequestId,
|
|
33109
|
+
"opc-retry-token": patchVcnRequest.opcRetryToken,
|
|
33110
|
+
"if-match": patchVcnRequest.ifMatch
|
|
33111
|
+
};
|
|
33112
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
33113
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, patchVcnRequest.retryConfiguration, specRetryConfiguration);
|
|
33114
|
+
if (this.logger)
|
|
33115
|
+
retrier.logger = this.logger;
|
|
33116
|
+
const request = yield oci_common_2.composeRequest({
|
|
33117
|
+
baseEndpoint: this._endpoint,
|
|
33118
|
+
defaultHeaders: this._defaultHeaders,
|
|
33119
|
+
path: "/vcns/{vcnId}",
|
|
33120
|
+
method: "PATCH",
|
|
33121
|
+
bodyContent: common.ObjectSerializer.serialize(patchVcnRequest.patchVcnDetails, "PatchVcnDetails", model.PatchVcnDetails.getJsonObj),
|
|
33122
|
+
pathParams: pathParams,
|
|
33123
|
+
headerParams: headerParams,
|
|
33124
|
+
queryParams: queryParams
|
|
33125
|
+
});
|
|
33126
|
+
try {
|
|
33127
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
33128
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
33129
|
+
responseObject: {},
|
|
33130
|
+
responseHeaders: [
|
|
33131
|
+
{
|
|
33132
|
+
value: response.headers.get("opc-request-id"),
|
|
33133
|
+
key: "opcRequestId",
|
|
33134
|
+
dataType: "string"
|
|
33135
|
+
},
|
|
33136
|
+
{
|
|
33137
|
+
value: response.headers.get("opc-work-request-id"),
|
|
33138
|
+
key: "opcWorkRequestId",
|
|
33139
|
+
dataType: "string"
|
|
33140
|
+
}
|
|
33141
|
+
]
|
|
33142
|
+
});
|
|
33143
|
+
return sdkResponse;
|
|
33144
|
+
}
|
|
33145
|
+
catch (err) {
|
|
33146
|
+
throw err;
|
|
33147
|
+
}
|
|
33148
|
+
});
|
|
33149
|
+
}
|
|
33001
33150
|
/**
|
|
33002
33151
|
* Unassign the specified PrivateIP address from Virtual Network Interface Card (VNIC). You must specify the PrivateIP [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
|
|
33003
33152
|
*
|