Skip to content

Commit

Permalink
Pretty and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mbcse committed Aug 26, 2023
1 parent 5783750 commit 3a2bc89
Show file tree
Hide file tree
Showing 11 changed files with 15,769 additions and 3,541 deletions.
3,752 changes: 2,140 additions & 1,612 deletions docs/AWS_paas.html

Large diffs are not rendered by default.

4,439 changes: 2,678 additions & 1,761 deletions docs/Azure_paas.html

Large diffs are not rendered by default.

198 changes: 105 additions & 93 deletions examples/blockchain/oracle-blockchain.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,33 @@ const blockchain = ncProviders.oracle.blockchain();

function createBlockchainPlatform() {
const createBlockchainPlatformDetails = {
displayName: "EXAMPLE-displayName-Value",
compartmentId: "ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value",
description: "EXAMPLE-description-Value",
platformRole: blockchain.models.BlockchainPlatform.PlatformRole.Founder,
computeShape: blockchain.models.BlockchainPlatform.ComputeShape.EnterpriseLarge,
isByol: false,
platformVersion: "EXAMPLE-platformVersion-Value",
idcsAccessToken: "EXAMPLE-idcsAccessToken-Value",
federatedUserId: "ocid1.test.oc1..<unique_ID>EXAMPLE-federatedUserId-Value",
caCertArchiveText: "EXAMPLE-caCertArchiveText-Value",
freeformTags: {
EXAMPLE_KEY_5jMMt: "EXAMPLE_VALUE_jEoiKdbMNj9ZpvWIv8RP"
},
definedTags: {
EXAMPLE_KEY_VMIqB: {
EXAMPLE_KEY_ijkHB: "EXAMPLE--Value"
}
}
};

const createBlockchainPlatformRequest = {
createBlockchainPlatformDetails: createBlockchainPlatformDetails,
};

blockchain.createBlockchainPlatform(createBlockchainPlatformRequest).then(
displayName: 'EXAMPLE-displayName-Value',
compartmentId: 'ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value',
description: 'EXAMPLE-description-Value',
platformRole: blockchain.models.BlockchainPlatform.PlatformRole.Founder,
computeShape:
blockchain.models.BlockchainPlatform.ComputeShape.EnterpriseLarge,
isByol: false,
platformVersion: 'EXAMPLE-platformVersion-Value',
idcsAccessToken: 'EXAMPLE-idcsAccessToken-Value',
federatedUserId:
'ocid1.test.oc1..<unique_ID>EXAMPLE-federatedUserId-Value',
caCertArchiveText: 'EXAMPLE-caCertArchiveText-Value',
freeformTags: {
EXAMPLE_KEY_5jMMt: 'EXAMPLE_VALUE_jEoiKdbMNj9ZpvWIv8RP',
},
definedTags: {
EXAMPLE_KEY_VMIqB: {
EXAMPLE_KEY_ijkHB: 'EXAMPLE--Value',
},
},
};

const createBlockchainPlatformRequest = {
createBlockchainPlatformDetails: createBlockchainPlatformDetails,
};

blockchain.createBlockchainPlatform(createBlockchainPlatformRequest).then(
result => {
console.log('Output :', result);
},
Expand All @@ -42,16 +44,20 @@ function createBlockchainPlatform() {
}

function listBlockchainPlatforms() {
const listBlockchainPlatformsRequest = {
compartmentId: "ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value",
displayName: "EXAMPLE-displayName-Value",
page: "EXAMPLE-page-Value",
limit: 634,
sortOrder: blockchain.requests.ListBlockchainPlatformsRequest.SortOrder.Asc,
sortBy: blockchain.requests.ListBlockchainPlatformsRequest.SortBy.TimeCreated,
opcRequestId: "GVUKMUVQJY3MLL3NJS5X<unique_ID>",
lifecycleState: blockchain.models.BlockchainPlatform.LifecycleState.Failed
};
const listBlockchainPlatformsRequest = {
compartmentId: 'ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value',
displayName: 'EXAMPLE-displayName-Value',
page: 'EXAMPLE-page-Value',
limit: 634,
sortOrder:
blockchain.requests.ListBlockchainPlatformsRequest.SortOrder.Asc,
sortBy:
blockchain.requests.ListBlockchainPlatformsRequest.SortBy
.TimeCreated,
opcRequestId: 'GVUKMUVQJY3MLL3NJS5X<unique_ID>',
lifecycleState:
blockchain.models.BlockchainPlatform.LifecycleState.Failed,
};
blockchain.listBlockchainPlatforms(listBlockchainPlatformsRequest).then(
result => {
console.log('Output :', result);
Expand All @@ -64,11 +70,12 @@ function listBlockchainPlatforms() {

function deleteBlockchainPlatform() {
const deleteBlockchainPlatformRequest = {
blockchainPlatformId: "ocid1.test.oc1..<unique_ID>EXAMPLE-blockchainPlatformId-Value",
opcRequestId: "DNF7RAAWJSQVOCL01VC4<unique_ID>",
ifMatch: "EXAMPLE-ifMatch-Value",
opcRetryToken: "EXAMPLE-opcRetryToken-Value"
};
blockchainPlatformId:
'ocid1.test.oc1..<unique_ID>EXAMPLE-blockchainPlatformId-Value',
opcRequestId: 'DNF7RAAWJSQVOCL01VC4<unique_ID>',
ifMatch: 'EXAMPLE-ifMatch-Value',
opcRetryToken: 'EXAMPLE-opcRetryToken-Value',
};

blockchain.deleteBlockchainPlatform(deleteBlockchainPlatformRequest).then(
result => {
Expand All @@ -82,20 +89,21 @@ function deleteBlockchainPlatform() {

function createOsn() {
const createOsnDetails = {
ad: blockchain.models.AvailabilityDomain.Ads.Ad1,
ocpuAllocationParam: {
ocpuAllocationNumber: 12.899105
}
};

const createOsnRequest = {
blockchainPlatformId: "ocid1.test.oc1..<unique_ID>EXAMPLE-blockchainPlatformId-Value",
createOsnDetails: createOsnDetails,
ifMatch: "EXAMPLE-ifMatch-Value",
opcRequestId: "HIRLQG44ELIUHHVHYYKD<unique_ID>",
opcRetryToken: "EXAMPLE-opcRetryToken-Value"
};

ad: blockchain.models.AvailabilityDomain.Ads.Ad1,
ocpuAllocationParam: {
ocpuAllocationNumber: 12.899105,
},
};

const createOsnRequest = {
blockchainPlatformId:
'ocid1.test.oc1..<unique_ID>EXAMPLE-blockchainPlatformId-Value',
createOsnDetails: createOsnDetails,
ifMatch: 'EXAMPLE-ifMatch-Value',
opcRequestId: 'HIRLQG44ELIUHHVHYYKD<unique_ID>',
opcRetryToken: 'EXAMPLE-opcRetryToken-Value',
};

blockchain.createOsn(createOsnRequest).then(
result => {
console.log('Output :', result);
Expand All @@ -108,21 +116,21 @@ function createOsn() {

function createPeer() {
const createPeerDetails = {
role: blockchain.models.PeerRole.Role.Member,
alias: "EXAMPLE-alias-Value",
ocpuAllocationParam: {
ocpuAllocationNumber: 13.278614
},
ad: blockchain.models.AvailabilityDomain.Ads.Ad3
};
const createPeerRequest = {
blockchainPlatformId: "ocid1.test.oc1..<unique_ID>EXAMPLE-blockchainPlatformId-Value",
createPeerDetails: createPeerDetails,
opcRequestId: "FZNBVDEF2GGZZ6F4RVMI<unique_ID>",
opcRetryToken: "EXAMPLE-opcRetryToken-Value"
};
role: blockchain.models.PeerRole.Role.Member,
alias: 'EXAMPLE-alias-Value',
ocpuAllocationParam: {
ocpuAllocationNumber: 13.278614,
},
ad: blockchain.models.AvailabilityDomain.Ads.Ad3,
};

const createPeerRequest = {
blockchainPlatformId:
'ocid1.test.oc1..<unique_ID>EXAMPLE-blockchainPlatformId-Value',
createPeerDetails: createPeerDetails,
opcRequestId: 'FZNBVDEF2GGZZ6F4RVMI<unique_ID>',
opcRetryToken: 'EXAMPLE-opcRetryToken-Value',
};

blockchain.createPeer(createPeerRequest).then(
result => {
Expand All @@ -136,11 +144,12 @@ function createPeer() {

function deleteOsn() {
const deleteOsnRequest = {
blockchainPlatformId: "ocid1.test.oc1..<unique_ID>EXAMPLE-blockchainPlatformId-Value",
osnId: "ocid1.test.oc1..<unique_ID>EXAMPLE-osnId-Value",
opcRequestId: "X49PWBJDH0Y6UH1IOWMD<unique_ID>",
ifMatch: "EXAMPLE-ifMatch-Value"
};
blockchainPlatformId:
'ocid1.test.oc1..<unique_ID>EXAMPLE-blockchainPlatformId-Value',
osnId: 'ocid1.test.oc1..<unique_ID>EXAMPLE-osnId-Value',
opcRequestId: 'X49PWBJDH0Y6UH1IOWMD<unique_ID>',
ifMatch: 'EXAMPLE-ifMatch-Value',
};

blockchain.deleteOsn(deleteOsnRequest).then(
result => {
Expand All @@ -154,12 +163,13 @@ function deleteOsn() {

function deletePeer() {
const deletePeerRequest = {
blockchainPlatformId: "ocid1.test.oc1..<unique_ID>EXAMPLE-blockchainPlatformId-Value",
peerId: "ocid1.test.oc1..<unique_ID>EXAMPLE-peerId-Value",
opcRequestId: "NOUO7MV7JKYCHBC6NUES<unique_ID>",
ifMatch: "EXAMPLE-ifMatch-Value",
opcRetryToken: "EXAMPLE-opcRetryToken-Value"
};
blockchainPlatformId:
'ocid1.test.oc1..<unique_ID>EXAMPLE-blockchainPlatformId-Value',
peerId: 'ocid1.test.oc1..<unique_ID>EXAMPLE-peerId-Value',
opcRequestId: 'NOUO7MV7JKYCHBC6NUES<unique_ID>',
ifMatch: 'EXAMPLE-ifMatch-Value',
opcRetryToken: 'EXAMPLE-opcRetryToken-Value',
};

blockchain.deletePeer(deletePeerRequest).then(
result => {
Expand All @@ -173,10 +183,11 @@ function deletePeer() {

function getOsn() {
const getOsnRequest = {
blockchainPlatformId: "ocid1.test.oc1..<unique_ID>EXAMPLE-blockchainPlatformId-Value",
osnId: "ocid1.test.oc1..<unique_ID>EXAMPLE-osnId-Value",
opcRequestId: "MKQOZAOGIGOSE3HFDTSK<unique_ID>"
};
blockchainPlatformId:
'ocid1.test.oc1..<unique_ID>EXAMPLE-blockchainPlatformId-Value',
osnId: 'ocid1.test.oc1..<unique_ID>EXAMPLE-osnId-Value',
opcRequestId: 'MKQOZAOGIGOSE3HFDTSK<unique_ID>',
};
blockchain.getOsn(getOsnRequest).then(
result => {
console.log('Output :', result);
Expand All @@ -189,15 +200,16 @@ function getOsn() {

function listOsns() {
const listOsnsRequest = {
blockchainPlatformId: "ocid1.test.oc1..<unique_ID>EXAMPLE-blockchainPlatformId-Value",
displayName: "EXAMPLE-displayName-Value",
opcRequestId: "CSLTDH1IFPIPPDQSPMMC<unique_ID>",
opcRetryToken: "EXAMPLE-opcRetryToken-Value",
sortOrder: blockchain.requests.ListOsnsRequest.SortOrder.Desc,
sortBy: blockchain.requests.ListOsnsRequest.SortBy.DisplayName,
page: "EXAMPLE-page-Value",
limit: 838
};
blockchainPlatformId:
'ocid1.test.oc1..<unique_ID>EXAMPLE-blockchainPlatformId-Value',
displayName: 'EXAMPLE-displayName-Value',
opcRequestId: 'CSLTDH1IFPIPPDQSPMMC<unique_ID>',
opcRetryToken: 'EXAMPLE-opcRetryToken-Value',
sortOrder: blockchain.requests.ListOsnsRequest.SortOrder.Desc,
sortBy: blockchain.requests.ListOsnsRequest.SortBy.DisplayName,
page: 'EXAMPLE-page-Value',
limit: 838,
};
blockchain.listOsns(listOsnsRequest).then(
result => {
console.log('Output :', result);
Expand Down
115 changes: 58 additions & 57 deletions examples/storage/oracle-blockStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,19 @@ const ncProviders = nodeCloud.getProviders(optionsProvider);

const volume = ncProviders.oracle.blockStorage();


//List all volumes
function listVolumes() {
const listVolumesRequest = {
availabilityDomain: "EXAMPLE-availabilityDomain-Value",
compartmentId: "ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value",
limit: 89,
page: "EXAMPLE-page-Value",
displayName: "EXAMPLE-displayName-Value",
sortBy: core.requests.ListVolumesRequest.SortBy.Timecreated,
sortOrder: core.requests.ListVolumesRequest.SortOrder.Desc,
volumeGroupId: "ocid1.test.oc1..<unique_ID>EXAMPLE-volumeGroupId-Value",
lifecycleState: core.models.Volume.LifecycleState.Restoring
};
const listVolumesRequest = {
availabilityDomain: 'EXAMPLE-availabilityDomain-Value',
compartmentId: 'ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value',
limit: 89,
page: 'EXAMPLE-page-Value',
displayName: 'EXAMPLE-displayName-Value',
sortBy: core.requests.ListVolumesRequest.SortBy.Timecreated,
sortOrder: core.requests.ListVolumesRequest.SortOrder.Desc,
volumeGroupId: 'ocid1.test.oc1..<unique_ID>EXAMPLE-volumeGroupId-Value',
lifecycleState: core.models.Volume.LifecycleState.Restoring,
};
volume
.list(listVolumesRequest)
.then(result => {
Expand All @@ -33,46 +32,48 @@ function listVolumes() {
//Create a volume
function createVolume() {
const createVolumeDetails = {
availabilityDomain: "EXAMPLE-availabilityDomain-Value",
backupPolicyId: "ocid1.test.oc1..<unique_ID>EXAMPLE-backupPolicyId-Value",
compartmentId: "ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value",
definedTags: {
EXAMPLE_KEY_vAfP5: {
EXAMPLE_KEY_ACxNQ: "EXAMPLE--Value"
}
},
displayName: "EXAMPLE-displayName-Value",
freeformTags: {
EXAMPLE_KEY_nkMB6: "EXAMPLE_VALUE_2g12dKUwUaramNSOrRSN"
},
kmsKeyId: "ocid1.test.oc1..<unique_ID>EXAMPLE-kmsKeyId-Value",
vpusPerGB: 912,
sizeInGBs: 516,
sizeInMBs: 419,
sourceDetails: {
type: "blockVolumeReplica",
id: "ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value"
},
volumeBackupId: "ocid1.test.oc1..<unique_ID>EXAMPLE-volumeBackupId-Value",
isAutoTuneEnabled: false,
blockVolumeReplicas: [
{
displayName: "EXAMPLE-displayName-Value",
availabilityDomain: "EXAMPLE-availabilityDomain-Value"
}
],
autotunePolicies: [
{
autotuneType: "PERFORMANCE_BASED",
maxVpusPerGB: 8
}
]
};

const createVolumeRequest = {
createVolumeDetails: createVolumeDetails,
opcRetryToken: "EXAMPLE-opcRetryToken-Value"
};
availabilityDomain: 'EXAMPLE-availabilityDomain-Value',
backupPolicyId:
'ocid1.test.oc1..<unique_ID>EXAMPLE-backupPolicyId-Value',
compartmentId: 'ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value',
definedTags: {
EXAMPLE_KEY_vAfP5: {
EXAMPLE_KEY_ACxNQ: 'EXAMPLE--Value',
},
},
displayName: 'EXAMPLE-displayName-Value',
freeformTags: {
EXAMPLE_KEY_nkMB6: 'EXAMPLE_VALUE_2g12dKUwUaramNSOrRSN',
},
kmsKeyId: 'ocid1.test.oc1..<unique_ID>EXAMPLE-kmsKeyId-Value',
vpusPerGB: 912,
sizeInGBs: 516,
sizeInMBs: 419,
sourceDetails: {
type: 'blockVolumeReplica',
id: 'ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value',
},
volumeBackupId:
'ocid1.test.oc1..<unique_ID>EXAMPLE-volumeBackupId-Value',
isAutoTuneEnabled: false,
blockVolumeReplicas: [
{
displayName: 'EXAMPLE-displayName-Value',
availabilityDomain: 'EXAMPLE-availabilityDomain-Value',
},
],
autotunePolicies: [
{
autotuneType: 'PERFORMANCE_BASED',
maxVpusPerGB: 8,
},
],
};

const createVolumeRequest = {
createVolumeDetails: createVolumeDetails,
opcRetryToken: 'EXAMPLE-opcRetryToken-Value',
};
volume
.create(createVolumeRequest)
.then(result => {
Expand Down Expand Up @@ -101,11 +102,11 @@ function updateVolume() {

//Delete a volume
function deleteVolume() {
const deleteVolumeRequest = {
volumeId: "ocid1.test.oc1..<unique_ID>EXAMPLE-volumeId-Value",
ifMatch: "EXAMPLE-ifMatch-Value"
};
volume
const deleteVolumeRequest = {
volumeId: 'ocid1.test.oc1..<unique_ID>EXAMPLE-volumeId-Value',
ifMatch: 'EXAMPLE-ifMatch-Value',
};
volume
.delete(deleteVolumeRequest)
.then(result => {
console.log('Output is: ', result);
Expand Down
Loading

0 comments on commit 3a2bc89

Please sign in to comment.