Skip to content

Instantly share code, notes, and snippets.

@recursivecodes
Created December 19, 2018 15:04
Show Gist options
  • Save recursivecodes/3fd0d32ed87d63b4acee1e8048fb263d to your computer and use it in GitHub Desktop.
Save recursivecodes/3fd0d32ed87d63b4acee1e8048fb263d to your computer and use it in GitHub Desktop.
def listBuckets() {
ListBucketsRequest listBucketsRequest = ListBucketsRequest.builder()
.namespaceName(this.namespaceName)
.compartmentId(System.getProperty("ociCompartmentId"))
.build()
ListBucketsResponse listBucketsResponse = objectClient.listBuckets(listBucketsRequest)
return listBucketsResponse
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment