-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #176 from partik03/oracle_transformer
Oracle transformer
- Loading branch information
Showing
7 changed files
with
1,106 additions
and
38 deletions.
There are no files selected for viewing
72 changes: 72 additions & 0 deletions
72
generator/generatedClasses/DO/storage/do-archivalStorage.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/*This is an auto generated class, please do not change.*/ | ||
/** | ||
* Class to create a ObjectStorageClient object | ||
* @category Oracle Cloud | ||
*/ | ||
class Oracle_ArchivalStorage { | ||
/** | ||
* | ||
* @param {module} do Oracle SDK | ||
* @param {object} options SDK options | ||
*/ | ||
constructor(ocisdk, params, clientConfiguration) { | ||
this._oci = ocisdk; | ||
this._sdkclassName = this._oci.objectStorageClient( | ||
params, | ||
clientConfiguration | ||
); | ||
} | ||
/** | ||
* Trigers the createBucket function of ObjectStorageClient | ||
* @param {CreateBucketRequest} createBucketRequest - Data required for createBucket | ||
* @returns {Promise<createBucketResponse>} | ||
*/ | ||
create(createBucketRequest) { | ||
return new Promise((resolve, reject) => { | ||
this._objectStorageClient | ||
.createBucket(createBucketRequest) | ||
.then(data => resolve(data)) | ||
.catch(err => reject(err)); | ||
}); | ||
} | ||
/** | ||
* Trigers the deleteBucket function of ObjectStorageClient | ||
* @param {DeleteBucketRequest} deleteBucketRequest - Data required for deleteBucket | ||
* @returns {Promise<deleteBucketResponse>} | ||
*/ | ||
delete(deleteBucketRequest) { | ||
return new Promise((resolve, reject) => { | ||
this._objectStorageClient | ||
.deleteBucket(deleteBucketRequest) | ||
.then(data => resolve(data)) | ||
.catch(err => reject(err)); | ||
}); | ||
} | ||
/** | ||
* Trigers the listBuckets function of ObjectStorageClient | ||
* @param {ListBucketsRequest} listBucketsRequest - Data required for listBuckets | ||
* @returns {Promise<listBucketsResponse>} | ||
*/ | ||
list(listBucketsRequest) { | ||
return new Promise((resolve, reject) => { | ||
this._objectStorageClient | ||
.listBuckets(listBucketsRequest) | ||
.then(data => resolve(data)) | ||
.catch(err => reject(err)); | ||
}); | ||
} | ||
/** | ||
* Trigers the updateBucket function of ObjectStorageClient | ||
* @param {UpdateBucketRequest} updateBucketRequest - Data required for updateBucket | ||
* @returns {Promise<updateBucketResponse>} | ||
*/ | ||
update(updateBucketRequest) { | ||
return new Promise((resolve, reject) => { | ||
this._objectStorageClient | ||
.updateBucket(updateBucketRequest) | ||
.then(data => resolve(data)) | ||
.catch(err => reject(err)); | ||
}); | ||
} | ||
} | ||
module.exports = Oracle_ArchivalStorage; |
72 changes: 72 additions & 0 deletions
72
generator/generatedClasses/Oracle/storage/oci-archivalStorage.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/*This is an auto generated class, please do not change.*/ | ||
/** | ||
* Class to create a ObjectStorageClient object | ||
* @category Oracle Cloud | ||
*/ | ||
class Oracle_ArchivalStorage { | ||
/** | ||
* | ||
* @param {module} do Oracle SDK | ||
* @param {object} options SDK options | ||
*/ | ||
constructor(ocisdk, params, clientConfiguration) { | ||
this._oci = ocisdk; | ||
this._sdkclassName = this._oci.objectStorageClient( | ||
params, | ||
clientConfiguration | ||
); | ||
} | ||
/** | ||
* Trigers the createBucket function of ObjectStorageClient | ||
* @param {CreateBucketRequest} createBucketRequest - Data required for createBucket | ||
* @returns {Promise<createBucketResponse>} | ||
*/ | ||
create(createBucketRequest) { | ||
return new Promise((resolve, reject) => { | ||
this._objectStorageClient | ||
.createBucket(createBucketRequest) | ||
.then(data => resolve(data)) | ||
.catch(err => reject(err)); | ||
}); | ||
} | ||
/** | ||
* Trigers the deleteBucket function of ObjectStorageClient | ||
* @param {DeleteBucketRequest} deleteBucketRequest - Data required for deleteBucket | ||
* @returns {Promise<deleteBucketResponse>} | ||
*/ | ||
delete(deleteBucketRequest) { | ||
return new Promise((resolve, reject) => { | ||
this._objectStorageClient | ||
.deleteBucket(deleteBucketRequest) | ||
.then(data => resolve(data)) | ||
.catch(err => reject(err)); | ||
}); | ||
} | ||
/** | ||
* Trigers the listBuckets function of ObjectStorageClient | ||
* @param {ListBucketsRequest} listBucketsRequest - Data required for listBuckets | ||
* @returns {Promise<listBucketsResponse>} | ||
*/ | ||
list(listBucketsRequest) { | ||
return new Promise((resolve, reject) => { | ||
this._objectStorageClient | ||
.listBuckets(listBucketsRequest) | ||
.then(data => resolve(data)) | ||
.catch(err => reject(err)); | ||
}); | ||
} | ||
/** | ||
* Trigers the updateBucket function of ObjectStorageClient | ||
* @param {UpdateBucketRequest} updateBucketRequest - Data required for updateBucket | ||
* @returns {Promise<updateBucketResponse>} | ||
*/ | ||
update(updateBucketRequest) { | ||
return new Promise((resolve, reject) => { | ||
this._objectStorageClient | ||
.updateBucket(updateBucketRequest) | ||
.then(data => resolve(data)) | ||
.catch(err => reject(err)); | ||
}); | ||
} | ||
} | ||
module.exports = Oracle_ArchivalStorage; |
85 changes: 85 additions & 0 deletions
85
generator/generatedClasses/Oracle/storage/oci-storageBucket.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
/*This is an auto generated class, please do not change.*/ | ||
/** | ||
* Class to create a ObjectStorageClient object | ||
* @category Oracle Cloud | ||
*/ | ||
class Oracle_StorageBucket { | ||
/** | ||
* | ||
* @param {module} do Oracle SDK | ||
* @param {object} options SDK options | ||
*/ | ||
constructor(ocisdk, params, clientConfiguration) { | ||
this._oci = ocisdk; | ||
this._sdkclassName = this._oci.objectStorageClient( | ||
params, | ||
clientConfiguration | ||
); | ||
} | ||
/** | ||
* Trigers the createBucket function of ObjectStorageClient | ||
* @param {CreateBucketRequest} createBucketRequest - Data required for createBucket | ||
* @returns {Promise<createBucketResponse>} | ||
*/ | ||
create(createBucketRequest) { | ||
return new Promise((resolve, reject) => { | ||
this._objectStorageClient | ||
.createBucket(createBucketRequest) | ||
.then(data => resolve(data)) | ||
.catch(err => reject(err)); | ||
}); | ||
} | ||
/** | ||
* Trigers the deleteBucket function of ObjectStorageClient | ||
* @param {DeleteBucketRequest} deleteBucketRequest - Data required for deleteBucket | ||
* @returns {Promise<deleteBucketResponse>} | ||
*/ | ||
delete(deleteBucketRequest) { | ||
return new Promise((resolve, reject) => { | ||
this._objectStorageClient | ||
.deleteBucket(deleteBucketRequest) | ||
.then(data => resolve(data)) | ||
.catch(err => reject(err)); | ||
}); | ||
} | ||
/** | ||
* Trigers the getBucket function of ObjectStorageClient | ||
* @param {GetBucketRequest} getBucketRequest - Data required for getBucket | ||
* @returns {Promise<getBucketResponse>} | ||
*/ | ||
get(getBucketRequest) { | ||
return new Promise((resolve, reject) => { | ||
this._objectStorageClient | ||
.getBucket(getBucketRequest) | ||
.then(data => resolve(data)) | ||
.catch(err => reject(err)); | ||
}); | ||
} | ||
/** | ||
* Trigers the listBuckets function of ObjectStorageClient | ||
* @param {ListBucketsRequest} listBucketsRequest - Data required for listBuckets | ||
* @returns {Promise<listBucketsResponse>} | ||
*/ | ||
list(listBucketsRequest) { | ||
return new Promise((resolve, reject) => { | ||
this._objectStorageClient | ||
.listBuckets(listBucketsRequest) | ||
.then(data => resolve(data)) | ||
.catch(err => reject(err)); | ||
}); | ||
} | ||
/** | ||
* Trigers the reencryptBucket function of ObjectStorageClient | ||
* @param {ReencryptBucketRequest} reencryptBucketRequest - Data required for reencryptBucket | ||
* @returns {Promise<reencryptBucketResponse>} | ||
*/ | ||
reencrypt(reencryptBucketRequest) { | ||
return new Promise((resolve, reject) => { | ||
this._objectStorageClient | ||
.reencryptBucket(reencryptBucketRequest) | ||
.then(data => resolve(data)) | ||
.catch(err => reject(err)); | ||
}); | ||
} | ||
} | ||
module.exports = Oracle_StorageBucket; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.