diff --git a/Gopkg.lock b/Gopkg.lock index dd2fe0057..34f823929 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -3,390 +3,207 @@ [[projects]] branch = "master" - digest = "1:c0bec5f9b98d0bc872ff5e834fac186b807b656683bd29cb82fb207a1513fabb" name = "github.com/beorn7/perks" packages = ["quantile"] - pruneopts = "" revision = "3a771d992973f24aa725d07868b467d1ddfceafb" [[projects]] - digest = "1:0deddd908b6b4b768cfc272c16ee61e7088a60f7fe2f06c547bd3d8e1f8b8e77" name = "github.com/davecgh/go-spew" packages = ["spew"] - pruneopts = "" revision = "8991bc29aa16c548c550c7ff78260e27b9ab7c73" version = "v1.1.1" [[projects]] - digest = "1:85557947084dd9599b76d06e82f3e35bfdfa109dc4cf195ecf34bf78a91fa11c" name = "github.com/docker/distribution" - packages = [ - "digestset", - "reference", - ] - pruneopts = "" + packages = ["digestset","reference"] revision = "f0cc927784781fa395c06317c58dea2841ece3a9" [[projects]] - digest = "1:b13707423743d41665fd23f0c36b2f37bb49c30e94adb813319c44188a51ba22" name = "github.com/ghodss/yaml" packages = ["."] - pruneopts = "" revision = "0ca9ea5df5451ffdf184b4428c902747c2c11cd7" version = "v1.0.0" [[projects]] - digest = "1:6e73003ecd35f4487a5e88270d3ca0a81bc80dc88053ac7e4dcfec5fba30d918" name = "github.com/gogo/protobuf" - packages = [ - "proto", - "sortkeys", - ] - pruneopts = "" + packages = ["proto","sortkeys"] revision = "636bf0302bc95575d69441b25a2603156ffdddf1" version = "v1.1.1" [[projects]] - digest = "1:084b99ba19062b81bd4a598327c741e440910c295a8d25fcf39b1f38bdcb9f69" name = "github.com/golang/glog" packages = ["."] - pruneopts = "" revision = "ad18aa91a01e5a7a4d312d16528a181979a23c62" source = "github.com/prydie/glog" [[projects]] branch = "master" - digest = "1:9854532d7b2fee9414d4fcd8d8bccd6b1c1e1663d8ec0337af63a19aaf4a778e" name = "github.com/golang/groupcache" packages = ["lru"] - pruneopts = "" revision = "6f2cf27854a4a29e3811b0371547be335d411b8b" [[projects]] - digest = "1:3dd078fda7500c341bc26cfbc6c6a34614f295a2457149fc1045cab767cbcf18" name = "github.com/golang/protobuf" - packages = [ - "proto", - "ptypes", - "ptypes/any", - "ptypes/duration", - "ptypes/timestamp", - ] - pruneopts = "" + packages = ["proto","ptypes","ptypes/any","ptypes/duration","ptypes/timestamp"] revision = "aa810b61a9c79d51363740d207bb46cf8e620ed5" version = "v1.2.0" [[projects]] branch = "master" - digest = "1:1e5b1e14524ed08301977b7b8e10c719ed853cbf3f24ecb66fae783a46f207a6" name = "github.com/google/btree" packages = ["."] - pruneopts = "" revision = "4030bb1f1f0c35b30ca7009e9ebd06849dd45306" [[projects]] branch = "master" - digest = "1:754f77e9c839b24778a4b64422236d38515301d2baeb63113aa3edc42e6af692" name = "github.com/google/gofuzz" packages = ["."] - pruneopts = "" revision = "24818f796faf91cd76ec7bddd72458fbced7a6c1" [[projects]] - digest = "1:5247b135b5492aa232a731acdcb52b08f32b874cb398f21ab460396eadbe866b" name = "github.com/google/uuid" packages = ["."] - pruneopts = "" revision = "d460ce9f8df2e77fb1ba55ca87fafed96c607494" version = "v1.0.0" [[projects]] - digest = "1:16b2837c8b3cf045fa2cdc82af0cf78b19582701394484ae76b2c3bc3c99ad73" name = "github.com/googleapis/gnostic" - packages = [ - "OpenAPIv2", - "compiler", - "extensions", - ] - pruneopts = "" + packages = ["OpenAPIv2","compiler","extensions"] revision = "7c663266750e7d82587642f65e60bc4083f1f84e" version = "v0.2.0" [[projects]] branch = "master" - digest = "1:009a1928b8c096338b68b5822d838a72b4d8520715c1463614476359f3282ec8" name = "github.com/gregjones/httpcache" - packages = [ - ".", - "diskcache", - ] - pruneopts = "" + packages = [".","diskcache"] revision = "9cad4c3443a7200dd6400aef47183728de563a38" [[projects]] - digest = "1:3313a63031ae281e5f6fd7b0bbca733dfa04d2429df86519e3b4d4c016ccb836" name = "github.com/hashicorp/golang-lru" - packages = [ - ".", - "simplelru", - ] - pruneopts = "" + packages = [".","simplelru"] revision = "20f1fb78b0740ba8c3cb143a61e86ba5c8669768" version = "v0.5.0" [[projects]] - digest = "1:b3c5b95e56c06f5aa72cb2500e6ee5f44fcd122872d4fec2023a488e561218bc" name = "github.com/hpcloud/tail" - packages = [ - ".", - "ratelimiter", - "util", - "watch", - "winfile", - ] - pruneopts = "" + packages = [".","ratelimiter","util","watch","winfile"] revision = "a30252cb686a21eb2d0b98132633053ec2f7f1e5" version = "v1.0.0" [[projects]] - digest = "1:7ab38c15bd21e056e3115c8b526d201eaf74e0308da9370997c6b3c187115d36" name = "github.com/imdario/mergo" packages = ["."] - pruneopts = "" revision = "9f23e2d6bd2a77f959b2bf6acdbefd708a83a4a4" version = "v0.3.6" [[projects]] - digest = "1:b79fc583e4dc7055ed86742e22164ac41bf8c0940722dbcb600f1a3ace1a8cb5" name = "github.com/json-iterator/go" packages = ["."] - pruneopts = "" revision = "1624edc4454b8682399def8740d46db5e4362ba4" version = "v1.1.5" [[projects]] - digest = "1:be7f2f5a8fb8dd37c2107d43cac86dbce5fa8d7bca490a905798699cf42d46fd" name = "github.com/kubernetes-incubator/external-storage" - packages = [ - "lib/controller", - "lib/controller/metrics", - "lib/leaderelection", - "lib/leaderelection/resourcelock", - "lib/util", - ] - pruneopts = "" + packages = ["lib/controller","lib/controller/metrics","lib/leaderelection","lib/leaderelection/resourcelock","lib/util"] revision = "34df13b0427c75ff57890219cf21d0ecfabb3284" version = "v4.0.0" [[projects]] - digest = "1:63722a4b1e1717be7b98fc686e0b30d5e7f734b9e93d7dee86293b6deab7ea28" name = "github.com/matttproud/golang_protobuf_extensions" packages = ["pbutil"] - pruneopts = "" revision = "c12348ce28de40eed0136aa2b644d0ee0650e56c" version = "v1.0.1" [[projects]] - digest = "1:0c0ff2a89c1bb0d01887e1dac043ad7efbf3ec77482ef058ac423d13497e16fd" name = "github.com/modern-go/concurrent" packages = ["."] - pruneopts = "" revision = "bacd9c7ef1dd9b15be4a9909b8ac7a4e313eec94" version = "1.0.3" [[projects]] - digest = "1:e32bdbdb7c377a07a9a46378290059822efdce5c8d96fe71940d87cb4f918855" name = "github.com/modern-go/reflect2" packages = ["."] - pruneopts = "" revision = "4b7aa43c6742a2c18fdef89dd197aaae7dac7ccd" version = "1.0.1" [[projects]] - digest = "1:a7fd918fb5bd2188436785c0424f8a50b4addfedf37a2b14d796be2a927b8007" name = "github.com/onsi/ginkgo" - packages = [ - ".", - "config", - "internal/codelocation", - "internal/containernode", - "internal/failer", - "internal/leafnodes", - "internal/remote", - "internal/spec", - "internal/spec_iterator", - "internal/specrunner", - "internal/suite", - "internal/testingtproxy", - "internal/writer", - "reporters", - "reporters/stenographer", - "reporters/stenographer/support/go-colorable", - "reporters/stenographer/support/go-isatty", - "types", - ] - pruneopts = "" + packages = [".","config","internal/codelocation","internal/containernode","internal/failer","internal/leafnodes","internal/remote","internal/spec","internal/spec_iterator","internal/specrunner","internal/suite","internal/testingtproxy","internal/writer","reporters","reporters/stenographer","reporters/stenographer/support/go-colorable","reporters/stenographer/support/go-isatty","types"] revision = "3774a09d95489ccaa16032e0770d08ea77ba6184" version = "v1.6.0" [[projects]] - digest = "1:3ecd0a37c4a90c12a97e31c398cdbc173824351aa891898ee178120bfe71c478" name = "github.com/onsi/gomega" - packages = [ - ".", - "format", - "internal/assertion", - "internal/asyncassertion", - "internal/oraclematcher", - "internal/testingtsupport", - "matchers", - "matchers/support/goraph/bipartitegraph", - "matchers/support/goraph/edge", - "matchers/support/goraph/node", - "matchers/support/goraph/util", - "types", - ] - pruneopts = "" + packages = [".","format","internal/assertion","internal/asyncassertion","internal/oraclematcher","internal/testingtsupport","matchers","matchers/support/goraph/bipartitegraph","matchers/support/goraph/edge","matchers/support/goraph/node","matchers/support/goraph/util","types"] revision = "7615b9433f86a8bdf29709bf288bc4fd0636a369" version = "v1.4.2" [[projects]] - digest = "1:5d9b668b0b4581a978f07e7d2e3314af18eb27b3fb5d19b70185b7c575723d11" name = "github.com/opencontainers/go-digest" packages = ["."] - pruneopts = "" revision = "279bed98673dd5bef374d3b6e4b09e2af76183bf" version = "v1.0.0-rc1" [[projects]] - digest = "1:70df8e71a953626770223d4982801fa73e7e99cbfcca068b95127f72af9b9edd" name = "github.com/oracle/oci-go-sdk" - packages = [ - "common", - "common/auth", - "core", - "filestorage", - "identity", - ] - pruneopts = "" - revision = "a2ded717dc4bb4916c0416ec79f81718b576dbc4" - version = "v1.8.0" - -[[projects]] - digest = "1:a5484d4fa43127138ae6e7b2299a6a52ae006c7f803d98d717f60abf3e97192e" + packages = ["common","common/auth","core","filestorage","identity"] + revision = "37ec848b9622efd149232580c77a7a168f0f35ef" + version = "v2.6.0" + +[[projects]] name = "github.com/pborman/uuid" packages = ["."] - pruneopts = "" revision = "adf5a7427709b9deb95d29d3fa8a2bf9cfd388f1" version = "v1.2" [[projects]] branch = "master" - digest = "1:c24598ffeadd2762552269271b3b1510df2d83ee6696c1e543a0ff653af494bc" name = "github.com/petar/GoLLRB" packages = ["llrb"] - pruneopts = "" revision = "53be0d36a84c2a886ca057d34b6aa4468df9ccb4" [[projects]] - digest = "1:b46305723171710475f2dd37547edd57b67b9de9f2a6267cafdd98331fd6897f" name = "github.com/peterbourgon/diskv" packages = ["."] - pruneopts = "" revision = "5f041e8faa004a95c88a202771f4cc3e991971e6" version = "v2.0.1" [[projects]] - digest = "1:7365acd48986e205ccb8652cc746f09c8b7876030d53710ea6ef7d0bd0dcd7ca" name = "github.com/pkg/errors" packages = ["."] - pruneopts = "" revision = "645ef00459ed84a119197bfb8d8205042c6df63d" version = "v0.8.0" [[projects]] - digest = "1:4142d94383572e74b42352273652c62afec5b23f325222ed09198f46009022d1" name = "github.com/prometheus/client_golang" - packages = [ - "prometheus", - "prometheus/promhttp", - ] - pruneopts = "" + packages = ["prometheus","prometheus/promhttp"] revision = "c5b7fccd204277076155f10851dad72b76a49317" version = "v0.8.0" [[projects]] branch = "master" - digest = "1:185cf55b1f44a1bf243558901c3f06efa5c64ba62cfdcbb1bf7bbe8c3fb68561" name = "github.com/prometheus/client_model" packages = ["go"] - pruneopts = "" revision = "5c3871d89910bfb32f5fcab2aa4b9ec68e65a99f" [[projects]] branch = "master" - digest = "1:f477ef7b65d94fb17574fc6548cef0c99a69c1634ea3b6da248b63a61ebe0498" name = "github.com/prometheus/common" - packages = [ - "expfmt", - "internal/bitbucket.org/ww/goautoneg", - "model", - ] - pruneopts = "" + packages = ["expfmt","internal/bitbucket.org/ww/goautoneg","model"] revision = "c7de2306084e37d54b8be01f3541a8464345e9a5" [[projects]] branch = "master" - digest = "1:5a57ea878c9a40657ebe7916eca6bea7c76808f5acb68fd42ea5e204dd35f6f7" name = "github.com/prometheus/procfs" - packages = [ - ".", - "internal/util", - "nfs", - "xfs", - ] - pruneopts = "" + packages = [".","internal/util","nfs","xfs"] revision = "418d78d0b9a7b7de3a6bbc8a23def624cc977bb2" [[projects]] - digest = "1:0a52bcb568386d98f4894575d53ce3e456f56471de6897bb8b9de13c33d9340e" name = "github.com/spf13/pflag" packages = ["."] - pruneopts = "" revision = "9a97c102cda95a86cec2345a6f09f55a939babf5" version = "v1.0.2" -[[projects]] - digest = "1:74f86c458e82e1c4efbab95233e0cf51b7cc02dc03193be9f62cd81224e10401" - name = "go.uber.org/atomic" - packages = ["."] - pruneopts = "" - revision = "1ea20fb1cbb1cc08cbd0d913a96dead89aa18289" - version = "v1.3.2" - -[[projects]] - digest = "1:22c7effcb4da0eacb2bb1940ee173fac010e9ef3c691f5de4b524d538bd980f5" - name = "go.uber.org/multierr" - packages = ["."] - pruneopts = "" - revision = "3c4937480c32f4c13a875a1829af76c98ca3d40a" - version = "v1.1.0" - -[[projects]] - digest = "1:246f378f80fba6fcf0f191c486b6613265abd2bc0f2fa55a36b928c67352021e" - name = "go.uber.org/zap" - packages = [ - ".", - "buffer", - "internal/bufferpool", - "internal/color", - "internal/exit", - "zapcore", - ] - pruneopts = "" - revision = "ff33455a0e382e8a81d14dd7c922020b6b5e7982" - version = "v1.9.1" - [[projects]] name = "go.uber.org/atomic" packages = ["."] @@ -401,505 +218,128 @@ [[projects]] name = "go.uber.org/zap" - packages = [ - ".", - "buffer", - "internal/bufferpool", - "internal/color", - "internal/exit", - "zapcore" - ] + packages = [".","buffer","internal/bufferpool","internal/color","internal/exit","internal/ztest","zapcore","zaptest"] revision = "ff33455a0e382e8a81d14dd7c922020b6b5e7982" version = "v1.9.1" [[projects]] branch = "master" - digest = "1:61a86f0be8b466d6e3fbdabb155aaa4006137cb5e3fd3b949329d103fa0ceb0f" name = "golang.org/x/crypto" - packages = [ - "ed25519", - "ed25519/internal/edwards25519", - "pbkdf2", - "ssh/terminal", - ] - pruneopts = "" + packages = ["ed25519","ed25519/internal/edwards25519","pbkdf2","ssh/terminal"] revision = "0e37d006457bf46f9e6692014ba72ef82c33022c" [[projects]] branch = "master" - digest = "1:08e41d63f8dac84d83797368b56cf0b339e42d0224e5e56668963c28aec95685" name = "golang.org/x/net" - packages = [ - "context", - "html", - "html/atom", - "html/charset", - "http/httpguts", - "http2", - "http2/hpack", - "idna", - ] - pruneopts = "" + packages = ["context","html","html/atom","html/charset","http/httpguts","http2","http2/hpack","idna"] revision = "4dfa2610cdf3b287375bbba5b8f2a14d3b01d8de" [[projects]] branch = "master" - digest = "1:dad137c4b24778e11782675f4ef8a00e9625dfe8cf063cb7d104d370c303c6cb" name = "golang.org/x/sys" - packages = [ - "unix", - "windows", - ] - pruneopts = "" + packages = ["unix","windows"] revision = "c2ed4eda69e7f62900806e4cd6e45f0429f859fa" [[projects]] - digest = "1:5acd3512b047305d49e8763eef7ba423901e85d5dd2fd1e71778a0ea8de10bd4" name = "golang.org/x/text" - packages = [ - "collate", - "collate/build", - "encoding", - "encoding/charmap", - "encoding/htmlindex", - "encoding/internal", - "encoding/internal/identifier", - "encoding/japanese", - "encoding/korean", - "encoding/simplifiedchinese", - "encoding/traditionalchinese", - "encoding/unicode", - "internal/colltab", - "internal/gen", - "internal/tag", - "internal/triegen", - "internal/ucd", - "internal/utf8internal", - "language", - "runes", - "secure/bidirule", - "transform", - "unicode/bidi", - "unicode/cldr", - "unicode/norm", - "unicode/rangetable", - ] - pruneopts = "" + packages = ["collate","collate/build","encoding","encoding/charmap","encoding/htmlindex","encoding/internal","encoding/internal/identifier","encoding/japanese","encoding/korean","encoding/simplifiedchinese","encoding/traditionalchinese","encoding/unicode","internal/colltab","internal/gen","internal/tag","internal/triegen","internal/ucd","internal/utf8internal","language","runes","secure/bidirule","transform","unicode/bidi","unicode/cldr","unicode/norm","unicode/rangetable"] revision = "f21a4dfb5e38f5895301dc265a8def02365cc3d0" version = "v0.3.0" [[projects]] branch = "master" - digest = "1:55a681cb66f28755765fa5fa5104cbd8dc85c55c02d206f9f89566451e3fe1aa" name = "golang.org/x/time" packages = ["rate"] - pruneopts = "" revision = "fbb02b2291d28baffd63558aa44b4b56f178d650" [[projects]] - digest = "1:eb53021a8aa3f599d29c7102e65026242bdedce998a54837dc67f14b6a97c5fd" name = "gopkg.in/fsnotify.v1" packages = ["."] - pruneopts = "" revision = "c2828203cd70a50dcccfb2761f8b1f8ceef9a8e9" source = "https://github.com/fsnotify/fsnotify.git" version = "v1.4.7" [[projects]] - digest = "1:75fb3fcfc73a8c723efde7777b40e8e8ff9babf30d8c56160d01beffea8a95a6" name = "gopkg.in/inf.v0" packages = ["."] - pruneopts = "" revision = "d2d2541c53f18d2a059457998ce2876cc8e67cbf" version = "v0.9.1" [[projects]] - digest = "1:ddc5fa8f9159bea7d1ce58143e6d8fd8054018f7bc3709940aa7f7bc92855ed9" + name = "gopkg.in/natefinch/lumberjack.v2" + packages = ["."] + revision = "a96e63847dc3c67d17befa69c303767e2f84e54f" + version = "v2.1" + +[[projects]] name = "gopkg.in/square/go-jose.v2" - packages = [ - ".", - "cipher", - "json", - "jwt", - ] - pruneopts = "" + packages = [".","cipher","json","jwt"] revision = "ef984e69dd356202fd4e4910d4d9c24468bdf0b8" version = "v2.1.9" [[projects]] branch = "v1" - digest = "1:a96d16bd088460f2e0685d46c39bcf1208ba46e0a977be2df49864ec7da447dd" name = "gopkg.in/tomb.v1" packages = ["."] - pruneopts = "" revision = "dd632973f1e7218eb1089048e0798ec9ae7dceb8" [[projects]] - digest = "1:f0620375dd1f6251d9973b5f2596228cc8042e887cd7f827e4220bc1ce8c30e2" name = "gopkg.in/yaml.v2" packages = ["."] - pruneopts = "" revision = "5420a8b6744d3b0345ab293f6fcba19c978f1183" version = "v2.2.1" [[projects]] - digest = "1:2fe7efa9ea3052443378383d27c15ba088d03babe69a89815ce7fe9ec1d9aeb4" name = "k8s.io/api" - packages = [ - "admissionregistration/v1alpha1", - "admissionregistration/v1beta1", - "apps/v1", - "apps/v1beta1", - "apps/v1beta2", - "authentication/v1", - "authentication/v1beta1", - "authorization/v1", - "authorization/v1beta1", - "autoscaling/v1", - "autoscaling/v2beta1", - "batch/v1", - "batch/v1beta1", - "batch/v2alpha1", - "certificates/v1beta1", - "core/v1", - "events/v1beta1", - "extensions/v1beta1", - "networking/v1", - "policy/v1beta1", - "rbac/v1", - "rbac/v1alpha1", - "rbac/v1beta1", - "scheduling/v1alpha1", - "scheduling/v1beta1", - "settings/v1alpha1", - "storage/v1", - "storage/v1alpha1", - "storage/v1beta1", - ] - pruneopts = "" + packages = ["admissionregistration/v1alpha1","admissionregistration/v1beta1","apps/v1","apps/v1beta1","apps/v1beta2","authentication/v1","authentication/v1beta1","authorization/v1","authorization/v1beta1","autoscaling/v1","autoscaling/v2beta1","batch/v1","batch/v1beta1","batch/v2alpha1","certificates/v1beta1","core/v1","events/v1beta1","extensions/v1beta1","networking/v1","policy/v1beta1","rbac/v1","rbac/v1alpha1","rbac/v1beta1","scheduling/v1alpha1","scheduling/v1beta1","settings/v1alpha1","storage/v1","storage/v1alpha1","storage/v1beta1"] revision = "2d6f90ab1293a1fb871cf149423ebb72aa7423aa" version = "kubernetes-1.11.1" [[projects]] branch = "master" - digest = "1:1c802a7fdd9d342dcec4ad414e36a5b2775863075175fb31d4b1b1dbe3e611e3" name = "k8s.io/apiextensions-apiserver" packages = ["pkg/features"] - pruneopts = "" revision = "c0b566b8903bc2b6e3f4e41d35b3ae9e5d170c30" [[projects]] - digest = "1:b6b2fb7b4da1ac973b64534ace2299a02504f16bc7820cb48edb8ca4077183e1" name = "k8s.io/apimachinery" - packages = [ - "pkg/api/equality", - "pkg/api/errors", - "pkg/api/meta", - "pkg/api/resource", - "pkg/api/validation", - "pkg/apis/meta/internalversion", - "pkg/apis/meta/v1", - "pkg/apis/meta/v1/unstructured", - "pkg/apis/meta/v1/validation", - "pkg/apis/meta/v1beta1", - "pkg/conversion", - "pkg/conversion/queryparams", - "pkg/fields", - "pkg/labels", - "pkg/runtime", - "pkg/runtime/schema", - "pkg/runtime/serializer", - "pkg/runtime/serializer/json", - "pkg/runtime/serializer/protobuf", - "pkg/runtime/serializer/recognizer", - "pkg/runtime/serializer/streaming", - "pkg/runtime/serializer/versioning", - "pkg/selection", - "pkg/types", - "pkg/util/cache", - "pkg/util/clock", - "pkg/util/diff", - "pkg/util/errors", - "pkg/util/framer", - "pkg/util/intstr", - "pkg/util/json", - "pkg/util/mergepatch", - "pkg/util/net", - "pkg/util/runtime", - "pkg/util/sets", - "pkg/util/strategicpatch", - "pkg/util/uuid", - "pkg/util/validation", - "pkg/util/validation/field", - "pkg/util/wait", - "pkg/util/yaml", - "pkg/version", - "pkg/watch", - "third_party/forked/golang/json", - "third_party/forked/golang/reflect", - ] - pruneopts = "" + packages = ["pkg/api/equality","pkg/api/errors","pkg/api/meta","pkg/api/resource","pkg/api/validation","pkg/apis/meta/internalversion","pkg/apis/meta/v1","pkg/apis/meta/v1/unstructured","pkg/apis/meta/v1/validation","pkg/apis/meta/v1beta1","pkg/conversion","pkg/conversion/queryparams","pkg/fields","pkg/labels","pkg/runtime","pkg/runtime/schema","pkg/runtime/serializer","pkg/runtime/serializer/json","pkg/runtime/serializer/protobuf","pkg/runtime/serializer/recognizer","pkg/runtime/serializer/streaming","pkg/runtime/serializer/versioning","pkg/selection","pkg/types","pkg/util/cache","pkg/util/clock","pkg/util/diff","pkg/util/errors","pkg/util/framer","pkg/util/intstr","pkg/util/json","pkg/util/mergepatch","pkg/util/net","pkg/util/runtime","pkg/util/sets","pkg/util/strategicpatch","pkg/util/uuid","pkg/util/validation","pkg/util/validation/field","pkg/util/wait","pkg/util/yaml","pkg/version","pkg/watch","third_party/forked/golang/json","third_party/forked/golang/reflect"] revision = "103fd098999dc9c0c88536f5c9ad2e5da39373ae" version = "kubernetes-1.11.1" [[projects]] branch = "master" - digest = "1:da73df2f56d834da755edd2df0848af635f1a70c7fb6e06152b382f550350b6b" name = "k8s.io/apiserver" - packages = [ - "pkg/authentication/authenticator", - "pkg/authentication/serviceaccount", - "pkg/authentication/user", - "pkg/features", - "pkg/util/feature", - "pkg/util/logs", - ] - pruneopts = "" + packages = ["pkg/authentication/authenticator","pkg/authentication/serviceaccount","pkg/authentication/user","pkg/features","pkg/util/feature","pkg/util/logs"] revision = "adf6303733d5c01d05921f9809e4b702f89b689d" [[projects]] - digest = "1:c1758ac575ded8b3151800bcd4925008468e46556159926f9ede9991966ed86c" name = "k8s.io/client-go" - packages = [ - "discovery", - "informers", - "informers/admissionregistration", - "informers/admissionregistration/v1alpha1", - "informers/admissionregistration/v1beta1", - "informers/apps", - "informers/apps/v1", - "informers/apps/v1beta1", - "informers/apps/v1beta2", - "informers/autoscaling", - "informers/autoscaling/v1", - "informers/autoscaling/v2beta1", - "informers/batch", - "informers/batch/v1", - "informers/batch/v1beta1", - "informers/batch/v2alpha1", - "informers/certificates", - "informers/certificates/v1beta1", - "informers/core", - "informers/core/v1", - "informers/events", - "informers/events/v1beta1", - "informers/extensions", - "informers/extensions/v1beta1", - "informers/internalinterfaces", - "informers/networking", - "informers/networking/v1", - "informers/policy", - "informers/policy/v1beta1", - "informers/rbac", - "informers/rbac/v1", - "informers/rbac/v1alpha1", - "informers/rbac/v1beta1", - "informers/scheduling", - "informers/scheduling/v1alpha1", - "informers/scheduling/v1beta1", - "informers/settings", - "informers/settings/v1alpha1", - "informers/storage", - "informers/storage/v1", - "informers/storage/v1alpha1", - "informers/storage/v1beta1", - "kubernetes", - "kubernetes/scheme", - "kubernetes/typed/admissionregistration/v1alpha1", - "kubernetes/typed/admissionregistration/v1beta1", - "kubernetes/typed/apps/v1", - "kubernetes/typed/apps/v1beta1", - "kubernetes/typed/apps/v1beta2", - "kubernetes/typed/authentication/v1", - "kubernetes/typed/authentication/v1beta1", - "kubernetes/typed/authorization/v1", - "kubernetes/typed/authorization/v1beta1", - "kubernetes/typed/autoscaling/v1", - "kubernetes/typed/autoscaling/v2beta1", - "kubernetes/typed/batch/v1", - "kubernetes/typed/batch/v1beta1", - "kubernetes/typed/batch/v2alpha1", - "kubernetes/typed/certificates/v1beta1", - "kubernetes/typed/core/v1", - "kubernetes/typed/events/v1beta1", - "kubernetes/typed/extensions/v1beta1", - "kubernetes/typed/networking/v1", - "kubernetes/typed/policy/v1beta1", - "kubernetes/typed/rbac/v1", - "kubernetes/typed/rbac/v1alpha1", - "kubernetes/typed/rbac/v1beta1", - "kubernetes/typed/scheduling/v1alpha1", - "kubernetes/typed/scheduling/v1beta1", - "kubernetes/typed/settings/v1alpha1", - "kubernetes/typed/storage/v1", - "kubernetes/typed/storage/v1alpha1", - "kubernetes/typed/storage/v1beta1", - "listers/admissionregistration/v1alpha1", - "listers/admissionregistration/v1beta1", - "listers/apps/v1", - "listers/apps/v1beta1", - "listers/apps/v1beta2", - "listers/autoscaling/v1", - "listers/autoscaling/v2beta1", - "listers/batch/v1", - "listers/batch/v1beta1", - "listers/batch/v2alpha1", - "listers/certificates/v1beta1", - "listers/core/v1", - "listers/events/v1beta1", - "listers/extensions/v1beta1", - "listers/networking/v1", - "listers/policy/v1beta1", - "listers/rbac/v1", - "listers/rbac/v1alpha1", - "listers/rbac/v1beta1", - "listers/scheduling/v1alpha1", - "listers/scheduling/v1beta1", - "listers/settings/v1alpha1", - "listers/storage/v1", - "listers/storage/v1alpha1", - "listers/storage/v1beta1", - "pkg/apis/clientauthentication", - "pkg/apis/clientauthentication/v1alpha1", - "pkg/apis/clientauthentication/v1beta1", - "pkg/version", - "plugin/pkg/client/auth/exec", - "rest", - "rest/watch", - "tools/auth", - "tools/cache", - "tools/clientcmd", - "tools/clientcmd/api", - "tools/clientcmd/api/latest", - "tools/clientcmd/api/v1", - "tools/metrics", - "tools/pager", - "tools/record", - "tools/reference", - "transport", - "util/buffer", - "util/cert", - "util/connrotation", - "util/flowcontrol", - "util/homedir", - "util/integer", - "util/retry", - "util/workqueue", - ] - pruneopts = "" + packages = ["discovery","informers","informers/admissionregistration","informers/admissionregistration/v1alpha1","informers/admissionregistration/v1beta1","informers/apps","informers/apps/v1","informers/apps/v1beta1","informers/apps/v1beta2","informers/autoscaling","informers/autoscaling/v1","informers/autoscaling/v2beta1","informers/batch","informers/batch/v1","informers/batch/v1beta1","informers/batch/v2alpha1","informers/certificates","informers/certificates/v1beta1","informers/core","informers/core/v1","informers/events","informers/events/v1beta1","informers/extensions","informers/extensions/v1beta1","informers/internalinterfaces","informers/networking","informers/networking/v1","informers/policy","informers/policy/v1beta1","informers/rbac","informers/rbac/v1","informers/rbac/v1alpha1","informers/rbac/v1beta1","informers/scheduling","informers/scheduling/v1alpha1","informers/scheduling/v1beta1","informers/settings","informers/settings/v1alpha1","informers/storage","informers/storage/v1","informers/storage/v1alpha1","informers/storage/v1beta1","kubernetes","kubernetes/scheme","kubernetes/typed/admissionregistration/v1alpha1","kubernetes/typed/admissionregistration/v1beta1","kubernetes/typed/apps/v1","kubernetes/typed/apps/v1beta1","kubernetes/typed/apps/v1beta2","kubernetes/typed/authentication/v1","kubernetes/typed/authentication/v1beta1","kubernetes/typed/authorization/v1","kubernetes/typed/authorization/v1beta1","kubernetes/typed/autoscaling/v1","kubernetes/typed/autoscaling/v2beta1","kubernetes/typed/batch/v1","kubernetes/typed/batch/v1beta1","kubernetes/typed/batch/v2alpha1","kubernetes/typed/certificates/v1beta1","kubernetes/typed/core/v1","kubernetes/typed/events/v1beta1","kubernetes/typed/extensions/v1beta1","kubernetes/typed/networking/v1","kubernetes/typed/policy/v1beta1","kubernetes/typed/rbac/v1","kubernetes/typed/rbac/v1alpha1","kubernetes/typed/rbac/v1beta1","kubernetes/typed/scheduling/v1alpha1","kubernetes/typed/scheduling/v1beta1","kubernetes/typed/settings/v1alpha1","kubernetes/typed/storage/v1","kubernetes/typed/storage/v1alpha1","kubernetes/typed/storage/v1beta1","listers/admissionregistration/v1alpha1","listers/admissionregistration/v1beta1","listers/apps/v1","listers/apps/v1beta1","listers/apps/v1beta2","listers/autoscaling/v1","listers/autoscaling/v2beta1","listers/batch/v1","listers/batch/v1beta1","listers/batch/v2alpha1","listers/certificates/v1beta1","listers/core/v1","listers/events/v1beta1","listers/extensions/v1beta1","listers/networking/v1","listers/policy/v1beta1","listers/rbac/v1","listers/rbac/v1alpha1","listers/rbac/v1beta1","listers/scheduling/v1alpha1","listers/scheduling/v1beta1","listers/settings/v1alpha1","listers/storage/v1","listers/storage/v1alpha1","listers/storage/v1beta1","pkg/apis/clientauthentication","pkg/apis/clientauthentication/v1alpha1","pkg/apis/clientauthentication/v1beta1","pkg/version","plugin/pkg/client/auth/exec","rest","rest/watch","tools/auth","tools/cache","tools/clientcmd","tools/clientcmd/api","tools/clientcmd/api/latest","tools/clientcmd/api/v1","tools/metrics","tools/pager","tools/record","tools/reference","transport","util/buffer","util/cert","util/connrotation","util/flowcontrol","util/homedir","util/integer","util/retry","util/workqueue"] revision = "59698c7d9724b0f95f9dc9e7f7dfdcc3dfeceb82" version = "kubernetes-1.11.1" [[projects]] branch = "master" - digest = "1:951bc2047eea6d316a17850244274554f26fd59189360e45f4056b424dadf2c1" name = "k8s.io/kube-openapi" packages = ["pkg/util/proto"] - pruneopts = "" revision = "e3762e86a74c878ffed47484592986685639c2cd" [[projects]] - digest = "1:3d1deed8c48ccedf522fafc1b12b53f51ab9d343d989aacd8007fa9e4ae29cae" name = "k8s.io/kubernetes" - packages = [ - "pkg/api/legacyscheme", - "pkg/api/service", - "pkg/api/v1/pod", - "pkg/apis/autoscaling", - "pkg/apis/core", - "pkg/apis/core/helper", - "pkg/apis/core/install", - "pkg/apis/core/pods", - "pkg/apis/core/v1", - "pkg/apis/core/v1/helper", - "pkg/apis/core/validation", - "pkg/apis/extensions", - "pkg/apis/networking", - "pkg/apis/policy", - "pkg/apis/scheduling", - "pkg/capabilities", - "pkg/client/conditions", - "pkg/cloudprovider", - "pkg/controller", - "pkg/features", - "pkg/fieldpath", - "pkg/kubelet/apis", - "pkg/kubelet/types", - "pkg/master/ports", - "pkg/scheduler/algorithm", - "pkg/scheduler/algorithm/priorities/util", - "pkg/scheduler/api", - "pkg/scheduler/cache", - "pkg/scheduler/util", - "pkg/security/apparmor", - "pkg/serviceaccount", - "pkg/util/file", - "pkg/util/hash", - "pkg/util/io", - "pkg/util/mount", - "pkg/util/net/sets", - "pkg/util/nsenter", - "pkg/util/parsers", - "pkg/util/pointer", - "pkg/util/taints", - "pkg/util/version", - "pkg/volume", - "pkg/volume/util", - "pkg/volume/util/fs", - "pkg/volume/util/recyclerclient", - "pkg/volume/util/types", - "pkg/volume/util/volumepathhandler", - ] - pruneopts = "" + packages = ["pkg/api/legacyscheme","pkg/api/service","pkg/api/v1/pod","pkg/apis/autoscaling","pkg/apis/core","pkg/apis/core/helper","pkg/apis/core/install","pkg/apis/core/pods","pkg/apis/core/v1","pkg/apis/core/v1/helper","pkg/apis/core/validation","pkg/apis/extensions","pkg/apis/networking","pkg/apis/policy","pkg/apis/scheduling","pkg/capabilities","pkg/client/conditions","pkg/cloudprovider","pkg/controller","pkg/features","pkg/fieldpath","pkg/kubelet/apis","pkg/kubelet/types","pkg/master/ports","pkg/scheduler/algorithm","pkg/scheduler/algorithm/priorities/util","pkg/scheduler/api","pkg/scheduler/cache","pkg/scheduler/util","pkg/security/apparmor","pkg/serviceaccount","pkg/util/file","pkg/util/hash","pkg/util/io","pkg/util/mount","pkg/util/net/sets","pkg/util/nsenter","pkg/util/parsers","pkg/util/pointer","pkg/util/taints","pkg/util/version","pkg/volume","pkg/volume/util","pkg/volume/util/fs","pkg/volume/util/recyclerclient","pkg/volume/util/types","pkg/volume/util/volumepathhandler"] revision = "a4529464e4629c21224b3d52edfe0ea91b072862" version = "v1.11.3" [[projects]] branch = "master" - digest = "1:0efd5f9ea94a2c4e38c286c88411509407b441256576a33a7712fd4913c96333" name = "k8s.io/utils" packages = ["exec"] - pruneopts = "" revision = "cd34563cd63c2bd7c6fe88a73c4dcf34ed8a67cb" [solve-meta] analyzer-name = "dep" analyzer-version = 1 - input-imports = [ - "github.com/golang/glog", - "github.com/kubernetes-incubator/external-storage/lib/controller", - "github.com/onsi/ginkgo", - "github.com/onsi/gomega", - "github.com/oracle/oci-go-sdk/common", - "github.com/oracle/oci-go-sdk/common/auth", - "github.com/oracle/oci-go-sdk/core", - "github.com/oracle/oci-go-sdk/filestorage", - "github.com/oracle/oci-go-sdk/identity", - "github.com/pkg/errors", - "gopkg.in/yaml.v2", - "k8s.io/api/apps/v1beta1", - "k8s.io/api/core/v1", - "k8s.io/api/rbac/v1beta1", - "k8s.io/api/storage/v1beta1", - "k8s.io/apimachinery/pkg/api/errors", - "k8s.io/apimachinery/pkg/api/resource", - "k8s.io/apimachinery/pkg/apis/meta/v1", - "k8s.io/apimachinery/pkg/labels", - "k8s.io/apimachinery/pkg/types", - "k8s.io/apimachinery/pkg/util/sets", - "k8s.io/apimachinery/pkg/util/uuid", - "k8s.io/apimachinery/pkg/util/validation/field", - "k8s.io/apimachinery/pkg/util/wait", - "k8s.io/apiserver/pkg/util/logs", - "k8s.io/client-go/informers", - "k8s.io/client-go/informers/core/v1", - "k8s.io/client-go/kubernetes", - "k8s.io/client-go/listers/core/v1", - "k8s.io/client-go/tools/cache", - "k8s.io/client-go/tools/clientcmd", - "k8s.io/kubernetes/pkg/client/conditions", - "k8s.io/kubernetes/pkg/kubelet/apis", - "k8s.io/kubernetes/pkg/volume/util", - ] + inputs-digest = "8216b3049be9d948863a5ad94733c02a0fc2a27f04a37a3e62c48ee95fc72db8" solver-name = "gps-cdcl" solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml index 690e07c17..f8eaffcff 100644 --- a/Gopkg.toml +++ b/Gopkg.toml @@ -1,24 +1,3 @@ -# Gopkg.toml example -# -# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md -# for detailed Gopkg.toml documentation. -# -# required = ["github.com/user/thing/cmd/thing"] -# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] -# -# [[constraint]] -# name = "github.com/user/project" -# version = "1.0.0" -# -# [[constraint]] -# name = "github.com/user/project2" -# branch = "dev" -# source = "github.com/myfork/project2" -# -# [[override]] -# name = "github.com/x/y" -# version = "2.4.0" - ignored = ["k8s.io/client-go/pkg/api/v1"] # See: https://github.com/golang/dep/issues/1799 @@ -60,7 +39,7 @@ ignored = ["k8s.io/client-go/pkg/api/v1"] version = "1.11.1" [[constraint]] - version = "v1.6.0" + version = "v2.6.0" name = "github.com/oracle/oci-go-sdk" [[override]] diff --git a/Makefile b/Makefile index 561e52df5..fbd1ef438 100644 --- a/Makefile +++ b/Makefile @@ -17,11 +17,11 @@ GO_SRC := $(shell find . -name "*.go") # Else just equal the build (git hash) BUILD := $(shell git describe --tags --dirty --always) ifeq ($(DEV_BUILD), true) - # If DEV_BUILD is set, use the dev format. VERSION ?= ${BUILD}-${USER}-dev else VERSION ?= ${BUILD} endif + DIR := dist BIN := oci-volume-provisioner REGISTRY ?= iad.ocir.io @@ -39,6 +39,9 @@ SRC_DIRS := cmd pkg # directories which hold app source (not vendored) .PHONY: all all: gofmt golint govet test build +deps: + dep ensure -v + .PHONY: gofmt gofmt: @./hack/check-gofmt.sh ${SRC_DIRS} @@ -112,10 +115,10 @@ endif .PHONY: system-test system-test: system-test-config docker run -it ${DOCKER_OPTIONS} \ - -e KUBECONFIG=$(KUBECONFIG) \ - -v $(KUBECONFIG):$(KUBECONFIG) \ - -e HTTPS_PROXY=$$HTTPS_PROXY \ - ${TEST_IMAGE}:${VERSION} ${TEST_IMAGE_ARGS} + -e KUBECONFIG=$(KUBECONFIG) \ + -v $(KUBECONFIG):$(KUBECONFIG) \ + -e HTTPS_PROXY=$$HTTPS_PROXY \ + ${TEST_IMAGE}:${VERSION} ${TEST_IMAGE_ARGS} .PHONY: clean clean: diff --git a/pkg/provisioner/block/block.go b/pkg/provisioner/block/block.go index ba0375a41..ca35d28b4 100644 --- a/pkg/provisioner/block/block.go +++ b/pkg/provisioner/block/block.go @@ -157,7 +157,7 @@ func (block *blockProvisioner) Provision(options controller.VolumeOptions, ad *i return nil, fmt.Errorf("could not determine volume size for PVC") } - volSizeMB := int(roundUpSize(capacity.Value(), 1024*1024)) + volSizeMB := int64(roundUpSize(capacity.Value(), 1024*1024)) logger := block.logger.With( "availabilityDomain", *ad.Name, @@ -167,7 +167,7 @@ func (block *blockProvisioner) Provision(options controller.VolumeOptions, ad *i if volumeRoundingEnabled(options.Parameters) { if block.volumeRoundingEnabled && block.minVolumeSize.Cmp(capacity) == 1 { - volSizeMB = int(roundUpSize(block.minVolumeSize.Value(), 1024*1024)) + volSizeMB = int64(roundUpSize(block.minVolumeSize.Value(), 1024*1024)) logger.With("roundedVolumeSize", volSizeMB).Warn("Attempted to provision volume with a capacity less than the minimum. Rounding up to ensure volume creation.") capacity = block.minVolumeSize } @@ -177,7 +177,7 @@ func (block *blockProvisioner) Provision(options controller.VolumeOptions, ad *i AvailabilityDomain: ad.Name, CompartmentId: common.String(block.client.CompartmentOCID()), DisplayName: common.String(fmt.Sprintf("%s%s", provisioner.GetPrefix(), options.PVC.Name)), - SizeInMBs: common.Int(volSizeMB), + SizeInMBs: common.Int64(volSizeMB), } if value, ok := options.PVC.Annotations[OCIVolumeBackupID]; ok { diff --git a/vendor/github.com/oracle/oci-go-sdk/CHANGELOG.md b/vendor/github.com/oracle/oci-go-sdk/CHANGELOG.md index 5818eef9b..7f0854964 100644 --- a/vendor/github.com/oracle/oci-go-sdk/CHANGELOG.md +++ b/vendor/github.com/oracle/oci-go-sdk/CHANGELOG.md @@ -4,6 +4,134 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) +## 2.6.0 - 2018-10-04 +### Added +- Support for trusted partner images through application listings and subscriptions in the Compute service +- Support for object lifecycle policies in the Object Storage service +- Support for copying objects across regions in the Object Storage service +- Support for network address translation (NAT) gateways in the Networking service + +## 2.5.0 - 2018-09-27 +### Added +- Support for paravirtualized launch mode when importing images in the Compute service +- Support for Key Management service +- Support for encrypting the contents of an Object Storage bucket using a Key Management service key +- Support for specifying a Key Management service key when launching a compute instance in the Compute service +- Support for specifying a Key Management service key when backing up or restoring a block storage volume in the Block Volume service + +## 2.4.0 - 2018-09-06 +### Added +- Added support for updating metadata fields on an instance in the Compute service + +## 2.3.0 - 2018-08-23 +### Added +- Support for fault domain in the Identity Service +- Support for Autonomous Data Warehouse and Autonomous Transaction Processing in the Database service +- Support for resizing an offline volume in the Block Storage service +- Nil interface when polymorphic json response object is null + +## 2.2.0 - 2018-07-26 +### Added +- Support for fault domains in the Compute service +- A sample showing how to use Search service from the SDK is available on [Github](https://github.com/oracle/oci-go-sdk/tree/master/example/example_resourcesearch_test.go) + +## 2.1.0 - 2018-07-26 +### Added +- Support for the OCI Search service +- Support for specifying a backup policy when creating a boot volume in the Block Storage service + +### Fixed +- OCI error is missing opc-request-id value [Github Issue 120](https://github.com/oracle/oci-go-sdk/issues/120) +- Include raw http response when service error occurred + +## 2.0.0 - 2018-07-12 +### Added +- Support for tagging Load Balancers in the Load Balancing service +- Support for export options in the File Storage service +- Support for retrieving compartment name and user name as part of events in the Audit service + +### Fixed +- CreateKubeconfig function should not close http reponse body [Github Issue 116](https://github.com/oracle/oci-go-sdk/issues/116) + +### Breaking changes +- Datatype changed from *int to *int64 for several request/response structs. Here is sample code that shows how to update your code to incorporate this change. + + - Before + + ```golang + // Update the impacted properties from common.Int to common.Int64. + // Here is the updates for CreateBootVolumeDetails + details := core.CreateBootVolumeDetails{ + SizeInGBs: common.Int(10), + } + ``` + + - After + + ```golang + details := core.CreateBootVolumeDetails{ + SizeInGBs: common.Int64(10), + } + ``` + +- Impacted packages and structs + - core + - BootVolume.(SizeInGBs, SizeInMBs) + - BootVolumeBackup.(SizeInGBs, UniqueSizeInGBs) + - CreateBootVolumeDetails.SizeInGBs + - CreateVolumeDetails.(SizeInGBs, SizeInMBs) + - Image.SizeInMBs + - InstanceSourceViaImageDetails.BootVolumeSizeInGBs + - Volume.(SizeInGBs, SizeInMBs) + - VolumeBackup.(SizeInGBs, SizeInMBs, UniqueSizeInGBs, UniqueSizeInMbs) + - VolumeGroup.(SizeInMBs, SizeInGBs) + - VolumeGroupBackup.(SizeInMBs, SizeInGBs, UniqueSizeInMbs, UniqueSizeInGbs) + - dns + - GetDomainRecordsRequest.Limit + - GetRRSetRequest.Limit + - GetZoneRecordsRequest.Limit + - ListZonesRequest.Limit + - Zone.Serial + - ZoneSummary.Serial + - filestorage + - ExportSet.(MaxFsStatBytes, MaxFsStatFiles) + - FileSystem.MeteredBytes + - FileSystemSummary.MeteredBytes + - UpdateExportSetDetails.(MaxFsStatBytes, MaxFsStatFiles) + - identity + - ApiKey.InactiveStatus + - AuthToken.InactiveStatus + - Compartment.InactiveStatus + - CustomerSecretKey.InactiveStatus + - CustomerSecretKeySummary.InactiveStatus + - DynamicGroup.InactiveStatus + - Group.InactiveStatus + - IdentityProvider.InactiveStatus + - IdpGroupMapping.InactiveStatus + - Policy.InactiveStatus + - Saml2IdentityProvider.InactiveStatus + - SmtpCredential.InactiveStatus + - SmtpCredentialSummary.InactiveStatus + - SwiftPassword.InactiveStatus + - UiPassword.InactiveStatus + - User.InactiveStatus + - UserGroupMembership.InactiveStatus + - loadbalancer + - ConnectionConfiguration.IdleTimeout + - ListLoadBalancerHealthsRequest.Limit + - ListLoadBalancersRequest.Limit + - ListPoliciesRequest + - ListProtocolsRequest.Limit + - ListShapesRequest.Limit + - ListWorkRequestsRequest.Limit + - objectstorage + - GetObjectResponse.ContentLength + - HeadObjectResponse.ContentLength + - MultipartUploadPartSummary.Size + - ObjectSummary.Size + - PutObjectRequest.ContentLength + - UploadPartRequest.ContentLength + ## 1.8.0 - 2018-06-28 ### Added - Support for service gateway management in the Networking service diff --git a/vendor/github.com/oracle/oci-go-sdk/Makefile b/vendor/github.com/oracle/oci-go-sdk/Makefile index b717249de..69e7372ea 100644 --- a/vendor/github.com/oracle/oci-go-sdk/Makefile +++ b/vendor/github.com/oracle/oci-go-sdk/Makefile @@ -1,6 +1,6 @@ DOC_SERVER_URL=https:\/\/docs.us-phoenix-1.oraclecloud.com -GEN_TARGETS = identity core objectstorage loadbalancer database audit dns filestorage email containerengine +GEN_TARGETS = identity core objectstorage loadbalancer database audit dns filestorage email containerengine resourcesearch keymanagement ##SPECNAME## NON_GEN_TARGETS = common common/auth TARGETS = $(NON_GEN_TARGETS) $(GEN_TARGETS) diff --git a/vendor/github.com/oracle/oci-go-sdk/audit/audit_client.go b/vendor/github.com/oracle/oci-go-sdk/audit/audit_client.go index e9c07f183..a06ca332c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/audit/audit_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/audit/audit_client.go @@ -67,6 +67,9 @@ func (client AuditClient) GetConfiguration(ctx context.Context, request GetConfi } ociResponse, err = common.Retry(ctx, request, client.getConfiguration, policy) if err != nil { + if ociResponse != nil { + response = GetConfigurationResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetConfigurationResponse); ok { @@ -106,6 +109,9 @@ func (client AuditClient) ListEvents(ctx context.Context, request ListEventsRequ } ociResponse, err = common.Retry(ctx, request, client.listEvents, policy) if err != nil { + if ociResponse != nil { + response = ListEventsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListEventsResponse); ok { @@ -145,6 +151,9 @@ func (client AuditClient) UpdateConfiguration(ctx context.Context, request Updat } ociResponse, err = common.Retry(ctx, request, client.updateConfiguration, policy) if err != nil { + if ociResponse != nil { + response = UpdateConfigurationResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateConfigurationResponse); ok { diff --git a/vendor/github.com/oracle/oci-go-sdk/audit/audit_event.go b/vendor/github.com/oracle/oci-go-sdk/audit/audit_event.go index 2887502ce..95f7a9505 100644 --- a/vendor/github.com/oracle/oci-go-sdk/audit/audit_event.go +++ b/vendor/github.com/oracle/oci-go-sdk/audit/audit_event.go @@ -21,6 +21,10 @@ type AuditEvent struct { // The OCID of the compartment. CompartmentId *string `mandatory:"false" json:"compartmentId"` + // The name of the compartment. This value is the friendly name associated with compartmentId. + // This value can change, but the service logs the value that appeared at the time of the audit event. + CompartmentName *string `mandatory:"false" json:"compartmentName"` + // The GUID of the event. EventId *string `mandatory:"false" json:"eventId"` @@ -75,6 +79,9 @@ type AuditEvent struct { // Metadata of interest from the response payload. For example, the OCID of a resource. ResponsePayload map[string]interface{} `mandatory:"false" json:"responsePayload"` + + // The name of the user or service. This value is the friendly name associated with principalId. + UserName *string `mandatory:"false" json:"userName"` } func (m AuditEvent) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/common/auth/federation_client.go b/vendor/github.com/oracle/oci-go-sdk/common/auth/federation_client.go index 1aa258e83..61465ba7a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/auth/federation_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/auth/federation_client.go @@ -12,6 +12,7 @@ import ( "fmt" "github.com/oracle/oci-go-sdk/common" "net/http" + "os" "strings" "sync" ) @@ -53,8 +54,8 @@ var ( func newAuthClient(region common.Region, provider common.KeyProvider) *common.BaseClient { signer := common.RequestSigner(provider, genericHeaders, bodyHeaders) client := common.DefaultBaseClientWithSigner(signer) - if region == common.RegionSEA { - client.Host = "https://auth.r1.oracleiaas.com" + if regionURL, ok := os.LookupEnv("OCI_SDK_AUTH_CLIENT_REGION_URL"); ok { + client.Host = regionURL } else { client.Host = fmt.Sprintf(common.DefaultHostURLTemplate, "auth", string(region)) } diff --git a/vendor/github.com/oracle/oci-go-sdk/common/client.go b/vendor/github.com/oracle/oci-go-sdk/common/client.go index ceda00192..369f5795b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/client.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/client.go @@ -197,10 +197,6 @@ func (client *BaseClient) prepareRequest(request *http.Request) (err error) { request.Header.Set(requestHeaderUserAgent, client.UserAgent) request.Header.Set(requestHeaderDate, time.Now().UTC().Format(http.TimeFormat)) - if request.Header.Get(requestHeaderOpcRetryToken) == "" { - request.Header.Set(requestHeaderOpcRetryToken, generateRetryToken()) - } - if !strings.Contains(client.Host, "http") && !strings.Contains(client.Host, "https") { client.Host = fmt.Sprintf("%s://%s", defaultScheme, client.Host) @@ -285,7 +281,7 @@ func (client BaseClient) Call(ctx context.Context, request *http.Request) (respo Logln("not dumping body too big") dumpBody = false } - if dump, e := httputil.DumpRequest(request, dumpBody); e == nil { + if dump, e := httputil.DumpRequestOut(request, dumpBody); e == nil { Logf("Dump Request %v", string(dump)) } else { Debugln(e) diff --git a/vendor/github.com/oracle/oci-go-sdk/common/client_test.go b/vendor/github.com/oracle/oci-go-sdk/common/client_test.go index 3fd61fdc8..229ec5407 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/client_test.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/client_test.go @@ -104,26 +104,6 @@ func TestClient_prepareRequestUpdatesDateHeader(t *testing.T) { assert.NotEqual(t, d1, d2) } -func TestClient_prepareRequestOnlySetsRetryTokenOnce(t *testing.T) { - host := "somehost:9000" - basePath := "basePath" - restPath := "somepath" - - c := BaseClient{UserAgent: "asdf"} - c.Host = host - c.BasePath = basePath - - request := http.Request{} - request.URL = &url.URL{Path: restPath} - c.prepareRequest(&request) - token1 := request.Header.Get(requestHeaderOpcRetryToken) - assert.NotEmpty(t, token1) - c.prepareRequest(&request) - token2 := request.Header.Get(requestHeaderOpcRetryToken) - assert.NotEmpty(t, token2) - assert.Equal(t, token1, token2) -} - func TestDefaultHTTPDispatcher_transportNotSet(t *testing.T) { client := defaultHTTPDispatcher() @@ -473,8 +453,8 @@ func TestRetry_GetsSuccessfulResponseAfterMultipleAttempts(t *testing.T) { } func TestRetryToken_GenerateMultipleTimes(t *testing.T) { - token1 := generateRetryToken() - token2 := generateRetryToken() + token1 := RetryToken() + token2 := RetryToken() assert.NotEqual(t, token1, token2) } diff --git a/vendor/github.com/oracle/oci-go-sdk/common/common.go b/vendor/github.com/oracle/oci-go-sdk/common/common.go index c284f9371..dbada3c7a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/common.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/common.go @@ -3,6 +3,7 @@ package common import ( + "fmt" "strings" ) @@ -41,3 +42,12 @@ func StringToRegion(stringRegion string) (r Region) { } return } + +// canStringBeRegion test if the string can be a region, if it can, returns the string as is, otherwise it +// returns an error +func canStringBeRegion(stringRegion string) (region string, err error) { + if strings.Contains(stringRegion, " ") || stringRegion == "" { + return "", fmt.Errorf("region can not be empty or have spaces") + } + return stringRegion, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/common/configuration.go b/vendor/github.com/oracle/oci-go-sdk/common/configuration.go index 2e4c92b64..6e04396cd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/configuration.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/configuration.go @@ -92,7 +92,7 @@ func (p rawConfigurationProvider) KeyFingerprint() (string, error) { } func (p rawConfigurationProvider) Region() (string, error) { - return p.region, nil + return canStringBeRegion(p.region) } // environmentConfigurationProvider reads configuration from environment variables @@ -183,8 +183,10 @@ func (p environmentConfigurationProvider) Region() (value string, err error) { var ok bool if value, ok = os.LookupEnv(environmentVariable); !ok { err = fmt.Errorf("can not read region from environment variable %s", environmentVariable) + return value, err } - return + + return canStringBeRegion(value) } // fileConfigurationProvider. reads configuration information from a file @@ -436,7 +438,11 @@ func (p fileConfigurationProvider) Region() (value string, err error) { } value, err = presentOrError(info.Region, hasRegion, info.PresentConfiguration, "region") - return + if err != nil { + return + } + + return canStringBeRegion(value) } // A configuration provider that look for information in multiple configuration providers diff --git a/vendor/github.com/oracle/oci-go-sdk/common/configuration_test.go b/vendor/github.com/oracle/oci-go-sdk/common/configuration_test.go index f175770b1..26279238d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/configuration_test.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/configuration_test.go @@ -112,6 +112,72 @@ func TestRawConfigurationProvider(t *testing.T) { } +func TestRawConfigurationProvider_BadRegion(t *testing.T) { + var ( + testTenancy = "ocid1.tenancy.oc1..aaaaaaaaxf3fuazos" + testUser = "ocid1.user.oc1..aaaaaaaa3p67n2kmpxnbcnff" + testRegion = "us-ashburn-1 " + testFingerprint = "af:81:71:8e:d2" + ) + + c := NewRawConfigurationProvider(testTenancy, testUser, testRegion, testFingerprint, testPrivateKeyConf, nil) + + user, err := c.UserOCID() + assert.NoError(t, err) + assert.Equal(t, user, testUser) + + fingerprint, err := c.KeyFingerprint() + assert.NoError(t, err) + assert.Equal(t, fingerprint, testFingerprint) + + _, err = c.Region() + assert.Error(t, err) + + rsaKey, err := c.PrivateRSAKey() + assert.NoError(t, err) + assert.NotEmpty(t, rsaKey) + + keyID, err := c.KeyID() + assert.NoError(t, err) + assert.NotEmpty(t, keyID) + + assert.Equal(t, keyID, "ocid1.tenancy.oc1..aaaaaaaaxf3fuazos/ocid1.user.oc1..aaaaaaaa3p67n2kmpxnbcnff/af:81:71:8e:d2") + +} + +func TestEnvironmentConfigurationProvider(t *testing.T) { + envVars := []string{"region", "fingerprint", "user_ocid", "tenancy_ocid"} + keyFile := writeTempFile(testPrivateKeyConf) + defer removeFileFn(keyFile) + + for _, v := range envVars { + os.Setenv(fmt.Sprintf("OCI_TEST_%s", v), "someval") + } + os.Setenv("OCI_TEST_private_key_path", keyFile) + + conf := ConfigurationProviderEnvironmentVariables("OCI_TEST", "") + b, _ := IsConfigurationProviderValid(conf) + assert.True(t, b) +} + +func TestEnvironmentConfigurationProvider_BadRegion(t *testing.T) { + envVars := []string{"fingerprint", "user_ocid", "tenancy_ocid"} + keyFile := writeTempFile(testPrivateKeyConf) + defer removeFileFn(keyFile) + + for _, v := range envVars { + os.Setenv(fmt.Sprintf("OCI_TEST_%s", v), "someval") + } + os.Setenv("OCI_TEST_private_key_path", keyFile) + os.Setenv("OCI_TEST_region", "asdfas ") + + conf := ConfigurationProviderEnvironmentVariables("OCI_TEST", "") + b, _ := IsConfigurationProviderValid(conf) + assert.False(t, b) + _, e := conf.Region() + assert.Error(t, e) +} + func TestFileConfigurationProvider_parseConfigFileData(t *testing.T) { data := `[DEFAULT] user=someuser @@ -160,6 +226,27 @@ region=someregion } } +func TestFileConfigurationProvider_FromFileBadRegion(t *testing.T) { + data := `[DEFAULT] +user=someuser +fingerprint=somefingerprint +key_file=somelocation +tenancy=sometenancy +compartment = somecompartment +region= asdf asdf +` + filename := writeTempFile(data) + defer removeFileFn(filename) + + c := fileConfigurationProvider{ConfigPath: filename, Profile: "DEFAULT"} + fns := []func() (string, error){c.Region} + + for _, fn := range fns { + _, e := fn() + assert.Error(t, e) + } +} + func TestFileConfigurationProvider_FromFileEmptyProfile(t *testing.T) { expected := []string{ttenancy, tuser, tfingerprint, tkeyfile} data := ` @@ -722,3 +809,32 @@ func TestExpandPath(t *testing.T) { }) } } + +func TestIsRegionValid(t *testing.T) { + testIO := []struct { + name string + input string + expected bool + }{ + {"valid", "aasb asdf", true}, + {"valid", "aasb-asdf", false}, + {"empty", "", true}, + {"leading strings", " aasb", true}, + {"single leading string", " aasb", true}, + {"single trailing string", "aasb ", true}, + {"trailing string", "aasb ", true}, + {"single trailing and leading", " aasb ", true}, + {"trailing and leading", " aasb ", true}, + } + + for _, tIO := range testIO { + t.Run(tIO.name, func(t *testing.T) { + _, err := canStringBeRegion(tIO.input) + if tIO.expected { + assert.Error(t, err) + } else { + assert.NoError(t, err) + } + }) + } +} diff --git a/vendor/github.com/oracle/oci-go-sdk/common/errors.go b/vendor/github.com/oracle/oci-go-sdk/common/errors.go index f4757a2ec..f50766f08 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/errors.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/errors.go @@ -20,43 +20,46 @@ type ServiceError interface { // A short error code that defines the error, meant for programmatic parsing. // See https://docs.us-phoenix-1.oraclecloud.com/Content/API/References/apierrors.htm GetCode() string + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + GetOpcRequestID() string } type servicefailure struct { - StatusCode int - Code string `json:"code,omitempty"` - Message string `json:"message,omitempty"` + StatusCode int + Code string `json:"code,omitempty"` + Message string `json:"message,omitempty"` + OpcRequestID string `json:"opc-request-id"` } func newServiceFailureFromResponse(response *http.Response) error { var err error + se := servicefailure{ + StatusCode: response.StatusCode, + Code: "BadErrorResponse", + OpcRequestID: response.Header.Get("opc-request-id")} + //If there is an error consume the body, entirely body, err := ioutil.ReadAll(response.Body) if err != nil { - return servicefailure{ - StatusCode: response.StatusCode, - Code: "BadErrorResponse", - Message: fmt.Sprintf("The body of the response was not readable, due to :%s", err.Error()), - } + se.Message = fmt.Sprintf("The body of the response was not readable, due to :%s", err.Error()) + return se } - se := servicefailure{StatusCode: response.StatusCode} err = json.Unmarshal(body, &se) if err != nil { Debugf("Error response could not be parsed due to: %s", err.Error()) - return servicefailure{ - StatusCode: response.StatusCode, - Code: "BadErrorResponse", - Message: fmt.Sprintf("Error while parsing failure from response"), - } + se.Message = fmt.Sprintf("Failed to parse json from response body due to: %s. With response body %s.", err.Error(), string(body[:])) + return se } return se } func (se servicefailure) Error() string { - return fmt.Sprintf("Service error:%s. %s. http status code: %d", - se.Code, se.Message, se.StatusCode) + return fmt.Sprintf("Service error:%s. %s. http status code: %d. Opc request id: %s", + se.Code, se.Message, se.StatusCode, se.OpcRequestID) } func (se servicefailure) GetHTTPStatusCode() int { @@ -72,6 +75,10 @@ func (se servicefailure) GetCode() string { return se.Code } +func (se servicefailure) GetOpcRequestID() string { + return se.OpcRequestID +} + // IsServiceError returns false if the error is not service side, otherwise true // additionally it returns an interface representing the ServiceError func IsServiceError(err error) (failure ServiceError, ok bool) { diff --git a/vendor/github.com/oracle/oci-go-sdk/common/errors_test.go b/vendor/github.com/oracle/oci-go-sdk/common/errors_test.go new file mode 100644 index 000000000..42c1c2918 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/common/errors_test.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + +package common + +import ( + "bytes" + "io/ioutil" + "net/http" + "strings" + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestErrors_ServiceFailureFromResponse(t *testing.T) { + header := http.Header{} + opcID := "111" + header.Set("opc-request-id", opcID) + sampleResponse := `{"key" : "test"}` + + httpResponse := http.Response{Header: header} + bodyBuffer := bytes.NewBufferString(sampleResponse) + httpResponse.Body = ioutil.NopCloser(bodyBuffer) + httpResponse.StatusCode = 200 + err := newServiceFailureFromResponse(&httpResponse) + assert.Equal(t, err.(ServiceError).GetOpcRequestID(), opcID) + assert.Equal(t, strings.Contains(err.Error(), "Service error:"), true) + + failure, ok := IsServiceError(err) + assert.Equal(t, ok, true) + assert.Equal(t, failure.GetHTTPStatusCode(), httpResponse.StatusCode) +} + +func TestErrors_FailedToParseJson(t *testing.T) { + // invalid json + sampleResponse := `{"key" : test"}` + + httpResponse := http.Response{} + bodyBuffer := bytes.NewBufferString(sampleResponse) + httpResponse.Body = ioutil.NopCloser(bodyBuffer) + err := newServiceFailureFromResponse(&httpResponse) + + failure, ok := IsServiceError(err) + assert.Equal(t, ok, true) + assert.Equal(t, failure.GetCode(), "BadErrorResponse") + assert.Equal(t, strings.Contains(failure.GetMessage(), "Failed to parse json from response body due to"), true) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/common/helpers.go b/vendor/github.com/oracle/oci-go-sdk/common/helpers.go index 9e99734c5..2111beabc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/helpers.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/helpers.go @@ -9,6 +9,7 @@ import ( "encoding/pem" "fmt" "reflect" + "strconv" "strings" "time" ) @@ -23,6 +24,11 @@ func Int(value int) *int { return &value } +// Int64 returns a pointer to the provided int64 +func Int64(value int64) *int64 { + return &value +} + // Uint returns a pointer to the provided uint func Uint(value uint) *uint { return &value @@ -76,15 +82,33 @@ func PointerString(datastruct interface{}) (representation string) { return } -// SDKTime a time struct, which renders to/from json using RFC339 +// SDKTime a struct that parses/renders to/from json using RFC339 date-time information type SDKTime struct { time.Time } +// SDKDate a struct that parses/renders to/from json using only date information +type SDKDate struct { + //Date date information + Date time.Time +} + func sdkTimeFromTime(t time.Time) SDKTime { return SDKTime{t} } +func sdkDateFromTime(t time.Time) SDKDate { + return SDKDate{Date: t} +} + +func formatTime(t SDKTime) string { + return t.Format(sdkTimeFormat) +} + +func formatDate(t SDKDate) string { + return t.Date.Format(sdkDateFormat) +} + func now() *SDKTime { t := SDKTime{time.Now()} return &t @@ -93,13 +117,13 @@ func now() *SDKTime { var timeType = reflect.TypeOf(SDKTime{}) var timeTypePtr = reflect.TypeOf(&SDKTime{}) -const sdkTimeFormat = time.RFC3339 +var sdkDateType = reflect.TypeOf(SDKDate{}) +var sdkDateTypePtr = reflect.TypeOf(&SDKDate{}) +//Formats for sdk supported time representations +const sdkTimeFormat = time.RFC3339 const rfc1123OptionalLeadingDigitsInDay = "Mon, _2 Jan 2006 15:04:05 MST" - -func formatTime(t SDKTime) string { - return t.Format(sdkTimeFormat) -} +const sdkDateFormat = "2006-01-02" func tryParsingTimeWithValidFormatsForHeaders(data []byte, headerName string) (t time.Time, err error) { header := strings.ToLower(headerName) @@ -125,6 +149,21 @@ func tryParsing(data []byte, layouts ...string) (tm time.Time, err error) { return } +// String returns string representation of SDKDate +func (t *SDKDate) String() string { + return t.Date.Format(sdkDateFormat) +} + +// NewSDKDateFromString parses the dateString into SDKDate +func NewSDKDateFromString(dateString string) (*SDKDate, error) { + parsedTime, err := time.Parse(sdkDateFormat, dateString) + if err != nil { + return nil, err + } + + return &SDKDate{Date: parsedTime}, nil +} + // UnmarshalJSON unmarshals from json func (t *SDKTime) UnmarshalJSON(data []byte) (e error) { s := string(data) @@ -144,6 +183,26 @@ func (t *SDKTime) MarshalJSON() (buff []byte, e error) { return } +// UnmarshalJSON unmarshals from json +func (t *SDKDate) UnmarshalJSON(data []byte) (e error) { + if string(data) == `"null"` { + t.Date = time.Time{} + return + } + + t.Date, e = tryParsing(data, + strconv.Quote(sdkDateFormat), + ) + return +} + +// MarshalJSON marshals to JSON +func (t *SDKDate) MarshalJSON() (buff []byte, e error) { + s := t.Date.Format(sdkDateFormat) + buff = []byte(strconv.Quote(s)) + return +} + // PrivateKeyFromBytes is a helper function that will produce a RSA private // key from bytes. func PrivateKeyFromBytes(pemData []byte, password *string) (key *rsa.PrivateKey, e error) { @@ -178,3 +237,9 @@ func generateRandUUID() (string, error) { return uuid, nil } + +func makeACopy(original []string) []string { + tmp := make([]string, len(original)) + copy(tmp, original) + return tmp +} diff --git a/vendor/github.com/oracle/oci-go-sdk/common/helpers_test.go b/vendor/github.com/oracle/oci-go-sdk/common/helpers_test.go index de9006fa2..1925c8fb3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/helpers_test.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/helpers_test.go @@ -3,9 +3,12 @@ package common import ( + "encoding/json" "fmt" "github.com/stretchr/testify/assert" + "reflect" "testing" + "time" ) func TestStructToString(t *testing.T) { @@ -82,3 +85,96 @@ func TestDateParsing_LastModifiedHeaderDate(t *testing.T) { assert.Equal(t, tt.Day(), 2) } } + +func TestFormattedTimeMarshaling(t *testing.T) { + sampleTime, _ := time.Parse(time.UnixDate, "Mon Jan 02 15:04:05 MST 2006") + testIO := []struct { + name string + t *SDKDate + expectedJSON string + expectedError error + }{ + { + name: "formatting time to simple date format", + t: &SDKDate{Date: sampleTime}, + expectedJSON: `"2006-01-02"`, + expectedError: nil, + }, + { + name: "formatting nil", + t: nil, + expectedJSON: `null`, + expectedError: nil, + }, + } + + for _, tc := range testIO { + t.Run(tc.name, func(t *testing.T) { + bytes, e := json.Marshal(&tc.t) + assert.Equal(t, tc.expectedError, e) + assert.Equal(t, tc.expectedJSON, string(bytes)) + }) + } + +} + +func TestFormattedTimeUnMarshaling(t *testing.T) { + sampleTime, _ := time.Parse(time.UnixDate, "Mon Jan 02 15:04:05 MST 2006") + testIO := []struct { + name string + json string + expectedTime *SDKDate + expectedError error + }{ + { + name: "unmarshaling time to simple date format", + expectedTime: &SDKDate{Date: sampleTime}, + json: `"2006-01-02"`, + expectedError: nil, + }, + { + name: "unmarshaling time to simple RFC3339 format", + expectedTime: &SDKDate{Date: sampleTime}, + json: `"2006-01-02T15:04:05Z"`, + expectedError: &time.ParseError{}, + }, + { + name: "unmarshaling null", + expectedTime: &SDKDate{}, + json: `"null"`, + expectedError: nil, + }, + } + + for _, tc := range testIO { + t.Run(tc.name, func(t *testing.T) { + newTime := SDKDate{} + e := json.Unmarshal([]byte(tc.json), &newTime) + assert.IsType(t, reflect.TypeOf(tc.expectedError), reflect.TypeOf(e)) + if tc.expectedError != nil { + return + } + assert.Equal(t, tc.expectedTime.Date.Format(sdkDateFormat), newTime.Date.Format(sdkDateFormat)) + }) + } + +} + +func TestSDKDateToAndFromString(t *testing.T) { + _, err := NewSDKDateFromString("InvalidFormat") + s, _ := NewSDKDateFromString("2018-09-13") + str := fmt.Sprintf("%s", s) + + assert.Equal(t, "2018-09-13", str) + assert.IsType(t, &time.ParseError{}, err) +} + +func TestMakeACopy(t *testing.T) { + original := []string{"a", "b", "c"} + + copy := makeACopy(original) + + assert.Equal(t, original, copy) + copy[0] = "mutate" + assert.NotEqual(t, original, copy) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/common/http.go b/vendor/github.com/oracle/oci-go-sdk/common/http.go index 0452669f1..0bd56e558 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/http.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/http.go @@ -10,7 +10,6 @@ import ( "io/ioutil" "net/http" "net/url" - "path" "reflect" "regexp" "strconv" @@ -43,6 +42,11 @@ func toStringValue(v reflect.Value, field reflect.StructField) (string, error) { return formatTime(t), nil } + if v.Type() == sdkDateType { + t := v.Interface().(SDKDate) + return formatDate(t), nil + } + switch v.Kind() { case reflect.Bool: return strconv.FormatBool(v.Bool()), nil @@ -166,7 +170,8 @@ func omitNilFieldsInJSON(data interface{}, value reflect.Value) (interface{}, er continue } - if currentFieldValue.Type() == timeType || currentFieldValue.Type() == timeTypePtr { + if currentFieldValue.Type() == timeType || currentFieldValue.Type() == timeTypePtr || + currentField.Type == sdkDateType || currentField.Type == sdkDateTypePtr { continue } // does it need to be adjusted? @@ -180,7 +185,14 @@ func omitNilFieldsInJSON(data interface{}, value reflect.Value) (interface{}, er } return jsonMap, nil case reflect.Slice, reflect.Array: - jsonList := data.([]interface{}) + // Special case: a []byte may have been marshalled as a string + if reflect.TypeOf(data).Kind() == reflect.String && value.Type().Elem().Kind() == reflect.Uint8 { + return data, nil + } + jsonList, ok := data.([]interface{}) + if !ok { + return nil, fmt.Errorf("can not omit nil fields, data was expected to be a list") + } newList := make([]interface{}, len(jsonList)) var err error for i, val := range jsonList { @@ -191,7 +203,10 @@ func omitNilFieldsInJSON(data interface{}, value reflect.Value) (interface{}, er } return newList, nil case reflect.Map: - jsonMap := data.(map[string]interface{}) + jsonMap, ok := data.(map[string]interface{}) + if !ok { + return nil, fmt.Errorf("can not omit nil fields, data was expected to be a map") + } newMap := make(map[string]interface{}, len(jsonMap)) var err error for key, val := range jsonMap { @@ -356,8 +371,7 @@ func addToPath(request *http.Request, value reflect.Value, field reflect.StructF if !templatedPathRegex.MatchString(currentURLPath) { Debugln("Marshaling request to path by appending field:", field.Name) allPath := []string{currentURLPath, additionalURLPathPart} - newPath := strings.Join(allPath, "/") - request.URL.Path = path.Clean(newPath) + request.URL.Path = strings.Join(allPath, "/") } else { var fieldName string if fieldName = field.Tag.Get("name"); fieldName == "" { @@ -366,7 +380,7 @@ func addToPath(request *http.Request, value reflect.Value, field reflect.StructF } urlTemplate := currentURLPath Debugln("Marshaling to path from field:", field.Name, "in template:", urlTemplate) - request.URL.Path = path.Clean(strings.Replace(urlTemplate, "{"+fieldName+"}", additionalURLPathPart, -1)) + request.URL.Path = strings.Replace(urlTemplate, "{"+fieldName+"}", additionalURLPathPart, -1) } return } @@ -419,7 +433,7 @@ func addToHeader(request *http.Request, value reflect.Value, field reflect.Struc return } - request.Header.Set(headerName, headerValue) + request.Header.Add(headerName, headerValue) return } @@ -635,6 +649,16 @@ func analyzeValue(stringValue string, kind reflect.Kind, field reflect.StructFie val = reflect.ValueOf(sdkTime) valPointer = reflect.ValueOf(&sdkTime) return + case sdkDateType.Kind(): + var t time.Time + t, err = tryParsingTimeWithValidFormatsForHeaders([]byte(stringValue), field.Name) + if err != nil { + return + } + sdkDate := sdkDateFromTime(t) + val = reflect.ValueOf(sdkDate) + valPointer = reflect.ValueOf(&sdkDate) + return case reflect.Bool: var bVal bool if bVal, err = strconv.ParseBool(stringValue); err != nil { diff --git a/vendor/github.com/oracle/oci-go-sdk/common/http_signer.go b/vendor/github.com/oracle/oci-go-sdk/common/http_signer.go index c62be35e9..7db434239 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/http_signer.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/http_signer.go @@ -50,6 +50,16 @@ var ( } ) +// DefaultGenericHeaders list of default generic headers that is used in signing +func DefaultGenericHeaders() []string { + return makeACopy(defaultGenericHeaders) +} + +// DefaultBodyHeaders list of default body headers that is used in signing +func DefaultBodyHeaders() []string { + return makeACopy(defaultBodyHeaders) +} + // DefaultRequestSigner creates a signer with default parameters. func DefaultRequestSigner(provider KeyProvider) HTTPRequestSigner { return RequestSigner(provider, defaultGenericHeaders, defaultBodyHeaders) diff --git a/vendor/github.com/oracle/oci-go-sdk/common/http_signer_test.go b/vendor/github.com/oracle/oci-go-sdk/common/http_signer_test.go index 8674f8ff3..bebbbcd78 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/http_signer_test.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/http_signer_test.go @@ -285,3 +285,17 @@ func TestOCIRequestSigner_SignEmptyBody(t *testing.T) { assert.NotEmpty(t, r.Header.Get(requestHeaderAuthorization)) assert.NotEmpty(t, r.Header.Get(requestHeaderXContentSHA256)) } + +func TestDefaultHeadersReturnsCopy(t *testing.T) { + genericHeaders := DefaultGenericHeaders() + bodyHeaders := DefaultBodyHeaders() + + assert.Equal(t, defaultGenericHeaders, genericHeaders) + assert.Equal(t, defaultBodyHeaders, bodyHeaders) + + genericHeaders[0] = "mutate" + bodyHeaders[0] = "mutate" + + assert.NotEqual(t, defaultGenericHeaders, genericHeaders) + assert.NotEqual(t, defaultBodyHeaders, bodyHeaders) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/common/http_test.go b/vendor/github.com/oracle/oci-go-sdk/common/http_test.go index 09c8428d6..8c68e0cfc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/http_test.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/http_test.go @@ -38,6 +38,8 @@ type updateUserRequest struct { UserID string `mandatory:"true" contributesTo:"path" name:"userId"` TestupdateUserDetails `contributesTo:"body"` IfMatch string `mandatory:"false" contributesTo:"header" name:"if-match"` + HeaderValueOne string `mandatory:"false" contributesTo:"header" name:"listInHeader"` + HeaderValueTwo string `mandatory:"false" contributesTo:"header" name:"listInHeader"` } type TestcreateAPIKeyDetails struct { @@ -61,6 +63,19 @@ type uploadAPIKeyRequestPtr struct { OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` } +type EmbeddedByteSlice struct { + Key *[]byte `mandatory:"false" json:"key"` + Value []byte `mandatory:"true" json:"value"` +} + +type KVList struct { + KVs []EmbeddedByteSlice `mandatory:"true" json:"kvs"` +} + +type KVRequest struct { + KVList `contributesTo:"body"` +} + /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// func TestHttpMarshallerInvalidStruct(t *testing.T) { @@ -88,11 +103,21 @@ func TestMakeDefault(t *testing.T) { } func TestHttpMarshallerSimpleHeader(t *testing.T) { - s := updateUserRequest{UserID: "id1", IfMatch: "n=as", TestupdateUserDetails: TestupdateUserDetails{Description: "name of"}} + s := updateUserRequest{ + UserID: "id1", + IfMatch: "n=as", + TestupdateUserDetails: TestupdateUserDetails{Description: "name of"}, + HeaderValueOne: "1", + HeaderValueTwo: "2", + } request := MakeDefaultHTTPRequest(http.MethodPost, "/random") HTTPRequestMarshaller(s, &request) header := request.Header assert.True(t, header.Get(requestHeaderIfMatch) == "n=as") + listInHeader := header["Listinheader"] + assert.True(t, len(listInHeader) == 2) + hone, htwo := listInHeader[0], listInHeader[1] + assert.True(t, hone == "1" && htwo == "2") } func TestHttpMarshallerSimpleStruct(t *testing.T) { @@ -194,7 +219,7 @@ func TestHttpMarshalerAll(t *testing.T) { body, _ := ioutil.ReadAll(request.Body) json.Unmarshal(body, &content) when := s.When.Format(time.RFC3339) - assert.True(t, request.URL.Path == "/101") + assert.True(t, request.URL.Path == "//101") assert.True(t, request.URL.Query().Get("name") == s.Name) assert.True(t, request.URL.Query().Get("income") == strconv.FormatFloat(float64(s.Income), 'f', 6, 32)) assert.True(t, request.URL.Query().Get("when") == when) @@ -359,6 +384,22 @@ func TestHttpMarshalerUnsupportedTypes(t *testing.T) { } } +func TestHttpMarshallerEmbeddedBytes(t *testing.T) { + s := KVRequest{ + KVList{ + KVs: []EmbeddedByteSlice{ + {Value: []byte{1, 2, 3, 4}}, + {Key: &[]byte{6, 7, 8, 9}, Value: []byte{1, 2, 3, 4}}, + {Value: []byte{}}, + }, + }} + request := MakeDefaultHTTPRequest(http.MethodPost, "/random") + HTTPRequestMarshaller(s, &request) + b, _ := ioutil.ReadAll(request.Body) + st := string(b) + assert.Equal(t, `{"kvs":[{"value":"AQIDBA=="},{"key":"BgcICQ==","value":"AQIDBA=="},{"value":""}]}`, st) +} + //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //Response Unmarshaling @@ -969,6 +1010,118 @@ func TestOmitFieldsInJson_SimpleStructWithTime(t *testing.T) { assert.Equal(t, theTime, mapRet.(map[string]interface{})["theTime"]) } +func TestSDKDate_Unmarshal(t *testing.T) { + type structWithTime struct { + Name string `json:"name"` + Date *SDKDate `json:"date"` + DateOptional *SDKDate `json:"optdate" mandatory:"false"` + } + + type req struct { + Body structWithTime `presentIn:"body"` + } + + sampleDate, _ := time.Parse(time.UnixDate, "Mon Jan 02 15:04:05 MST 2006") + sampleDateStr := sampleDate.Format(sdkDateFormat) + + testIO := []struct { + name string + expectedReq req + jsonRes string + err error + }{ + { + name: "sdk date with simple date", + expectedReq: req{structWithTime{Name: "hello", Date: &SDKDate{Date: sampleDate}}}, + jsonRes: fmt.Sprintf(`{"date":"%s","name":"hello"}`, sampleDateStr), + err: nil, + }, + { + name: "sdk date with nil date", + expectedReq: req{structWithTime{Name: "hello", Date: nil}}, + jsonRes: fmt.Sprintf(`{"date":%s,"name":"hello"}`, "null"), + err: nil, + }, + { + name: "sdk date with nil date with mandatory date field set", + expectedReq: req{structWithTime{Name: "hello", Date: nil, DateOptional: &SDKDate{Date: sampleDate}}}, + jsonRes: fmt.Sprintf(`{"date":%s,"name":"hello","optdate":"%s"}`, "null", sampleDateStr), + err: nil, + }, + } + + for _, tc := range testIO { + response := http.Response{ + Body: ioutil.NopCloser(bytes.NewBuffer([]byte(tc.jsonRes))), + } + req := req{} + err := UnmarshalResponse(&response, &req) + assert.NoError(t, err) + assert.Equal(t, tc.expectedReq.Body.Name, req.Body.Name) + if tc.expectedReq.Body.Date == nil { + assert.Nil(t, req.Body.Date) + + } else { + assert.Equal(t, tc.expectedReq.Body.Date.Date.Format(sdkDateFormat), req.Body.Date.Date.Format(sdkDateFormat)) + } + if tc.expectedReq.Body.DateOptional == nil { + assert.Nil(t, req.Body.DateOptional) + + } else { + assert.Equal(t, tc.expectedReq.Body.DateOptional.Date.Format(sdkDateFormat), req.Body.DateOptional.Date.Format(sdkDateFormat)) + } + } + +} +func TestSDKDate_Marshal(t *testing.T) { + type structWithTime struct { + Name string `json:"name"` + Date *SDKDate `json:"date"` + DateOptional *SDKDate `json:"optdate" mandatory:"false"` + } + + type req struct { + Body structWithTime `contributesTo:"body"` + } + + sampleDate, _ := time.Parse(time.UnixDate, "Mon Jan 02 15:04:05 MST 2006") + sampleDateStr := sampleDate.Format(sdkDateFormat) + + testIO := []struct { + name string + req req + expectedJSON string + err error + }{ + { + name: "sdk date with simple date", + req: req{structWithTime{Name: "hello", Date: &SDKDate{Date: sampleDate}}}, + expectedJSON: fmt.Sprintf(`{"date":"%s","name":"hello"}`, sampleDateStr), + err: nil, + }, + { + name: "sdk date with nil date", + req: req{structWithTime{Name: "hello", Date: nil}}, + expectedJSON: fmt.Sprintf(`{"date":%s,"name":"hello"}`, "null"), + err: nil, + }, + { + name: "sdk date with nil date with mandatory date field set", + req: req{structWithTime{Name: "hello", Date: nil, DateOptional: &SDKDate{Date: sampleDate}}}, + expectedJSON: fmt.Sprintf(`{"date":%s,"name":"hello","optdate":"%s"}`, "null", sampleDateStr), + err: nil, + }, + } + + for _, tc := range testIO { + httpRequest, errM := MakeDefaultHTTPRequestWithTaggedStruct("GET", "/", tc.req) + assert.NoError(t, errM) + all, _ := ioutil.ReadAll(httpRequest.Body) + assert.Equal(t, tc.expectedJSON, string(all)) + } + +} + func TestAddRequestID(t *testing.T) { type testStructType struct { OpcRequestID *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` @@ -990,3 +1143,133 @@ func TestAddRequestID(t *testing.T) { } } } + +type shape interface { +} + +type square struct { + Color string `json:"color"` +} + +type triangle struct { + Texture string `json:"texture"` +} + +type unknown struct { + JSONData []byte + Type string `json:"type"` +} + +func (p *unknown) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + switch p.Type { + case "square": + n := square{} + err := json.Unmarshal(data, &n) + return n, err + case "triangle": + n := triangle{} + err := json.Unmarshal(data, &n) + return n, err + default: + return *p, nil + } +} +func (p *unknown) UnmarshalJSON(data []byte) error { + p.JSONData = data + type mm unknown + s := mm{} + err := json.Unmarshal(data, &s) + if err != nil { + return err + } + p.Type = s.Type + return nil +} + +type bodyWithPolymorphicField struct { + Name string `json:"name"` + Shape shape `json:"shape"` +} + +func (p *bodyWithPolymorphicField) UnmarshalJSON(data []byte) error { + model := struct { + Name string `json:"name"` + Shape unknown `json:"shape"` + }{} + + e := json.Unmarshal(data, &model) + if e != nil { + return e + } + + p.Name = model.Name + ss, e := model.Shape.UnmarshalPolymorphicJSON(model.Shape.JSONData) + if e != nil { + return e + } + if ss != nil { + p.Shape = ss.(shape) + } else { + p.Shape = nil + } + return nil +} + +func TestUnmarshalPolymorphic(t *testing.T) { + testIO := []struct { + name string + jsonBody string + expectedName string + expectedShape interface{} + }{ + { + + name: "Nil polymorphic type", + jsonBody: `{"name": "hello", "shape": null }`, + expectedShape: nil, + expectedName: "hello", + }, + { + + name: "polymorphic type set to square", + jsonBody: `{"name": "hello", "shape": {"type": "square", "color": "red" }}`, + expectedShape: square{Color: "red"}, + expectedName: "hello", + }, + { + + name: "polymorphic type set to triangle", + jsonBody: `{"name": "hello", "shape": {"type": "triangle", "texture": "soft" }}`, + expectedShape: triangle{Texture: "soft"}, + expectedName: "hello", + }, + { + + name: "polymorphic type set to unknown", + jsonBody: `{"name": "hello", "shape": {"type": "random", "value": "one" }}`, + expectedShape: unknown{Type: "random", JSONData: []byte(`{"type": "random", "value": "one" }`)}, + expectedName: "hello", + }, + } + for _, td := range testIO { + t.Run(td.name, func(t *testing.T) { + type response struct { + Content bodyWithPolymorphicField `presentIn:"body"` + } + r := http.Response{} + bodyBuffer := bytes.NewBufferString(td.jsonBody) + r.Body = ioutil.NopCloser(bodyBuffer) + + res := response{} + err := UnmarshalResponse(&r, &res) + assert.Equal(t, td.expectedShape, res.Content.Shape) + assert.Equal(t, td.expectedName, res.Content.Name) + assert.NoError(t, err) + }) + } +} diff --git a/vendor/github.com/oracle/oci-go-sdk/common/retry.go b/vendor/github.com/oracle/oci-go-sdk/common/retry.go index 74e4abd9c..a1f35f579 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/retry.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/retry.go @@ -12,7 +12,7 @@ const ( UnlimitedNumAttemptsValue = uint(0) // number of characters contained in the generated retry token - generatedRetryTokenLength = 30 + generatedRetryTokenLength = 32 ) // OCIRetryableRequest represents a request that can be reissued according to the specified policy. @@ -86,8 +86,8 @@ func shouldContinueIssuingRequests(current, maximum uint) bool { return maximum == UnlimitedNumAttemptsValue || current <= maximum } -// generateRetryToken generates a retry token that must be included on any request passed to the Retry method. -func generateRetryToken() string { +// RetryToken generates a retry token that must be included on any request passed to the Retry method. +func RetryToken() string { alphanumericChars := []rune("abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ") retryToken := make([]rune, generatedRetryTokenLength) for i := range retryToken { diff --git a/vendor/github.com/oracle/oci-go-sdk/common/retry_test.go b/vendor/github.com/oracle/oci-go-sdk/common/retry_test.go index 67ed3bf4a..1b67ba9c0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/retry_test.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/retry_test.go @@ -1,6 +1,8 @@ package common import ( + "bytes" + "context" "github.com/stretchr/testify/assert" "math" "net/http" @@ -85,3 +87,38 @@ func TestRetryPolicyExponentialBackoffNextDurationUnrolled(t *testing.T) { // done assert.False(t, shouldContinueIssuingRequests(6, policy.MaximumNumberAttempts)) } + +type mockedRequest struct { + Request http.Request + Policy *RetryPolicy +} + +func (m mockedRequest) HTTPRequest(method, path string) (http.Request, error) { + return m.Request, nil +} + +func (m mockedRequest) RetryPolicy() *RetryPolicy { + return m.Policy +} + +func TestRetryTokenPersists(t *testing.T) { + body := bytes.NewBufferString("YES") + req, _ := http.NewRequest("POST", "/some", body) + token := RetryToken() + req.Header.Set(requestHeaderOpcRetryToken, token) + policy := getExponentialBackoffRetryPolicy(2) + r := mockedRequest{Request: *req, Policy: &policy} + operation := func(i context.Context, request OCIRequest) (OCIResponse, error) { + httpResponse := http.Response{ + Header: http.Header{}, + StatusCode: 200, + } + httpReq, _ := request.HTTPRequest("POST", "/some") + headerToken := httpReq.Header.Get(requestHeaderOpcRetryToken) + + assert.Equal(t, token, headerToken) + return mockedResponse{RawResponse: &httpResponse}, nil + } + + Retry(context.Background(), r, operation, *r.Policy) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/common/version.go b/vendor/github.com/oracle/oci-go-sdk/common/version.go index 05ba949b7..54e5f3037 100644 --- a/vendor/github.com/oracle/oci-go-sdk/common/version.go +++ b/vendor/github.com/oracle/oci-go-sdk/common/version.go @@ -10,8 +10,8 @@ import ( ) const ( - major = "1" - minor = "8" + major = "2" + minor = "6" patch = "0" tag = "" ) diff --git a/vendor/github.com/oracle/oci-go-sdk/containerengine/containerengine_client.go b/vendor/github.com/oracle/oci-go-sdk/containerengine/containerengine_client.go index edaf4dc7d..5ea632bec 100644 --- a/vendor/github.com/oracle/oci-go-sdk/containerengine/containerengine_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/containerengine/containerengine_client.go @@ -65,8 +65,16 @@ func (client ContainerEngineClient) CreateCluster(ctx context.Context, request C if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createCluster, policy) if err != nil { + if ociResponse != nil { + response = CreateClusterResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateClusterResponse); ok { @@ -106,6 +114,9 @@ func (client ContainerEngineClient) CreateKubeconfig(ctx context.Context, reques } ociResponse, err = common.Retry(ctx, request, client.createKubeconfig, policy) if err != nil { + if ociResponse != nil { + response = CreateKubeconfigResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateKubeconfigResponse); ok { @@ -126,7 +137,6 @@ func (client ContainerEngineClient) createKubeconfig(ctx context.Context, reques var response CreateKubeconfigResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { return response, err @@ -143,8 +153,16 @@ func (client ContainerEngineClient) CreateNodePool(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createNodePool, policy) if err != nil { + if ociResponse != nil { + response = CreateNodePoolResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateNodePoolResponse); ok { @@ -184,6 +202,9 @@ func (client ContainerEngineClient) DeleteCluster(ctx context.Context, request D } ociResponse, err = common.Retry(ctx, request, client.deleteCluster, policy) if err != nil { + if ociResponse != nil { + response = DeleteClusterResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteClusterResponse); ok { @@ -223,6 +244,9 @@ func (client ContainerEngineClient) DeleteNodePool(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.deleteNodePool, policy) if err != nil { + if ociResponse != nil { + response = DeleteNodePoolResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteNodePoolResponse); ok { @@ -262,6 +286,9 @@ func (client ContainerEngineClient) DeleteWorkRequest(ctx context.Context, reque } ociResponse, err = common.Retry(ctx, request, client.deleteWorkRequest, policy) if err != nil { + if ociResponse != nil { + response = DeleteWorkRequestResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteWorkRequestResponse); ok { @@ -301,6 +328,9 @@ func (client ContainerEngineClient) GetCluster(ctx context.Context, request GetC } ociResponse, err = common.Retry(ctx, request, client.getCluster, policy) if err != nil { + if ociResponse != nil { + response = GetClusterResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetClusterResponse); ok { @@ -340,6 +370,9 @@ func (client ContainerEngineClient) GetClusterOptions(ctx context.Context, reque } ociResponse, err = common.Retry(ctx, request, client.getClusterOptions, policy) if err != nil { + if ociResponse != nil { + response = GetClusterOptionsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetClusterOptionsResponse); ok { @@ -379,6 +412,9 @@ func (client ContainerEngineClient) GetNodePool(ctx context.Context, request Get } ociResponse, err = common.Retry(ctx, request, client.getNodePool, policy) if err != nil { + if ociResponse != nil { + response = GetNodePoolResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetNodePoolResponse); ok { @@ -418,6 +454,9 @@ func (client ContainerEngineClient) GetNodePoolOptions(ctx context.Context, requ } ociResponse, err = common.Retry(ctx, request, client.getNodePoolOptions, policy) if err != nil { + if ociResponse != nil { + response = GetNodePoolOptionsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetNodePoolOptionsResponse); ok { @@ -457,6 +496,9 @@ func (client ContainerEngineClient) GetWorkRequest(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.getWorkRequest, policy) if err != nil { + if ociResponse != nil { + response = GetWorkRequestResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetWorkRequestResponse); ok { @@ -496,6 +538,9 @@ func (client ContainerEngineClient) ListClusters(ctx context.Context, request Li } ociResponse, err = common.Retry(ctx, request, client.listClusters, policy) if err != nil { + if ociResponse != nil { + response = ListClustersResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListClustersResponse); ok { @@ -535,6 +580,9 @@ func (client ContainerEngineClient) ListNodePools(ctx context.Context, request L } ociResponse, err = common.Retry(ctx, request, client.listNodePools, policy) if err != nil { + if ociResponse != nil { + response = ListNodePoolsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListNodePoolsResponse); ok { @@ -574,6 +622,9 @@ func (client ContainerEngineClient) ListWorkRequestErrors(ctx context.Context, r } ociResponse, err = common.Retry(ctx, request, client.listWorkRequestErrors, policy) if err != nil { + if ociResponse != nil { + response = ListWorkRequestErrorsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListWorkRequestErrorsResponse); ok { @@ -613,6 +664,9 @@ func (client ContainerEngineClient) ListWorkRequestLogs(ctx context.Context, req } ociResponse, err = common.Retry(ctx, request, client.listWorkRequestLogs, policy) if err != nil { + if ociResponse != nil { + response = ListWorkRequestLogsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListWorkRequestLogsResponse); ok { @@ -652,6 +706,9 @@ func (client ContainerEngineClient) ListWorkRequests(ctx context.Context, reques } ociResponse, err = common.Retry(ctx, request, client.listWorkRequests, policy) if err != nil { + if ociResponse != nil { + response = ListWorkRequestsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListWorkRequestsResponse); ok { @@ -691,6 +748,9 @@ func (client ContainerEngineClient) UpdateCluster(ctx context.Context, request U } ociResponse, err = common.Retry(ctx, request, client.updateCluster, policy) if err != nil { + if ociResponse != nil { + response = UpdateClusterResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateClusterResponse); ok { @@ -730,6 +790,9 @@ func (client ContainerEngineClient) UpdateNodePool(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.updateNodePool, policy) if err != nil { + if ociResponse != nil { + response = UpdateNodePoolResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateNodePoolResponse); ok { diff --git a/vendor/github.com/oracle/oci-go-sdk/core/app_catalog_listing.go b/vendor/github.com/oracle/oci-go-sdk/core/app_catalog_listing.go new file mode 100644 index 000000000..ba5823345 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/app_catalog_listing.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// APIs for Networking Service, Compute Service, and Block Volume Service. +// + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// AppCatalogListing Listing details. +type AppCatalogListing struct { + + // Listing's contact URL. + ContactUrl *string `mandatory:"false" json:"contactUrl"` + + // Description of the listing. + Description *string `mandatory:"false" json:"description"` + + // The OCID of the listing. + ListingId *string `mandatory:"false" json:"listingId"` + + // Name of the listing. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Date and time the listing was published, in RFC3339 format. + // Example: `2018-03-20T12:32:53.532Z` + TimePublished *common.SDKTime `mandatory:"false" json:"timePublished"` + + // Publisher's logo URL. + PublisherLogoUrl *string `mandatory:"false" json:"publisherLogoUrl"` + + // Name of the publisher who published this listing. + PublisherName *string `mandatory:"false" json:"publisherName"` + + // Summary of the listing. + Summary *string `mandatory:"false" json:"summary"` +} + +func (m AppCatalogListing) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/app_catalog_listing_resource_version.go b/vendor/github.com/oracle/oci-go-sdk/core/app_catalog_listing_resource_version.go new file mode 100644 index 000000000..b5ee0d3aa --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/app_catalog_listing_resource_version.go @@ -0,0 +1,84 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// APIs for Networking Service, Compute Service, and Block Volume Service. +// + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// AppCatalogListingResourceVersion Listing Resource Version +type AppCatalogListingResourceVersion struct { + + // The OCID of the listing this resource version belongs to. + ListingId *string `mandatory:"false" json:"listingId"` + + // Date and time the listing resource version was published, in RFC3339 format. + // Example: `2018-03-20T12:32:53.532Z` + TimePublished *common.SDKTime `mandatory:"false" json:"timePublished"` + + // OCID of the listing resource. + ListingResourceId *string `mandatory:"false" json:"listingResourceId"` + + // Resource Version. + ListingResourceVersion *string `mandatory:"false" json:"listingResourceVersion"` + + // List of regions that this listing resource version is available. + // For information about Regions, see + // Regions (https://docs.us-phoenix-1.oraclecloud.comGeneral/Concepts/regions.htm). + // Example: `["us-ashburn-1", "us-phoenix-1"]` + AvailableRegions []string `mandatory:"false" json:"availableRegions"` + + // Array of shapes compatible with this resource. + // You may enumerate all available shapes by calling listShapes. + // Example: `["VM.Standard1.1", "VM.Standard1.2"]` + CompatibleShapes []string `mandatory:"false" json:"compatibleShapes"` + + // List of accessible ports for instances launched with this listing resource version. + AccessiblePorts []int `mandatory:"false" json:"accessiblePorts"` + + // Allowed actions for the listing resource. + AllowedActions []AppCatalogListingResourceVersionAllowedActionsEnum `mandatory:"false" json:"allowedActions,omitempty"` +} + +func (m AppCatalogListingResourceVersion) String() string { + return common.PointerString(m) +} + +// AppCatalogListingResourceVersionAllowedActionsEnum Enum with underlying type: string +type AppCatalogListingResourceVersionAllowedActionsEnum string + +// Set of constants representing the allowable values for AppCatalogListingResourceVersionAllowedActions +const ( + AppCatalogListingResourceVersionAllowedActionsSnapshot AppCatalogListingResourceVersionAllowedActionsEnum = "SNAPSHOT" + AppCatalogListingResourceVersionAllowedActionsBootVolumeDetach AppCatalogListingResourceVersionAllowedActionsEnum = "BOOT_VOLUME_DETACH" + AppCatalogListingResourceVersionAllowedActionsPreserveBootVolume AppCatalogListingResourceVersionAllowedActionsEnum = "PRESERVE_BOOT_VOLUME" + AppCatalogListingResourceVersionAllowedActionsSerialConsoleAccess AppCatalogListingResourceVersionAllowedActionsEnum = "SERIAL_CONSOLE_ACCESS" + AppCatalogListingResourceVersionAllowedActionsBootRecovery AppCatalogListingResourceVersionAllowedActionsEnum = "BOOT_RECOVERY" + AppCatalogListingResourceVersionAllowedActionsBackupBootVolume AppCatalogListingResourceVersionAllowedActionsEnum = "BACKUP_BOOT_VOLUME" + AppCatalogListingResourceVersionAllowedActionsCaptureConsoleHistory AppCatalogListingResourceVersionAllowedActionsEnum = "CAPTURE_CONSOLE_HISTORY" +) + +var mappingAppCatalogListingResourceVersionAllowedActions = map[string]AppCatalogListingResourceVersionAllowedActionsEnum{ + "SNAPSHOT": AppCatalogListingResourceVersionAllowedActionsSnapshot, + "BOOT_VOLUME_DETACH": AppCatalogListingResourceVersionAllowedActionsBootVolumeDetach, + "PRESERVE_BOOT_VOLUME": AppCatalogListingResourceVersionAllowedActionsPreserveBootVolume, + "SERIAL_CONSOLE_ACCESS": AppCatalogListingResourceVersionAllowedActionsSerialConsoleAccess, + "BOOT_RECOVERY": AppCatalogListingResourceVersionAllowedActionsBootRecovery, + "BACKUP_BOOT_VOLUME": AppCatalogListingResourceVersionAllowedActionsBackupBootVolume, + "CAPTURE_CONSOLE_HISTORY": AppCatalogListingResourceVersionAllowedActionsCaptureConsoleHistory, +} + +// GetAppCatalogListingResourceVersionAllowedActionsEnumValues Enumerates the set of values for AppCatalogListingResourceVersionAllowedActions +func GetAppCatalogListingResourceVersionAllowedActionsEnumValues() []AppCatalogListingResourceVersionAllowedActionsEnum { + values := make([]AppCatalogListingResourceVersionAllowedActionsEnum, 0) + for _, v := range mappingAppCatalogListingResourceVersionAllowedActions { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/app_catalog_listing_resource_version_agreements.go b/vendor/github.com/oracle/oci-go-sdk/core/app_catalog_listing_resource_version_agreements.go new file mode 100644 index 000000000..69473c7c9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/app_catalog_listing_resource_version_agreements.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// APIs for Networking Service, Compute Service, and Block Volume Service. +// + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// AppCatalogListingResourceVersionAgreements Agreements for a listing resource version. +type AppCatalogListingResourceVersionAgreements struct { + + // The OCID of the listing associated with these agreements. + ListingId *string `mandatory:"false" json:"listingId"` + + // Listing resource version associated with these agreements. + ListingResourceVersion *string `mandatory:"false" json:"listingResourceVersion"` + + // Oracle TOU link + OracleTermsOfUseLink *string `mandatory:"false" json:"oracleTermsOfUseLink"` + + // EULA link + EulaLink *string `mandatory:"false" json:"eulaLink"` + + // Date and time the agreements were retrieved, in RFC3339 format. + // Example: `2018-03-20T12:32:53.532Z` + TimeRetrieved *common.SDKTime `mandatory:"false" json:"timeRetrieved"` + + // A generated signature for this agreement retrieval operation which should be used in the create subscription call. + Signature *string `mandatory:"false" json:"signature"` +} + +func (m AppCatalogListingResourceVersionAgreements) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/app_catalog_listing_resource_version_summary.go b/vendor/github.com/oracle/oci-go-sdk/core/app_catalog_listing_resource_version_summary.go new file mode 100644 index 000000000..84c816aa4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/app_catalog_listing_resource_version_summary.go @@ -0,0 +1,34 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// APIs for Networking Service, Compute Service, and Block Volume Service. +// + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// AppCatalogListingResourceVersionSummary Listing Resource Version summary +type AppCatalogListingResourceVersionSummary struct { + + // The OCID of the listing this resource version belongs to. + ListingId *string `mandatory:"false" json:"listingId"` + + // Date and time the listing resource version was published, in RFC3339 format. + // Example: `2018-03-20T12:32:53.532Z` + TimePublished *common.SDKTime `mandatory:"false" json:"timePublished"` + + // OCID of the listing resource. + ListingResourceId *string `mandatory:"false" json:"listingResourceId"` + + // Resource Version. + ListingResourceVersion *string `mandatory:"false" json:"listingResourceVersion"` +} + +func (m AppCatalogListingResourceVersionSummary) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/app_catalog_listing_summary.go b/vendor/github.com/oracle/oci-go-sdk/core/app_catalog_listing_summary.go new file mode 100644 index 000000000..c1dc31692 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/app_catalog_listing_summary.go @@ -0,0 +1,33 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// APIs for Networking Service, Compute Service, and Block Volume Service. +// + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// AppCatalogListingSummary A summary of a listing. +type AppCatalogListingSummary struct { + + // the region free ocid of the listing resource. + ListingId *string `mandatory:"false" json:"listingId"` + + // The display name of the listing. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The short summary for the listing. + Summary *string `mandatory:"false" json:"summary"` + + // The name of the publisher who published this listing. + PublisherName *string `mandatory:"false" json:"publisherName"` +} + +func (m AppCatalogListingSummary) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/app_catalog_subscription.go b/vendor/github.com/oracle/oci-go-sdk/core/app_catalog_subscription.go new file mode 100644 index 000000000..ecee013d0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/app_catalog_subscription.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// APIs for Networking Service, Compute Service, and Block Volume Service. +// + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// AppCatalogSubscription a subscription for a listing resource version. +type AppCatalogSubscription struct { + + // Name of the publisher who published this listing. + PublisherName *string `mandatory:"false" json:"publisherName"` + + // The ocid of the listing resource. + ListingId *string `mandatory:"false" json:"listingId"` + + // Listing resource version. + ListingResourceVersion *string `mandatory:"false" json:"listingResourceVersion"` + + // Listing resource id. + ListingResourceId *string `mandatory:"false" json:"listingResourceId"` + + // The display name of the listing. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The short summary to the listing. + Summary *string `mandatory:"false" json:"summary"` + + // The compartmentID of the subscription. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // Date and time at which the subscription was created, in RFC3339 format. + // Example: `2018-03-20T12:32:53.532Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} + +func (m AppCatalogSubscription) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/app_catalog_subscription_summary.go b/vendor/github.com/oracle/oci-go-sdk/core/app_catalog_subscription_summary.go new file mode 100644 index 000000000..9bdd1729a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/app_catalog_subscription_summary.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// APIs for Networking Service, Compute Service, and Block Volume Service. +// + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// AppCatalogSubscriptionSummary a subscription summary for a listing resource version. +type AppCatalogSubscriptionSummary struct { + + // Name of the publisher who published this listing. + PublisherName *string `mandatory:"false" json:"publisherName"` + + // The ocid of the listing resource. + ListingId *string `mandatory:"false" json:"listingId"` + + // Listing resource version. + ListingResourceVersion *string `mandatory:"false" json:"listingResourceVersion"` + + // Listing resource id. + ListingResourceId *string `mandatory:"false" json:"listingResourceId"` + + // The display name of the listing. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The short summary to the listing. + Summary *string `mandatory:"false" json:"summary"` + + // The compartmentID of the subscription. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // Date and time at which the subscription was created, in RFC3339 format. + // Example: `2018-03-20T12:32:53.532Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} + +func (m AppCatalogSubscriptionSummary) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/attach_service_id_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/attach_service_id_request_response.go index a84a47e3d..d45e88059 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/attach_service_id_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/attach_service_id_request_response.go @@ -14,7 +14,7 @@ type AttachServiceIdRequest struct { // The service gateway's OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). ServiceGatewayId *string `mandatory:"true" contributesTo:"path" name:"serviceGatewayId"` - // ServiceId of Service to be attached to a Service Gateway. + // ServiceId of Service to be attached to a service gateway. AttachServiceDetails ServiceIdRequestDetails `contributesTo:"body"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` diff --git a/vendor/github.com/oracle/oci-go-sdk/core/attach_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/core/attach_volume_details.go index 81a2efe97..1be5895d7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/attach_volume_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/attach_volume_details.go @@ -60,6 +60,11 @@ func (m *attachvolumedetails) UnmarshalJSON(data []byte) error { // UnmarshalPolymorphicJSON unmarshals polymorphic json func (m *attachvolumedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + var err error switch m.Type { case "iscsi": @@ -71,7 +76,7 @@ func (m *attachvolumedetails) UnmarshalPolymorphicJSON(data []byte) (interface{} err = json.Unmarshal(data, &mm) return mm, err default: - return m, nil + return *m, nil } } diff --git a/vendor/github.com/oracle/oci-go-sdk/core/boot_volume.go b/vendor/github.com/oracle/oci-go-sdk/core/boot_volume.go index aaba6f66c..35097815f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/boot_volume.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/boot_volume.go @@ -18,9 +18,11 @@ import ( // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, // talk to an administrator. If you're an administrator who needs to write policies to give users access, see // Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type BootVolume struct { - // The Availability Domain of the boot volume. + // The availability domain of the boot volume. // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` @@ -35,7 +37,7 @@ type BootVolume struct { // The size of the volume in MBs. The value must be a multiple of 1024. // This field is deprecated. Please use sizeInGBs. - SizeInMBs *int `mandatory:"true" json:"sizeInMBs"` + SizeInMBs *int64 `mandatory:"true" json:"sizeInMBs"` // The date and time the boot volume was created. Format defined by RFC3339. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` @@ -62,14 +64,17 @@ type BootVolume struct { IsHydrated *bool `mandatory:"false" json:"isHydrated"` // The size of the boot volume in GBs. - SizeInGBs *int `mandatory:"false" json:"sizeInGBs"` + SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` - // The boot volume source, either an existing boot volume in the same Availability Domain or a boot volume backup. + // The boot volume source, either an existing boot volume in the same availability domain or a boot volume backup. // If null, this means that the boot volume was created from an image. SourceDetails BootVolumeSourceDetails `mandatory:"false" json:"sourceDetails"` // The OCID of the source volume group. VolumeGroupId *string `mandatory:"false" json:"volumeGroupId"` + + // The OCID of the KMS key which is the master encryption key for the boot volume. + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` } func (m BootVolume) String() string { @@ -84,14 +89,15 @@ func (m *BootVolume) UnmarshalJSON(data []byte) (e error) { FreeformTags map[string]string `json:"freeformTags"` ImageId *string `json:"imageId"` IsHydrated *bool `json:"isHydrated"` - SizeInGBs *int `json:"sizeInGBs"` + SizeInGBs *int64 `json:"sizeInGBs"` SourceDetails bootvolumesourcedetails `json:"sourceDetails"` VolumeGroupId *string `json:"volumeGroupId"` + KmsKeyId *string `json:"kmsKeyId"` AvailabilityDomain *string `json:"availabilityDomain"` CompartmentId *string `json:"compartmentId"` Id *string `json:"id"` LifecycleState BootVolumeLifecycleStateEnum `json:"lifecycleState"` - SizeInMBs *int `json:"sizeInMBs"` + SizeInMBs *int64 `json:"sizeInMBs"` TimeCreated *common.SDKTime `json:"timeCreated"` }{} @@ -109,8 +115,13 @@ func (m *BootVolume) UnmarshalJSON(data []byte) (e error) { if e != nil { return } - m.SourceDetails = nn.(BootVolumeSourceDetails) + if nn != nil { + m.SourceDetails = nn.(BootVolumeSourceDetails) + } else { + m.SourceDetails = nil + } m.VolumeGroupId = model.VolumeGroupId + m.KmsKeyId = model.KmsKeyId m.AvailabilityDomain = model.AvailabilityDomain m.CompartmentId = model.CompartmentId m.Id = model.Id diff --git a/vendor/github.com/oracle/oci-go-sdk/core/boot_volume_attachment.go b/vendor/github.com/oracle/oci-go-sdk/core/boot_volume_attachment.go index 2c24059fc..8821ad414 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/boot_volume_attachment.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/boot_volume_attachment.go @@ -13,9 +13,11 @@ import ( ) // BootVolumeAttachment Represents an attachment between a boot volume and an instance. +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type BootVolumeAttachment struct { - // The Availability Domain of an instance. + // The availability domain of an instance. // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` diff --git a/vendor/github.com/oracle/oci-go-sdk/core/boot_volume_backup.go b/vendor/github.com/oracle/oci-go-sdk/core/boot_volume_backup.go index 19b1e9623..c3f7616cf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/boot_volume_backup.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/boot_volume_backup.go @@ -19,6 +19,8 @@ import ( // If you're not authorized, talk to an administrator. If you're an administrator // who needs to write policies to give users access, see Getting Started with // Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type BootVolumeBackup struct { // The OCID of the compartment that contains the boot volume backup. @@ -63,7 +65,7 @@ type BootVolumeBackup struct { ImageId *string `mandatory:"false" json:"imageId"` // The size of the boot volume, in GBs. - SizeInGBs *int `mandatory:"false" json:"sizeInGBs"` + SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` // Specifies whether the backup was created manually, or via scheduled backup policy. SourceType BootVolumeBackupSourceTypeEnum `mandatory:"false" json:"sourceType,omitempty"` @@ -76,7 +78,7 @@ type BootVolumeBackup struct { // The size used by the backup, in GBs. It is typically smaller than sizeInGBs, depending on the space // consumed on the boot volume and whether the backup is full or incremental. - UniqueSizeInGBs *int `mandatory:"false" json:"uniqueSizeInGBs"` + UniqueSizeInGBs *int64 `mandatory:"false" json:"uniqueSizeInGBs"` } func (m BootVolumeBackup) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/core/boot_volume_kms_key.go b/vendor/github.com/oracle/oci-go-sdk/core/boot_volume_kms_key.go new file mode 100644 index 000000000..d6686983e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/boot_volume_kms_key.go @@ -0,0 +1,24 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// APIs for Networking Service, Compute Service, and Block Volume Service. +// + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// BootVolumeKmsKey Kms key id associated with this volume. +type BootVolumeKmsKey struct { + + // Kms key id associated with this volume. If volume is not using KMS, then kmsKeyId will be null string. + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` +} + +func (m BootVolumeKmsKey) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/boot_volume_source_details.go b/vendor/github.com/oracle/oci-go-sdk/core/boot_volume_source_details.go index 34fee3502..e20e4756e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/boot_volume_source_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/boot_volume_source_details.go @@ -40,6 +40,11 @@ func (m *bootvolumesourcedetails) UnmarshalJSON(data []byte) error { // UnmarshalPolymorphicJSON unmarshals polymorphic json func (m *bootvolumesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + var err error switch m.Type { case "bootVolumeBackup": @@ -51,7 +56,7 @@ func (m *bootvolumesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interfa err = json.Unmarshal(data, &mm) return mm, err default: - return m, nil + return *m, nil } } diff --git a/vendor/github.com/oracle/oci-go-sdk/core/console_history.go b/vendor/github.com/oracle/oci-go-sdk/core/console_history.go index 15b94724e..9868592a6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/console_history.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/console_history.go @@ -15,9 +15,11 @@ import ( // ConsoleHistory An instance's serial console data. It includes configuration messages that occur when the // instance boots, such as kernel and BIOS messages, and is useful for checking the status of // the instance or diagnosing problems. The console data is minimally formatted ASCII text. +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type ConsoleHistory struct { - // The Availability Domain of an instance. + // The availability domain of an instance. // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` diff --git a/vendor/github.com/oracle/oci-go-sdk/core/core_blockstorage_client.go b/vendor/github.com/oracle/oci-go-sdk/core/core_blockstorage_client.go index d4c98c10f..5413b2f6d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/core_blockstorage_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/core_blockstorage_client.go @@ -68,8 +68,16 @@ func (client BlockstorageClient) CreateBootVolume(ctx context.Context, request C if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createBootVolume, policy) if err != nil { + if ociResponse != nil { + response = CreateBootVolumeResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateBootVolumeResponse); ok { @@ -111,8 +119,16 @@ func (client BlockstorageClient) CreateBootVolumeBackup(ctx context.Context, req if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createBootVolumeBackup, policy) if err != nil { + if ociResponse != nil { + response = CreateBootVolumeBackupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateBootVolumeBackupResponse); ok { @@ -147,11 +163,11 @@ func (client BlockstorageClient) createBootVolumeBackup(ctx context.Context, req // 50 GB (51200 MB) to 32 TB (33554432 MB), in 1 GB (1024 MB) increments. By default, volumes are 1 TB (1048576 MB). // For general information about block volumes, see // Overview of Block Volume Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/overview.htm). -// A volume and instance can be in separate compartments but must be in the same Availability Domain. +// A volume and instance can be in separate compartments but must be in the same availability domain. // For information about access control and compartments, see // Overview of the IAM Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). For information about -// Availability Domains, see Regions and Availability Domains (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/regions.htm). -// To get a list of Availability Domains, use the `ListAvailabilityDomains` operation +// availability domains, see Regions and Availability Domains (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/regions.htm). +// To get a list of availability domains, use the `ListAvailabilityDomains` operation // in the Identity and Access Management Service API. // You may optionally specify a *display name* for the volume, which is simply a friendly name or // description. It does not have to be unique, and you can change it. Avoid entering confidential information. @@ -161,8 +177,16 @@ func (client BlockstorageClient) CreateVolume(ctx context.Context, request Creat if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createVolume, policy) if err != nil { + if ociResponse != nil { + response = CreateVolumeResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateVolumeResponse); ok { @@ -204,8 +228,16 @@ func (client BlockstorageClient) CreateVolumeBackup(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createVolumeBackup, policy) if err != nil { + if ociResponse != nil { + response = CreateVolumeBackupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateVolumeBackupResponse); ok { @@ -247,6 +279,9 @@ func (client BlockstorageClient) CreateVolumeBackupPolicyAssignment(ctx context. } ociResponse, err = common.Retry(ctx, request, client.createVolumeBackupPolicyAssignment, policy) if err != nil { + if ociResponse != nil { + response = CreateVolumeBackupPolicyAssignmentResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateVolumeBackupPolicyAssignmentResponse); ok { @@ -289,8 +324,16 @@ func (client BlockstorageClient) CreateVolumeGroup(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createVolumeGroup, policy) if err != nil { + if ociResponse != nil { + response = CreateVolumeGroupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateVolumeGroupResponse); ok { @@ -329,8 +372,16 @@ func (client BlockstorageClient) CreateVolumeGroupBackup(ctx context.Context, re if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createVolumeGroupBackup, policy) if err != nil { + if ociResponse != nil { + response = CreateVolumeGroupBackupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateVolumeGroupBackupResponse); ok { @@ -373,6 +424,9 @@ func (client BlockstorageClient) DeleteBootVolume(ctx context.Context, request D } ociResponse, err = common.Retry(ctx, request, client.deleteBootVolume, policy) if err != nil { + if ociResponse != nil { + response = DeleteBootVolumeResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteBootVolumeResponse); ok { @@ -412,6 +466,9 @@ func (client BlockstorageClient) DeleteBootVolumeBackup(ctx context.Context, req } ociResponse, err = common.Retry(ctx, request, client.deleteBootVolumeBackup, policy) if err != nil { + if ociResponse != nil { + response = DeleteBootVolumeBackupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteBootVolumeBackupResponse); ok { @@ -442,6 +499,48 @@ func (client BlockstorageClient) deleteBootVolumeBackup(ctx context.Context, req return response, err } +// DeleteBootVolumeKmsKey Remove kms for the specific boot volume. If the volume doesn't use KMS, then do nothing. +func (client BlockstorageClient) DeleteBootVolumeKmsKey(ctx context.Context, request DeleteBootVolumeKmsKeyRequest) (response DeleteBootVolumeKmsKeyResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteBootVolumeKmsKey, policy) + if err != nil { + if ociResponse != nil { + response = DeleteBootVolumeKmsKeyResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(DeleteBootVolumeKmsKeyResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteBootVolumeKmsKeyResponse") + } + return +} + +// deleteBootVolumeKmsKey implements the OCIOperation interface (enables retrying operations) +func (client BlockstorageClient) deleteBootVolumeKmsKey(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/bootVolumes/{bootVolumeId}/kmsKey") + if err != nil { + return nil, err + } + + var response DeleteBootVolumeKmsKeyResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // DeleteVolume Deletes the specified volume. The volume cannot have an active connection to an instance. // To disconnect the volume from a connected instance, see // Disconnecting From a Volume (https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Tasks/disconnectingfromavolume.htm). @@ -454,6 +553,9 @@ func (client BlockstorageClient) DeleteVolume(ctx context.Context, request Delet } ociResponse, err = common.Retry(ctx, request, client.deleteVolume, policy) if err != nil { + if ociResponse != nil { + response = DeleteVolumeResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteVolumeResponse); ok { @@ -493,6 +595,9 @@ func (client BlockstorageClient) DeleteVolumeBackup(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.deleteVolumeBackup, policy) if err != nil { + if ociResponse != nil { + response = DeleteVolumeBackupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteVolumeBackupResponse); ok { @@ -532,6 +637,9 @@ func (client BlockstorageClient) DeleteVolumeBackupPolicyAssignment(ctx context. } ociResponse, err = common.Retry(ctx, request, client.deleteVolumeBackupPolicyAssignment, policy) if err != nil { + if ociResponse != nil { + response = DeleteVolumeBackupPolicyAssignmentResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteVolumeBackupPolicyAssignmentResponse); ok { @@ -572,6 +680,9 @@ func (client BlockstorageClient) DeleteVolumeGroup(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.deleteVolumeGroup, policy) if err != nil { + if ociResponse != nil { + response = DeleteVolumeGroupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteVolumeGroupResponse); ok { @@ -611,6 +722,9 @@ func (client BlockstorageClient) DeleteVolumeGroupBackup(ctx context.Context, re } ociResponse, err = common.Retry(ctx, request, client.deleteVolumeGroupBackup, policy) if err != nil { + if ociResponse != nil { + response = DeleteVolumeGroupBackupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteVolumeGroupBackupResponse); ok { @@ -641,6 +755,48 @@ func (client BlockstorageClient) deleteVolumeGroupBackup(ctx context.Context, re return response, err } +// DeleteVolumeKmsKey Remove kms for the specific volume. If the volume doesn't use KMS, then do nothing. +func (client BlockstorageClient) DeleteVolumeKmsKey(ctx context.Context, request DeleteVolumeKmsKeyRequest) (response DeleteVolumeKmsKeyResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteVolumeKmsKey, policy) + if err != nil { + if ociResponse != nil { + response = DeleteVolumeKmsKeyResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(DeleteVolumeKmsKeyResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteVolumeKmsKeyResponse") + } + return +} + +// deleteVolumeKmsKey implements the OCIOperation interface (enables retrying operations) +func (client BlockstorageClient) deleteVolumeKmsKey(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/volumes/{volumeId}/kmsKey") + if err != nil { + return nil, err + } + + var response DeleteVolumeKmsKeyResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // GetBootVolume Gets information for the specified boot volume. func (client BlockstorageClient) GetBootVolume(ctx context.Context, request GetBootVolumeRequest) (response GetBootVolumeResponse, err error) { var ociResponse common.OCIResponse @@ -650,6 +806,9 @@ func (client BlockstorageClient) GetBootVolume(ctx context.Context, request GetB } ociResponse, err = common.Retry(ctx, request, client.getBootVolume, policy) if err != nil { + if ociResponse != nil { + response = GetBootVolumeResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetBootVolumeResponse); ok { @@ -689,6 +848,9 @@ func (client BlockstorageClient) GetBootVolumeBackup(ctx context.Context, reques } ociResponse, err = common.Retry(ctx, request, client.getBootVolumeBackup, policy) if err != nil { + if ociResponse != nil { + response = GetBootVolumeBackupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetBootVolumeBackupResponse); ok { @@ -719,6 +881,48 @@ func (client BlockstorageClient) getBootVolumeBackup(ctx context.Context, reques return response, err } +// GetBootVolumeKmsKey Gets kms key id for the specified boot volume. +func (client BlockstorageClient) GetBootVolumeKmsKey(ctx context.Context, request GetBootVolumeKmsKeyRequest) (response GetBootVolumeKmsKeyResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getBootVolumeKmsKey, policy) + if err != nil { + if ociResponse != nil { + response = GetBootVolumeKmsKeyResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(GetBootVolumeKmsKeyResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetBootVolumeKmsKeyResponse") + } + return +} + +// getBootVolumeKmsKey implements the OCIOperation interface (enables retrying operations) +func (client BlockstorageClient) getBootVolumeKmsKey(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/bootVolumes/{bootVolumeId}/kmsKey") + if err != nil { + return nil, err + } + + var response GetBootVolumeKmsKeyResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // GetVolume Gets information for the specified volume. func (client BlockstorageClient) GetVolume(ctx context.Context, request GetVolumeRequest) (response GetVolumeResponse, err error) { var ociResponse common.OCIResponse @@ -728,6 +932,9 @@ func (client BlockstorageClient) GetVolume(ctx context.Context, request GetVolum } ociResponse, err = common.Retry(ctx, request, client.getVolume, policy) if err != nil { + if ociResponse != nil { + response = GetVolumeResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetVolumeResponse); ok { @@ -767,6 +974,9 @@ func (client BlockstorageClient) GetVolumeBackup(ctx context.Context, request Ge } ociResponse, err = common.Retry(ctx, request, client.getVolumeBackup, policy) if err != nil { + if ociResponse != nil { + response = GetVolumeBackupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetVolumeBackupResponse); ok { @@ -806,6 +1016,9 @@ func (client BlockstorageClient) GetVolumeBackupPolicy(ctx context.Context, requ } ociResponse, err = common.Retry(ctx, request, client.getVolumeBackupPolicy, policy) if err != nil { + if ociResponse != nil { + response = GetVolumeBackupPolicyResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetVolumeBackupPolicyResponse); ok { @@ -847,6 +1060,9 @@ func (client BlockstorageClient) GetVolumeBackupPolicyAssetAssignment(ctx contex } ociResponse, err = common.Retry(ctx, request, client.getVolumeBackupPolicyAssetAssignment, policy) if err != nil { + if ociResponse != nil { + response = GetVolumeBackupPolicyAssetAssignmentResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetVolumeBackupPolicyAssetAssignmentResponse); ok { @@ -886,6 +1102,9 @@ func (client BlockstorageClient) GetVolumeBackupPolicyAssignment(ctx context.Con } ociResponse, err = common.Retry(ctx, request, client.getVolumeBackupPolicyAssignment, policy) if err != nil { + if ociResponse != nil { + response = GetVolumeBackupPolicyAssignmentResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetVolumeBackupPolicyAssignmentResponse); ok { @@ -925,6 +1144,9 @@ func (client BlockstorageClient) GetVolumeGroup(ctx context.Context, request Get } ociResponse, err = common.Retry(ctx, request, client.getVolumeGroup, policy) if err != nil { + if ociResponse != nil { + response = GetVolumeGroupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetVolumeGroupResponse); ok { @@ -964,6 +1186,9 @@ func (client BlockstorageClient) GetVolumeGroupBackup(ctx context.Context, reque } ociResponse, err = common.Retry(ctx, request, client.getVolumeGroupBackup, policy) if err != nil { + if ociResponse != nil { + response = GetVolumeGroupBackupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetVolumeGroupBackupResponse); ok { @@ -994,6 +1219,48 @@ func (client BlockstorageClient) getVolumeGroupBackup(ctx context.Context, reque return response, err } +// GetVolumeKmsKey Gets kms key id for the specified volume. +func (client BlockstorageClient) GetVolumeKmsKey(ctx context.Context, request GetVolumeKmsKeyRequest) (response GetVolumeKmsKeyResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getVolumeKmsKey, policy) + if err != nil { + if ociResponse != nil { + response = GetVolumeKmsKeyResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(GetVolumeKmsKeyResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetVolumeKmsKeyResponse") + } + return +} + +// getVolumeKmsKey implements the OCIOperation interface (enables retrying operations) +func (client BlockstorageClient) getVolumeKmsKey(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/volumes/{volumeId}/kmsKey") + if err != nil { + return nil, err + } + + var response GetVolumeKmsKeyResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ListBootVolumeBackups Lists the boot volume backups in the specified compartment. You can filter the results by boot volume. func (client BlockstorageClient) ListBootVolumeBackups(ctx context.Context, request ListBootVolumeBackupsRequest) (response ListBootVolumeBackupsResponse, err error) { var ociResponse common.OCIResponse @@ -1003,6 +1270,9 @@ func (client BlockstorageClient) ListBootVolumeBackups(ctx context.Context, requ } ociResponse, err = common.Retry(ctx, request, client.listBootVolumeBackups, policy) if err != nil { + if ociResponse != nil { + response = ListBootVolumeBackupsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListBootVolumeBackupsResponse); ok { @@ -1033,7 +1303,7 @@ func (client BlockstorageClient) listBootVolumeBackups(ctx context.Context, requ return response, err } -// ListBootVolumes Lists the boot volumes in the specified compartment and Availability Domain. +// ListBootVolumes Lists the boot volumes in the specified compartment and availability domain. func (client BlockstorageClient) ListBootVolumes(ctx context.Context, request ListBootVolumesRequest) (response ListBootVolumesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1042,6 +1312,9 @@ func (client BlockstorageClient) ListBootVolumes(ctx context.Context, request Li } ociResponse, err = common.Retry(ctx, request, client.listBootVolumes, policy) if err != nil { + if ociResponse != nil { + response = ListBootVolumesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListBootVolumesResponse); ok { @@ -1081,6 +1354,9 @@ func (client BlockstorageClient) ListVolumeBackupPolicies(ctx context.Context, r } ociResponse, err = common.Retry(ctx, request, client.listVolumeBackupPolicies, policy) if err != nil { + if ociResponse != nil { + response = ListVolumeBackupPoliciesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListVolumeBackupPoliciesResponse); ok { @@ -1120,6 +1396,9 @@ func (client BlockstorageClient) ListVolumeBackups(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.listVolumeBackups, policy) if err != nil { + if ociResponse != nil { + response = ListVolumeBackupsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListVolumeBackupsResponse); ok { @@ -1160,6 +1439,9 @@ func (client BlockstorageClient) ListVolumeGroupBackups(ctx context.Context, req } ociResponse, err = common.Retry(ctx, request, client.listVolumeGroupBackups, policy) if err != nil { + if ociResponse != nil { + response = ListVolumeGroupBackupsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListVolumeGroupBackupsResponse); ok { @@ -1200,6 +1482,9 @@ func (client BlockstorageClient) ListVolumeGroups(ctx context.Context, request L } ociResponse, err = common.Retry(ctx, request, client.listVolumeGroups, policy) if err != nil { + if ociResponse != nil { + response = ListVolumeGroupsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListVolumeGroupsResponse); ok { @@ -1230,7 +1515,7 @@ func (client BlockstorageClient) listVolumeGroups(ctx context.Context, request c return response, err } -// ListVolumes Lists the volumes in the specified compartment and Availability Domain. +// ListVolumes Lists the volumes in the specified compartment and availability domain. func (client BlockstorageClient) ListVolumes(ctx context.Context, request ListVolumesRequest) (response ListVolumesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1239,6 +1524,9 @@ func (client BlockstorageClient) ListVolumes(ctx context.Context, request ListVo } ociResponse, err = common.Retry(ctx, request, client.listVolumes, policy) if err != nil { + if ociResponse != nil { + response = ListVolumesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListVolumesResponse); ok { @@ -1278,6 +1566,9 @@ func (client BlockstorageClient) UpdateBootVolume(ctx context.Context, request U } ociResponse, err = common.Retry(ctx, request, client.updateBootVolume, policy) if err != nil { + if ociResponse != nil { + response = UpdateBootVolumeResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateBootVolumeResponse); ok { @@ -1318,6 +1609,9 @@ func (client BlockstorageClient) UpdateBootVolumeBackup(ctx context.Context, req } ociResponse, err = common.Retry(ctx, request, client.updateBootVolumeBackup, policy) if err != nil { + if ociResponse != nil { + response = UpdateBootVolumeBackupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateBootVolumeBackupResponse); ok { @@ -1348,6 +1642,48 @@ func (client BlockstorageClient) updateBootVolumeBackup(ctx context.Context, req return response, err } +// UpdateBootVolumeKmsKey Update kms key id for the specific volume. +func (client BlockstorageClient) UpdateBootVolumeKmsKey(ctx context.Context, request UpdateBootVolumeKmsKeyRequest) (response UpdateBootVolumeKmsKeyResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.updateBootVolumeKmsKey, policy) + if err != nil { + if ociResponse != nil { + response = UpdateBootVolumeKmsKeyResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(UpdateBootVolumeKmsKeyResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateBootVolumeKmsKeyResponse") + } + return +} + +// updateBootVolumeKmsKey implements the OCIOperation interface (enables retrying operations) +func (client BlockstorageClient) updateBootVolumeKmsKey(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPut, "/bootVolumes/{bootVolumeId}/kmsKey") + if err != nil { + return nil, err + } + + var response UpdateBootVolumeKmsKeyResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // UpdateVolume Updates the specified volume's display name. // Avoid entering confidential information. func (client BlockstorageClient) UpdateVolume(ctx context.Context, request UpdateVolumeRequest) (response UpdateVolumeResponse, err error) { @@ -1358,6 +1694,9 @@ func (client BlockstorageClient) UpdateVolume(ctx context.Context, request Updat } ociResponse, err = common.Retry(ctx, request, client.updateVolume, policy) if err != nil { + if ociResponse != nil { + response = UpdateVolumeResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateVolumeResponse); ok { @@ -1398,6 +1737,9 @@ func (client BlockstorageClient) UpdateVolumeBackup(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.updateVolumeBackup, policy) if err != nil { + if ociResponse != nil { + response = UpdateVolumeBackupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateVolumeBackupResponse); ok { @@ -1441,6 +1783,9 @@ func (client BlockstorageClient) UpdateVolumeGroup(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.updateVolumeGroup, policy) if err != nil { + if ociResponse != nil { + response = UpdateVolumeGroupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateVolumeGroupResponse); ok { @@ -1480,6 +1825,9 @@ func (client BlockstorageClient) UpdateVolumeGroupBackup(ctx context.Context, re } ociResponse, err = common.Retry(ctx, request, client.updateVolumeGroupBackup, policy) if err != nil { + if ociResponse != nil { + response = UpdateVolumeGroupBackupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateVolumeGroupBackupResponse); ok { @@ -1509,3 +1857,45 @@ func (client BlockstorageClient) updateVolumeGroupBackup(ctx context.Context, re err = common.UnmarshalResponse(httpResponse, &response) return response, err } + +// UpdateVolumeKmsKey Update kms key id for the specific volume. +func (client BlockstorageClient) UpdateVolumeKmsKey(ctx context.Context, request UpdateVolumeKmsKeyRequest) (response UpdateVolumeKmsKeyResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.updateVolumeKmsKey, policy) + if err != nil { + if ociResponse != nil { + response = UpdateVolumeKmsKeyResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(UpdateVolumeKmsKeyResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateVolumeKmsKeyResponse") + } + return +} + +// updateVolumeKmsKey implements the OCIOperation interface (enables retrying operations) +func (client BlockstorageClient) updateVolumeKmsKey(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPut, "/volumes/{volumeId}/kmsKey") + if err != nil { + return nil, err + } + + var response UpdateVolumeKmsKeyResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/core_compute_client.go b/vendor/github.com/oracle/oci-go-sdk/core/core_compute_client.go index 46181e12c..17c1ff925 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/core_compute_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/core_compute_client.go @@ -65,8 +65,16 @@ func (client ComputeClient) AttachBootVolume(ctx context.Context, request Attach if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.attachBootVolume, policy) if err != nil { + if ociResponse != nil { + response = AttachBootVolumeResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(AttachBootVolumeResponse); ok { @@ -106,8 +114,16 @@ func (client ComputeClient) AttachVnic(ctx context.Context, request AttachVnicRe if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.attachVnic, policy) if err != nil { + if ociResponse != nil { + response = AttachVnicResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(AttachVnicResponse); ok { @@ -145,8 +161,16 @@ func (client ComputeClient) AttachVolume(ctx context.Context, request AttachVolu if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.attachVolume, policy) if err != nil { + if ociResponse != nil { + response = AttachVolumeResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(AttachVolumeResponse); ok { @@ -198,8 +222,16 @@ func (client ComputeClient) CaptureConsoleHistory(ctx context.Context, request C if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.captureConsoleHistory, policy) if err != nil { + if ociResponse != nil { + response = CaptureConsoleHistoryResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CaptureConsoleHistoryResponse); ok { @@ -230,6 +262,53 @@ func (client ComputeClient) captureConsoleHistory(ctx context.Context, request c return response, err } +// CreateAppCatalogSubscription Create a subscription for listing resource version for a compartment. It will take some time to propagate to all regions. +func (client ComputeClient) CreateAppCatalogSubscription(ctx context.Context, request CreateAppCatalogSubscriptionRequest) (response CreateAppCatalogSubscriptionResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createAppCatalogSubscription, policy) + if err != nil { + if ociResponse != nil { + response = CreateAppCatalogSubscriptionResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(CreateAppCatalogSubscriptionResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateAppCatalogSubscriptionResponse") + } + return +} + +// createAppCatalogSubscription implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) createAppCatalogSubscription(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPost, "/appCatalogSubscriptions") + if err != nil { + return nil, err + } + + var response CreateAppCatalogSubscriptionResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // CreateImage Creates a boot disk image for the specified instance or imports an exported image from the Oracle Cloud Infrastructure Object Storage service. // When creating a new image, you must provide the OCID of the instance you want to use as the basis for the image, and // the OCID of the compartment containing that instance. For more information about images, @@ -253,8 +332,16 @@ func (client ComputeClient) CreateImage(ctx context.Context, request CreateImage if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createImage, policy) if err != nil { + if ociResponse != nil { + response = CreateImageResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateImageResponse); ok { @@ -295,8 +382,16 @@ func (client ComputeClient) CreateInstanceConsoleConnection(ctx context.Context, if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createInstanceConsoleConnection, policy) if err != nil { + if ociResponse != nil { + response = CreateInstanceConsoleConnectionResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateInstanceConsoleConnectionResponse); ok { @@ -327,6 +422,48 @@ func (client ComputeClient) createInstanceConsoleConnection(ctx context.Context, return response, err } +// DeleteAppCatalogSubscription Delete a subscription for a listing resource version for a compartment. +func (client ComputeClient) DeleteAppCatalogSubscription(ctx context.Context, request DeleteAppCatalogSubscriptionRequest) (response DeleteAppCatalogSubscriptionResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteAppCatalogSubscription, policy) + if err != nil { + if ociResponse != nil { + response = DeleteAppCatalogSubscriptionResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(DeleteAppCatalogSubscriptionResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteAppCatalogSubscriptionResponse") + } + return +} + +// deleteAppCatalogSubscription implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) deleteAppCatalogSubscription(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/appCatalogSubscriptions") + if err != nil { + return nil, err + } + + var response DeleteAppCatalogSubscriptionResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // DeleteConsoleHistory Deletes the specified console history metadata and the console history data. func (client ComputeClient) DeleteConsoleHistory(ctx context.Context, request DeleteConsoleHistoryRequest) (response DeleteConsoleHistoryResponse, err error) { var ociResponse common.OCIResponse @@ -336,6 +473,9 @@ func (client ComputeClient) DeleteConsoleHistory(ctx context.Context, request De } ociResponse, err = common.Retry(ctx, request, client.deleteConsoleHistory, policy) if err != nil { + if ociResponse != nil { + response = DeleteConsoleHistoryResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteConsoleHistoryResponse); ok { @@ -375,6 +515,9 @@ func (client ComputeClient) DeleteImage(ctx context.Context, request DeleteImage } ociResponse, err = common.Retry(ctx, request, client.deleteImage, policy) if err != nil { + if ociResponse != nil { + response = DeleteImageResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteImageResponse); ok { @@ -414,6 +557,9 @@ func (client ComputeClient) DeleteInstanceConsoleConnection(ctx context.Context, } ociResponse, err = common.Retry(ctx, request, client.deleteInstanceConsoleConnection, policy) if err != nil { + if ociResponse != nil { + response = DeleteInstanceConsoleConnectionResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteInstanceConsoleConnectionResponse); ok { @@ -455,6 +601,9 @@ func (client ComputeClient) DetachBootVolume(ctx context.Context, request Detach } ociResponse, err = common.Retry(ctx, request, client.detachBootVolume, policy) if err != nil { + if ociResponse != nil { + response = DetachBootVolumeResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DetachBootVolumeResponse); ok { @@ -502,6 +651,9 @@ func (client ComputeClient) DetachVnic(ctx context.Context, request DetachVnicRe } ociResponse, err = common.Retry(ctx, request, client.detachVnic, policy) if err != nil { + if ociResponse != nil { + response = DetachVnicResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DetachVnicResponse); ok { @@ -543,6 +695,9 @@ func (client ComputeClient) DetachVolume(ctx context.Context, request DetachVolu } ociResponse, err = common.Retry(ctx, request, client.detachVolume, policy) if err != nil { + if ociResponse != nil { + response = DetachVolumeResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DetachVolumeResponse); ok { @@ -586,8 +741,16 @@ func (client ComputeClient) ExportImage(ctx context.Context, request ExportImage if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.exportImage, policy) if err != nil { + if ociResponse != nil { + response = ExportImageResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ExportImageResponse); ok { @@ -618,6 +781,132 @@ func (client ComputeClient) exportImage(ctx context.Context, request common.OCIR return response, err } +// GetAppCatalogListing Gets the specified listing. +func (client ComputeClient) GetAppCatalogListing(ctx context.Context, request GetAppCatalogListingRequest) (response GetAppCatalogListingResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getAppCatalogListing, policy) + if err != nil { + if ociResponse != nil { + response = GetAppCatalogListingResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(GetAppCatalogListingResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetAppCatalogListingResponse") + } + return +} + +// getAppCatalogListing implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) getAppCatalogListing(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/appCatalogListings/{listingId}") + if err != nil { + return nil, err + } + + var response GetAppCatalogListingResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetAppCatalogListingAgreements Retrieves the agreements for a particular resource version of a listing. +func (client ComputeClient) GetAppCatalogListingAgreements(ctx context.Context, request GetAppCatalogListingAgreementsRequest) (response GetAppCatalogListingAgreementsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getAppCatalogListingAgreements, policy) + if err != nil { + if ociResponse != nil { + response = GetAppCatalogListingAgreementsResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(GetAppCatalogListingAgreementsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetAppCatalogListingAgreementsResponse") + } + return +} + +// getAppCatalogListingAgreements implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) getAppCatalogListingAgreements(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/appCatalogListings/{listingId}/resourceVersions/{resourceVersion}/agreements") + if err != nil { + return nil, err + } + + var response GetAppCatalogListingAgreementsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetAppCatalogListingResourceVersion Gets the specified listing resource version. +func (client ComputeClient) GetAppCatalogListingResourceVersion(ctx context.Context, request GetAppCatalogListingResourceVersionRequest) (response GetAppCatalogListingResourceVersionResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getAppCatalogListingResourceVersion, policy) + if err != nil { + if ociResponse != nil { + response = GetAppCatalogListingResourceVersionResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(GetAppCatalogListingResourceVersionResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetAppCatalogListingResourceVersionResponse") + } + return +} + +// getAppCatalogListingResourceVersion implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) getAppCatalogListingResourceVersion(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/appCatalogListings/{listingId}/resourceVersions/{resourceVersion}") + if err != nil { + return nil, err + } + + var response GetAppCatalogListingResourceVersionResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // GetBootVolumeAttachment Gets information about the specified boot volume attachment. func (client ComputeClient) GetBootVolumeAttachment(ctx context.Context, request GetBootVolumeAttachmentRequest) (response GetBootVolumeAttachmentResponse, err error) { var ociResponse common.OCIResponse @@ -627,6 +916,9 @@ func (client ComputeClient) GetBootVolumeAttachment(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.getBootVolumeAttachment, policy) if err != nil { + if ociResponse != nil { + response = GetBootVolumeAttachmentResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetBootVolumeAttachmentResponse); ok { @@ -668,6 +960,9 @@ func (client ComputeClient) GetConsoleHistory(ctx context.Context, request GetCo } ociResponse, err = common.Retry(ctx, request, client.getConsoleHistory, policy) if err != nil { + if ociResponse != nil { + response = GetConsoleHistoryResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetConsoleHistoryResponse); ok { @@ -709,6 +1004,9 @@ func (client ComputeClient) GetConsoleHistoryContent(ctx context.Context, reques } ociResponse, err = common.Retry(ctx, request, client.getConsoleHistoryContent, policy) if err != nil { + if ociResponse != nil { + response = GetConsoleHistoryContentResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetConsoleHistoryContentResponse); ok { @@ -748,6 +1046,9 @@ func (client ComputeClient) GetImage(ctx context.Context, request GetImageReques } ociResponse, err = common.Retry(ctx, request, client.getImage, policy) if err != nil { + if ociResponse != nil { + response = GetImageResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetImageResponse); ok { @@ -787,6 +1088,9 @@ func (client ComputeClient) GetInstance(ctx context.Context, request GetInstance } ociResponse, err = common.Retry(ctx, request, client.getInstance, policy) if err != nil { + if ociResponse != nil { + response = GetInstanceResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetInstanceResponse); ok { @@ -826,6 +1130,9 @@ func (client ComputeClient) GetInstanceConsoleConnection(ctx context.Context, re } ociResponse, err = common.Retry(ctx, request, client.getInstanceConsoleConnection, policy) if err != nil { + if ociResponse != nil { + response = GetInstanceConsoleConnectionResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetInstanceConsoleConnectionResponse); ok { @@ -865,6 +1172,9 @@ func (client ComputeClient) GetVnicAttachment(ctx context.Context, request GetVn } ociResponse, err = common.Retry(ctx, request, client.getVnicAttachment, policy) if err != nil { + if ociResponse != nil { + response = GetVnicAttachmentResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetVnicAttachmentResponse); ok { @@ -904,6 +1214,9 @@ func (client ComputeClient) GetVolumeAttachment(ctx context.Context, request Get } ociResponse, err = common.Retry(ctx, request, client.getVolumeAttachment, policy) if err != nil { + if ociResponse != nil { + response = GetVolumeAttachmentResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetVolumeAttachmentResponse); ok { @@ -944,6 +1257,9 @@ func (client ComputeClient) GetWindowsInstanceInitialCredentials(ctx context.Con } ociResponse, err = common.Retry(ctx, request, client.getWindowsInstanceInitialCredentials, policy) if err != nil { + if ociResponse != nil { + response = GetWindowsInstanceInitialCredentialsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetWindowsInstanceInitialCredentialsResponse); ok { @@ -987,8 +1303,16 @@ func (client ComputeClient) InstanceAction(ctx context.Context, request Instance if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.instanceAction, policy) if err != nil { + if ociResponse != nil { + response = InstanceActionResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(InstanceActionResponse); ok { @@ -1019,14 +1343,14 @@ func (client ComputeClient) instanceAction(ctx context.Context, request common.O return response, err } -// LaunchInstance Creates a new instance in the specified compartment and the specified Availability Domain. +// LaunchInstance Creates a new instance in the specified compartment and the specified availability domain. // For general information about instances, see // Overview of the Compute Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Concepts/computeoverview.htm). // For information about access control and compartments, see // Overview of the IAM Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). -// For information about Availability Domains, see +// For information about availability domains, see // Regions and Availability Domains (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/regions.htm). -// To get a list of Availability Domains, use the `ListAvailabilityDomains` operation +// To get a list of availability domains, use the `ListAvailabilityDomains` operation // in the Identity and Access Management Service API. // All Oracle Cloud Infrastructure resources, including instances, get an Oracle-assigned, // unique ID called an Oracle Cloud Identifier (OCID). @@ -1050,8 +1374,16 @@ func (client ComputeClient) LaunchInstance(ctx context.Context, request LaunchIn if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.launchInstance, policy) if err != nil { + if ociResponse != nil { + response = LaunchInstanceResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(LaunchInstanceResponse); ok { @@ -1082,6 +1414,132 @@ func (client ComputeClient) launchInstance(ctx context.Context, request common.O return response, err } +// ListAppCatalogListingResourceVersions Gets all resource versions for a particular listing. +func (client ComputeClient) ListAppCatalogListingResourceVersions(ctx context.Context, request ListAppCatalogListingResourceVersionsRequest) (response ListAppCatalogListingResourceVersionsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listAppCatalogListingResourceVersions, policy) + if err != nil { + if ociResponse != nil { + response = ListAppCatalogListingResourceVersionsResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(ListAppCatalogListingResourceVersionsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListAppCatalogListingResourceVersionsResponse") + } + return +} + +// listAppCatalogListingResourceVersions implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) listAppCatalogListingResourceVersions(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/appCatalogListings/{listingId}/resourceVersions") + if err != nil { + return nil, err + } + + var response ListAppCatalogListingResourceVersionsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListAppCatalogListings Lists the published listings. +func (client ComputeClient) ListAppCatalogListings(ctx context.Context, request ListAppCatalogListingsRequest) (response ListAppCatalogListingsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listAppCatalogListings, policy) + if err != nil { + if ociResponse != nil { + response = ListAppCatalogListingsResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(ListAppCatalogListingsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListAppCatalogListingsResponse") + } + return +} + +// listAppCatalogListings implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) listAppCatalogListings(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/appCatalogListings") + if err != nil { + return nil, err + } + + var response ListAppCatalogListingsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListAppCatalogSubscriptions Lists subscriptions for a compartment. +func (client ComputeClient) ListAppCatalogSubscriptions(ctx context.Context, request ListAppCatalogSubscriptionsRequest) (response ListAppCatalogSubscriptionsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listAppCatalogSubscriptions, policy) + if err != nil { + if ociResponse != nil { + response = ListAppCatalogSubscriptionsResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(ListAppCatalogSubscriptionsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListAppCatalogSubscriptionsResponse") + } + return +} + +// listAppCatalogSubscriptions implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) listAppCatalogSubscriptions(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/appCatalogSubscriptions") + if err != nil { + return nil, err + } + + var response ListAppCatalogSubscriptionsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ListBootVolumeAttachments Lists the boot volume attachments in the specified compartment. You can filter the // list by specifying an instance OCID, boot volume OCID, or both. func (client ComputeClient) ListBootVolumeAttachments(ctx context.Context, request ListBootVolumeAttachmentsRequest) (response ListBootVolumeAttachmentsResponse, err error) { @@ -1092,6 +1550,9 @@ func (client ComputeClient) ListBootVolumeAttachments(ctx context.Context, reque } ociResponse, err = common.Retry(ctx, request, client.listBootVolumeAttachments, policy) if err != nil { + if ociResponse != nil { + response = ListBootVolumeAttachmentsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListBootVolumeAttachmentsResponse); ok { @@ -1131,6 +1592,9 @@ func (client ComputeClient) ListConsoleHistories(ctx context.Context, request Li } ociResponse, err = common.Retry(ctx, request, client.listConsoleHistories, policy) if err != nil { + if ociResponse != nil { + response = ListConsoleHistoriesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListConsoleHistoriesResponse); ok { @@ -1161,11 +1625,12 @@ func (client ComputeClient) listConsoleHistories(ctx context.Context, request co return response, err } -// ListImages Lists the available images in the specified compartment. -// If you specify a value for the `sortBy` parameter, Oracle-provided images appear first in the list, followed by custom images. -// For more -// information about images, see -// Managing Custom Images (https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Tasks/managingcustomimages.htm). +// ListImages Lists the available images in the specified compartment, including both +// Oracle-provided images (https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/References/images.htm) and +// custom images (https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Tasks/managingcustomimages.htm) that have +// been created. The list of images returned is ordered to first show all +// Oracle-provided images, then all custom images. +// The order of images returned may change when new images are released. func (client ComputeClient) ListImages(ctx context.Context, request ListImagesRequest) (response ListImagesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1174,6 +1639,9 @@ func (client ComputeClient) ListImages(ctx context.Context, request ListImagesRe } ociResponse, err = common.Retry(ctx, request, client.listImages, policy) if err != nil { + if ociResponse != nil { + response = ListImagesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListImagesResponse); ok { @@ -1214,6 +1682,9 @@ func (client ComputeClient) ListInstanceConsoleConnections(ctx context.Context, } ociResponse, err = common.Retry(ctx, request, client.listInstanceConsoleConnections, policy) if err != nil { + if ociResponse != nil { + response = ListInstanceConsoleConnectionsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListInstanceConsoleConnectionsResponse); ok { @@ -1244,7 +1715,7 @@ func (client ComputeClient) listInstanceConsoleConnections(ctx context.Context, return response, err } -// ListInstances Lists the instances in the specified compartment and the specified Availability Domain. +// ListInstances Lists the instances in the specified compartment and the specified availability domain. // You can filter the results by specifying an instance name (the list will include all the identically-named // instances in the compartment). func (client ComputeClient) ListInstances(ctx context.Context, request ListInstancesRequest) (response ListInstancesResponse, err error) { @@ -1255,6 +1726,9 @@ func (client ComputeClient) ListInstances(ctx context.Context, request ListInsta } ociResponse, err = common.Retry(ctx, request, client.listInstances, policy) if err != nil { + if ociResponse != nil { + response = ListInstancesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListInstancesResponse); ok { @@ -1295,6 +1769,9 @@ func (client ComputeClient) ListShapes(ctx context.Context, request ListShapesRe } ociResponse, err = common.Retry(ctx, request, client.listShapes, policy) if err != nil { + if ociResponse != nil { + response = ListShapesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListShapesResponse); ok { @@ -1327,7 +1804,7 @@ func (client ComputeClient) listShapes(ctx context.Context, request common.OCIRe // ListVnicAttachments Lists the VNIC attachments in the specified compartment. A VNIC attachment // resides in the same compartment as the attached instance. The list can be -// filtered by instance, VNIC, or Availability Domain. +// filtered by instance, VNIC, or availability domain. func (client ComputeClient) ListVnicAttachments(ctx context.Context, request ListVnicAttachmentsRequest) (response ListVnicAttachmentsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1336,6 +1813,9 @@ func (client ComputeClient) ListVnicAttachments(ctx context.Context, request Lis } ociResponse, err = common.Retry(ctx, request, client.listVnicAttachments, policy) if err != nil { + if ociResponse != nil { + response = ListVnicAttachmentsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListVnicAttachmentsResponse); ok { @@ -1394,6 +1874,9 @@ func (client ComputeClient) ListVolumeAttachments(ctx context.Context, request L } ociResponse, err = common.Retry(ctx, request, client.listVolumeAttachments, policy) if err != nil { + if ociResponse != nil { + response = ListVolumeAttachmentsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListVolumeAttachmentsResponse); ok { @@ -1438,6 +1921,9 @@ func (client ComputeClient) TerminateInstance(ctx context.Context, request Termi } ociResponse, err = common.Retry(ctx, request, client.terminateInstance, policy) if err != nil { + if ociResponse != nil { + response = TerminateInstanceResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(TerminateInstanceResponse); ok { @@ -1477,6 +1963,9 @@ func (client ComputeClient) UpdateConsoleHistory(ctx context.Context, request Up } ociResponse, err = common.Retry(ctx, request, client.updateConsoleHistory, policy) if err != nil { + if ociResponse != nil { + response = UpdateConsoleHistoryResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateConsoleHistoryResponse); ok { @@ -1514,8 +2003,16 @@ func (client ComputeClient) UpdateImage(ctx context.Context, request UpdateImage if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.updateImage, policy) if err != nil { + if ociResponse != nil { + response = UpdateImageResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateImageResponse); ok { @@ -1546,7 +2043,10 @@ func (client ComputeClient) updateImage(ctx context.Context, request common.OCIR return response, err } -// UpdateInstance Updates the display name of the specified instance. Avoid entering confidential information. +// UpdateInstance Updates certain fields on the specified instance. Fields that are not provided in the +// request will not be updated. Avoid entering confidential information. +// Changes to metadata fields will be reflected in the instance metadata service (this may take +// up to a minute). // The OCID of the instance remains the same. func (client ComputeClient) UpdateInstance(ctx context.Context, request UpdateInstanceRequest) (response UpdateInstanceResponse, err error) { var ociResponse common.OCIResponse @@ -1554,8 +2054,16 @@ func (client ComputeClient) UpdateInstance(ctx context.Context, request UpdateIn if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.updateInstance, policy) if err != nil { + if ociResponse != nil { + response = UpdateInstanceResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateInstanceResponse); ok { diff --git a/vendor/github.com/oracle/oci-go-sdk/core/core_virtualnetwork_client.go b/vendor/github.com/oracle/oci-go-sdk/core/core_virtualnetwork_client.go index 545d51483..1afbfe680 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/core_virtualnetwork_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/core_virtualnetwork_client.go @@ -75,6 +75,9 @@ func (client VirtualNetworkClient) AttachServiceId(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.attachServiceId, policy) if err != nil { + if ociResponse != nil { + response = AttachServiceIdResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(AttachServiceIdResponse); ok { @@ -186,6 +189,9 @@ func (client VirtualNetworkClient) ConnectLocalPeeringGateways(ctx context.Conte } ociResponse, err = common.Retry(ctx, request, client.connectLocalPeeringGateways, policy) if err != nil { + if ociResponse != nil { + response = ConnectLocalPeeringGatewaysResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ConnectLocalPeeringGatewaysResponse); ok { @@ -231,6 +237,9 @@ func (client VirtualNetworkClient) ConnectRemotePeeringConnections(ctx context.C } ociResponse, err = common.Retry(ctx, request, client.connectRemotePeeringConnections, policy) if err != nil { + if ociResponse != nil { + response = ConnectRemotePeeringConnectionsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ConnectRemotePeeringConnectionsResponse); ok { @@ -261,7 +270,7 @@ func (client VirtualNetworkClient) connectRemotePeeringConnections(ctx context.C return response, err } -// CreateCpe Creates a new virtual Customer-Premises Equipment (CPE) object in the specified compartment. For +// CreateCpe Creates a new virtual customer-premises equipment (CPE) object in the specified compartment. For // more information, see IPSec VPNs (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingIPsec.htm). // For the purposes of access control, you must provide the OCID of the compartment where you want // the CPE to reside. Notice that the CPE doesn't have to be in the same compartment as the IPSec @@ -279,8 +288,16 @@ func (client VirtualNetworkClient) CreateCpe(ctx context.Context, request Create if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createCpe, policy) if err != nil { + if ociResponse != nil { + response = CreateCpeResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateCpeResponse); ok { @@ -333,8 +350,16 @@ func (client VirtualNetworkClient) CreateCrossConnect(ctx context.Context, reque if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createCrossConnect, policy) if err != nil { + if ociResponse != nil { + response = CreateCrossConnectResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateCrossConnectResponse); ok { @@ -384,8 +409,16 @@ func (client VirtualNetworkClient) CreateCrossConnectGroup(ctx context.Context, if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createCrossConnectGroup, policy) if err != nil { + if ociResponse != nil { + response = CreateCrossConnectGroupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateCrossConnectGroupResponse); ok { @@ -432,8 +465,16 @@ func (client VirtualNetworkClient) CreateDhcpOptions(ctx context.Context, reques if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createDhcpOptions, policy) if err != nil { + if ociResponse != nil { + response = CreateDhcpOptionsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateDhcpOptionsResponse); ok { @@ -464,7 +505,7 @@ func (client VirtualNetworkClient) createDhcpOptions(ctx context.Context, reques return response, err } -// CreateDrg Creates a new Dynamic Routing Gateway (DRG) in the specified compartment. For more information, +// CreateDrg Creates a new dynamic routing gateway (DRG) in the specified compartment. For more information, // see Dynamic Routing Gateways (DRGs) (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingDRGs.htm). // For the purposes of access control, you must provide the OCID of the compartment where you want // the DRG to reside. Notice that the DRG doesn't have to be in the same compartment as the VCN, @@ -480,8 +521,16 @@ func (client VirtualNetworkClient) CreateDrg(ctx context.Context, request Create if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createDrg, policy) if err != nil { + if ociResponse != nil { + response = CreateDrgResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateDrgResponse); ok { @@ -527,8 +576,16 @@ func (client VirtualNetworkClient) CreateDrgAttachment(ctx context.Context, requ if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createDrgAttachment, policy) if err != nil { + if ociResponse != nil { + response = CreateDrgAttachmentResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateDrgAttachmentResponse); ok { @@ -586,8 +643,16 @@ func (client VirtualNetworkClient) CreateIPSecConnection(ctx context.Context, re if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createIPSecConnection, policy) if err != nil { + if ociResponse != nil { + response = CreateIPSecConnectionResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateIPSecConnectionResponse); ok { @@ -618,20 +683,20 @@ func (client VirtualNetworkClient) createIPSecConnection(ctx context.Context, re return response, err } -// CreateInternetGateway Creates a new Internet Gateway for the specified VCN. For more information, see +// CreateInternetGateway Creates a new internet gateway for the specified VCN. For more information, see // Access to the Internet (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingIGs.htm). // For the purposes of access control, you must provide the OCID of the compartment where you want the Internet -// Gateway to reside. Notice that the Internet Gateway doesn't have to be in the same compartment as the VCN or +// Gateway to reside. Notice that the internet gateway doesn't have to be in the same compartment as the VCN or // other Networking Service components. If you're not sure which compartment to use, put the Internet // Gateway in the same compartment with the VCN. For more information about compartments and access control, see // Overview of the IAM Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). For information about OCIDs, see // Resource Identifiers (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). -// You may optionally specify a *display name* for the Internet Gateway, otherwise a default is provided. It +// You may optionally specify a *display name* for the internet gateway, otherwise a default is provided. It // does not have to be unique, and you can change it. Avoid entering confidential information. -// For traffic to flow between a subnet and an Internet Gateway, you must create a route rule accordingly in -// the subnet's route table (for example, 0.0.0.0/0 > Internet Gateway). See +// For traffic to flow between a subnet and an internet gateway, you must create a route rule accordingly in +// the subnet's route table (for example, 0.0.0.0/0 > internet gateway). See // UpdateRouteTable. -// You must specify whether the Internet Gateway is enabled when you create it. If it's disabled, that means no +// You must specify whether the internet gateway is enabled when you create it. If it's disabled, that means no // traffic will flow to/from the internet even if there's a route rule that enables that traffic. You can later // use UpdateInternetGateway to easily disable/enable // the gateway without changing the route rule. @@ -641,8 +706,16 @@ func (client VirtualNetworkClient) CreateInternetGateway(ctx context.Context, re if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createInternetGateway, policy) if err != nil { + if ociResponse != nil { + response = CreateInternetGatewayResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateInternetGatewayResponse); ok { @@ -680,8 +753,16 @@ func (client VirtualNetworkClient) CreateLocalPeeringGateway(ctx context.Context if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createLocalPeeringGateway, policy) if err != nil { + if ociResponse != nil { + response = CreateLocalPeeringGatewayResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateLocalPeeringGatewayResponse); ok { @@ -712,6 +793,54 @@ func (client VirtualNetworkClient) createLocalPeeringGateway(ctx context.Context return response, err } +// CreateNatGateway Creates a new NAT gateway for the specified VCN. You must also set up a route rule with the +// NAT gateway as the rule's target. See RouteTable. +func (client VirtualNetworkClient) CreateNatGateway(ctx context.Context, request CreateNatGatewayRequest) (response CreateNatGatewayResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createNatGateway, policy) + if err != nil { + if ociResponse != nil { + response = CreateNatGatewayResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(CreateNatGatewayResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateNatGatewayResponse") + } + return +} + +// createNatGateway implements the OCIOperation interface (enables retrying operations) +func (client VirtualNetworkClient) createNatGateway(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPost, "/natGateways") + if err != nil { + return nil, err + } + + var response CreateNatGatewayResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // CreatePrivateIp Creates a secondary private IP for the specified VNIC. // For more information about secondary private IPs, see // IP Addresses (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingIPaddresses.htm). @@ -721,8 +850,16 @@ func (client VirtualNetworkClient) CreatePrivateIp(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createPrivateIp, policy) if err != nil { + if ociResponse != nil { + response = CreatePrivateIpResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreatePrivateIpResponse); ok { @@ -756,11 +893,12 @@ func (client VirtualNetworkClient) createPrivateIp(ctx context.Context, request // CreatePublicIp Creates a public IP. Use the `lifetime` property to specify whether it's an ephemeral or // reserved public IP. For information about limits on how many you can create, see // Public IP Addresses (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingpublicIPs.htm). -// * **For an ephemeral public IP:** You must also specify a `privateIpId` with the OCID of -// the primary private IP you want to assign the public IP to. The public IP is created in -// the same Availability Domain as the private IP. An ephemeral public IP must always be +// * **For an ephemeral public IP assigned to a private IP:** You must also specify a `privateIpId` +// with the OCID of the primary private IP you want to assign the public IP to. The public IP is +// created in the same availability domain as the private IP. An ephemeral public IP must always be // assigned to a private IP, and only to the *primary* private IP on a VNIC, not a secondary -// private IP. +// private IP. Exception: If you create a NatGateway, Oracle +// automatically assigns the NAT gateway a regional ephemeral public IP that you cannot remove. // * **For a reserved public IP:** You may also optionally assign the public IP to a private // IP by specifying `privateIpId`. Or you can later assign the public IP with // UpdatePublicIp. @@ -775,8 +913,16 @@ func (client VirtualNetworkClient) CreatePublicIp(ctx context.Context, request C if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createPublicIp, policy) if err != nil { + if ociResponse != nil { + response = CreatePublicIpResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreatePublicIpResponse); ok { @@ -814,8 +960,16 @@ func (client VirtualNetworkClient) CreateRemotePeeringConnection(ctx context.Con if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createRemotePeeringConnection, policy) if err != nil { + if ociResponse != nil { + response = CreateRemotePeeringConnectionResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateRemotePeeringConnectionResponse); ok { @@ -865,8 +1019,16 @@ func (client VirtualNetworkClient) CreateRouteTable(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createRouteTable, policy) if err != nil { + if ociResponse != nil { + response = CreateRouteTableResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateRouteTableResponse); ok { @@ -915,8 +1077,16 @@ func (client VirtualNetworkClient) CreateSecurityList(ctx context.Context, reque if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createSecurityList, policy) if err != nil { + if ociResponse != nil { + response = CreateSecurityListResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateSecurityListResponse); ok { @@ -960,8 +1130,16 @@ func (client VirtualNetworkClient) CreateServiceGateway(ctx context.Context, req if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createServiceGateway, policy) if err != nil { + if ociResponse != nil { + response = CreateServiceGatewayResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateServiceGatewayResponse); ok { @@ -1023,8 +1201,16 @@ func (client VirtualNetworkClient) CreateSubnet(ctx context.Context, request Cre if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createSubnet, policy) if err != nil { + if ociResponse != nil { + response = CreateSubnetResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateSubnetResponse); ok { @@ -1055,7 +1241,7 @@ func (client VirtualNetworkClient) createSubnet(ctx context.Context, request com return response, err } -// CreateVcn Creates a new Virtual Cloud Network (VCN). For more information, see +// CreateVcn Creates a new virtual cloud network (VCN). For more information, see // VCNs and Subnets (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingVCNs.htm). // For the VCN you must specify a single, contiguous IPv4 CIDR block. Oracle recommends using one of the // private IP address ranges specified in RFC 1918 (https://tools.ietf.org/html/rfc1918) (10.0.0.0/8, @@ -1075,7 +1261,7 @@ func (client VirtualNetworkClient) createSubnet(ctx context.Context, request com // The VCN automatically comes with a default route table, default security list, and default set of DHCP options. // The OCID for each is returned in the response. You can't delete these default objects, but you can change their // contents (that is, change the route rules, security list rules, and so on). -// The VCN and subnets you create are not accessible until you attach an Internet Gateway or set up an IPSec VPN +// The VCN and subnets you create are not accessible until you attach an internet gateway or set up an IPSec VPN // or FastConnect. For more information, see // Overview of the Networking Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/overview.htm). func (client VirtualNetworkClient) CreateVcn(ctx context.Context, request CreateVcnRequest) (response CreateVcnResponse, err error) { @@ -1084,8 +1270,16 @@ func (client VirtualNetworkClient) CreateVcn(ctx context.Context, request Create if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createVcn, policy) if err != nil { + if ociResponse != nil { + response = CreateVcnResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateVcnResponse); ok { @@ -1140,8 +1334,16 @@ func (client VirtualNetworkClient) CreateVirtualCircuit(ctx context.Context, req if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createVirtualCircuit, policy) if err != nil { + if ociResponse != nil { + response = CreateVirtualCircuitResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateVirtualCircuitResponse); ok { @@ -1183,6 +1385,9 @@ func (client VirtualNetworkClient) DeleteCpe(ctx context.Context, request Delete } ociResponse, err = common.Retry(ctx, request, client.deleteCpe, policy) if err != nil { + if ociResponse != nil { + response = DeleteCpeResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteCpeResponse); ok { @@ -1223,6 +1428,9 @@ func (client VirtualNetworkClient) DeleteCrossConnect(ctx context.Context, reque } ociResponse, err = common.Retry(ctx, request, client.deleteCrossConnect, policy) if err != nil { + if ociResponse != nil { + response = DeleteCrossConnectResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteCrossConnectResponse); ok { @@ -1264,6 +1472,9 @@ func (client VirtualNetworkClient) DeleteCrossConnectGroup(ctx context.Context, } ociResponse, err = common.Retry(ctx, request, client.deleteCrossConnectGroup, policy) if err != nil { + if ociResponse != nil { + response = DeleteCrossConnectGroupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteCrossConnectGroupResponse); ok { @@ -1306,6 +1517,9 @@ func (client VirtualNetworkClient) DeleteDhcpOptions(ctx context.Context, reques } ociResponse, err = common.Retry(ctx, request, client.deleteDhcpOptions, policy) if err != nil { + if ociResponse != nil { + response = DeleteDhcpOptionsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteDhcpOptionsResponse); ok { @@ -1348,6 +1562,9 @@ func (client VirtualNetworkClient) DeleteDrg(ctx context.Context, request Delete } ociResponse, err = common.Retry(ctx, request, client.deleteDrg, policy) if err != nil { + if ociResponse != nil { + response = DeleteDrgResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteDrgResponse); ok { @@ -1389,6 +1606,9 @@ func (client VirtualNetworkClient) DeleteDrgAttachment(ctx context.Context, requ } ociResponse, err = common.Retry(ctx, request, client.deleteDrgAttachment, policy) if err != nil { + if ociResponse != nil { + response = DeleteDrgAttachmentResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteDrgAttachmentResponse); ok { @@ -1434,6 +1654,9 @@ func (client VirtualNetworkClient) DeleteIPSecConnection(ctx context.Context, re } ociResponse, err = common.Retry(ctx, request, client.deleteIPSecConnection, policy) if err != nil { + if ociResponse != nil { + response = DeleteIPSecConnectionResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteIPSecConnectionResponse); ok { @@ -1464,7 +1687,7 @@ func (client VirtualNetworkClient) deleteIPSecConnection(ctx context.Context, re return response, err } -// DeleteInternetGateway Deletes the specified Internet Gateway. The Internet Gateway does not have to be disabled, but +// DeleteInternetGateway Deletes the specified internet gateway. The internet gateway does not have to be disabled, but // there must not be a route table that lists it as a target. // This is an asynchronous operation. The gateway's `lifecycleState` will change to TERMINATING temporarily // until the gateway is completely removed. @@ -1476,6 +1699,9 @@ func (client VirtualNetworkClient) DeleteInternetGateway(ctx context.Context, re } ociResponse, err = common.Retry(ctx, request, client.deleteInternetGateway, policy) if err != nil { + if ociResponse != nil { + response = DeleteInternetGatewayResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteInternetGatewayResponse); ok { @@ -1517,6 +1743,9 @@ func (client VirtualNetworkClient) DeleteLocalPeeringGateway(ctx context.Context } ociResponse, err = common.Retry(ctx, request, client.deleteLocalPeeringGateway, policy) if err != nil { + if ociResponse != nil { + response = DeleteLocalPeeringGatewayResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteLocalPeeringGatewayResponse); ok { @@ -1547,6 +1776,51 @@ func (client VirtualNetworkClient) deleteLocalPeeringGateway(ctx context.Context return response, err } +// DeleteNatGateway Deletes the specified NAT gateway. The NAT gateway does not have to be disabled, but there +// must not be a route rule that lists the NAT gateway as a target. +// This is an asynchronous operation. The NAT gateway's `lifecycleState` will change to +// TERMINATING temporarily until the NAT gateway is completely removed. +func (client VirtualNetworkClient) DeleteNatGateway(ctx context.Context, request DeleteNatGatewayRequest) (response DeleteNatGatewayResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteNatGateway, policy) + if err != nil { + if ociResponse != nil { + response = DeleteNatGatewayResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(DeleteNatGatewayResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteNatGatewayResponse") + } + return +} + +// deleteNatGateway implements the OCIOperation interface (enables retrying operations) +func (client VirtualNetworkClient) deleteNatGateway(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/natGateways/{natGatewayId}") + if err != nil { + return nil, err + } + + var response DeleteNatGatewayResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // DeletePrivateIp Unassigns and deletes the specified private IP. You must // specify the object's OCID. The private IP address is returned to // the subnet's pool of available addresses. @@ -1564,6 +1838,9 @@ func (client VirtualNetworkClient) DeletePrivateIp(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.deletePrivateIp, policy) if err != nil { + if ociResponse != nil { + response = DeletePrivateIpResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeletePrivateIpResponse); ok { @@ -1597,6 +1874,9 @@ func (client VirtualNetworkClient) deletePrivateIp(ctx context.Context, request // DeletePublicIp Unassigns and deletes the specified public IP (either ephemeral or reserved). // You must specify the object's OCID. The public IP address is returned to the // Oracle Cloud Infrastructure public IP pool. +// **Note:** You cannot update, unassign, or delete the public IP that Oracle automatically +// assigned to an entity for you (such as a load balancer or NAT gateway). The public IP is +// automatically deleted if the assigned entity is terminated. // For an assigned reserved public IP, the initial unassignment portion of this operation // is asynchronous. Poll the public IP's `lifecycleState` to determine // if the operation succeeded. @@ -1611,6 +1891,9 @@ func (client VirtualNetworkClient) DeletePublicIp(ctx context.Context, request D } ociResponse, err = common.Retry(ctx, request, client.deletePublicIp, policy) if err != nil { + if ociResponse != nil { + response = DeletePublicIpResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeletePublicIpResponse); ok { @@ -1652,6 +1935,9 @@ func (client VirtualNetworkClient) DeleteRemotePeeringConnection(ctx context.Con } ociResponse, err = common.Retry(ctx, request, client.deleteRemotePeeringConnection, policy) if err != nil { + if ociResponse != nil { + response = DeleteRemotePeeringConnectionResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteRemotePeeringConnectionResponse); ok { @@ -1694,6 +1980,9 @@ func (client VirtualNetworkClient) DeleteRouteTable(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.deleteRouteTable, policy) if err != nil { + if ociResponse != nil { + response = DeleteRouteTableResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteRouteTableResponse); ok { @@ -1736,6 +2025,9 @@ func (client VirtualNetworkClient) DeleteSecurityList(ctx context.Context, reque } ociResponse, err = common.Retry(ctx, request, client.deleteSecurityList, policy) if err != nil { + if ociResponse != nil { + response = DeleteSecurityListResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteSecurityListResponse); ok { @@ -1776,6 +2068,9 @@ func (client VirtualNetworkClient) DeleteServiceGateway(ctx context.Context, req } ociResponse, err = common.Retry(ctx, request, client.deleteServiceGateway, policy) if err != nil { + if ociResponse != nil { + response = DeleteServiceGatewayResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteServiceGatewayResponse); ok { @@ -1817,6 +2112,9 @@ func (client VirtualNetworkClient) DeleteSubnet(ctx context.Context, request Del } ociResponse, err = common.Retry(ctx, request, client.deleteSubnet, policy) if err != nil { + if ociResponse != nil { + response = DeleteSubnetResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteSubnetResponse); ok { @@ -1858,6 +2156,9 @@ func (client VirtualNetworkClient) DeleteVcn(ctx context.Context, request Delete } ociResponse, err = common.Retry(ctx, request, client.deleteVcn, policy) if err != nil { + if ociResponse != nil { + response = DeleteVcnResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteVcnResponse); ok { @@ -1900,6 +2201,9 @@ func (client VirtualNetworkClient) DeleteVirtualCircuit(ctx context.Context, req } ociResponse, err = common.Retry(ctx, request, client.deleteVirtualCircuit, policy) if err != nil { + if ociResponse != nil { + response = DeleteVirtualCircuitResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteVirtualCircuitResponse); ok { @@ -1950,6 +2254,9 @@ func (client VirtualNetworkClient) DetachServiceId(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.detachServiceId, policy) if err != nil { + if ociResponse != nil { + response = DetachServiceIdResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DetachServiceIdResponse); ok { @@ -1989,6 +2296,9 @@ func (client VirtualNetworkClient) GetCpe(ctx context.Context, request GetCpeReq } ociResponse, err = common.Retry(ctx, request, client.getCpe, policy) if err != nil { + if ociResponse != nil { + response = GetCpeResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetCpeResponse); ok { @@ -2028,6 +2338,9 @@ func (client VirtualNetworkClient) GetCrossConnect(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.getCrossConnect, policy) if err != nil { + if ociResponse != nil { + response = GetCrossConnectResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetCrossConnectResponse); ok { @@ -2067,6 +2380,9 @@ func (client VirtualNetworkClient) GetCrossConnectGroup(ctx context.Context, req } ociResponse, err = common.Retry(ctx, request, client.getCrossConnectGroup, policy) if err != nil { + if ociResponse != nil { + response = GetCrossConnectGroupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetCrossConnectGroupResponse); ok { @@ -2106,6 +2422,9 @@ func (client VirtualNetworkClient) GetCrossConnectLetterOfAuthority(ctx context. } ociResponse, err = common.Retry(ctx, request, client.getCrossConnectLetterOfAuthority, policy) if err != nil { + if ociResponse != nil { + response = GetCrossConnectLetterOfAuthorityResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetCrossConnectLetterOfAuthorityResponse); ok { @@ -2145,6 +2464,9 @@ func (client VirtualNetworkClient) GetCrossConnectStatus(ctx context.Context, re } ociResponse, err = common.Retry(ctx, request, client.getCrossConnectStatus, policy) if err != nil { + if ociResponse != nil { + response = GetCrossConnectStatusResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetCrossConnectStatusResponse); ok { @@ -2184,6 +2506,9 @@ func (client VirtualNetworkClient) GetDhcpOptions(ctx context.Context, request G } ociResponse, err = common.Retry(ctx, request, client.getDhcpOptions, policy) if err != nil { + if ociResponse != nil { + response = GetDhcpOptionsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetDhcpOptionsResponse); ok { @@ -2223,6 +2548,9 @@ func (client VirtualNetworkClient) GetDrg(ctx context.Context, request GetDrgReq } ociResponse, err = common.Retry(ctx, request, client.getDrg, policy) if err != nil { + if ociResponse != nil { + response = GetDrgResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetDrgResponse); ok { @@ -2262,6 +2590,9 @@ func (client VirtualNetworkClient) GetDrgAttachment(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.getDrgAttachment, policy) if err != nil { + if ociResponse != nil { + response = GetDrgAttachmentResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetDrgAttachmentResponse); ok { @@ -2302,6 +2633,9 @@ func (client VirtualNetworkClient) GetFastConnectProviderService(ctx context.Con } ociResponse, err = common.Retry(ctx, request, client.getFastConnectProviderService, policy) if err != nil { + if ociResponse != nil { + response = GetFastConnectProviderServiceResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetFastConnectProviderServiceResponse); ok { @@ -2343,6 +2677,9 @@ func (client VirtualNetworkClient) GetIPSecConnection(ctx context.Context, reque } ociResponse, err = common.Retry(ctx, request, client.getIPSecConnection, policy) if err != nil { + if ociResponse != nil { + response = GetIPSecConnectionResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetIPSecConnectionResponse); ok { @@ -2383,6 +2720,9 @@ func (client VirtualNetworkClient) GetIPSecConnectionDeviceConfig(ctx context.Co } ociResponse, err = common.Retry(ctx, request, client.getIPSecConnectionDeviceConfig, policy) if err != nil { + if ociResponse != nil { + response = GetIPSecConnectionDeviceConfigResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetIPSecConnectionDeviceConfigResponse); ok { @@ -2422,6 +2762,9 @@ func (client VirtualNetworkClient) GetIPSecConnectionDeviceStatus(ctx context.Co } ociResponse, err = common.Retry(ctx, request, client.getIPSecConnectionDeviceStatus, policy) if err != nil { + if ociResponse != nil { + response = GetIPSecConnectionDeviceStatusResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetIPSecConnectionDeviceStatusResponse); ok { @@ -2452,7 +2795,7 @@ func (client VirtualNetworkClient) getIPSecConnectionDeviceStatus(ctx context.Co return response, err } -// GetInternetGateway Gets the specified Internet Gateway's information. +// GetInternetGateway Gets the specified internet gateway's information. func (client VirtualNetworkClient) GetInternetGateway(ctx context.Context, request GetInternetGatewayRequest) (response GetInternetGatewayResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2461,6 +2804,9 @@ func (client VirtualNetworkClient) GetInternetGateway(ctx context.Context, reque } ociResponse, err = common.Retry(ctx, request, client.getInternetGateway, policy) if err != nil { + if ociResponse != nil { + response = GetInternetGatewayResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetInternetGatewayResponse); ok { @@ -2500,6 +2846,9 @@ func (client VirtualNetworkClient) GetLocalPeeringGateway(ctx context.Context, r } ociResponse, err = common.Retry(ctx, request, client.getLocalPeeringGateway, policy) if err != nil { + if ociResponse != nil { + response = GetLocalPeeringGatewayResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetLocalPeeringGatewayResponse); ok { @@ -2530,6 +2879,48 @@ func (client VirtualNetworkClient) getLocalPeeringGateway(ctx context.Context, r return response, err } +// GetNatGateway Gets the specified NAT gateway's information. +func (client VirtualNetworkClient) GetNatGateway(ctx context.Context, request GetNatGatewayRequest) (response GetNatGatewayResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getNatGateway, policy) + if err != nil { + if ociResponse != nil { + response = GetNatGatewayResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(GetNatGatewayResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetNatGatewayResponse") + } + return +} + +// getNatGateway implements the OCIOperation interface (enables retrying operations) +func (client VirtualNetworkClient) getNatGateway(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/natGateways/{natGatewayId}") + if err != nil { + return nil, err + } + + var response GetNatGatewayResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // GetPrivateIp Gets the specified private IP. You must specify the object's OCID. // Alternatively, you can get the object by using // ListPrivateIps @@ -2542,6 +2933,9 @@ func (client VirtualNetworkClient) GetPrivateIp(ctx context.Context, request Get } ociResponse, err = common.Retry(ctx, request, client.getPrivateIp, policy) if err != nil { + if ociResponse != nil { + response = GetPrivateIpResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetPrivateIpResponse); ok { @@ -2579,7 +2973,7 @@ func (client VirtualNetworkClient) getPrivateIp(ctx context.Context, request com // with the OCID of the private IP that the public IP is assigned to. // **Note:** If you're fetching a reserved public IP that is in the process of being // moved to a different private IP, the service returns the public IP object with -// `lifecycleState` = ASSIGNING and `privateIpId` = OCID of the target private IP. +// `lifecycleState` = ASSIGNING and `assignedEntityId` = OCID of the target private IP. func (client VirtualNetworkClient) GetPublicIp(ctx context.Context, request GetPublicIpRequest) (response GetPublicIpResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2588,6 +2982,9 @@ func (client VirtualNetworkClient) GetPublicIp(ctx context.Context, request GetP } ociResponse, err = common.Retry(ctx, request, client.getPublicIp, policy) if err != nil { + if ociResponse != nil { + response = GetPublicIpResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetPublicIpResponse); ok { @@ -2621,7 +3018,7 @@ func (client VirtualNetworkClient) getPublicIp(ctx context.Context, request comm // GetPublicIpByIpAddress Gets the public IP based on the public IP address (for example, 129.146.2.1). // **Note:** If you're fetching a reserved public IP that is in the process of being // moved to a different private IP, the service returns the public IP object with -// `lifecycleState` = ASSIGNING and `privateIpId` = OCID of the target private IP. +// `lifecycleState` = ASSIGNING and `assignedEntityId` = OCID of the target private IP. func (client VirtualNetworkClient) GetPublicIpByIpAddress(ctx context.Context, request GetPublicIpByIpAddressRequest) (response GetPublicIpByIpAddressResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2630,6 +3027,9 @@ func (client VirtualNetworkClient) GetPublicIpByIpAddress(ctx context.Context, r } ociResponse, err = common.Retry(ctx, request, client.getPublicIpByIpAddress, policy) if err != nil { + if ociResponse != nil { + response = GetPublicIpByIpAddressResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetPublicIpByIpAddressResponse); ok { @@ -2668,8 +3068,8 @@ func (client VirtualNetworkClient) getPublicIpByIpAddress(ctx context.Context, r // private IP, or if you instead call // GetPublicIp or // GetPublicIpByIpAddress, the -// service returns the public IP object with `lifecycleState` = ASSIGNING and `privateIpId` = OCID -// of the target private IP. +// service returns the public IP object with `lifecycleState` = ASSIGNING and +// `assignedEntityId` = OCID of the target private IP. func (client VirtualNetworkClient) GetPublicIpByPrivateIpId(ctx context.Context, request GetPublicIpByPrivateIpIdRequest) (response GetPublicIpByPrivateIpIdResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2678,6 +3078,9 @@ func (client VirtualNetworkClient) GetPublicIpByPrivateIpId(ctx context.Context, } ociResponse, err = common.Retry(ctx, request, client.getPublicIpByPrivateIpId, policy) if err != nil { + if ociResponse != nil { + response = GetPublicIpByPrivateIpIdResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetPublicIpByPrivateIpIdResponse); ok { @@ -2717,6 +3120,9 @@ func (client VirtualNetworkClient) GetRemotePeeringConnection(ctx context.Contex } ociResponse, err = common.Retry(ctx, request, client.getRemotePeeringConnection, policy) if err != nil { + if ociResponse != nil { + response = GetRemotePeeringConnectionResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetRemotePeeringConnectionResponse); ok { @@ -2756,6 +3162,9 @@ func (client VirtualNetworkClient) GetRouteTable(ctx context.Context, request Ge } ociResponse, err = common.Retry(ctx, request, client.getRouteTable, policy) if err != nil { + if ociResponse != nil { + response = GetRouteTableResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetRouteTableResponse); ok { @@ -2795,6 +3204,9 @@ func (client VirtualNetworkClient) GetSecurityList(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.getSecurityList, policy) if err != nil { + if ociResponse != nil { + response = GetSecurityListResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetSecurityListResponse); ok { @@ -2834,6 +3246,9 @@ func (client VirtualNetworkClient) GetService(ctx context.Context, request GetSe } ociResponse, err = common.Retry(ctx, request, client.getService, policy) if err != nil { + if ociResponse != nil { + response = GetServiceResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetServiceResponse); ok { @@ -2873,6 +3288,9 @@ func (client VirtualNetworkClient) GetServiceGateway(ctx context.Context, reques } ociResponse, err = common.Retry(ctx, request, client.getServiceGateway, policy) if err != nil { + if ociResponse != nil { + response = GetServiceGatewayResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetServiceGatewayResponse); ok { @@ -2912,6 +3330,9 @@ func (client VirtualNetworkClient) GetSubnet(ctx context.Context, request GetSub } ociResponse, err = common.Retry(ctx, request, client.getSubnet, policy) if err != nil { + if ociResponse != nil { + response = GetSubnetResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetSubnetResponse); ok { @@ -2951,6 +3372,9 @@ func (client VirtualNetworkClient) GetVcn(ctx context.Context, request GetVcnReq } ociResponse, err = common.Retry(ctx, request, client.getVcn, policy) if err != nil { + if ociResponse != nil { + response = GetVcnResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetVcnResponse); ok { @@ -2990,6 +3414,9 @@ func (client VirtualNetworkClient) GetVirtualCircuit(ctx context.Context, reques } ociResponse, err = common.Retry(ctx, request, client.getVirtualCircuit, policy) if err != nil { + if ociResponse != nil { + response = GetVirtualCircuitResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetVirtualCircuitResponse); ok { @@ -3032,6 +3459,9 @@ func (client VirtualNetworkClient) GetVnic(ctx context.Context, request GetVnicR } ociResponse, err = common.Retry(ctx, request, client.getVnic, policy) if err != nil { + if ociResponse != nil { + response = GetVnicResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetVnicResponse); ok { @@ -3072,6 +3502,9 @@ func (client VirtualNetworkClient) ListAllowedPeerRegionsForRemotePeering(ctx co } ociResponse, err = common.Retry(ctx, request, client.listAllowedPeerRegionsForRemotePeering, policy) if err != nil { + if ociResponse != nil { + response = ListAllowedPeerRegionsForRemotePeeringResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListAllowedPeerRegionsForRemotePeeringResponse); ok { @@ -3102,7 +3535,7 @@ func (client VirtualNetworkClient) listAllowedPeerRegionsForRemotePeering(ctx co return response, err } -// ListCpes Lists the Customer-Premises Equipment objects (CPEs) in the specified compartment. +// ListCpes Lists the customer-premises equipment objects (CPEs) in the specified compartment. func (client VirtualNetworkClient) ListCpes(ctx context.Context, request ListCpesRequest) (response ListCpesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3111,6 +3544,9 @@ func (client VirtualNetworkClient) ListCpes(ctx context.Context, request ListCpe } ociResponse, err = common.Retry(ctx, request, client.listCpes, policy) if err != nil { + if ociResponse != nil { + response = ListCpesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListCpesResponse); ok { @@ -3150,6 +3586,9 @@ func (client VirtualNetworkClient) ListCrossConnectGroups(ctx context.Context, r } ociResponse, err = common.Retry(ctx, request, client.listCrossConnectGroups, policy) if err != nil { + if ociResponse != nil { + response = ListCrossConnectGroupsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListCrossConnectGroupsResponse); ok { @@ -3190,6 +3629,9 @@ func (client VirtualNetworkClient) ListCrossConnectLocations(ctx context.Context } ociResponse, err = common.Retry(ctx, request, client.listCrossConnectLocations, policy) if err != nil { + if ociResponse != nil { + response = ListCrossConnectLocationsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListCrossConnectLocationsResponse); ok { @@ -3230,6 +3672,9 @@ func (client VirtualNetworkClient) ListCrossConnects(ctx context.Context, reques } ociResponse, err = common.Retry(ctx, request, client.listCrossConnects, policy) if err != nil { + if ociResponse != nil { + response = ListCrossConnectsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListCrossConnectsResponse); ok { @@ -3271,6 +3716,9 @@ func (client VirtualNetworkClient) ListCrossconnectPortSpeedShapes(ctx context.C } ociResponse, err = common.Retry(ctx, request, client.listCrossconnectPortSpeedShapes, policy) if err != nil { + if ociResponse != nil { + response = ListCrossconnectPortSpeedShapesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListCrossconnectPortSpeedShapesResponse); ok { @@ -3312,6 +3760,9 @@ func (client VirtualNetworkClient) ListDhcpOptions(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.listDhcpOptions, policy) if err != nil { + if ociResponse != nil { + response = ListDhcpOptionsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListDhcpOptionsResponse); ok { @@ -3352,6 +3803,9 @@ func (client VirtualNetworkClient) ListDrgAttachments(ctx context.Context, reque } ociResponse, err = common.Retry(ctx, request, client.listDrgAttachments, policy) if err != nil { + if ociResponse != nil { + response = ListDrgAttachmentsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListDrgAttachmentsResponse); ok { @@ -3391,6 +3845,9 @@ func (client VirtualNetworkClient) ListDrgs(ctx context.Context, request ListDrg } ociResponse, err = common.Retry(ctx, request, client.listDrgs, policy) if err != nil { + if ociResponse != nil { + response = ListDrgsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListDrgsResponse); ok { @@ -3434,6 +3891,9 @@ func (client VirtualNetworkClient) ListFastConnectProviderServices(ctx context.C } ociResponse, err = common.Retry(ctx, request, client.listFastConnectProviderServices, policy) if err != nil { + if ociResponse != nil { + response = ListFastConnectProviderServicesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListFastConnectProviderServicesResponse); ok { @@ -3475,6 +3935,9 @@ func (client VirtualNetworkClient) ListFastConnectProviderVirtualCircuitBandwidt } ociResponse, err = common.Retry(ctx, request, client.listFastConnectProviderVirtualCircuitBandwidthShapes, policy) if err != nil { + if ociResponse != nil { + response = ListFastConnectProviderVirtualCircuitBandwidthShapesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListFastConnectProviderVirtualCircuitBandwidthShapesResponse); ok { @@ -3515,6 +3978,9 @@ func (client VirtualNetworkClient) ListIPSecConnections(ctx context.Context, req } ociResponse, err = common.Retry(ctx, request, client.listIPSecConnections, policy) if err != nil { + if ociResponse != nil { + response = ListIPSecConnectionsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListIPSecConnectionsResponse); ok { @@ -3545,7 +4011,7 @@ func (client VirtualNetworkClient) listIPSecConnections(ctx context.Context, req return response, err } -// ListInternetGateways Lists the Internet Gateways in the specified VCN and the specified compartment. +// ListInternetGateways Lists the internet gateways in the specified VCN and the specified compartment. func (client VirtualNetworkClient) ListInternetGateways(ctx context.Context, request ListInternetGatewaysRequest) (response ListInternetGatewaysResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3554,6 +4020,9 @@ func (client VirtualNetworkClient) ListInternetGateways(ctx context.Context, req } ociResponse, err = common.Retry(ctx, request, client.listInternetGateways, policy) if err != nil { + if ociResponse != nil { + response = ListInternetGatewaysResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListInternetGatewaysResponse); ok { @@ -3594,6 +4063,9 @@ func (client VirtualNetworkClient) ListLocalPeeringGateways(ctx context.Context, } ociResponse, err = common.Retry(ctx, request, client.listLocalPeeringGateways, policy) if err != nil { + if ociResponse != nil { + response = ListLocalPeeringGatewaysResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListLocalPeeringGatewaysResponse); ok { @@ -3624,6 +4096,49 @@ func (client VirtualNetworkClient) listLocalPeeringGateways(ctx context.Context, return response, err } +// ListNatGateways Lists the NAT gateways in the specified compartment. You may optionally specify a VCN OCID +// to filter the results by VCN. +func (client VirtualNetworkClient) ListNatGateways(ctx context.Context, request ListNatGatewaysRequest) (response ListNatGatewaysResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listNatGateways, policy) + if err != nil { + if ociResponse != nil { + response = ListNatGatewaysResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(ListNatGatewaysResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListNatGatewaysResponse") + } + return +} + +// listNatGateways implements the OCIOperation interface (enables retrying operations) +func (client VirtualNetworkClient) listNatGateways(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/natGateways") + if err != nil { + return nil, err + } + + var response ListNatGatewaysResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ListPrivateIps Lists the PrivateIp objects based // on one of these filters: // - Subnet OCID. @@ -3643,6 +4158,9 @@ func (client VirtualNetworkClient) ListPrivateIps(ctx context.Context, request L } ociResponse, err = common.Retry(ctx, request, client.listPrivateIps, policy) if err != nil { + if ociResponse != nil { + response = ListPrivateIpsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListPrivateIpsResponse); ok { @@ -3673,13 +4191,22 @@ func (client VirtualNetworkClient) listPrivateIps(ctx context.Context, request c return response, err } -// ListPublicIps Lists either the ephemeral or reserved PublicIp objects -// in the specified compartment. -// To list your reserved public IPs, set `scope` = `REGION`, and leave the -// `availabilityDomain` parameter empty. -// To list your ephemeral public IPs, set `scope` = `AVAILABILITY_DOMAIN`, and set the -// `availabilityDomain` parameter to the desired Availability Domain. An ephemeral public IP -// is always in the same Availability Domain and compartment as the private IP it's assigned to. +// ListPublicIps Lists the PublicIp objects +// in the specified compartment. You can filter the list by using query parameters. +// To list your reserved public IPs: +// * Set `scope` = `REGION` (required) +// * Leave the `availabilityDomain` parameter empty +// * Set `lifetime` = `RESERVED` +// To list the ephemeral public IPs assigned to a regional entity such as a NAT gateway: +// * Set `scope` = `REGION` (required) +// * Leave the `availabilityDomain` parameter empty +// * Set `lifetime` = `EPHEMERAL` +// To list the ephemeral public IPs assigned to private IPs: +// * Set `scope` = `AVAILABILITY_DOMAIN` (required) +// * Set the `availabilityDomain` parameter to the desired availability domain (required) +// * Set `lifetime` = `EPHEMERAL` +// **Note:** An ephemeral public IP assigned to a private IP +// is always in the same availability domain and compartment as the private IP. func (client VirtualNetworkClient) ListPublicIps(ctx context.Context, request ListPublicIpsRequest) (response ListPublicIpsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3688,6 +4215,9 @@ func (client VirtualNetworkClient) ListPublicIps(ctx context.Context, request Li } ociResponse, err = common.Retry(ctx, request, client.listPublicIps, policy) if err != nil { + if ociResponse != nil { + response = ListPublicIpsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListPublicIpsResponse); ok { @@ -3728,6 +4258,9 @@ func (client VirtualNetworkClient) ListRemotePeeringConnections(ctx context.Cont } ociResponse, err = common.Retry(ctx, request, client.listRemotePeeringConnections, policy) if err != nil { + if ociResponse != nil { + response = ListRemotePeeringConnectionsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListRemotePeeringConnectionsResponse); ok { @@ -3769,6 +4302,9 @@ func (client VirtualNetworkClient) ListRouteTables(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.listRouteTables, policy) if err != nil { + if ociResponse != nil { + response = ListRouteTablesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListRouteTablesResponse); ok { @@ -3808,6 +4344,9 @@ func (client VirtualNetworkClient) ListSecurityLists(ctx context.Context, reques } ociResponse, err = common.Retry(ctx, request, client.listSecurityLists, policy) if err != nil { + if ociResponse != nil { + response = ListSecurityListsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListSecurityListsResponse); ok { @@ -3848,6 +4387,9 @@ func (client VirtualNetworkClient) ListServiceGateways(ctx context.Context, requ } ociResponse, err = common.Retry(ctx, request, client.listServiceGateways, policy) if err != nil { + if ociResponse != nil { + response = ListServiceGatewaysResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListServiceGatewaysResponse); ok { @@ -3887,6 +4429,9 @@ func (client VirtualNetworkClient) ListServices(ctx context.Context, request Lis } ociResponse, err = common.Retry(ctx, request, client.listServices, policy) if err != nil { + if ociResponse != nil { + response = ListServicesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListServicesResponse); ok { @@ -3926,6 +4471,9 @@ func (client VirtualNetworkClient) ListSubnets(ctx context.Context, request List } ociResponse, err = common.Retry(ctx, request, client.listSubnets, policy) if err != nil { + if ociResponse != nil { + response = ListSubnetsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListSubnetsResponse); ok { @@ -3956,7 +4504,7 @@ func (client VirtualNetworkClient) listSubnets(ctx context.Context, request comm return response, err } -// ListVcns Lists the Virtual Cloud Networks (VCNs) in the specified compartment. +// ListVcns Lists the virtual cloud networks (VCNs) in the specified compartment. func (client VirtualNetworkClient) ListVcns(ctx context.Context, request ListVcnsRequest) (response ListVcnsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3965,6 +4513,9 @@ func (client VirtualNetworkClient) ListVcns(ctx context.Context, request ListVcn } ociResponse, err = common.Retry(ctx, request, client.listVcns, policy) if err != nil { + if ociResponse != nil { + response = ListVcnsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListVcnsResponse); ok { @@ -4004,6 +4555,9 @@ func (client VirtualNetworkClient) ListVirtualCircuitBandwidthShapes(ctx context } ociResponse, err = common.Retry(ctx, request, client.listVirtualCircuitBandwidthShapes, policy) if err != nil { + if ociResponse != nil { + response = ListVirtualCircuitBandwidthShapesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListVirtualCircuitBandwidthShapesResponse); ok { @@ -4044,6 +4598,9 @@ func (client VirtualNetworkClient) ListVirtualCircuitPublicPrefixes(ctx context. } ociResponse, err = common.Retry(ctx, request, client.listVirtualCircuitPublicPrefixes, policy) if err != nil { + if ociResponse != nil { + response = ListVirtualCircuitPublicPrefixesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListVirtualCircuitPublicPrefixesResponse); ok { @@ -4083,6 +4640,9 @@ func (client VirtualNetworkClient) ListVirtualCircuits(ctx context.Context, requ } ociResponse, err = common.Retry(ctx, request, client.listVirtualCircuits, policy) if err != nil { + if ociResponse != nil { + response = ListVirtualCircuitsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListVirtualCircuitsResponse); ok { @@ -4123,6 +4683,9 @@ func (client VirtualNetworkClient) UpdateCpe(ctx context.Context, request Update } ociResponse, err = common.Retry(ctx, request, client.updateCpe, policy) if err != nil { + if ociResponse != nil { + response = UpdateCpeResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateCpeResponse); ok { @@ -4162,6 +4725,9 @@ func (client VirtualNetworkClient) UpdateCrossConnect(ctx context.Context, reque } ociResponse, err = common.Retry(ctx, request, client.updateCrossConnect, policy) if err != nil { + if ociResponse != nil { + response = UpdateCrossConnectResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateCrossConnectResponse); ok { @@ -4202,6 +4768,9 @@ func (client VirtualNetworkClient) UpdateCrossConnectGroup(ctx context.Context, } ociResponse, err = common.Retry(ctx, request, client.updateCrossConnectGroup, policy) if err != nil { + if ociResponse != nil { + response = UpdateCrossConnectGroupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateCrossConnectGroupResponse); ok { @@ -4243,6 +4812,9 @@ func (client VirtualNetworkClient) UpdateDhcpOptions(ctx context.Context, reques } ociResponse, err = common.Retry(ctx, request, client.updateDhcpOptions, policy) if err != nil { + if ociResponse != nil { + response = UpdateDhcpOptionsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateDhcpOptionsResponse); ok { @@ -4282,6 +4854,9 @@ func (client VirtualNetworkClient) UpdateDrg(ctx context.Context, request Update } ociResponse, err = common.Retry(ctx, request, client.updateDrg, policy) if err != nil { + if ociResponse != nil { + response = UpdateDrgResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateDrgResponse); ok { @@ -4322,6 +4897,9 @@ func (client VirtualNetworkClient) UpdateDrgAttachment(ctx context.Context, requ } ociResponse, err = common.Retry(ctx, request, client.updateDrgAttachment, policy) if err != nil { + if ociResponse != nil { + response = UpdateDrgAttachmentResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateDrgAttachmentResponse); ok { @@ -4362,6 +4940,9 @@ func (client VirtualNetworkClient) UpdateIPSecConnection(ctx context.Context, re } ociResponse, err = common.Retry(ctx, request, client.updateIPSecConnection, policy) if err != nil { + if ociResponse != nil { + response = UpdateIPSecConnectionResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateIPSecConnectionResponse); ok { @@ -4392,7 +4973,7 @@ func (client VirtualNetworkClient) updateIPSecConnection(ctx context.Context, re return response, err } -// UpdateInternetGateway Updates the specified Internet Gateway. You can disable/enable it, or change its display name +// UpdateInternetGateway Updates the specified internet gateway. You can disable/enable it, or change its display name // or tags. Avoid entering confidential information. // If the gateway is disabled, that means no traffic will flow to/from the internet even if there's // a route rule that enables that traffic. @@ -4404,6 +4985,9 @@ func (client VirtualNetworkClient) UpdateInternetGateway(ctx context.Context, re } ociResponse, err = common.Retry(ctx, request, client.updateInternetGateway, policy) if err != nil { + if ociResponse != nil { + response = UpdateInternetGatewayResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateInternetGatewayResponse); ok { @@ -4443,6 +5027,9 @@ func (client VirtualNetworkClient) UpdateLocalPeeringGateway(ctx context.Context } ociResponse, err = common.Retry(ctx, request, client.updateLocalPeeringGateway, policy) if err != nil { + if ociResponse != nil { + response = UpdateLocalPeeringGatewayResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateLocalPeeringGatewayResponse); ok { @@ -4473,6 +5060,48 @@ func (client VirtualNetworkClient) updateLocalPeeringGateway(ctx context.Context return response, err } +// UpdateNatGateway Updates the specified NAT gateway. +func (client VirtualNetworkClient) UpdateNatGateway(ctx context.Context, request UpdateNatGatewayRequest) (response UpdateNatGatewayResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.updateNatGateway, policy) + if err != nil { + if ociResponse != nil { + response = UpdateNatGatewayResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(UpdateNatGatewayResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateNatGatewayResponse") + } + return +} + +// updateNatGateway implements the OCIOperation interface (enables retrying operations) +func (client VirtualNetworkClient) updateNatGateway(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPut, "/natGateways/{natGatewayId}") + if err != nil { + return nil, err + } + + var response UpdateNatGatewayResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // UpdatePrivateIp Updates the specified private IP. You must specify the object's OCID. // Use this operation if you want to: // - Move a secondary private IP to a different VNIC in the same subnet. @@ -4489,6 +5118,9 @@ func (client VirtualNetworkClient) UpdatePrivateIp(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.updatePrivateIp, policy) if err != nil { + if ociResponse != nil { + response = UpdatePrivateIpResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdatePrivateIpResponse); ok { @@ -4559,6 +5191,9 @@ func (client VirtualNetworkClient) UpdatePublicIp(ctx context.Context, request U } ociResponse, err = common.Retry(ctx, request, client.updatePublicIp, policy) if err != nil { + if ociResponse != nil { + response = UpdatePublicIpResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdatePublicIpResponse); ok { @@ -4598,6 +5233,9 @@ func (client VirtualNetworkClient) UpdateRemotePeeringConnection(ctx context.Con } ociResponse, err = common.Retry(ctx, request, client.updateRemotePeeringConnection, policy) if err != nil { + if ociResponse != nil { + response = UpdateRemotePeeringConnectionResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateRemotePeeringConnectionResponse); ok { @@ -4639,6 +5277,9 @@ func (client VirtualNetworkClient) UpdateRouteTable(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.updateRouteTable, policy) if err != nil { + if ociResponse != nil { + response = UpdateRouteTableResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateRouteTableResponse); ok { @@ -4681,6 +5322,9 @@ func (client VirtualNetworkClient) UpdateSecurityList(ctx context.Context, reque } ociResponse, err = common.Retry(ctx, request, client.updateSecurityList, policy) if err != nil { + if ociResponse != nil { + response = UpdateSecurityListResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateSecurityListResponse); ok { @@ -4721,6 +5365,9 @@ func (client VirtualNetworkClient) UpdateServiceGateway(ctx context.Context, req } ociResponse, err = common.Retry(ctx, request, client.updateServiceGateway, policy) if err != nil { + if ociResponse != nil { + response = UpdateServiceGatewayResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateServiceGatewayResponse); ok { @@ -4760,6 +5407,9 @@ func (client VirtualNetworkClient) UpdateSubnet(ctx context.Context, request Upd } ociResponse, err = common.Retry(ctx, request, client.updateSubnet, policy) if err != nil { + if ociResponse != nil { + response = UpdateSubnetResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateSubnetResponse); ok { @@ -4800,6 +5450,9 @@ func (client VirtualNetworkClient) UpdateVcn(ctx context.Context, request Update } ociResponse, err = common.Retry(ctx, request, client.updateVcn, policy) if err != nil { + if ociResponse != nil { + response = UpdateVcnResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateVcnResponse); ok { @@ -4860,6 +5513,9 @@ func (client VirtualNetworkClient) UpdateVirtualCircuit(ctx context.Context, req } ociResponse, err = common.Retry(ctx, request, client.updateVirtualCircuit, policy) if err != nil { + if ociResponse != nil { + response = UpdateVirtualCircuitResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateVirtualCircuitResponse); ok { @@ -4899,6 +5555,9 @@ func (client VirtualNetworkClient) UpdateVnic(ctx context.Context, request Updat } ociResponse, err = common.Retry(ctx, request, client.updateVnic, policy) if err != nil { + if ociResponse != nil { + response = UpdateVnicResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateVnicResponse); ok { diff --git a/vendor/github.com/oracle/oci-go-sdk/core/cpe.go b/vendor/github.com/oracle/oci-go-sdk/core/cpe.go index 71e74a484..f00158ced 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/cpe.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/cpe.go @@ -13,13 +13,15 @@ import ( ) // Cpe An object you create when setting up an IPSec VPN between your on-premises network -// and VCN. The `Cpe` is a virtual representation of your Customer-Premises Equipment, +// and VCN. The `Cpe` is a virtual representation of your customer-premises equipment, // which is the actual router on-premises at your site at your end of the IPSec VPN connection. // For more information, // see Overview of the Networking Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/overview.htm). // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, // talk to an administrator. If you're an administrator who needs to write policies to give users access, see // Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type Cpe struct { // The OCID of the compartment containing the CPE. diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_app_catalog_subscription_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_app_catalog_subscription_details.go new file mode 100644 index 000000000..45ea59964 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_app_catalog_subscription_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// APIs for Networking Service, Compute Service, and Block Volume Service. +// + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// CreateAppCatalogSubscriptionDetails details for creating a subscription for a listing resource version. +type CreateAppCatalogSubscriptionDetails struct { + + // The compartmentID for the subscription. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The OCID of the listing. + ListingId *string `mandatory:"false" json:"listingId"` + + // Listing resource version. + ListingResourceVersion *string `mandatory:"false" json:"listingResourceVersion"` + + // Oracle TOU link + OracleTermsOfUseLink *string `mandatory:"false" json:"oracleTermsOfUseLink"` + + // EULA link + EulaLink *string `mandatory:"false" json:"eulaLink"` + + // Date and time the agreements were retrieved, in RFC3339 format. + // Example: `2018-03-20T12:32:53.532Z` + TimeRetrieved *common.SDKTime `mandatory:"false" json:"timeRetrieved"` + + // A generated signature for this listing resource version retrieved the agreements API. + Signature *string `mandatory:"false" json:"signature"` +} + +func (m CreateAppCatalogSubscriptionDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_app_catalog_subscription_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/create_app_catalog_subscription_request_response.go new file mode 100644 index 000000000..fb7d223dc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_app_catalog_subscription_request_response.go @@ -0,0 +1,71 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// CreateAppCatalogSubscriptionRequest wrapper for the CreateAppCatalogSubscription operation +type CreateAppCatalogSubscriptionRequest struct { + + // Request for the creation of a subscription for listing resource version for a compartment. + CreateAppCatalogSubscriptionDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateAppCatalogSubscriptionRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateAppCatalogSubscriptionRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateAppCatalogSubscriptionRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// CreateAppCatalogSubscriptionResponse wrapper for the CreateAppCatalogSubscription operation +type CreateAppCatalogSubscriptionResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The AppCatalogSubscription instance + AppCatalogSubscription `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateAppCatalogSubscriptionResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateAppCatalogSubscriptionResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_boot_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_boot_volume_details.go index 624e86c4f..b2bbe9aa1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_boot_volume_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_boot_volume_details.go @@ -16,17 +16,21 @@ import ( // CreateBootVolumeDetails The representation of CreateBootVolumeDetails type CreateBootVolumeDetails struct { - // The Availability Domain of the boot volume. + // The availability domain of the boot volume. // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` // The OCID of the compartment that contains the boot volume. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // Specifies the boot volume source details for a new boot volume. The volume source is either another boot volume in the same Availability Domain or a boot volume backup. + // Specifies the boot volume source details for a new boot volume. The volume source is either another boot volume in the same availability domain or a boot volume backup. // This is a mandatory field for a boot volume. SourceDetails BootVolumeSourceDetails `mandatory:"true" json:"sourceDetails"` + // If provided, specifies the ID of the boot volume backup policy to assign to the newly + // created boot volume. If omitted, no policy will be assigned. + BackupPolicyId *string `mandatory:"false" json:"backupPolicyId"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` @@ -42,8 +46,11 @@ type CreateBootVolumeDetails struct { // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + // The OCID of the KMS key to be used as the master encryption key for the boot volume. + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` + // The size of the volume in GBs. - SizeInGBs *int `mandatory:"false" json:"sizeInGBs"` + SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` } func (m CreateBootVolumeDetails) String() string { @@ -53,10 +60,12 @@ func (m CreateBootVolumeDetails) String() string { // UnmarshalJSON unmarshals from json func (m *CreateBootVolumeDetails) UnmarshalJSON(data []byte) (e error) { model := struct { + BackupPolicyId *string `json:"backupPolicyId"` DefinedTags map[string]map[string]interface{} `json:"definedTags"` DisplayName *string `json:"displayName"` FreeformTags map[string]string `json:"freeformTags"` - SizeInGBs *int `json:"sizeInGBs"` + KmsKeyId *string `json:"kmsKeyId"` + SizeInGBs *int64 `json:"sizeInGBs"` AvailabilityDomain *string `json:"availabilityDomain"` CompartmentId *string `json:"compartmentId"` SourceDetails bootvolumesourcedetails `json:"sourceDetails"` @@ -66,9 +75,11 @@ func (m *CreateBootVolumeDetails) UnmarshalJSON(data []byte) (e error) { if e != nil { return } + m.BackupPolicyId = model.BackupPolicyId m.DefinedTags = model.DefinedTags m.DisplayName = model.DisplayName m.FreeformTags = model.FreeformTags + m.KmsKeyId = model.KmsKeyId m.SizeInGBs = model.SizeInGBs m.AvailabilityDomain = model.AvailabilityDomain m.CompartmentId = model.CompartmentId @@ -76,6 +87,10 @@ func (m *CreateBootVolumeDetails) UnmarshalJSON(data []byte) (e error) { if e != nil { return } - m.SourceDetails = nn.(BootVolumeSourceDetails) + if nn != nil { + m.SourceDetails = nn.(BootVolumeSourceDetails) + } else { + m.SourceDetails = nil + } return } diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_dhcp_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_dhcp_details.go index 9e2d0cca3..76fe80642 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_dhcp_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_dhcp_details.go @@ -69,7 +69,11 @@ func (m *CreateDhcpDetails) UnmarshalJSON(data []byte) (e error) { if err != nil { return err } - m.Options[i] = nn.(DhcpOption) + if nn != nil { + m.Options[i] = nn.(DhcpOption) + } else { + m.Options[i] = nil + } } m.VcnId = model.VcnId return diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_image_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_image_details.go index 05f50ca54..e7e9081c9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_image_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_image_details.go @@ -45,6 +45,7 @@ type CreateImageDetails struct { // Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are: // * `NATIVE` - VM instances launch with iSCSI boot and VFIO devices. The default value for Oracle-provided images. // * `EMULATED` - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. + // * `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using virtio drivers. // * `CUSTOM` - VM instances launch with custom configuration settings specified in the `LaunchOptions` parameter. LaunchMode CreateImageDetailsLaunchModeEnum `mandatory:"false" json:"launchMode,omitempty"` } @@ -76,7 +77,11 @@ func (m *CreateImageDetails) UnmarshalJSON(data []byte) (e error) { if e != nil { return } - m.ImageSourceDetails = nn.(ImageSourceDetails) + if nn != nil { + m.ImageSourceDetails = nn.(ImageSourceDetails) + } else { + m.ImageSourceDetails = nil + } m.InstanceId = model.InstanceId m.LaunchMode = model.LaunchMode m.CompartmentId = model.CompartmentId @@ -88,15 +93,17 @@ type CreateImageDetailsLaunchModeEnum string // Set of constants representing the allowable values for CreateImageDetailsLaunchMode const ( - CreateImageDetailsLaunchModeNative CreateImageDetailsLaunchModeEnum = "NATIVE" - CreateImageDetailsLaunchModeEmulated CreateImageDetailsLaunchModeEnum = "EMULATED" - CreateImageDetailsLaunchModeCustom CreateImageDetailsLaunchModeEnum = "CUSTOM" + CreateImageDetailsLaunchModeNative CreateImageDetailsLaunchModeEnum = "NATIVE" + CreateImageDetailsLaunchModeEmulated CreateImageDetailsLaunchModeEnum = "EMULATED" + CreateImageDetailsLaunchModeParavirtualized CreateImageDetailsLaunchModeEnum = "PARAVIRTUALIZED" + CreateImageDetailsLaunchModeCustom CreateImageDetailsLaunchModeEnum = "CUSTOM" ) var mappingCreateImageDetailsLaunchMode = map[string]CreateImageDetailsLaunchModeEnum{ - "NATIVE": CreateImageDetailsLaunchModeNative, - "EMULATED": CreateImageDetailsLaunchModeEmulated, - "CUSTOM": CreateImageDetailsLaunchModeCustom, + "NATIVE": CreateImageDetailsLaunchModeNative, + "EMULATED": CreateImageDetailsLaunchModeEmulated, + "PARAVIRTUALIZED": CreateImageDetailsLaunchModeParavirtualized, + "CUSTOM": CreateImageDetailsLaunchModeCustom, } // GetCreateImageDetailsLaunchModeEnumValues Enumerates the set of values for CreateImageDetailsLaunchMode diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_internet_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_internet_gateway_details.go index f936a1351..6f1635123 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_internet_gateway_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_internet_gateway_details.go @@ -15,13 +15,13 @@ import ( // CreateInternetGatewayDetails The representation of CreateInternetGatewayDetails type CreateInternetGatewayDetails struct { - // The OCID of the compartment to contain the Internet Gateway. + // The OCID of the compartment to contain the internet gateway. CompartmentId *string `mandatory:"true" json:"compartmentId"` // Whether the gateway is enabled upon creation. IsEnabled *bool `mandatory:"true" json:"isEnabled"` - // The OCID of the VCN the Internet Gateway is attached to. + // The OCID of the VCN the internet gateway is attached to. VcnId *string `mandatory:"true" json:"vcnId"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_internet_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/create_internet_gateway_request_response.go index 1f4b59406..e2ae6440d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_internet_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_internet_gateway_request_response.go @@ -11,7 +11,7 @@ import ( // CreateInternetGatewayRequest wrapper for the CreateInternetGateway operation type CreateInternetGatewayRequest struct { - // Details for creating a new Internet Gateway. + // Details for creating a new internet gateway. CreateInternetGatewayDetails `contributesTo:"body"` // A token that uniquely identifies a request so it can be retried in case of a timeout or diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_nat_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_nat_gateway_details.go new file mode 100644 index 000000000..d76a064c5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_nat_gateway_details.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// APIs for Networking Service, Compute Service, and Block Volume Service. +// + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// CreateNatGatewayDetails The representation of CreateNatGatewayDetails +type CreateNatGatewayDetails struct { + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment to contain the + // NAT gateway. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the VCN the gateway belongs to. + VcnId *string `mandatory:"true" json:"vcnId"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Whether the NAT gateway blocks traffic through it. The default is `false`. + // Example: `true` + BlockTraffic *bool `mandatory:"false" json:"blockTraffic"` +} + +func (m CreateNatGatewayDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_nat_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/create_nat_gateway_request_response.go new file mode 100644 index 000000000..7426872b7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_nat_gateway_request_response.go @@ -0,0 +1,71 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// CreateNatGatewayRequest wrapper for the CreateNatGateway operation +type CreateNatGatewayRequest struct { + + // Details for creating a NAT gateway. + CreateNatGatewayDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateNatGatewayRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateNatGatewayRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateNatGatewayRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// CreateNatGatewayResponse wrapper for the CreateNatGateway operation +type CreateNatGatewayResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The NatGateway instance + NatGateway `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateNatGatewayResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateNatGatewayResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_service_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_service_gateway_details.go index d41a8d2c3..dc56aaa4a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_service_gateway_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_service_gateway_details.go @@ -15,10 +15,10 @@ import ( // CreateServiceGatewayDetails The representation of CreateServiceGatewayDetails type CreateServiceGatewayDetails struct { - // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment to contain the Service Gateway. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment to contain the service gateway. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // List of the Service OCIDs. These are the Services which will be enabled on the Service Gateway. This list can be empty. + // List of the service OCIDs. These are the services that will be enabled on the service gateway. This list can be empty. Services []ServiceIdRequestDetails `mandatory:"true" json:"services"` // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the VCN. diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_subnet_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_subnet_details.go index 4fd691c14..ba18f2536 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_subnet_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_subnet_details.go @@ -15,7 +15,7 @@ import ( // CreateSubnetDetails The representation of CreateSubnetDetails type CreateSubnetDetails struct { - // The Availability Domain to contain the subnet. + // The availability domain to contain the subnet. // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_virtual_circuit_public_prefix_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_virtual_circuit_public_prefix_details.go index 10e13c8f5..b910ad0b5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_virtual_circuit_public_prefix_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_virtual_circuit_public_prefix_details.go @@ -16,7 +16,7 @@ import ( type CreateVirtualCircuitPublicPrefixDetails struct { // An individual public IP prefix (CIDR) to add to the public virtual circuit. - // Must be /24 or less specific. + // Must be /31 or less specific. CidrBlock *string `mandatory:"true" json:"cidrBlock"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_volume_details.go index 222d43c47..54bde3629 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_volume_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_volume_details.go @@ -16,7 +16,7 @@ import ( // CreateVolumeDetails The representation of CreateVolumeDetails type CreateVolumeDetails struct { - // The Availability Domain of the volume. + // The availability domain of the volume. // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` @@ -42,14 +42,17 @@ type CreateVolumeDetails struct { // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + // The OCID of the KMS key to be used as the master encryption key for the volume. + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` + // The size of the volume in GBs. - SizeInGBs *int `mandatory:"false" json:"sizeInGBs"` + SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` // The size of the volume in MBs. The value must be a multiple of 1024. // This field is deprecated. Use sizeInGBs instead. - SizeInMBs *int `mandatory:"false" json:"sizeInMBs"` + SizeInMBs *int64 `mandatory:"false" json:"sizeInMBs"` - // Specifies the volume source details for a new Block volume. The volume source is either another Block volume in the same Availability Domain or a Block volume backup. + // Specifies the volume source details for a new Block volume. The volume source is either another Block volume in the same availability domain or a Block volume backup. // This is an optional field. If not specified or set to null, the new Block volume will be empty. // When specified, the new Block volume will contain data from the source volume or backup. SourceDetails VolumeSourceDetails `mandatory:"false" json:"sourceDetails"` @@ -71,8 +74,9 @@ func (m *CreateVolumeDetails) UnmarshalJSON(data []byte) (e error) { DefinedTags map[string]map[string]interface{} `json:"definedTags"` DisplayName *string `json:"displayName"` FreeformTags map[string]string `json:"freeformTags"` - SizeInGBs *int `json:"sizeInGBs"` - SizeInMBs *int `json:"sizeInMBs"` + KmsKeyId *string `json:"kmsKeyId"` + SizeInGBs *int64 `json:"sizeInGBs"` + SizeInMBs *int64 `json:"sizeInMBs"` SourceDetails volumesourcedetails `json:"sourceDetails"` VolumeBackupId *string `json:"volumeBackupId"` AvailabilityDomain *string `json:"availabilityDomain"` @@ -87,13 +91,18 @@ func (m *CreateVolumeDetails) UnmarshalJSON(data []byte) (e error) { m.DefinedTags = model.DefinedTags m.DisplayName = model.DisplayName m.FreeformTags = model.FreeformTags + m.KmsKeyId = model.KmsKeyId m.SizeInGBs = model.SizeInGBs m.SizeInMBs = model.SizeInMBs nn, e := model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData) if e != nil { return } - m.SourceDetails = nn.(VolumeSourceDetails) + if nn != nil { + m.SourceDetails = nn.(VolumeSourceDetails) + } else { + m.SourceDetails = nil + } m.VolumeBackupId = model.VolumeBackupId m.AvailabilityDomain = model.AvailabilityDomain m.CompartmentId = model.CompartmentId diff --git a/vendor/github.com/oracle/oci-go-sdk/core/create_volume_group_details.go b/vendor/github.com/oracle/oci-go-sdk/core/create_volume_group_details.go index cf750b425..39a724a9f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/create_volume_group_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/create_volume_group_details.go @@ -16,14 +16,14 @@ import ( // CreateVolumeGroupDetails The representation of CreateVolumeGroupDetails type CreateVolumeGroupDetails struct { - // The Availability Domain of the volume group. + // The availability domain of the volume group. AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` // The OCID of the compartment that contains the volume group. CompartmentId *string `mandatory:"true" json:"compartmentId"` // Specifies the volume group source details for a new volume group. The volume source is either another a list of - // volume ids in the same Availability Domain, another volume group or a volume group backup. + // volume ids in the same availability domain, another volume group or a volume group backup. SourceDetails VolumeGroupSourceDetails `mandatory:"true" json:"sourceDetails"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. @@ -69,6 +69,10 @@ func (m *CreateVolumeGroupDetails) UnmarshalJSON(data []byte) (e error) { if e != nil { return } - m.SourceDetails = nn.(VolumeGroupSourceDetails) + if nn != nil { + m.SourceDetails = nn.(VolumeGroupSourceDetails) + } else { + m.SourceDetails = nil + } return } diff --git a/vendor/github.com/oracle/oci-go-sdk/core/cross_connect.go b/vendor/github.com/oracle/oci-go-sdk/core/cross_connect.go index 67f43bf74..0c7bbc5ea 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/cross_connect.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/cross_connect.go @@ -25,6 +25,8 @@ import ( // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, // talk to an administrator. If you're an administrator who needs to write policies to give users access, see // Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type CrossConnect struct { // The OCID of the compartment containing the cross-connect group. diff --git a/vendor/github.com/oracle/oci-go-sdk/core/cross_connect_group.go b/vendor/github.com/oracle/oci-go-sdk/core/cross_connect_group.go index 2193bf7e7..3531c846c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/cross_connect_group.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/cross_connect_group.go @@ -23,6 +23,8 @@ import ( // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, // talk to an administrator. If you're an administrator who needs to write policies to give users access, see // Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type CrossConnectGroup struct { // The OCID of the compartment containing the cross-connect group. diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_app_catalog_subscription_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_app_catalog_subscription_request_response.go new file mode 100644 index 000000000..701aedd20 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_app_catalog_subscription_request_response.go @@ -0,0 +1,64 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// DeleteAppCatalogSubscriptionRequest wrapper for the DeleteAppCatalogSubscription operation +type DeleteAppCatalogSubscriptionRequest struct { + + // The OCID of the listing. + ListingId *string `mandatory:"true" contributesTo:"query" name:"listingId"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // Listing Resource Version. + ResourceVersion *string `mandatory:"true" contributesTo:"query" name:"resourceVersion"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteAppCatalogSubscriptionRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteAppCatalogSubscriptionRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteAppCatalogSubscriptionRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// DeleteAppCatalogSubscriptionResponse wrapper for the DeleteAppCatalogSubscription operation +type DeleteAppCatalogSubscriptionResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteAppCatalogSubscriptionResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteAppCatalogSubscriptionResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_boot_volume_kms_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_boot_volume_kms_key_request_response.go new file mode 100644 index 000000000..81fd8462a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_boot_volume_kms_key_request_response.go @@ -0,0 +1,63 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// DeleteBootVolumeKmsKeyRequest wrapper for the DeleteBootVolumeKmsKey operation +type DeleteBootVolumeKmsKeyRequest struct { + + // The OCID of the boot volume. + BootVolumeId *string `mandatory:"true" contributesTo:"path" name:"bootVolumeId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteBootVolumeKmsKeyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteBootVolumeKmsKeyRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteBootVolumeKmsKeyRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// DeleteBootVolumeKmsKeyResponse wrapper for the DeleteBootVolumeKmsKey operation +type DeleteBootVolumeKmsKeyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteBootVolumeKmsKeyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteBootVolumeKmsKeyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_internet_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_internet_gateway_request_response.go index a07f5d85c..1fc78db68 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/delete_internet_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_internet_gateway_request_response.go @@ -11,7 +11,7 @@ import ( // DeleteInternetGatewayRequest wrapper for the DeleteInternetGateway operation type DeleteInternetGatewayRequest struct { - // The OCID of the Internet Gateway. + // The OCID of the internet gateway. IgId *string `mandatory:"true" contributesTo:"path" name:"igId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_nat_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_nat_gateway_request_response.go new file mode 100644 index 000000000..924b83991 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_nat_gateway_request_response.go @@ -0,0 +1,63 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// DeleteNatGatewayRequest wrapper for the DeleteNatGateway operation +type DeleteNatGatewayRequest struct { + + // The NAT gateway's OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + NatGatewayId *string `mandatory:"true" contributesTo:"path" name:"natGatewayId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteNatGatewayRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteNatGatewayRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteNatGatewayRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// DeleteNatGatewayResponse wrapper for the DeleteNatGateway operation +type DeleteNatGatewayResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteNatGatewayResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteNatGatewayResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/delete_volume_kms_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/delete_volume_kms_key_request_response.go new file mode 100644 index 000000000..66fa225bd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/delete_volume_kms_key_request_response.go @@ -0,0 +1,63 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// DeleteVolumeKmsKeyRequest wrapper for the DeleteVolumeKmsKey operation +type DeleteVolumeKmsKeyRequest struct { + + // The OCID of the volume. + VolumeId *string `mandatory:"true" contributesTo:"path" name:"volumeId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteVolumeKmsKeyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteVolumeKmsKeyRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteVolumeKmsKeyRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// DeleteVolumeKmsKeyResponse wrapper for the DeleteVolumeKmsKey operation +type DeleteVolumeKmsKeyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteVolumeKmsKeyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteVolumeKmsKeyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/detach_service_id_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/detach_service_id_request_response.go index 7fdb08998..e4fa55dd3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/detach_service_id_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/detach_service_id_request_response.go @@ -14,7 +14,7 @@ type DetachServiceIdRequest struct { // The service gateway's OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). ServiceGatewayId *string `mandatory:"true" contributesTo:"path" name:"serviceGatewayId"` - // ServiceId of Service to be detached from a Service Gateway. + // ServiceId of Service to be detached from a service gateway. DetachServiceDetails ServiceIdRequestDetails `contributesTo:"body"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` diff --git a/vendor/github.com/oracle/oci-go-sdk/core/dhcp_dns_option.go b/vendor/github.com/oracle/oci-go-sdk/core/dhcp_dns_option.go index 51237ca28..ac9fde20b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/dhcp_dns_option.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/dhcp_dns_option.go @@ -18,13 +18,13 @@ import ( // DNS in Your Virtual Cloud Network (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm). type DhcpDnsOption struct { - // If you set `serverType` to `CustomDnsServer`, specify the IP address - // of at least one DNS server of your choice (three maximum). + // If you set `serverType` to `CustomDnsServer`, specify the + // IP address of at least one DNS server of your choice (three maximum). gd CustomDnsServers []string `mandatory:"false" json:"customDnsServers"` - // - **VcnLocal:** Reserved for future use. - // - **VcnLocalPlusInternet:** Also referred to as "Internet and VCN Resolver". - // Instances can resolve internet hostnames (no Internet Gateway is required), + // * **VcnLocal:** Reserved for future use. + // * **VcnLocalPlusInternet:** Also referred to as "Internet and VCN Resolver". + // Instances can resolve internet hostnames (no internet gateway is required), // and can resolve hostnames of instances in the VCN. This is the default // value in the default set of DHCP options in the VCN. For the Internet and // VCN Resolver to work across the VCN, there must also be a DNS label set for @@ -33,7 +33,8 @@ type DhcpDnsOption struct { // you determine the hostname corresponding to the private IP address. For more // information, see // DNS in Your Virtual Cloud Network (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm). - // - **CustomDnsServer:** Instances use a DNS server of your choice (three maximum). + // * **CustomDnsServer:** Instances use a DNS server of your choice (three + // maximum). ServerType DhcpDnsOptionServerTypeEnum `mandatory:"true" json:"serverType"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/core/dhcp_option.go b/vendor/github.com/oracle/oci-go-sdk/core/dhcp_option.go index 742f3411b..db8a7f84c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/dhcp_option.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/dhcp_option.go @@ -44,6 +44,11 @@ func (m *dhcpoption) UnmarshalJSON(data []byte) error { // UnmarshalPolymorphicJSON unmarshals polymorphic json func (m *dhcpoption) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + var err error switch m.Type { case "DomainNameServer": @@ -55,7 +60,7 @@ func (m *dhcpoption) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) err = json.Unmarshal(data, &mm) return mm, err default: - return m, nil + return *m, nil } } diff --git a/vendor/github.com/oracle/oci-go-sdk/core/dhcp_options.go b/vendor/github.com/oracle/oci-go-sdk/core/dhcp_options.go index aa28c0479..fe5bf02c0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/dhcp_options.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/dhcp_options.go @@ -24,6 +24,8 @@ import ( // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, // talk to an administrator. If you're an administrator who needs to write policies to give users access, see // Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type DhcpOptions struct { // The OCID of the compartment containing the set of DHCP options. @@ -95,7 +97,11 @@ func (m *DhcpOptions) UnmarshalJSON(data []byte) (e error) { if err != nil { return err } - m.Options[i] = nn.(DhcpOption) + if nn != nil { + m.Options[i] = nn.(DhcpOption) + } else { + m.Options[i] = nil + } } m.TimeCreated = model.TimeCreated m.VcnId = model.VcnId diff --git a/vendor/github.com/oracle/oci-go-sdk/core/drg.go b/vendor/github.com/oracle/oci-go-sdk/core/drg.go index 224faec55..48ae4e512 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/drg.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/drg.go @@ -12,7 +12,7 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// Drg A Dynamic Routing Gateway (DRG), which is a virtual router that provides a path for private +// Drg A dynamic routing gateway (DRG), which is a virtual router that provides a path for private // network traffic between your VCN and your existing network. You use it with other Networking // Service components to create an IPSec VPN or a connection that uses // Oracle Cloud Infrastructure FastConnect. For more information, see @@ -20,6 +20,8 @@ import ( // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, // talk to an administrator. If you're an administrator who needs to write policies to give users access, see // Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type Drg struct { // The OCID of the compartment containing the DRG. diff --git a/vendor/github.com/oracle/oci-go-sdk/core/drg_attachment.go b/vendor/github.com/oracle/oci-go-sdk/core/drg_attachment.go index 108763457..eaf7f6195 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/drg_attachment.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/drg_attachment.go @@ -14,6 +14,8 @@ import ( // DrgAttachment A link between a DRG and VCN. For more information, see // Overview of the Networking Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/overview.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type DrgAttachment struct { // The OCID of the compartment containing the DRG attachment. diff --git a/vendor/github.com/oracle/oci-go-sdk/core/egress_security_rule.go b/vendor/github.com/oracle/oci-go-sdk/core/egress_security_rule.go index ed40929de..89c0d0665 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/egress_security_rule.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/egress_security_rule.go @@ -15,8 +15,13 @@ import ( // EgressSecurityRule A rule for allowing outbound IP packets. type EgressSecurityRule struct { - // The destination service cidrBlock or destination IP address range in CIDR notation for the egress rule. - // This is the range of IP addresses that a packet originating from the instance can go to. + // Conceptually, this is the range of IP addresses that a packet originating from the instance + // can go to. + // Allowed values: + // * IP address range in CIDR notation. For example: `192.168.1.0/24` + // * The `cidrBlock` value for a Service, if you're + // setting up a security list rule for traffic destined for a particular service through + // a service gateway. For example: `oci-phx-objectstorage` Destination *string `mandatory:"true" json:"destination"` // The transport protocol. Specify either `all` or an IPv4 protocol number as @@ -25,9 +30,12 @@ type EgressSecurityRule struct { // Options are supported only for ICMP ("1"), TCP ("6"), and UDP ("17"). Protocol *string `mandatory:"true" json:"protocol"` - // Type of destination for EgressSecurityRule. SERVICE_CIDR_BLOCK should be used if destination is a service - // cidrBlock. CIDR_BLOCK should be used if destination is IP address range in CIDR notation. - // It defaults to CIDR_BLOCK, if not specified. + // Type of destination for the rule. The default is `CIDR_BLOCK`. + // Allowed values: + // * `CIDR_BLOCK`: If the rule's `destination` is an IP address range in CIDR notation. + // * `SERVICE_CIDR_BLOCK`: If the rule's `destination` is the `cidrBlock` value for a + // Service (the rule is for traffic destined for a + // particular service through a service gateway). DestinationType EgressSecurityRuleDestinationTypeEnum `mandatory:"false" json:"destinationType,omitempty"` // Optional and valid only for ICMP. Use to specify a particular ICMP type and code diff --git a/vendor/github.com/oracle/oci-go-sdk/core/export_image_details.go b/vendor/github.com/oracle/oci-go-sdk/core/export_image_details.go index f066a58a7..86573a4f6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/export_image_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/export_image_details.go @@ -46,6 +46,11 @@ func (m *exportimagedetails) UnmarshalJSON(data []byte) error { // UnmarshalPolymorphicJSON unmarshals polymorphic json func (m *exportimagedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + var err error switch m.DestinationType { case "objectStorageUri": @@ -57,7 +62,7 @@ func (m *exportimagedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, err = json.Unmarshal(data, &mm) return mm, err default: - return m, nil + return *m, nil } } diff --git a/vendor/github.com/oracle/oci-go-sdk/core/fast_connect_provider_service.go b/vendor/github.com/oracle/oci-go-sdk/core/fast_connect_provider_service.go index 1b8dcca1d..15a87368c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/fast_connect_provider_service.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/fast_connect_provider_service.go @@ -19,7 +19,7 @@ type FastConnectProviderService struct { // The OCID of the service offered by the provider. Id *string `mandatory:"true" json:"id"` - // Private peering BGP management. + // Who is responsible for managing the private peering BGP information. PrivatePeeringBgpManagement FastConnectProviderServicePrivatePeeringBgpManagementEnum `mandatory:"true" json:"privatePeeringBgpManagement"` // The name of the provider. @@ -28,7 +28,7 @@ type FastConnectProviderService struct { // The name of the service offered by the provider. ProviderServiceName *string `mandatory:"true" json:"providerServiceName"` - // Public peering BGP management. + // Who is responsible for managing the public peering BGP information. PublicPeeringBgpManagement FastConnectProviderServicePublicPeeringBgpManagementEnum `mandatory:"true" json:"publicPeeringBgpManagement"` // Provider service type. diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_app_catalog_listing_agreements_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_app_catalog_listing_agreements_request_response.go new file mode 100644 index 000000000..3713b8787 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_app_catalog_listing_agreements_request_response.go @@ -0,0 +1,67 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// GetAppCatalogListingAgreementsRequest wrapper for the GetAppCatalogListingAgreements operation +type GetAppCatalogListingAgreementsRequest struct { + + // The OCID of the listing. + ListingId *string `mandatory:"true" contributesTo:"path" name:"listingId"` + + // Listing Resource Version. + ResourceVersion *string `mandatory:"true" contributesTo:"path" name:"resourceVersion"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetAppCatalogListingAgreementsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetAppCatalogListingAgreementsRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetAppCatalogListingAgreementsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// GetAppCatalogListingAgreementsResponse wrapper for the GetAppCatalogListingAgreements operation +type GetAppCatalogListingAgreementsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The AppCatalogListingResourceVersionAgreements instance + AppCatalogListingResourceVersionAgreements `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetAppCatalogListingAgreementsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetAppCatalogListingAgreementsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_app_catalog_listing_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_app_catalog_listing_request_response.go new file mode 100644 index 000000000..29e79d794 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_app_catalog_listing_request_response.go @@ -0,0 +1,64 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// GetAppCatalogListingRequest wrapper for the GetAppCatalogListing operation +type GetAppCatalogListingRequest struct { + + // The OCID of the listing. + ListingId *string `mandatory:"true" contributesTo:"path" name:"listingId"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetAppCatalogListingRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetAppCatalogListingRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetAppCatalogListingRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// GetAppCatalogListingResponse wrapper for the GetAppCatalogListing operation +type GetAppCatalogListingResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The AppCatalogListing instance + AppCatalogListing `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetAppCatalogListingResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetAppCatalogListingResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_app_catalog_listing_resource_version_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_app_catalog_listing_resource_version_request_response.go new file mode 100644 index 000000000..53c622230 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_app_catalog_listing_resource_version_request_response.go @@ -0,0 +1,67 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// GetAppCatalogListingResourceVersionRequest wrapper for the GetAppCatalogListingResourceVersion operation +type GetAppCatalogListingResourceVersionRequest struct { + + // The OCID of the listing. + ListingId *string `mandatory:"true" contributesTo:"path" name:"listingId"` + + // Listing Resource Version. + ResourceVersion *string `mandatory:"true" contributesTo:"path" name:"resourceVersion"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetAppCatalogListingResourceVersionRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetAppCatalogListingResourceVersionRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetAppCatalogListingResourceVersionRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// GetAppCatalogListingResourceVersionResponse wrapper for the GetAppCatalogListingResourceVersion operation +type GetAppCatalogListingResourceVersionResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The AppCatalogListingResourceVersion instance + AppCatalogListingResourceVersion `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetAppCatalogListingResourceVersionResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetAppCatalogListingResourceVersionResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_boot_volume_kms_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_boot_volume_kms_key_request_response.go new file mode 100644 index 000000000..e88355a6d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_boot_volume_kms_key_request_response.go @@ -0,0 +1,69 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// GetBootVolumeKmsKeyRequest wrapper for the GetBootVolumeKmsKey operation +type GetBootVolumeKmsKeyRequest struct { + + // The OCID of the boot volume. + BootVolumeId *string `mandatory:"true" contributesTo:"path" name:"bootVolumeId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetBootVolumeKmsKeyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetBootVolumeKmsKeyRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetBootVolumeKmsKeyRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// GetBootVolumeKmsKeyResponse wrapper for the GetBootVolumeKmsKey operation +type GetBootVolumeKmsKeyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The BootVolumeKmsKey instance + BootVolumeKmsKey `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetBootVolumeKmsKeyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetBootVolumeKmsKeyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_internet_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_internet_gateway_request_response.go index 88e355cb7..3ae87c648 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_internet_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_internet_gateway_request_response.go @@ -11,7 +11,7 @@ import ( // GetInternetGatewayRequest wrapper for the GetInternetGateway operation type GetInternetGatewayRequest struct { - // The OCID of the Internet Gateway. + // The OCID of the internet gateway. IgId *string `mandatory:"true" contributesTo:"path" name:"igId"` // Unique Oracle-assigned identifier for the request. diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_nat_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_nat_gateway_request_response.go new file mode 100644 index 000000000..52aa27482 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_nat_gateway_request_response.go @@ -0,0 +1,64 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// GetNatGatewayRequest wrapper for the GetNatGateway operation +type GetNatGatewayRequest struct { + + // The NAT gateway's OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + NatGatewayId *string `mandatory:"true" contributesTo:"path" name:"natGatewayId"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetNatGatewayRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetNatGatewayRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetNatGatewayRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// GetNatGatewayResponse wrapper for the GetNatGateway operation +type GetNatGatewayResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The NatGateway instance + NatGateway `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetNatGatewayResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetNatGatewayResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_volume_backup_policy_asset_assignment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_volume_backup_policy_asset_assignment_request_response.go index 8d1c8a24f..80679a0aa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/get_volume_backup_policy_asset_assignment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_volume_backup_policy_asset_assignment_request_response.go @@ -14,11 +14,15 @@ type GetVolumeBackupPolicyAssetAssignmentRequest struct { // The OCID of an asset (e.g. a volume). AssetId *string `mandatory:"true" contributesTo:"query" name:"assetId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -53,9 +57,9 @@ type GetVolumeBackupPolicyAssetAssignmentResponse struct { // A list of []VolumeBackupPolicyAssignment instances Items []VolumeBackupPolicyAssignment `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/get_volume_kms_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/get_volume_kms_key_request_response.go new file mode 100644 index 000000000..b69e4f503 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/get_volume_kms_key_request_response.go @@ -0,0 +1,69 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// GetVolumeKmsKeyRequest wrapper for the GetVolumeKmsKey operation +type GetVolumeKmsKeyRequest struct { + + // The OCID of the volume. + VolumeId *string `mandatory:"true" contributesTo:"path" name:"volumeId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetVolumeKmsKeyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetVolumeKmsKeyRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetVolumeKmsKeyRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// GetVolumeKmsKeyResponse wrapper for the GetVolumeKmsKey operation +type GetVolumeKmsKeyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The VolumeKmsKey instance + VolumeKmsKey `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetVolumeKmsKeyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetVolumeKmsKeyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/i_scsi_volume_attachment.go b/vendor/github.com/oracle/oci-go-sdk/core/i_scsi_volume_attachment.go index a9fc10166..4ab048bc6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/i_scsi_volume_attachment.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/i_scsi_volume_attachment.go @@ -16,7 +16,7 @@ import ( // IScsiVolumeAttachment An ISCSI volume attachment. type IScsiVolumeAttachment struct { - // The Availability Domain of an instance. + // The availability domain of an instance. // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` diff --git a/vendor/github.com/oracle/oci-go-sdk/core/image.go b/vendor/github.com/oracle/oci-go-sdk/core/image.go index c4e87ea0b..14bd84ffa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/image.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/image.go @@ -17,6 +17,8 @@ import ( // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, // talk to an administrator. If you're an administrator who needs to write policies to give users access, see // Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type Image struct { // The OCID of the compartment containing the instance you want to use as the basis for the image. @@ -67,6 +69,7 @@ type Image struct { // Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are: // * `NATIVE` - VM instances launch with iSCSI boot and VFIO devices. The default value for Oracle-provided images. // * `EMULATED` - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. + // * `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using virtio drivers. // * `CUSTOM` - VM instances launch with custom configuration settings specified in the `LaunchOptions` parameter. LaunchMode ImageLaunchModeEnum `mandatory:"false" json:"launchMode,omitempty"` @@ -74,7 +77,7 @@ type Image struct { // Image size (1 MB = 1048576 bytes) // Example: `47694` - SizeInMBs *int `mandatory:"false" json:"sizeInMBs"` + SizeInMBs *int64 `mandatory:"false" json:"sizeInMBs"` } func (m Image) String() string { @@ -86,15 +89,17 @@ type ImageLaunchModeEnum string // Set of constants representing the allowable values for ImageLaunchMode const ( - ImageLaunchModeNative ImageLaunchModeEnum = "NATIVE" - ImageLaunchModeEmulated ImageLaunchModeEnum = "EMULATED" - ImageLaunchModeCustom ImageLaunchModeEnum = "CUSTOM" + ImageLaunchModeNative ImageLaunchModeEnum = "NATIVE" + ImageLaunchModeEmulated ImageLaunchModeEnum = "EMULATED" + ImageLaunchModeParavirtualized ImageLaunchModeEnum = "PARAVIRTUALIZED" + ImageLaunchModeCustom ImageLaunchModeEnum = "CUSTOM" ) var mappingImageLaunchMode = map[string]ImageLaunchModeEnum{ - "NATIVE": ImageLaunchModeNative, - "EMULATED": ImageLaunchModeEmulated, - "CUSTOM": ImageLaunchModeCustom, + "NATIVE": ImageLaunchModeNative, + "EMULATED": ImageLaunchModeEmulated, + "PARAVIRTUALIZED": ImageLaunchModeParavirtualized, + "CUSTOM": ImageLaunchModeCustom, } // GetImageLaunchModeEnumValues Enumerates the set of values for ImageLaunchMode diff --git a/vendor/github.com/oracle/oci-go-sdk/core/image_source_details.go b/vendor/github.com/oracle/oci-go-sdk/core/image_source_details.go index c2b66a58e..4beae5f64 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/image_source_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/image_source_details.go @@ -46,6 +46,11 @@ func (m *imagesourcedetails) UnmarshalJSON(data []byte) error { // UnmarshalPolymorphicJSON unmarshals polymorphic json func (m *imagesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + var err error switch m.SourceType { case "objectStorageTuple": @@ -57,7 +62,7 @@ func (m *imagesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, err = json.Unmarshal(data, &mm) return mm, err default: - return m, nil + return *m, nil } } diff --git a/vendor/github.com/oracle/oci-go-sdk/core/ingress_security_rule.go b/vendor/github.com/oracle/oci-go-sdk/core/ingress_security_rule.go index 3f9f168a1..a8d4dbcd1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/ingress_security_rule.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/ingress_security_rule.go @@ -21,10 +21,13 @@ type IngressSecurityRule struct { // Options are supported only for ICMP ("1"), TCP ("6"), and UDP ("17"). Protocol *string `mandatory:"true" json:"protocol"` - // The source service cidrBlock or source IP address range in CIDR notation for the ingress rule. This is the - // range of IP addresses that a packet coming into the instance can come from. - // Examples: `10.12.0.0/16` - // `oci-phx-objectstorage` + // Conceptually, this is the range of IP addresses that a packet coming into the instance + // can come from. + // Allowed values: + // * IP address range in CIDR notation. For example: `192.168.1.0/24` + // * The `cidrBlock` value for a Service, if you're + // setting up a security list rule for traffic coming from a particular service through + // a service gateway. For example: `oci-phx-objectstorage` Source *string `mandatory:"true" json:"source"` // Optional and valid only for ICMP. Use to specify a particular ICMP type and code @@ -44,9 +47,11 @@ type IngressSecurityRule struct { // and a corresponding rule is not necessary for bidirectional traffic. IsStateless *bool `mandatory:"false" json:"isStateless"` - // Type of source for IngressSecurityRule. SERVICE_CIDR_BLOCK should be used if source is a service cidrBlock. - // CIDR_BLOCK should be used if source is IP address range in CIDR notation. It defaults to CIDR_BLOCK, if - // not specified. + // Type of source for the rule. The default is `CIDR_BLOCK`. + // * `CIDR_BLOCK`: If the rule's `source` is an IP address range in CIDR notation. + // * `SERVICE_CIDR_BLOCK`: If the rule's `source` is the `cidrBlock` value for a + // Service (the rule is for traffic coming from a + // particular service through a service gateway). SourceType IngressSecurityRuleSourceTypeEnum `mandatory:"false" json:"sourceType,omitempty"` // Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. diff --git a/vendor/github.com/oracle/oci-go-sdk/core/instance.go b/vendor/github.com/oracle/oci-go-sdk/core/instance.go index 361c6295f..549b8dace 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/instance.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/instance.go @@ -20,9 +20,11 @@ import ( // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, // talk to an administrator. If you're an administrator who needs to write policies to give users access, see // Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type Instance struct { - // The Availability Domain the instance is running in. + // The availability domain the instance is running in. // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` @@ -35,7 +37,7 @@ type Instance struct { // The current state of the instance. LifecycleState InstanceLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - // The region that contains the Availability Domain the instance is running in. + // The region that contains the availability domain the instance is running in. // Example: `phx` Region *string `mandatory:"true" json:"region"` @@ -58,11 +60,21 @@ type Instance struct { // Example: `My bare metal instance` DisplayName *string `mandatory:"false" json:"displayName"` - // Additional metadata key/value pairs that you provide. They serve a similar purpose and functionality from fields in the 'metadata' object. + // Additional metadata key/value pairs that you provide. They serve the same purpose and functionality as fields in the 'metadata' object. // They are distinguished from 'metadata' fields in that these can be nested JSON objects (whereas 'metadata' fields are string/string maps only). - // If you don't need nested metadata values, it is strongly advised to avoid using this object and use the Metadata object instead. ExtendedMetadata map[string]interface{} `mandatory:"false" json:"extendedMetadata"` + // The name of the fault domain the instance is running in. + // A fault domain is a grouping of hardware and infrastructure within an availability domain. + // Each availability domain contains three fault domains. Fault domains let you distribute your + // instances so that they are not on the same physical hardware within a single availability domain. + // A hardware failure or Compute hardware maintenance that affects one fault domain does not affect + // instances in other fault domains. + // If you do not specify the fault domain, the system selects one for you. To change the fault + // domain for an instance, terminate it and launch a new instance in the preferred fault domain. + // Example: `FAULT-DOMAIN-1` + FaultDomain *string `mandatory:"false" json:"faultDomain"` + // Free-form tags for this resource. Each tag is a simple key-value pair with no // predefined name, type, or namespace. For more information, see // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). @@ -95,6 +107,7 @@ type Instance struct { // Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are: // * `NATIVE` - VM instances launch with iSCSI boot and VFIO devices. The default value for Oracle-provided images. // * `EMULATED` - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. + // * `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using virtio drivers. // * `CUSTOM` - VM instances launch with custom configuration settings specified in the `LaunchOptions` parameter. LaunchMode InstanceLaunchModeEnum `mandatory:"false" json:"launchMode,omitempty"` @@ -117,6 +130,7 @@ func (m *Instance) UnmarshalJSON(data []byte) (e error) { DefinedTags map[string]map[string]interface{} `json:"definedTags"` DisplayName *string `json:"displayName"` ExtendedMetadata map[string]interface{} `json:"extendedMetadata"` + FaultDomain *string `json:"faultDomain"` FreeformTags map[string]string `json:"freeformTags"` ImageId *string `json:"imageId"` IpxeScript *string `json:"ipxeScript"` @@ -140,6 +154,7 @@ func (m *Instance) UnmarshalJSON(data []byte) (e error) { m.DefinedTags = model.DefinedTags m.DisplayName = model.DisplayName m.ExtendedMetadata = model.ExtendedMetadata + m.FaultDomain = model.FaultDomain m.FreeformTags = model.FreeformTags m.ImageId = model.ImageId m.IpxeScript = model.IpxeScript @@ -150,7 +165,11 @@ func (m *Instance) UnmarshalJSON(data []byte) (e error) { if e != nil { return } - m.SourceDetails = nn.(InstanceSourceDetails) + if nn != nil { + m.SourceDetails = nn.(InstanceSourceDetails) + } else { + m.SourceDetails = nil + } m.AvailabilityDomain = model.AvailabilityDomain m.CompartmentId = model.CompartmentId m.Id = model.Id @@ -166,15 +185,17 @@ type InstanceLaunchModeEnum string // Set of constants representing the allowable values for InstanceLaunchMode const ( - InstanceLaunchModeNative InstanceLaunchModeEnum = "NATIVE" - InstanceLaunchModeEmulated InstanceLaunchModeEnum = "EMULATED" - InstanceLaunchModeCustom InstanceLaunchModeEnum = "CUSTOM" + InstanceLaunchModeNative InstanceLaunchModeEnum = "NATIVE" + InstanceLaunchModeEmulated InstanceLaunchModeEnum = "EMULATED" + InstanceLaunchModeParavirtualized InstanceLaunchModeEnum = "PARAVIRTUALIZED" + InstanceLaunchModeCustom InstanceLaunchModeEnum = "CUSTOM" ) var mappingInstanceLaunchMode = map[string]InstanceLaunchModeEnum{ - "NATIVE": InstanceLaunchModeNative, - "EMULATED": InstanceLaunchModeEmulated, - "CUSTOM": InstanceLaunchModeCustom, + "NATIVE": InstanceLaunchModeNative, + "EMULATED": InstanceLaunchModeEmulated, + "PARAVIRTUALIZED": InstanceLaunchModeParavirtualized, + "CUSTOM": InstanceLaunchModeCustom, } // GetInstanceLaunchModeEnumValues Enumerates the set of values for InstanceLaunchMode diff --git a/vendor/github.com/oracle/oci-go-sdk/core/instance_source_details.go b/vendor/github.com/oracle/oci-go-sdk/core/instance_source_details.go index c9dffbd34..44bca151f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/instance_source_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/instance_source_details.go @@ -40,6 +40,11 @@ func (m *instancesourcedetails) UnmarshalJSON(data []byte) error { // UnmarshalPolymorphicJSON unmarshals polymorphic json func (m *instancesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + var err error switch m.SourceType { case "image": @@ -51,7 +56,7 @@ func (m *instancesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface err = json.Unmarshal(data, &mm) return mm, err default: - return m, nil + return *m, nil } } diff --git a/vendor/github.com/oracle/oci-go-sdk/core/instance_source_via_image_details.go b/vendor/github.com/oracle/oci-go-sdk/core/instance_source_via_image_details.go index cb19cbd77..7fde5106c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/instance_source_via_image_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/instance_source_via_image_details.go @@ -20,7 +20,10 @@ type InstanceSourceViaImageDetails struct { ImageId *string `mandatory:"true" json:"imageId"` // The size of the boot volume in GBs. Minimum value is 50 GB and maximum value is 16384 GB (16TB). - BootVolumeSizeInGBs *int `mandatory:"false" json:"bootVolumeSizeInGBs"` + BootVolumeSizeInGBs *int64 `mandatory:"false" json:"bootVolumeSizeInGBs"` + + // The OCID of the KMS key to be used as the master encryption key for the boot volume. + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` } func (m InstanceSourceViaImageDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/core/internet_gateway.go b/vendor/github.com/oracle/oci-go-sdk/core/internet_gateway.go index 062cb0ac8..9d46ebf09 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/internet_gateway.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/internet_gateway.go @@ -13,23 +13,25 @@ import ( ) // InternetGateway Represents a router that connects the edge of a VCN with the Internet. For an example scenario -// that uses an Internet Gateway, see +// that uses an internet gateway, see // Typical Networking Service Scenarios (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/overview.htm#scenarios). // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, // talk to an administrator. If you're an administrator who needs to write policies to give users access, see // Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type InternetGateway struct { - // The OCID of the compartment containing the Internet Gateway. + // The OCID of the compartment containing the internet gateway. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // The Internet Gateway's Oracle ID (OCID). + // The internet gateway's Oracle ID (OCID). Id *string `mandatory:"true" json:"id"` - // The Internet Gateway's current state. + // The internet gateway's current state. LifecycleState InternetGatewayLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - // The OCID of the VCN the Internet Gateway belongs to. + // The OCID of the VCN the internet gateway belongs to. VcnId *string `mandatory:"true" json:"vcnId"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. @@ -51,7 +53,7 @@ type InternetGateway struct { // routed to/from the Internet, regardless of route rules. IsEnabled *bool `mandatory:"false" json:"isEnabled"` - // The date and time the Internet Gateway was created, in the format defined by RFC3339. + // The date and time the internet gateway was created, in the format defined by RFC3339. // Example: `2016-08-25T21:10:29.600Z` TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/core/ip_sec_connection.go b/vendor/github.com/oracle/oci-go-sdk/core/ip_sec_connection.go index db9e71f2d..14a73f62f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/ip_sec_connection.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/ip_sec_connection.go @@ -19,6 +19,8 @@ import ( // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, // talk to an administrator. If you're an administrator who needs to write policies to give users access, see // Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type IpSecConnection struct { // The OCID of the compartment containing the IPSec connection. diff --git a/vendor/github.com/oracle/oci-go-sdk/core/launch_instance_details.go b/vendor/github.com/oracle/oci-go-sdk/core/launch_instance_details.go index 292338cd5..cd5c8169d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/launch_instance_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/launch_instance_details.go @@ -17,7 +17,7 @@ import ( // Use the `sourceDetails` parameter to specify whether a boot volume or an image should be used to launch a new instance. type LaunchInstanceDetails struct { - // The Availability Domain of the instance. + // The availability domain of the instance. // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` @@ -43,11 +43,23 @@ type LaunchInstanceDetails struct { // Example: `My bare metal instance` DisplayName *string `mandatory:"false" json:"displayName"` - // Additional metadata key/value pairs that you provide. They serve a similar purpose and functionality from fields in the 'metadata' object. + // Additional metadata key/value pairs that you provide. They serve the same purpose and functionality as fields in the 'metadata' object. // They are distinguished from 'metadata' fields in that these can be nested JSON objects (whereas 'metadata' fields are string/string maps only). - // If you don't need nested metadata values, it is strongly advised to avoid using this object and use the Metadata object instead. ExtendedMetadata map[string]interface{} `mandatory:"false" json:"extendedMetadata"` + // A fault domain is a grouping of hardware and infrastructure within an availability domain. + // Each availability domain contains three fault domains. Fault domains let you distribute your + // instances so that they are not on the same physical hardware within a single availability domain. + // A hardware failure or Compute hardware maintenance that affects one fault domain does not affect + // instances in other fault domains. + // If you do not specify the fault domain, the system selects one for you. To change the fault + // domain for an instance, terminate it and launch a new instance in the preferred fault domain. + // To get a list of fault domains, use the + // ListFaultDomains operation in the + // Identity and Access Management Service API. + // Example: `FAULT-DOMAIN-1` + FaultDomain *string `mandatory:"false" json:"faultDomain"` + // Free-form tags for this resource. Each tag is a simple key-value pair with no // predefined name, type, or namespace. For more information, see // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). @@ -150,6 +162,7 @@ func (m *LaunchInstanceDetails) UnmarshalJSON(data []byte) (e error) { DefinedTags map[string]map[string]interface{} `json:"definedTags"` DisplayName *string `json:"displayName"` ExtendedMetadata map[string]interface{} `json:"extendedMetadata"` + FaultDomain *string `json:"faultDomain"` FreeformTags map[string]string `json:"freeformTags"` HostnameLabel *string `json:"hostnameLabel"` ImageId *string `json:"imageId"` @@ -170,6 +183,7 @@ func (m *LaunchInstanceDetails) UnmarshalJSON(data []byte) (e error) { m.DefinedTags = model.DefinedTags m.DisplayName = model.DisplayName m.ExtendedMetadata = model.ExtendedMetadata + m.FaultDomain = model.FaultDomain m.FreeformTags = model.FreeformTags m.HostnameLabel = model.HostnameLabel m.ImageId = model.ImageId @@ -179,7 +193,11 @@ func (m *LaunchInstanceDetails) UnmarshalJSON(data []byte) (e error) { if e != nil { return } - m.SourceDetails = nn.(InstanceSourceDetails) + if nn != nil { + m.SourceDetails = nn.(InstanceSourceDetails) + } else { + m.SourceDetails = nil + } m.SubnetId = model.SubnetId m.AvailabilityDomain = model.AvailabilityDomain m.CompartmentId = model.CompartmentId diff --git a/vendor/github.com/oracle/oci-go-sdk/core/launch_options.go b/vendor/github.com/oracle/oci-go-sdk/core/launch_options.go index 267a591b9..5a34858c7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/launch_options.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/launch_options.go @@ -35,6 +35,7 @@ type LaunchOptions struct { // Emulation type for NIC. // * `E1000` - Emulated Gigabit ethernet controller. Compatible with Linux e1000 network driver. // * `VFIO` - Direct attached Virtual Function network controller. Default for Oracle provided images. + // * `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using virtio drivers. NetworkType LaunchOptionsNetworkTypeEnum `mandatory:"true" json:"networkType"` // Emulation type for volume. @@ -109,13 +110,15 @@ type LaunchOptionsNetworkTypeEnum string // Set of constants representing the allowable values for LaunchOptionsNetworkType const ( - LaunchOptionsNetworkTypeE1000 LaunchOptionsNetworkTypeEnum = "E1000" - LaunchOptionsNetworkTypeVfio LaunchOptionsNetworkTypeEnum = "VFIO" + LaunchOptionsNetworkTypeE1000 LaunchOptionsNetworkTypeEnum = "E1000" + LaunchOptionsNetworkTypeVfio LaunchOptionsNetworkTypeEnum = "VFIO" + LaunchOptionsNetworkTypeParavirtualized LaunchOptionsNetworkTypeEnum = "PARAVIRTUALIZED" ) var mappingLaunchOptionsNetworkType = map[string]LaunchOptionsNetworkTypeEnum{ - "E1000": LaunchOptionsNetworkTypeE1000, - "VFIO": LaunchOptionsNetworkTypeVfio, + "E1000": LaunchOptionsNetworkTypeE1000, + "VFIO": LaunchOptionsNetworkTypeVfio, + "PARAVIRTUALIZED": LaunchOptionsNetworkTypeParavirtualized, } // GetLaunchOptionsNetworkTypeEnumValues Enumerates the set of values for LaunchOptionsNetworkType diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_app_catalog_listing_resource_versions_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_app_catalog_listing_resource_versions_request_response.go new file mode 100644 index 000000000..a233db758 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_app_catalog_listing_resource_versions_request_response.go @@ -0,0 +1,107 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// ListAppCatalogListingResourceVersionsRequest wrapper for the ListAppCatalogListingResourceVersions operation +type ListAppCatalogListingResourceVersionsRequest struct { + + // The OCID of the listing. + ListingId *string `mandatory:"true" contributesTo:"path" name:"listingId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListAppCatalogListingResourceVersionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListAppCatalogListingResourceVersionsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListAppCatalogListingResourceVersionsRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListAppCatalogListingResourceVersionsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ListAppCatalogListingResourceVersionsResponse wrapper for the ListAppCatalogListingResourceVersions operation +type ListAppCatalogListingResourceVersionsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []AppCatalogListingResourceVersionSummary instances + Items []AppCatalogListingResourceVersionSummary `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListAppCatalogListingResourceVersionsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListAppCatalogListingResourceVersionsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListAppCatalogListingResourceVersionsSortOrderEnum Enum with underlying type: string +type ListAppCatalogListingResourceVersionsSortOrderEnum string + +// Set of constants representing the allowable values for ListAppCatalogListingResourceVersionsSortOrder +const ( + ListAppCatalogListingResourceVersionsSortOrderAsc ListAppCatalogListingResourceVersionsSortOrderEnum = "ASC" + ListAppCatalogListingResourceVersionsSortOrderDesc ListAppCatalogListingResourceVersionsSortOrderEnum = "DESC" +) + +var mappingListAppCatalogListingResourceVersionsSortOrder = map[string]ListAppCatalogListingResourceVersionsSortOrderEnum{ + "ASC": ListAppCatalogListingResourceVersionsSortOrderAsc, + "DESC": ListAppCatalogListingResourceVersionsSortOrderDesc, +} + +// GetListAppCatalogListingResourceVersionsSortOrderEnumValues Enumerates the set of values for ListAppCatalogListingResourceVersionsSortOrder +func GetListAppCatalogListingResourceVersionsSortOrderEnumValues() []ListAppCatalogListingResourceVersionsSortOrderEnum { + values := make([]ListAppCatalogListingResourceVersionsSortOrderEnum, 0) + for _, v := range mappingListAppCatalogListingResourceVersionsSortOrder { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_app_catalog_listings_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_app_catalog_listings_request_response.go new file mode 100644 index 000000000..102884584 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_app_catalog_listings_request_response.go @@ -0,0 +1,110 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// ListAppCatalogListingsRequest wrapper for the ListAppCatalogListings operation +type ListAppCatalogListingsRequest struct { + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListAppCatalogListingsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only the publisher that matches the given publisher name exactly. + PublisherName *string `mandatory:"false" contributesTo:"query" name:"publisherName"` + + // A filter to return only publishers that match the given publisher type exactly. Valid types are OCI, ORACLE, TRUSTED, STANDARD. + PublisherType *string `mandatory:"false" contributesTo:"query" name:"publisherType"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListAppCatalogListingsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListAppCatalogListingsRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListAppCatalogListingsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ListAppCatalogListingsResponse wrapper for the ListAppCatalogListings operation +type ListAppCatalogListingsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []AppCatalogListingSummary instances + Items []AppCatalogListingSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListAppCatalogListingsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListAppCatalogListingsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListAppCatalogListingsSortOrderEnum Enum with underlying type: string +type ListAppCatalogListingsSortOrderEnum string + +// Set of constants representing the allowable values for ListAppCatalogListingsSortOrder +const ( + ListAppCatalogListingsSortOrderAsc ListAppCatalogListingsSortOrderEnum = "ASC" + ListAppCatalogListingsSortOrderDesc ListAppCatalogListingsSortOrderEnum = "DESC" +) + +var mappingListAppCatalogListingsSortOrder = map[string]ListAppCatalogListingsSortOrderEnum{ + "ASC": ListAppCatalogListingsSortOrderAsc, + "DESC": ListAppCatalogListingsSortOrderDesc, +} + +// GetListAppCatalogListingsSortOrderEnumValues Enumerates the set of values for ListAppCatalogListingsSortOrder +func GetListAppCatalogListingsSortOrderEnumValues() []ListAppCatalogListingsSortOrderEnum { + values := make([]ListAppCatalogListingsSortOrderEnum, 0) + for _, v := range mappingListAppCatalogListingsSortOrder { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_app_catalog_subscriptions_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_app_catalog_subscriptions_request_response.go new file mode 100644 index 000000000..c7555d6eb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_app_catalog_subscriptions_request_response.go @@ -0,0 +1,139 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// ListAppCatalogSubscriptionsRequest wrapper for the ListAppCatalogSubscriptions operation +type ListAppCatalogSubscriptionsRequest struct { + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListAppCatalogSubscriptionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListAppCatalogSubscriptionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only the listings that matches the given listing id. + ListingId *string `mandatory:"false" contributesTo:"query" name:"listingId"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListAppCatalogSubscriptionsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListAppCatalogSubscriptionsRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListAppCatalogSubscriptionsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ListAppCatalogSubscriptionsResponse wrapper for the ListAppCatalogSubscriptions operation +type ListAppCatalogSubscriptionsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []AppCatalogSubscriptionSummary instances + Items []AppCatalogSubscriptionSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListAppCatalogSubscriptionsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListAppCatalogSubscriptionsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListAppCatalogSubscriptionsSortByEnum Enum with underlying type: string +type ListAppCatalogSubscriptionsSortByEnum string + +// Set of constants representing the allowable values for ListAppCatalogSubscriptionsSortBy +const ( + ListAppCatalogSubscriptionsSortByTimecreated ListAppCatalogSubscriptionsSortByEnum = "TIMECREATED" + ListAppCatalogSubscriptionsSortByDisplayname ListAppCatalogSubscriptionsSortByEnum = "DISPLAYNAME" +) + +var mappingListAppCatalogSubscriptionsSortBy = map[string]ListAppCatalogSubscriptionsSortByEnum{ + "TIMECREATED": ListAppCatalogSubscriptionsSortByTimecreated, + "DISPLAYNAME": ListAppCatalogSubscriptionsSortByDisplayname, +} + +// GetListAppCatalogSubscriptionsSortByEnumValues Enumerates the set of values for ListAppCatalogSubscriptionsSortBy +func GetListAppCatalogSubscriptionsSortByEnumValues() []ListAppCatalogSubscriptionsSortByEnum { + values := make([]ListAppCatalogSubscriptionsSortByEnum, 0) + for _, v := range mappingListAppCatalogSubscriptionsSortBy { + values = append(values, v) + } + return values +} + +// ListAppCatalogSubscriptionsSortOrderEnum Enum with underlying type: string +type ListAppCatalogSubscriptionsSortOrderEnum string + +// Set of constants representing the allowable values for ListAppCatalogSubscriptionsSortOrder +const ( + ListAppCatalogSubscriptionsSortOrderAsc ListAppCatalogSubscriptionsSortOrderEnum = "ASC" + ListAppCatalogSubscriptionsSortOrderDesc ListAppCatalogSubscriptionsSortOrderEnum = "DESC" +) + +var mappingListAppCatalogSubscriptionsSortOrder = map[string]ListAppCatalogSubscriptionsSortOrderEnum{ + "ASC": ListAppCatalogSubscriptionsSortOrderAsc, + "DESC": ListAppCatalogSubscriptionsSortOrderDesc, +} + +// GetListAppCatalogSubscriptionsSortOrderEnumValues Enumerates the set of values for ListAppCatalogSubscriptionsSortOrder +func GetListAppCatalogSubscriptionsSortOrderEnumValues() []ListAppCatalogSubscriptionsSortOrderEnum { + values := make([]ListAppCatalogSubscriptionsSortOrderEnum, 0) + for _, v := range mappingListAppCatalogSubscriptionsSortOrder { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_boot_volume_attachments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_boot_volume_attachments_request_response.go index b3fcdecd3..b08b7943e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_boot_volume_attachments_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_boot_volume_attachments_request_response.go @@ -11,18 +11,22 @@ import ( // ListBootVolumeAttachmentsRequest wrapper for the ListBootVolumeAttachments operation type ListBootVolumeAttachmentsRequest struct { - // The name of the Availability Domain. + // The name of the availability domain. // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` // The OCID of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The OCID of the instance. @@ -63,9 +67,9 @@ type ListBootVolumeAttachmentsResponse struct { // A list of []BootVolumeAttachment instances Items []BootVolumeAttachment `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_boot_volume_backups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_boot_volume_backups_request_response.go index 1b47737ec..dfba86723 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_boot_volume_backups_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_boot_volume_backups_request_response.go @@ -17,11 +17,15 @@ type ListBootVolumeBackupsRequest struct { // The OCID of the boot volume. BootVolumeId *string `mandatory:"false" contributesTo:"query" name:"bootVolumeId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // A filter to return only resources that match the given display name exactly. @@ -31,9 +35,9 @@ type ListBootVolumeBackupsRequest struct { // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME // sort order is case sensitive. // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. SortBy ListBootVolumeBackupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order @@ -75,9 +79,9 @@ type ListBootVolumeBackupsResponse struct { // A list of []BootVolumeBackup instances Items []BootVolumeBackup `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_boot_volumes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_boot_volumes_request_response.go index 201523fb6..f953eb202 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_boot_volumes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_boot_volumes_request_response.go @@ -11,18 +11,22 @@ import ( // ListBootVolumesRequest wrapper for the ListBootVolumes operation type ListBootVolumesRequest struct { - // The name of the Availability Domain. + // The name of the availability domain. // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` // The OCID of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The OCID of the volume group. @@ -60,9 +64,9 @@ type ListBootVolumesResponse struct { // A list of []BootVolume instances Items []BootVolume `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_console_histories_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_console_histories_request_response.go index 83295c0da..2be847c35 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_console_histories_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_console_histories_request_response.go @@ -14,15 +14,19 @@ type ListConsoleHistoriesRequest struct { // The OCID of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - // The name of the Availability Domain. + // The name of the availability domain. // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The OCID of the instance. @@ -32,9 +36,9 @@ type ListConsoleHistoriesRequest struct { // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME // sort order is case sensitive. // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. SortBy ListConsoleHistoriesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order @@ -76,9 +80,9 @@ type ListConsoleHistoriesResponse struct { // A list of []ConsoleHistory instances Items []ConsoleHistory `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_cpes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_cpes_request_response.go index 29ebb8062..28be8bcb8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_cpes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_cpes_request_response.go @@ -14,11 +14,15 @@ type ListCpesRequest struct { // The OCID of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -53,9 +57,9 @@ type ListCpesResponse struct { // A list of []Cpe instances Items []Cpe `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_cross_connect_groups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_cross_connect_groups_request_response.go index 1a3fcd8aa..798355ba3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_cross_connect_groups_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_cross_connect_groups_request_response.go @@ -14,11 +14,15 @@ type ListCrossConnectGroupsRequest struct { // The OCID of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // A filter to return only resources that match the given display name exactly. @@ -28,9 +32,9 @@ type ListCrossConnectGroupsRequest struct { // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME // sort order is case sensitive. // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. SortBy ListCrossConnectGroupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order @@ -72,9 +76,9 @@ type ListCrossConnectGroupsResponse struct { // A list of []CrossConnectGroup instances Items []CrossConnectGroup `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_cross_connect_locations_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_cross_connect_locations_request_response.go index 4acd1fe56..fcf93441b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_cross_connect_locations_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_cross_connect_locations_request_response.go @@ -14,11 +14,15 @@ type ListCrossConnectLocationsRequest struct { // The OCID of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -53,9 +57,9 @@ type ListCrossConnectLocationsResponse struct { // A list of []CrossConnectLocation instances Items []CrossConnectLocation `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_cross_connects_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_cross_connects_request_response.go index 16bf33dbb..a5788e2f8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_cross_connects_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_cross_connects_request_response.go @@ -17,11 +17,15 @@ type ListCrossConnectsRequest struct { // The OCID of the cross-connect group. CrossConnectGroupId *string `mandatory:"false" contributesTo:"query" name:"crossConnectGroupId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // A filter to return only resources that match the given display name exactly. @@ -31,9 +35,9 @@ type ListCrossConnectsRequest struct { // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME // sort order is case sensitive. // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. SortBy ListCrossConnectsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order @@ -75,9 +79,9 @@ type ListCrossConnectsResponse struct { // A list of []CrossConnect instances Items []CrossConnect `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_crossconnect_port_speed_shapes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_crossconnect_port_speed_shapes_request_response.go index 736f194a6..9ad4e8ac5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_crossconnect_port_speed_shapes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_crossconnect_port_speed_shapes_request_response.go @@ -14,11 +14,15 @@ type ListCrossconnectPortSpeedShapesRequest struct { // The OCID of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -53,9 +57,9 @@ type ListCrossconnectPortSpeedShapesResponse struct { // A list of []CrossConnectPortSpeedShape instances Items []CrossConnectPortSpeedShape `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_dhcp_options_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_dhcp_options_request_response.go index 721d14475..be3d19967 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_dhcp_options_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_dhcp_options_request_response.go @@ -17,11 +17,15 @@ type ListDhcpOptionsRequest struct { // The OCID of the VCN. VcnId *string `mandatory:"true" contributesTo:"query" name:"vcnId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // A filter to return only resources that match the given display name exactly. @@ -31,9 +35,9 @@ type ListDhcpOptionsRequest struct { // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME // sort order is case sensitive. // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. SortBy ListDhcpOptionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order @@ -75,9 +79,9 @@ type ListDhcpOptionsResponse struct { // A list of []DhcpOptions instances Items []DhcpOptions `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_drg_attachments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_drg_attachments_request_response.go index 3024a2530..2fc692fa8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_drg_attachments_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_drg_attachments_request_response.go @@ -20,11 +20,15 @@ type ListDrgAttachmentsRequest struct { // The OCID of the DRG. DrgId *string `mandatory:"false" contributesTo:"query" name:"drgId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -59,9 +63,9 @@ type ListDrgAttachmentsResponse struct { // A list of []DrgAttachment instances Items []DrgAttachment `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_drgs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_drgs_request_response.go index 8fcc71e83..fc0fb7e45 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_drgs_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_drgs_request_response.go @@ -14,11 +14,15 @@ type ListDrgsRequest struct { // The OCID of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -53,9 +57,9 @@ type ListDrgsResponse struct { // A list of []Drg instances Items []Drg `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_fast_connect_provider_services_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_fast_connect_provider_services_request_response.go index c43b6d471..b609c79d4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_fast_connect_provider_services_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_fast_connect_provider_services_request_response.go @@ -14,11 +14,15 @@ type ListFastConnectProviderServicesRequest struct { // The OCID of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -53,9 +57,9 @@ type ListFastConnectProviderServicesResponse struct { // A list of []FastConnectProviderService instances Items []FastConnectProviderService `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_fast_connect_provider_virtual_circuit_bandwidth_shapes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_fast_connect_provider_virtual_circuit_bandwidth_shapes_request_response.go index 4fd9ef1ea..2f585fbac 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_fast_connect_provider_virtual_circuit_bandwidth_shapes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_fast_connect_provider_virtual_circuit_bandwidth_shapes_request_response.go @@ -14,11 +14,15 @@ type ListFastConnectProviderVirtualCircuitBandwidthShapesRequest struct { // The OCID of the provider service. ProviderServiceId *string `mandatory:"true" contributesTo:"path" name:"providerServiceId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -53,9 +57,9 @@ type ListFastConnectProviderVirtualCircuitBandwidthShapesResponse struct { // A list of []VirtualCircuitBandwidthShape instances Items []VirtualCircuitBandwidthShape `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_i_p_sec_connections_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_i_p_sec_connections_request_response.go index 909372080..df71c11a8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_i_p_sec_connections_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_i_p_sec_connections_request_response.go @@ -20,11 +20,15 @@ type ListIPSecConnectionsRequest struct { // The OCID of the CPE. CpeId *string `mandatory:"false" contributesTo:"query" name:"cpeId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -59,9 +63,9 @@ type ListIPSecConnectionsResponse struct { // A list of []IpSecConnection instances Items []IpSecConnection `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_images_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_images_request_response.go index f6aa04cf4..b124b50f3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_images_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_images_request_response.go @@ -28,20 +28,24 @@ type ListImagesRequest struct { // Shape name. Shape *string `mandatory:"false" contributesTo:"query" name:"shape"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The field to sort by. You can provide one sort order (`sortOrder`). Default order for // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME // sort order is case sensitive. // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. SortBy ListImagesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order @@ -83,9 +87,9 @@ type ListImagesResponse struct { // A list of []Image instances Items []Image `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_instance_console_connections_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_instance_console_connections_request_response.go index 99d908061..be1615773 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_instance_console_connections_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_instance_console_connections_request_response.go @@ -17,11 +17,15 @@ type ListInstanceConsoleConnectionsRequest struct { // The OCID of the instance. InstanceId *string `mandatory:"false" contributesTo:"query" name:"instanceId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -56,9 +60,9 @@ type ListInstanceConsoleConnectionsResponse struct { // A list of []InstanceConsoleConnection instances Items []InstanceConsoleConnection `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_instances_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_instances_request_response.go index da04bd13c..e090168df 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_instances_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_instances_request_response.go @@ -14,27 +14,31 @@ type ListInstancesRequest struct { // The OCID of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - // The name of the Availability Domain. + // The name of the availability domain. // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` // A filter to return only resources that match the given display name exactly. DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The field to sort by. You can provide one sort order (`sortOrder`). Default order for // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME // sort order is case sensitive. // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. SortBy ListInstancesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order @@ -76,9 +80,9 @@ type ListInstancesResponse struct { // A list of []Instance instances Items []Instance `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_internet_gateways_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_internet_gateways_request_response.go index f2a06359e..79c728a18 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_internet_gateways_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_internet_gateways_request_response.go @@ -17,11 +17,15 @@ type ListInternetGatewaysRequest struct { // The OCID of the VCN. VcnId *string `mandatory:"true" contributesTo:"query" name:"vcnId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // A filter to return only resources that match the given display name exactly. @@ -31,9 +35,9 @@ type ListInternetGatewaysRequest struct { // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME // sort order is case sensitive. // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. SortBy ListInternetGatewaysSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order @@ -75,9 +79,9 @@ type ListInternetGatewaysResponse struct { // A list of []InternetGateway instances Items []InternetGateway `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_local_peering_gateways_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_local_peering_gateways_request_response.go index c31baaea6..f5d723d78 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_local_peering_gateways_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_local_peering_gateways_request_response.go @@ -17,11 +17,15 @@ type ListLocalPeeringGatewaysRequest struct { // The OCID of the VCN. VcnId *string `mandatory:"true" contributesTo:"query" name:"vcnId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -56,9 +60,9 @@ type ListLocalPeeringGatewaysResponse struct { // A list of []LocalPeeringGateway instances Items []LocalPeeringGateway `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_nat_gateways_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_nat_gateways_request_response.go new file mode 100644 index 000000000..21911cddd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_nat_gateways_request_response.go @@ -0,0 +1,145 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// ListNatGatewaysRequest wrapper for the ListNatGateways operation +type ListNatGatewaysRequest struct { + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID of the VCN. + VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListNatGatewaysSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListNatGatewaysSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only resources that match the specified lifecycle state. The value is case insensitive. + LifecycleState NatGatewayLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListNatGatewaysRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListNatGatewaysRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListNatGatewaysRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ListNatGatewaysResponse wrapper for the ListNatGateways operation +type ListNatGatewaysResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []NatGateway instances + Items []NatGateway `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListNatGatewaysResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListNatGatewaysResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListNatGatewaysSortByEnum Enum with underlying type: string +type ListNatGatewaysSortByEnum string + +// Set of constants representing the allowable values for ListNatGatewaysSortBy +const ( + ListNatGatewaysSortByTimecreated ListNatGatewaysSortByEnum = "TIMECREATED" + ListNatGatewaysSortByDisplayname ListNatGatewaysSortByEnum = "DISPLAYNAME" +) + +var mappingListNatGatewaysSortBy = map[string]ListNatGatewaysSortByEnum{ + "TIMECREATED": ListNatGatewaysSortByTimecreated, + "DISPLAYNAME": ListNatGatewaysSortByDisplayname, +} + +// GetListNatGatewaysSortByEnumValues Enumerates the set of values for ListNatGatewaysSortBy +func GetListNatGatewaysSortByEnumValues() []ListNatGatewaysSortByEnum { + values := make([]ListNatGatewaysSortByEnum, 0) + for _, v := range mappingListNatGatewaysSortBy { + values = append(values, v) + } + return values +} + +// ListNatGatewaysSortOrderEnum Enum with underlying type: string +type ListNatGatewaysSortOrderEnum string + +// Set of constants representing the allowable values for ListNatGatewaysSortOrder +const ( + ListNatGatewaysSortOrderAsc ListNatGatewaysSortOrderEnum = "ASC" + ListNatGatewaysSortOrderDesc ListNatGatewaysSortOrderEnum = "DESC" +) + +var mappingListNatGatewaysSortOrder = map[string]ListNatGatewaysSortOrderEnum{ + "ASC": ListNatGatewaysSortOrderAsc, + "DESC": ListNatGatewaysSortOrderDesc, +} + +// GetListNatGatewaysSortOrderEnumValues Enumerates the set of values for ListNatGatewaysSortOrder +func GetListNatGatewaysSortOrderEnumValues() []ListNatGatewaysSortOrderEnum { + values := make([]ListNatGatewaysSortOrderEnum, 0) + for _, v := range mappingListNatGatewaysSortOrder { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_private_ips_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_private_ips_request_response.go index 5cd68f4d9..6d09e1531 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_private_ips_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_private_ips_request_response.go @@ -11,11 +11,15 @@ import ( // ListPrivateIpsRequest wrapper for the ListPrivateIps operation type ListPrivateIpsRequest struct { - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // An IP address. @@ -60,9 +64,9 @@ type ListPrivateIpsResponse struct { // A list of []PrivateIp instances Items []PrivateIp `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_public_ips_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_public_ips_request_response.go index aa32f60de..5bc5f2f27 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_public_ips_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_public_ips_request_response.go @@ -11,28 +11,37 @@ import ( // ListPublicIpsRequest wrapper for the ListPublicIps operation type ListPublicIpsRequest struct { - // Whether the public IP is regional or specific to a particular Availability Domain. - // * `REGION`: The public IP exists within a region and can be assigned to a private IP - // in any Availability Domain in the region. Reserved public IPs have `scope` = `REGION`. - // * `AVAILABILITY_DOMAIN`: The public IP exists within the Availability Domain of the private IP + // Whether the public IP is regional or specific to a particular availability domain. + // * `REGION`: The public IP exists within a region and is assigned to a regional entity + // (such as a NatGateway), or can be assigned to a private IP + // in any availability domain in the region. Reserved public IPs have `scope` = `REGION`, as do + // ephemeral public IPs assigned to a regional entity. + // * `AVAILABILITY_DOMAIN`: The public IP exists within the availability domain of the entity // it's assigned to, which is specified by the `availabilityDomain` property of the public IP object. - // Ephemeral public IPs have `scope` = `AVAILABILITY_DOMAIN`. + // Ephemeral public IPs that are assigned to private IPs have `scope` = `AVAILABILITY_DOMAIN`. Scope ListPublicIpsScopeEnum `mandatory:"true" contributesTo:"query" name:"scope" omitEmpty:"true"` // The OCID of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` - // The name of the Availability Domain. + // The name of the availability domain. // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` + // A filter to return only public IPs that match given lifetime. + Lifetime ListPublicIpsLifetimeEnum `mandatory:"false" contributesTo:"query" name:"lifetime" omitEmpty:"true"` + // Unique Oracle-assigned identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` @@ -65,9 +74,9 @@ type ListPublicIpsResponse struct { // A list of []PublicIp instances Items []PublicIp `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about @@ -106,3 +115,26 @@ func GetListPublicIpsScopeEnumValues() []ListPublicIpsScopeEnum { } return values } + +// ListPublicIpsLifetimeEnum Enum with underlying type: string +type ListPublicIpsLifetimeEnum string + +// Set of constants representing the allowable values for ListPublicIpsLifetime +const ( + ListPublicIpsLifetimeEphemeral ListPublicIpsLifetimeEnum = "EPHEMERAL" + ListPublicIpsLifetimeReserved ListPublicIpsLifetimeEnum = "RESERVED" +) + +var mappingListPublicIpsLifetime = map[string]ListPublicIpsLifetimeEnum{ + "EPHEMERAL": ListPublicIpsLifetimeEphemeral, + "RESERVED": ListPublicIpsLifetimeReserved, +} + +// GetListPublicIpsLifetimeEnumValues Enumerates the set of values for ListPublicIpsLifetime +func GetListPublicIpsLifetimeEnumValues() []ListPublicIpsLifetimeEnum { + values := make([]ListPublicIpsLifetimeEnum, 0) + for _, v := range mappingListPublicIpsLifetime { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_remote_peering_connections_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_remote_peering_connections_request_response.go index ece857a8f..6865e787e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_remote_peering_connections_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_remote_peering_connections_request_response.go @@ -17,11 +17,15 @@ type ListRemotePeeringConnectionsRequest struct { // The OCID of the DRG. DrgId *string `mandatory:"false" contributesTo:"query" name:"drgId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -56,7 +60,9 @@ type ListRemotePeeringConnectionsResponse struct { // A list of []RemotePeeringConnection instances Items []RemotePeeringConnection `presentIn:"body"` - // A pagination token to the start of the next page, if one exist. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_route_tables_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_route_tables_request_response.go index a18e90c43..5a7da0d18 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_route_tables_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_route_tables_request_response.go @@ -17,11 +17,15 @@ type ListRouteTablesRequest struct { // The OCID of the VCN. VcnId *string `mandatory:"true" contributesTo:"query" name:"vcnId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // A filter to return only resources that match the given display name exactly. @@ -31,9 +35,9 @@ type ListRouteTablesRequest struct { // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME // sort order is case sensitive. // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. SortBy ListRouteTablesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order @@ -75,9 +79,9 @@ type ListRouteTablesResponse struct { // A list of []RouteTable instances Items []RouteTable `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_security_lists_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_security_lists_request_response.go index d9422d072..805fd913b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_security_lists_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_security_lists_request_response.go @@ -17,11 +17,15 @@ type ListSecurityListsRequest struct { // The OCID of the VCN. VcnId *string `mandatory:"true" contributesTo:"query" name:"vcnId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // A filter to return only resources that match the given display name exactly. @@ -31,9 +35,9 @@ type ListSecurityListsRequest struct { // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME // sort order is case sensitive. // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. SortBy ListSecurityListsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order @@ -75,9 +79,9 @@ type ListSecurityListsResponse struct { // A list of []SecurityList instances Items []SecurityList `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_service_gateways_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_service_gateways_request_response.go index bb61888a9..0ff68fd8f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_service_gateways_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_service_gateways_request_response.go @@ -17,20 +17,24 @@ type ListServiceGatewaysRequest struct { // The OCID of the VCN. VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The field to sort by. You can provide one sort order (`sortOrder`). Default order for // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME // sort order is case sensitive. // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. SortBy ListServiceGatewaysSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order @@ -72,9 +76,9 @@ type ListServiceGatewaysResponse struct { // A list of []ServiceGateway instances Items []ServiceGateway `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_services_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_services_request_response.go index ec1811427..229314fb6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_services_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_services_request_response.go @@ -11,11 +11,15 @@ import ( // ListServicesRequest wrapper for the ListServices operation type ListServicesRequest struct { - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -50,9 +54,9 @@ type ListServicesResponse struct { // A list of []Service instances Items []Service `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_shapes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_shapes_request_response.go index 6823530d7..030e202f4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_shapes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_shapes_request_response.go @@ -14,15 +14,19 @@ type ListShapesRequest struct { // The OCID of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - // The name of the Availability Domain. + // The name of the availability domain. // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The OCID of an image. @@ -60,9 +64,9 @@ type ListShapesResponse struct { // A list of []Shape instances Items []Shape `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_subnets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_subnets_request_response.go index 347df4123..9a9475282 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_subnets_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_subnets_request_response.go @@ -17,11 +17,15 @@ type ListSubnetsRequest struct { // The OCID of the VCN. VcnId *string `mandatory:"true" contributesTo:"query" name:"vcnId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // A filter to return only resources that match the given display name exactly. @@ -31,9 +35,9 @@ type ListSubnetsRequest struct { // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME // sort order is case sensitive. // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. SortBy ListSubnetsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order @@ -75,9 +79,9 @@ type ListSubnetsResponse struct { // A list of []Subnet instances Items []Subnet `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_vcns_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_vcns_request_response.go index 6389653a6..7790f5e88 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_vcns_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_vcns_request_response.go @@ -14,11 +14,15 @@ type ListVcnsRequest struct { // The OCID of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // A filter to return only resources that match the given display name exactly. @@ -28,9 +32,9 @@ type ListVcnsRequest struct { // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME // sort order is case sensitive. // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. SortBy ListVcnsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order @@ -72,9 +76,9 @@ type ListVcnsResponse struct { // A list of []Vcn instances Items []Vcn `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_virtual_circuit_bandwidth_shapes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_virtual_circuit_bandwidth_shapes_request_response.go index 6e440c2ab..0d5e25ab2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_virtual_circuit_bandwidth_shapes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_virtual_circuit_bandwidth_shapes_request_response.go @@ -14,11 +14,15 @@ type ListVirtualCircuitBandwidthShapesRequest struct { // The OCID of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -53,9 +57,9 @@ type ListVirtualCircuitBandwidthShapesResponse struct { // A list of []VirtualCircuitBandwidthShape instances Items []VirtualCircuitBandwidthShape `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_virtual_circuits_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_virtual_circuits_request_response.go index c1ef2de8f..6ce3f040c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_virtual_circuits_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_virtual_circuits_request_response.go @@ -14,11 +14,15 @@ type ListVirtualCircuitsRequest struct { // The OCID of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // A filter to return only resources that match the given display name exactly. @@ -28,9 +32,9 @@ type ListVirtualCircuitsRequest struct { // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME // sort order is case sensitive. // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. SortBy ListVirtualCircuitsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order @@ -72,9 +76,9 @@ type ListVirtualCircuitsResponse struct { // A list of []VirtualCircuit instances Items []VirtualCircuit `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_vnic_attachments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_vnic_attachments_request_response.go index b4a93ca9a..2178eb5a5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_vnic_attachments_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_vnic_attachments_request_response.go @@ -14,18 +14,22 @@ type ListVnicAttachmentsRequest struct { // The OCID of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - // The name of the Availability Domain. + // The name of the availability domain. // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` // The OCID of the instance. InstanceId *string `mandatory:"false" contributesTo:"query" name:"instanceId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The OCID of the VNIC. @@ -63,9 +67,9 @@ type ListVnicAttachmentsResponse struct { // A list of []VnicAttachment instances Items []VnicAttachment `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_volume_attachments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_volume_attachments_request_response.go index d753621ec..95d3ceb4a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_volume_attachments_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_volume_attachments_request_response.go @@ -14,15 +14,19 @@ type ListVolumeAttachmentsRequest struct { // The OCID of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - // The name of the Availability Domain. + // The name of the availability domain. // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The OCID of the instance. @@ -63,9 +67,9 @@ type ListVolumeAttachmentsResponse struct { // A list of []VolumeAttachment instances Items []VolumeAttachment `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_volume_backup_policies_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_volume_backup_policies_request_response.go index 59393718b..7a0fd3530 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_volume_backup_policies_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_volume_backup_policies_request_response.go @@ -11,11 +11,15 @@ import ( // ListVolumeBackupPoliciesRequest wrapper for the ListVolumeBackupPolicies operation type ListVolumeBackupPoliciesRequest struct { - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. @@ -50,9 +54,9 @@ type ListVolumeBackupPoliciesResponse struct { // A list of []VolumeBackupPolicy instances Items []VolumeBackupPolicy `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_volume_backups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_volume_backups_request_response.go index 1c8ab0460..4974ec761 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_volume_backups_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_volume_backups_request_response.go @@ -17,11 +17,15 @@ type ListVolumeBackupsRequest struct { // The OCID of the volume. VolumeId *string `mandatory:"false" contributesTo:"query" name:"volumeId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // A filter to return only resources that match the given display name exactly. @@ -31,9 +35,9 @@ type ListVolumeBackupsRequest struct { // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME // sort order is case sensitive. // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. SortBy ListVolumeBackupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order @@ -75,9 +79,9 @@ type ListVolumeBackupsResponse struct { // A list of []VolumeBackup instances Items []VolumeBackup `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_volume_group_backups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_volume_group_backups_request_response.go index d6b10dab4..7c67d66cd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_volume_group_backups_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_volume_group_backups_request_response.go @@ -17,11 +17,15 @@ type ListVolumeGroupBackupsRequest struct { // The OCID of the volume group. VolumeGroupId *string `mandatory:"false" contributesTo:"query" name:"volumeGroupId"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // A filter to return only resources that match the given display name exactly. @@ -31,9 +35,9 @@ type ListVolumeGroupBackupsRequest struct { // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME // sort order is case sensitive. // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. SortBy ListVolumeGroupBackupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order @@ -72,9 +76,9 @@ type ListVolumeGroupBackupsResponse struct { // A list of []VolumeGroupBackup instances Items []VolumeGroupBackup `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_volume_groups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_volume_groups_request_response.go index 3a40936a0..bec193260 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_volume_groups_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_volume_groups_request_response.go @@ -14,15 +14,19 @@ type ListVolumeGroupsRequest struct { // The OCID of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - // The name of the Availability Domain. + // The name of the availability domain. // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // A filter to return only resources that match the given display name exactly. @@ -32,9 +36,9 @@ type ListVolumeGroupsRequest struct { // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME // sort order is case sensitive. // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. SortBy ListVolumeGroupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order @@ -76,9 +80,9 @@ type ListVolumeGroupsResponse struct { // A list of []VolumeGroup instances Items []VolumeGroup `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/list_volumes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/list_volumes_request_response.go index b2393e1fb..dedf227cc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/list_volumes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/list_volumes_request_response.go @@ -14,15 +14,19 @@ type ListVolumesRequest struct { // The OCID of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - // The name of the Availability Domain. + // The name of the availability domain. // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` - // The maximum number of items to return in a paginated "List" call. - // Example: `500` + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - // The value of the `opc-next-page` response header from the previous "List" call. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // A filter to return only resources that match the given display name exactly. @@ -32,9 +36,9 @@ type ListVolumesRequest struct { // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME // sort order is case sensitive. // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. SortBy ListVolumesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order @@ -79,9 +83,9 @@ type ListVolumesResponse struct { // A list of []Volume instances Items []Volume `presentIn:"body"` - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/core/local_peering_gateway.go b/vendor/github.com/oracle/oci-go-sdk/core/local_peering_gateway.go index 0f6417ef3..574a77738 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/local_peering_gateway.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/local_peering_gateway.go @@ -20,6 +20,8 @@ import ( // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, // talk to an administrator. If you're an administrator who needs to write policies to give users access, see // Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type LocalPeeringGateway struct { // The OCID of the compartment containing the LPG. diff --git a/vendor/github.com/oracle/oci-go-sdk/core/nat_gateway.go b/vendor/github.com/oracle/oci-go-sdk/core/nat_gateway.go new file mode 100644 index 000000000..754291385 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/nat_gateway.go @@ -0,0 +1,98 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// APIs for Networking Service, Compute Service, and Block Volume Service. +// + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// NatGateway A NAT (Network Address Translation) gateway, which represents a router that lets instances +// without public IPs contact the public internet without exposing the instance to inbound +// internet traffic. For more information, see +// NAT Gateway (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/NATgateway.htm). +// To use any of the API operations, you must be authorized in an +// IAM policy. If you are not authorized, talk to an +// administrator. If you are an administrator who needs to write +// policies to give users access, see Getting Started with +// Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. +type NatGateway struct { + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment that contains + // the NAT gateway. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the NAT gateway. + Id *string `mandatory:"true" json:"id"` + + // Whether the NAT gateway blocks traffic through it. The default is `false`. + // Example: `true` + BlockTraffic *bool `mandatory:"true" json:"blockTraffic"` + + // The NAT gateway's current state. + LifecycleState NatGatewayLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The IP address associated with the NAT gateway. + NatIp *string `mandatory:"true" json:"natIp"` + + // The date and time the NAT gateway was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the VCN the NAT gateway + // belongs to. + VcnId *string `mandatory:"true" json:"vcnId"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m NatGateway) String() string { + return common.PointerString(m) +} + +// NatGatewayLifecycleStateEnum Enum with underlying type: string +type NatGatewayLifecycleStateEnum string + +// Set of constants representing the allowable values for NatGatewayLifecycleState +const ( + NatGatewayLifecycleStateProvisioning NatGatewayLifecycleStateEnum = "PROVISIONING" + NatGatewayLifecycleStateAvailable NatGatewayLifecycleStateEnum = "AVAILABLE" + NatGatewayLifecycleStateTerminating NatGatewayLifecycleStateEnum = "TERMINATING" + NatGatewayLifecycleStateTerminated NatGatewayLifecycleStateEnum = "TERMINATED" +) + +var mappingNatGatewayLifecycleState = map[string]NatGatewayLifecycleStateEnum{ + "PROVISIONING": NatGatewayLifecycleStateProvisioning, + "AVAILABLE": NatGatewayLifecycleStateAvailable, + "TERMINATING": NatGatewayLifecycleStateTerminating, + "TERMINATED": NatGatewayLifecycleStateTerminated, +} + +// GetNatGatewayLifecycleStateEnumValues Enumerates the set of values for NatGatewayLifecycleState +func GetNatGatewayLifecycleStateEnumValues() []NatGatewayLifecycleStateEnum { + values := make([]NatGatewayLifecycleStateEnum, 0) + for _, v := range mappingNatGatewayLifecycleState { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/paravirtualized_volume_attachment.go b/vendor/github.com/oracle/oci-go-sdk/core/paravirtualized_volume_attachment.go index 432597620..91117df5f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/paravirtualized_volume_attachment.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/paravirtualized_volume_attachment.go @@ -16,7 +16,7 @@ import ( // ParavirtualizedVolumeAttachment A paravirtualized volume attachment. type ParavirtualizedVolumeAttachment struct { - // The Availability Domain of an instance. + // The availability domain of an instance. // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` diff --git a/vendor/github.com/oracle/oci-go-sdk/core/private_ip.go b/vendor/github.com/oracle/oci-go-sdk/core/private_ip.go index cd1a2468c..aa38ab6b8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/private_ip.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/private_ip.go @@ -35,9 +35,11 @@ import ( // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, // talk to an administrator. If you're an administrator who needs to write policies to give users access, see // Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type PrivateIp struct { - // The private IP's Availability Domain. + // The private IP's availability domain. // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` diff --git a/vendor/github.com/oracle/oci-go-sdk/core/public_ip.go b/vendor/github.com/oracle/oci-go-sdk/core/public_ip.go index 536a45f64..6528906b2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/public_ip.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/public_ip.go @@ -19,17 +19,28 @@ import ( // 2. Reserved // For more information and comparison of the two types, // see Public IP Addresses (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingpublicIPs.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type PublicIp struct { - // The public IP's Availability Domain. This property is set only for ephemeral public IPs - // (that is, when the `scope` of the public IP is set to AVAILABILITY_DOMAIN). The value - // is the Availability Domain of the assigned private IP. + // The OCID of the entity the public IP is assigned to, or in the process of + // being assigned to. + AssignedEntityId *string `mandatory:"false" json:"assignedEntityId"` + + // The type of entity the public IP is assigned to, or in the process of being + // assigned to. + AssignedEntityType PublicIpAssignedEntityTypeEnum `mandatory:"false" json:"assignedEntityType,omitempty"` + + // The public IP's availability domain. This property is set only for ephemeral public IPs + // that are assigned to a private IP (that is, when the `scope` of the public IP is set to + // AVAILABILITY_DOMAIN). The value is the availability domain of the assigned private IP. // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` // The OCID of the compartment containing the public IP. For an ephemeral public IP, this is - // the same compartment as the private IP's. For a reserved public IP that is currently assigned, - // this can be a different compartment than the assigned private IP's. + // the compartment of its assigned entity (which can be a private IP or a regional entity such + // as a NAT gateway). For a reserved public IP that is currently assigned, + // its compartment can be different from the assigned private IP's. CompartmentId *string `mandatory:"false" json:"compartmentId"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. @@ -58,26 +69,33 @@ type PublicIp struct { LifecycleState PublicIpLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` // Defines when the public IP is deleted and released back to Oracle's public IP pool. - // * `EPHEMERAL`: The lifetime is tied to the lifetime of its assigned private IP. The - // ephemeral public IP is automatically deleted when its private IP is deleted, when - // the VNIC is terminated, or when the instance is terminated. An ephemeral - // public IP must always be assigned to a private IP. + // * `EPHEMERAL`: The lifetime is tied to the lifetime of its assigned entity. An ephemeral + // public IP must always be assigned to an entity. If the assigned entity is a private IP, + // the ephemeral public IP is automatically deleted when the private IP is deleted, when + // the VNIC is terminated, or when the instance is terminated. If the assigned entity is a + // NatGateway, the ephemeral public IP is automatically + // deleted when the NAT gateway is terminated. // * `RESERVED`: You control the public IP's lifetime. You can delete a reserved public IP // whenever you like. It does not need to be assigned to a private IP at all times. // For more information and comparison of the two types, // see Public IP Addresses (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingpublicIPs.htm). Lifetime PublicIpLifetimeEnum `mandatory:"false" json:"lifetime,omitempty"` + // Deprecated. Use `assignedEntityId` instead. // The OCID of the private IP that the public IP is currently assigned to, or in the // process of being assigned to. + // **Note:** This is `null` if the public IP is not assigned to a private IP, or is + // in the process of being assigned to one. PrivateIpId *string `mandatory:"false" json:"privateIpId"` - // Whether the public IP is regional or specific to a particular Availability Domain. - // * `REGION`: The public IP exists within a region and can be assigned to a private IP - // in any Availability Domain in the region. Reserved public IPs have `scope` = `REGION`. - // * `AVAILABILITY_DOMAIN`: The public IP exists within the Availability Domain of the private IP + // Whether the public IP is regional or specific to a particular availability domain. + // * `REGION`: The public IP exists within a region and is assigned to a regional entity + // (such as a NatGateway), or can be assigned to a private + // IP in any availability domain in the region. Reserved public IPs and ephemeral public IPs + // assigned to a regional entity have `scope` = `REGION`. + // * `AVAILABILITY_DOMAIN`: The public IP exists within the availability domain of the entity // it's assigned to, which is specified by the `availabilityDomain` property of the public IP object. - // Ephemeral public IPs have `scope` = `AVAILABILITY_DOMAIN`. + // Ephemeral public IPs that are assigned to private IPs have `scope` = `AVAILABILITY_DOMAIN`. Scope PublicIpScopeEnum `mandatory:"false" json:"scope,omitempty"` // The date and time the public IP was created, in the format defined by RFC3339. @@ -89,6 +107,29 @@ func (m PublicIp) String() string { return common.PointerString(m) } +// PublicIpAssignedEntityTypeEnum Enum with underlying type: string +type PublicIpAssignedEntityTypeEnum string + +// Set of constants representing the allowable values for PublicIpAssignedEntityType +const ( + PublicIpAssignedEntityTypePrivateIp PublicIpAssignedEntityTypeEnum = "PRIVATE_IP" + PublicIpAssignedEntityTypeNatGateway PublicIpAssignedEntityTypeEnum = "NAT_GATEWAY" +) + +var mappingPublicIpAssignedEntityType = map[string]PublicIpAssignedEntityTypeEnum{ + "PRIVATE_IP": PublicIpAssignedEntityTypePrivateIp, + "NAT_GATEWAY": PublicIpAssignedEntityTypeNatGateway, +} + +// GetPublicIpAssignedEntityTypeEnumValues Enumerates the set of values for PublicIpAssignedEntityType +func GetPublicIpAssignedEntityTypeEnumValues() []PublicIpAssignedEntityTypeEnum { + values := make([]PublicIpAssignedEntityTypeEnum, 0) + for _, v := range mappingPublicIpAssignedEntityType { + values = append(values, v) + } + return values +} + // PublicIpLifecycleStateEnum Enum with underlying type: string type PublicIpLifecycleStateEnum string diff --git a/vendor/github.com/oracle/oci-go-sdk/core/remote_peering_connection.go b/vendor/github.com/oracle/oci-go-sdk/core/remote_peering_connection.go index 7de5c41fc..4d49b9098 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/remote_peering_connection.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/remote_peering_connection.go @@ -20,6 +20,8 @@ import ( // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, // talk to an administrator. If you're an administrator who needs to write policies to give users access, see // Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type RemotePeeringConnection struct { // The OCID of the compartment that contains the RPC. diff --git a/vendor/github.com/oracle/oci-go-sdk/core/route_rule.go b/vendor/github.com/oracle/oci-go-sdk/core/route_rule.go index f50199fef..4d531d644 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/route_rule.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/route_rule.go @@ -16,26 +16,32 @@ import ( // packets to (a target). type RouteRule struct { - // Deprecated, Destination and DestinationType should be used instead; request including both fields will be rejected. - // A destination IP address range in CIDR notation. Matching packets will - // be routed to the indicated network entity (the target). - // Example: `0.0.0.0/0` - CidrBlock *string `mandatory:"true" json:"cidrBlock"` - // The OCID for the route rule's target. For information about the type of // targets you can specify, see // Route Tables (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingroutetables.htm). NetworkEntityId *string `mandatory:"true" json:"networkEntityId"` - // The destination service cidrBlock or destination IP address range in CIDR notation. Matching packets will + // Deprecated. Instead use `destination` and `destinationType`. Requests that include both + // `cidrBlock` and `destination` will be rejected. + // A destination IP address range in CIDR notation. Matching packets will // be routed to the indicated network entity (the target). - // Examples: `10.12.0.0/16` - // `oci-phx-objectstorage` + // Example: `0.0.0.0/0` + CidrBlock *string `mandatory:"false" json:"cidrBlock"` + + // Conceptually, this is the range of IP addresses used for matching when routing + // traffic. Required if you provide a `destinationType`. + // Allowed values: + // * IP address range in CIDR notation. For example: `192.168.1.0/24` + // * The `cidrBlock` value for a Service, if you're + // setting up a route rule for traffic destined for a particular service through + // a service gateway. For example: `oci-phx-objectstorage` Destination *string `mandatory:"false" json:"destination"` - // Type of destination for the route rule. SERVICE_CIDR_BLOCK should be used if destination is a service - // cidrBlock. CIDR_BLOCK should be used if destination is IP address range in CIDR notation. It must be provided - // along with `destination`. + // Type of destination for the rule. Required if you provide a `destination`. + // * `CIDR_BLOCK`: If the rule's `destination` is an IP address range in CIDR notation. + // * `SERVICE_CIDR_BLOCK`: If the rule's `destination` is the `cidrBlock` value for a + // Service (the rule is for traffic destined for a + // particular service through a service gateway). DestinationType RouteRuleDestinationTypeEnum `mandatory:"false" json:"destinationType,omitempty"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/core/route_table.go b/vendor/github.com/oracle/oci-go-sdk/core/route_table.go index 8e3a6bcd4..6cf819315 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/route_table.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/route_table.go @@ -18,6 +18,8 @@ import ( // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, // talk to an administrator. If you're an administrator who needs to write policies to give users access, see // Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type RouteTable struct { // The OCID of the compartment containing the route table. diff --git a/vendor/github.com/oracle/oci-go-sdk/core/security_list.go b/vendor/github.com/oracle/oci-go-sdk/core/security_list.go index fe5a5cd1b..2a32cdc0c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/security_list.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/security_list.go @@ -23,6 +23,8 @@ import ( // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, // talk to an administrator. If you're an administrator who needs to write policies to give users access, see // Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type SecurityList struct { // The OCID of the compartment containing the security list. diff --git a/vendor/github.com/oracle/oci-go-sdk/core/service_gateway.go b/vendor/github.com/oracle/oci-go-sdk/core/service_gateway.go index 355899398..75f92401b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/service_gateway.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/service_gateway.go @@ -22,6 +22,8 @@ import ( // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, // talk to an administrator. If you're an administrator who needs to write policies to give users access, see // Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type ServiceGateway struct { // Whether the service gateway blocks all traffic through it. The default is `false`. When @@ -48,16 +50,19 @@ type ServiceGateway struct { // belongs to. VcnId *string `mandatory:"true" json:"vcnId"` - // Usage of predefined tag keys. These predefined keys are scoped to namespaces. - // Example: `{"foo-namespace": {"bar-key": "foo-value"}}` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` // A user-friendly name. Does not have to be unique, and it's changeable. // Avoid entering confidential information. DisplayName *string `mandatory:"false" json:"displayName"` - // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - // Example: `{"bar-key": "value"}` + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // The date and time the service gateway was created, in the format defined by RFC3339. diff --git a/vendor/github.com/oracle/oci-go-sdk/core/subnet.go b/vendor/github.com/oracle/oci-go-sdk/core/subnet.go index 9667ea735..d8afc0a61 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/subnet.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/subnet.go @@ -12,7 +12,7 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// Subnet A logical subdivision of a VCN. Each subnet exists in a single Availability Domain and +// Subnet A logical subdivision of a VCN. Each subnet exists in a single availability domain and // consists of a contiguous range of IP addresses that do not overlap with // other subnets in the VCN. Example: 172.16.1.0/24. For more information, see // Overview of the Networking Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/overview.htm) and @@ -20,9 +20,11 @@ import ( // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, // talk to an administrator. If you're an administrator who needs to write policies to give users access, see // Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type Subnet struct { - // The subnet's Availability Domain. + // The subnet's availability domain. // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_boot_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_boot_volume_details.go index 44a4a9fcb..a9351fec0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_boot_volume_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_boot_volume_details.go @@ -29,6 +29,9 @@ type UpdateBootVolumeDetails struct { // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The size to resize the volume to in GBs. Has to be larger than the current size. + SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` } func (m UpdateBootVolumeDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_boot_volume_kms_key_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_boot_volume_kms_key_details.go new file mode 100644 index 000000000..b14058df6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_boot_volume_kms_key_details.go @@ -0,0 +1,27 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// APIs for Networking Service, Compute Service, and Block Volume Service. +// + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// UpdateBootVolumeKmsKeyDetails The representation of UpdateBootVolumeKmsKeyDetails +type UpdateBootVolumeKmsKeyDetails struct { + + // The new kms key which will be used to protect the specific volume. + // This key has to be a valid kms key ocid, and user must have key delegation policy to allow them to access this key. + // Even if this new kms key is the same as the previous kms key id, block storage service will use it to regenerate a new volume encryption key. + // Example: `{"kmsKeyId": "ocid1.key.region1.sea.afnl2n7daag4s.abzwkljs6uevhlgcznhmh7oiatyrxngrywc3tje3uk3g77hzmewqiieuk75f"}` + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` +} + +func (m UpdateBootVolumeKmsKeyDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_boot_volume_kms_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/update_boot_volume_kms_key_request_response.go new file mode 100644 index 000000000..4fa783965 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_boot_volume_kms_key_request_response.go @@ -0,0 +1,72 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// UpdateBootVolumeKmsKeyRequest wrapper for the UpdateBootVolumeKmsKey operation +type UpdateBootVolumeKmsKeyRequest struct { + + // The OCID of the boot volume. + BootVolumeId *string `mandatory:"true" contributesTo:"path" name:"bootVolumeId"` + + // Update kms key id for the specific boot volume. + UpdateBootVolumeKmsKeyDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateBootVolumeKmsKeyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateBootVolumeKmsKeyRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateBootVolumeKmsKeyRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// UpdateBootVolumeKmsKeyResponse wrapper for the UpdateBootVolumeKmsKey operation +type UpdateBootVolumeKmsKeyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The BootVolumeKmsKey instance + BootVolumeKmsKey `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateBootVolumeKmsKeyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateBootVolumeKmsKeyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_dhcp_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_dhcp_details.go index 2224773d9..4a3336c4b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_dhcp_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_dhcp_details.go @@ -60,7 +60,11 @@ func (m *UpdateDhcpDetails) UnmarshalJSON(data []byte) (e error) { if err != nil { return err } - m.Options[i] = nn.(DhcpOption) + if nn != nil { + m.Options[i] = nn.(DhcpOption) + } else { + m.Options[i] = nil + } } return } diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_instance_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_instance_details.go index f7b25cba7..041c6372a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_instance_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_instance_details.go @@ -30,6 +30,25 @@ type UpdateInstanceDetails struct { // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Custom metadata key/value string pairs that you provide. Any set of key/value pairs + // provided here will completely replace the current set of key/value pairs in the 'metadata' + // field on the instance. + // Both the 'user_data' and 'ssh_authorized_keys' fields cannot be changed after an instance + // has launched. Any request which updates, removes, or adds either of these fields will be + // rejected. You must provide the same values for 'user_data' and 'ssh_authorized_keys' that + // already exist on the instance. + Metadata map[string]string `mandatory:"false" json:"metadata"` + + // Additional metadata key/value pairs that you provide. They serve the same purpose and + // functionality as fields in the 'metadata' object. + // They are distinguished from 'metadata' fields in that these can be nested JSON objects + // (whereas 'metadata' fields are string/string maps only). + // Both the 'user_data' and 'ssh_authorized_keys' fields cannot be changed after an instance + // has launched. Any request which updates, removes, or adds either of these fields will be + // rejected. You must provide the same values for 'user_data' and 'ssh_authorized_keys' that + // already exist on the instance. + ExtendedMetadata map[string]interface{} `mandatory:"false" json:"extendedMetadata"` } func (m UpdateInstanceDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_internet_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/update_internet_gateway_request_response.go index 52fc54a5d..c217f40d5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_internet_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_internet_gateway_request_response.go @@ -11,10 +11,10 @@ import ( // UpdateInternetGatewayRequest wrapper for the UpdateInternetGateway operation type UpdateInternetGatewayRequest struct { - // The OCID of the Internet Gateway. + // The OCID of the internet gateway. IgId *string `mandatory:"true" contributesTo:"path" name:"igId"` - // Details for updating the Internet Gateway. + // Details for updating the internet gateway. UpdateInternetGatewayDetails `contributesTo:"body"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_nat_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_nat_gateway_details.go new file mode 100644 index 000000000..83467eeac --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_nat_gateway_details.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// APIs for Networking Service, Compute Service, and Block Volume Service. +// + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// UpdateNatGatewayDetails The representation of UpdateNatGatewayDetails +type UpdateNatGatewayDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Whether the NAT gateway blocks traffic through it. The default is `false`. + // Example: `true` + BlockTraffic *bool `mandatory:"false" json:"blockTraffic"` +} + +func (m UpdateNatGatewayDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_nat_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/update_nat_gateway_request_response.go new file mode 100644 index 000000000..9b6b4a74f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_nat_gateway_request_response.go @@ -0,0 +1,72 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// UpdateNatGatewayRequest wrapper for the UpdateNatGateway operation +type UpdateNatGatewayRequest struct { + + // The NAT gateway's OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + NatGatewayId *string `mandatory:"true" contributesTo:"path" name:"natGatewayId"` + + // Details object for updating a NAT gateway. + UpdateNatGatewayDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateNatGatewayRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateNatGatewayRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateNatGatewayRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// UpdateNatGatewayResponse wrapper for the UpdateNatGateway operation +type UpdateNatGatewayResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The NatGateway instance + NatGateway `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateNatGatewayResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateNatGatewayResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_service_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_service_gateway_details.go index 4c13efa90..91b0fc273 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_service_gateway_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_service_gateway_details.go @@ -20,16 +20,19 @@ type UpdateServiceGatewayDetails struct { // Example: `true` BlockTraffic *bool `mandatory:"false" json:"blockTraffic"` - // Usage of predefined tag keys. These predefined keys are scoped to namespaces. - // Example: `{"foo-namespace": {"bar-key": "foo-value"}}` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` // A user-friendly name. Does not have to be unique, and it's changeable. // Avoid entering confidential information. DisplayName *string `mandatory:"false" json:"displayName"` - // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - // Example: `{"bar-key": "value"}` + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // List of all the services you want enabled on this service gateway. Sending an empty list diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_volume_details.go index 5f40aec9a..5f3fcf019 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/update_volume_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_volume_details.go @@ -29,6 +29,9 @@ type UpdateVolumeDetails struct { // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The size to resize the volume to in GBs. Has to be larger than the current size. + SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` } func (m UpdateVolumeDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_volume_kms_key_details.go b/vendor/github.com/oracle/oci-go-sdk/core/update_volume_kms_key_details.go new file mode 100644 index 000000000..af463b565 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_volume_kms_key_details.go @@ -0,0 +1,27 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// APIs for Networking Service, Compute Service, and Block Volume Service. +// + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// UpdateVolumeKmsKeyDetails The representation of UpdateVolumeKmsKeyDetails +type UpdateVolumeKmsKeyDetails struct { + + // The new kms key which will be used to protect the specific volume. + // This key has to be a valid kms key ocid, and user must have key delegation policy to allow them to access this key. + // Even if this new kms key is the same as the previous kms key id, block storage service will use it to regenerate a new volume encryption key. + // Example: `{"kmsKeyId": "ocid1.key.region1.sea.afnl2n7daag4s.abzwkljs6uevhlgcznhmh7oiatyrxngrywc3tje3uk3g77hzmewqiieuk75f"}` + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` +} + +func (m UpdateVolumeKmsKeyDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/update_volume_kms_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/core/update_volume_kms_key_request_response.go new file mode 100644 index 000000000..fd0e50ed7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/update_volume_kms_key_request_response.go @@ -0,0 +1,72 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// UpdateVolumeKmsKeyRequest wrapper for the UpdateVolumeKmsKey operation +type UpdateVolumeKmsKeyRequest struct { + + // The OCID of the volume. + VolumeId *string `mandatory:"true" contributesTo:"path" name:"volumeId"` + + // Update kms key id for the specific volume. + UpdateVolumeKmsKeyDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateVolumeKmsKeyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateVolumeKmsKeyRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateVolumeKmsKeyRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// UpdateVolumeKmsKeyResponse wrapper for the UpdateVolumeKmsKey operation +type UpdateVolumeKmsKeyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The VolumeKmsKey instance + VolumeKmsKey `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateVolumeKmsKeyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateVolumeKmsKeyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/vcn.go b/vendor/github.com/oracle/oci-go-sdk/core/vcn.go index dc06abee7..03ec43986 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/vcn.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/vcn.go @@ -12,11 +12,13 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// Vcn A Virtual Cloud Network (VCN). For more information, see +// Vcn A virtual cloud network (VCN). For more information, see // Overview of the Networking Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/overview.htm). // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, // talk to an administrator. If you're an administrator who needs to write policies to give users access, see // Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type Vcn struct { // The CIDR IP address block of the VCN. diff --git a/vendor/github.com/oracle/oci-go-sdk/core/virtual_circuit.go b/vendor/github.com/oracle/oci-go-sdk/core/virtual_circuit.go index 492c84bf4..5c61c05ca 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/virtual_circuit.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/virtual_circuit.go @@ -28,9 +28,14 @@ import ( // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, // talk to an administrator. If you're an administrator who needs to write policies to give users access, see // Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type VirtualCircuit struct { - // The provisioned data rate of the connection. + // The provisioned data rate of the connection. To get a list of the + // available bandwidth levels (that is, shapes), see + // ListFastConnectProviderVirtualCircuitBandwidthShapes. + // Example: `10 Gbps` BandwidthShapeName *string `mandatory:"false" json:"bandwidthShapeName"` // BGP management option. @@ -90,7 +95,7 @@ type VirtualCircuit struct { ProviderState VirtualCircuitProviderStateEnum `mandatory:"false" json:"providerState,omitempty"` // For a public virtual circuit. The public IP prefixes (CIDRs) the customer wants to - // advertise across the connection. Each prefix must be /24 or less specific. + // advertise across the connection. Each prefix must be /31 or less specific. PublicPrefixes []string `mandatory:"false" json:"publicPrefixes"` // Provider-supplied reference information about this virtual circuit diff --git a/vendor/github.com/oracle/oci-go-sdk/core/vnic.go b/vendor/github.com/oracle/oci-go-sdk/core/vnic.go index 28f33810b..6106d44d2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/vnic.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/vnic.go @@ -25,9 +25,11 @@ import ( // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, // talk to an administrator. If you're an administrator who needs to write policies to give users access, see // Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type Vnic struct { - // The VNIC's Availability Domain. + // The VNIC's availability domain. // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` @@ -40,11 +42,6 @@ type Vnic struct { // The current state of the VNIC. LifecycleState VnicLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - // The private IP address of the primary `privateIp` object on the VNIC. - // The address is within the CIDR of the VNIC's subnet. - // Example: `10.0.3.3` - PrivateIp *string `mandatory:"true" json:"privateIp"` - // The OCID of the subnet the VNIC is in. SubnetId *string `mandatory:"true" json:"subnetId"` @@ -86,6 +83,11 @@ type Vnic struct { // Example: `00:00:17:B6:4D:DD` MacAddress *string `mandatory:"false" json:"macAddress"` + // The private IP address of the primary `privateIp` object on the VNIC. + // The address is within the CIDR of the VNIC's subnet. + // Example: `10.0.3.3` + PrivateIp *string `mandatory:"false" json:"privateIp"` + // The public IP address of the VNIC, if one is assigned. PublicIp *string `mandatory:"false" json:"publicIp"` diff --git a/vendor/github.com/oracle/oci-go-sdk/core/vnic_attachment.go b/vendor/github.com/oracle/oci-go-sdk/core/vnic_attachment.go index f08db683f..d1153a2a4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/vnic_attachment.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/vnic_attachment.go @@ -14,9 +14,11 @@ import ( // VnicAttachment Represents an attachment between a VNIC and an instance. For more information, see // Virtual Network Interface Cards (VNICs) (https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingVNICs.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type VnicAttachment struct { - // The Availability Domain of the instance. + // The availability domain of the instance. // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` diff --git a/vendor/github.com/oracle/oci-go-sdk/core/volume.go b/vendor/github.com/oracle/oci-go-sdk/core/volume.go index 1960ec785..ad31dca5f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/volume.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/volume.go @@ -19,9 +19,11 @@ import ( // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, // talk to an administrator. If you're an administrator who needs to write policies to give users access, see // Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type Volume struct { - // The Availability Domain of the volume. + // The availability domain of the volume. // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` @@ -39,7 +41,7 @@ type Volume struct { LifecycleState VolumeLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // The size of the volume in MBs. This field is deprecated. Use sizeInGBs instead. - SizeInMBs *int `mandatory:"true" json:"sizeInMBs"` + SizeInMBs *int64 `mandatory:"true" json:"sizeInMBs"` // The date and time the volume was created. Format defined by RFC3339. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` @@ -58,10 +60,13 @@ type Volume struct { // Specifies whether the cloned volume's data has finished copying from the source volume or backup. IsHydrated *bool `mandatory:"false" json:"isHydrated"` + // The OCID of the KMS key which is the master encryption key for the volume. + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` + // The size of the volume in GBs. - SizeInGBs *int `mandatory:"false" json:"sizeInGBs"` + SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` - // The volume source, either an existing volume in the same Availability Domain or a volume backup. + // The volume source, either an existing volume in the same availability domain or a volume backup. // If null, an empty volume is created. SourceDetails VolumeSourceDetails `mandatory:"false" json:"sourceDetails"` @@ -79,7 +84,8 @@ func (m *Volume) UnmarshalJSON(data []byte) (e error) { DefinedTags map[string]map[string]interface{} `json:"definedTags"` FreeformTags map[string]string `json:"freeformTags"` IsHydrated *bool `json:"isHydrated"` - SizeInGBs *int `json:"sizeInGBs"` + KmsKeyId *string `json:"kmsKeyId"` + SizeInGBs *int64 `json:"sizeInGBs"` SourceDetails volumesourcedetails `json:"sourceDetails"` VolumeGroupId *string `json:"volumeGroupId"` AvailabilityDomain *string `json:"availabilityDomain"` @@ -87,7 +93,7 @@ func (m *Volume) UnmarshalJSON(data []byte) (e error) { DisplayName *string `json:"displayName"` Id *string `json:"id"` LifecycleState VolumeLifecycleStateEnum `json:"lifecycleState"` - SizeInMBs *int `json:"sizeInMBs"` + SizeInMBs *int64 `json:"sizeInMBs"` TimeCreated *common.SDKTime `json:"timeCreated"` }{} @@ -98,12 +104,17 @@ func (m *Volume) UnmarshalJSON(data []byte) (e error) { m.DefinedTags = model.DefinedTags m.FreeformTags = model.FreeformTags m.IsHydrated = model.IsHydrated + m.KmsKeyId = model.KmsKeyId m.SizeInGBs = model.SizeInGBs nn, e := model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData) if e != nil { return } - m.SourceDetails = nn.(VolumeSourceDetails) + if nn != nil { + m.SourceDetails = nn.(VolumeSourceDetails) + } else { + m.SourceDetails = nil + } m.VolumeGroupId = model.VolumeGroupId m.AvailabilityDomain = model.AvailabilityDomain m.CompartmentId = model.CompartmentId diff --git a/vendor/github.com/oracle/oci-go-sdk/core/volume_attachment.go b/vendor/github.com/oracle/oci-go-sdk/core/volume_attachment.go index 51a0397a5..a74a7dc0d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/volume_attachment.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/volume_attachment.go @@ -18,9 +18,11 @@ import ( // IScsiVolumeAttachment. // For general information about volume attachments, see // Overview of Block Volume Storage (https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/overview.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type VolumeAttachment interface { - // The Availability Domain of an instance. + // The availability domain of an instance. // Example: `Uocm:PHX-AD-1` GetAvailabilityDomain() *string @@ -93,6 +95,11 @@ func (m *volumeattachment) UnmarshalJSON(data []byte) error { // UnmarshalPolymorphicJSON unmarshals polymorphic json func (m *volumeattachment) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + var err error switch m.AttachmentType { case "iscsi": @@ -104,7 +111,7 @@ func (m *volumeattachment) UnmarshalPolymorphicJSON(data []byte) (interface{}, e err = json.Unmarshal(data, &mm) return mm, err default: - return m, nil + return *m, nil } } diff --git a/vendor/github.com/oracle/oci-go-sdk/core/volume_backup.go b/vendor/github.com/oracle/oci-go-sdk/core/volume_backup.go index c3b59bc53..eb1d25e18 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/volume_backup.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/volume_backup.go @@ -18,6 +18,8 @@ import ( // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, // talk to an administrator. If you're an administrator who needs to write policies to give users access, see // Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type VolumeBackup struct { // The OCID of the compartment that contains the volume backup. @@ -59,11 +61,11 @@ type VolumeBackup struct { FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // The size of the volume, in GBs. - SizeInGBs *int `mandatory:"false" json:"sizeInGBs"` + SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` // The size of the volume in MBs. The value must be a multiple of 1024. // This field is deprecated. Please use sizeInGBs. - SizeInMBs *int `mandatory:"false" json:"sizeInMBs"` + SizeInMBs *int64 `mandatory:"false" json:"sizeInMBs"` // Specifies whether the backup was created manually, or via scheduled backup policy. SourceType VolumeBackupSourceTypeEnum `mandatory:"false" json:"sourceType,omitempty"` @@ -73,12 +75,12 @@ type VolumeBackup struct { // The size used by the backup, in GBs. It is typically smaller than sizeInGBs, depending on the space // consumed on the volume and whether the backup is full or incremental. - UniqueSizeInGBs *int `mandatory:"false" json:"uniqueSizeInGBs"` + UniqueSizeInGBs *int64 `mandatory:"false" json:"uniqueSizeInGBs"` // The size used by the backup, in MBs. It is typically smaller than sizeInMBs, depending on the space // consumed on the volume and whether the backup is full or incremental. // This field is deprecated. Please use uniqueSizeInGBs. - UniqueSizeInMbs *int `mandatory:"false" json:"uniqueSizeInMbs"` + UniqueSizeInMbs *int64 `mandatory:"false" json:"uniqueSizeInMbs"` // The OCID of the volume. VolumeId *string `mandatory:"false" json:"volumeId"` diff --git a/vendor/github.com/oracle/oci-go-sdk/core/volume_backup_policy.go b/vendor/github.com/oracle/oci-go-sdk/core/volume_backup_policy.go index bbc9aad2c..dfb936a33 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/volume_backup_policy.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/volume_backup_policy.go @@ -12,7 +12,11 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// VolumeBackupPolicy A policy for automatically creating volume backups according to a recurring schedule. Has a set of one or more schedules that control when and how backups are created. +// VolumeBackupPolicy A policy for automatically creating volume backups according to a +// recurring schedule. Has a set of one or more schedules that control when and +// how backups are created. +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type VolumeBackupPolicy struct { // A user-friendly name for the volume backup policy. Does not have to be unique and it's changeable. diff --git a/vendor/github.com/oracle/oci-go-sdk/core/volume_group.go b/vendor/github.com/oracle/oci-go-sdk/core/volume_group.go index 41bb97992..052cde3aa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/volume_group.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/volume_group.go @@ -13,7 +13,10 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// VolumeGroup Specifies a volume group which is a collection of volumes. For more information, see Volume Groups (https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/volumegroups.htm). +// VolumeGroup Specifies a volume group which is a collection of +// volumes. For more information, see Volume Groups (https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/volumegroups.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type VolumeGroup struct { // The availability domain of the volume group. @@ -29,7 +32,7 @@ type VolumeGroup struct { Id *string `mandatory:"true" json:"id"` // The aggregate size of the volume group in MBs. - SizeInMBs *int `mandatory:"true" json:"sizeInMBs"` + SizeInMBs *int64 `mandatory:"true" json:"sizeInMBs"` // The date and time the volume group was created. Format defined by RFC3339. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` @@ -52,11 +55,14 @@ type VolumeGroup struct { LifecycleState VolumeGroupLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` // The aggregate size of the volume group in GBs. - SizeInGBs *int `mandatory:"false" json:"sizeInGBs"` + SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` // The volume group source. The source is either another a list of // volume IDs in the same availability domain, another volume group, or a volume group backup. SourceDetails VolumeGroupSourceDetails `mandatory:"false" json:"sourceDetails"` + + // Specifies whether the newly created cloned volume group's data has finished copying from the source volume group or backup. + IsHydrated *bool `mandatory:"false" json:"isHydrated"` } func (m VolumeGroup) String() string { @@ -69,13 +75,14 @@ func (m *VolumeGroup) UnmarshalJSON(data []byte) (e error) { DefinedTags map[string]map[string]interface{} `json:"definedTags"` FreeformTags map[string]string `json:"freeformTags"` LifecycleState VolumeGroupLifecycleStateEnum `json:"lifecycleState"` - SizeInGBs *int `json:"sizeInGBs"` + SizeInGBs *int64 `json:"sizeInGBs"` SourceDetails volumegroupsourcedetails `json:"sourceDetails"` + IsHydrated *bool `json:"isHydrated"` AvailabilityDomain *string `json:"availabilityDomain"` CompartmentId *string `json:"compartmentId"` DisplayName *string `json:"displayName"` Id *string `json:"id"` - SizeInMBs *int `json:"sizeInMBs"` + SizeInMBs *int64 `json:"sizeInMBs"` TimeCreated *common.SDKTime `json:"timeCreated"` VolumeIds []string `json:"volumeIds"` }{} @@ -92,7 +99,12 @@ func (m *VolumeGroup) UnmarshalJSON(data []byte) (e error) { if e != nil { return } - m.SourceDetails = nn.(VolumeGroupSourceDetails) + if nn != nil { + m.SourceDetails = nn.(VolumeGroupSourceDetails) + } else { + m.SourceDetails = nil + } + m.IsHydrated = model.IsHydrated m.AvailabilityDomain = model.AvailabilityDomain m.CompartmentId = model.CompartmentId m.DisplayName = model.DisplayName diff --git a/vendor/github.com/oracle/oci-go-sdk/core/volume_group_backup.go b/vendor/github.com/oracle/oci-go-sdk/core/volume_group_backup.go index 098d98881..710634c85 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/volume_group_backup.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/volume_group_backup.go @@ -17,6 +17,8 @@ import ( // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, // talk to an administrator. If you're an administrator who needs to write policies to give users access, see // Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. type VolumeGroupBackup struct { // The OCID of the compartment that contains the volume group backup. @@ -53,10 +55,10 @@ type VolumeGroupBackup struct { FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // The aggregate size of the volume group backup, in MBs. - SizeInMBs *int `mandatory:"false" json:"sizeInMBs"` + SizeInMBs *int64 `mandatory:"false" json:"sizeInMBs"` // The aggregate size of the volume group backup, in GBs. - SizeInGBs *int `mandatory:"false" json:"sizeInGBs"` + SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` // The date and time the request to create the volume group backup was received. Format defined by RFC3339. TimeRequestReceived *common.SDKTime `mandatory:"false" json:"timeRequestReceived"` @@ -64,12 +66,12 @@ type VolumeGroupBackup struct { // The aggregate size used by the volume group backup, in MBs. // It is typically smaller than sizeInMBs, depending on the space // consumed on the volume group and whether the volume backup is full or incremental. - UniqueSizeInMbs *int `mandatory:"false" json:"uniqueSizeInMbs"` + UniqueSizeInMbs *int64 `mandatory:"false" json:"uniqueSizeInMbs"` // The aggregate size used by the volume group backup, in GBs. // It is typically smaller than sizeInGBs, depending on the space // consumed on the volume group and whether the volume backup is full or incremental. - UniqueSizeInGbs *int `mandatory:"false" json:"uniqueSizeInGbs"` + UniqueSizeInGbs *int64 `mandatory:"false" json:"uniqueSizeInGbs"` // The OCID of the source volume group. VolumeGroupId *string `mandatory:"false" json:"volumeGroupId"` diff --git a/vendor/github.com/oracle/oci-go-sdk/core/volume_group_source_details.go b/vendor/github.com/oracle/oci-go-sdk/core/volume_group_source_details.go index bac01faf1..5cc24e67c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/volume_group_source_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/volume_group_source_details.go @@ -40,6 +40,11 @@ func (m *volumegroupsourcedetails) UnmarshalJSON(data []byte) error { // UnmarshalPolymorphicJSON unmarshals polymorphic json func (m *volumegroupsourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + var err error switch m.Type { case "volumeGroupId": @@ -55,7 +60,7 @@ func (m *volumegroupsourcedetails) UnmarshalPolymorphicJSON(data []byte) (interf err = json.Unmarshal(data, &mm) return mm, err default: - return m, nil + return *m, nil } } diff --git a/vendor/github.com/oracle/oci-go-sdk/core/volume_kms_key.go b/vendor/github.com/oracle/oci-go-sdk/core/volume_kms_key.go new file mode 100644 index 000000000..b06cee021 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/core/volume_kms_key.go @@ -0,0 +1,24 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// APIs for Networking Service, Compute Service, and Block Volume Service. +// + +package core + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// VolumeKmsKey Kms key id associated with this volume. +type VolumeKmsKey struct { + + // Kms key id associated with this volume. If volume is not using KMS, then kmsKeyId will be null string. + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` +} + +func (m VolumeKmsKey) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/core/volume_source_details.go b/vendor/github.com/oracle/oci-go-sdk/core/volume_source_details.go index 336c21e8b..e948c8b79 100644 --- a/vendor/github.com/oracle/oci-go-sdk/core/volume_source_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/core/volume_source_details.go @@ -40,6 +40,11 @@ func (m *volumesourcedetails) UnmarshalJSON(data []byte) error { // UnmarshalPolymorphicJSON unmarshals polymorphic json func (m *volumesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + var err error switch m.Type { case "volume": @@ -51,7 +56,7 @@ func (m *volumesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{} err = json.Unmarshal(data, &mm) return mm, err default: - return m, nil + return *m, nil } } diff --git a/vendor/github.com/oracle/oci-go-sdk/database/autonomous_data_warehouse.go b/vendor/github.com/oracle/oci-go-sdk/database/autonomous_data_warehouse.go new file mode 100644 index 000000000..a770974db --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/autonomous_data_warehouse.go @@ -0,0 +1,134 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. +// + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// AutonomousDataWarehouse An Oracle Autonomous Data Warehouse. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type AutonomousDataWarehouse struct { + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The number of CPU cores to be made available to the database. + CpuCoreCount *int `mandatory:"true" json:"cpuCoreCount"` + + // The quantity of data in the database, in terabytes. + DataStorageSizeInTBs *int `mandatory:"true" json:"dataStorageSizeInTBs"` + + // The database name. + DbName *string `mandatory:"true" json:"dbName"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse. + Id *string `mandatory:"true" json:"id"` + + // The current state of the database. + LifecycleState AutonomousDataWarehouseLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The connection string used to connect to the Data Warehouse. The username for the Service Console is ADMIN. Use the password you entered when creating the Autonomous Data Warehouse for the password value. + ConnectionStrings *AutonomousDataWarehouseConnectionStrings `mandatory:"false" json:"connectionStrings"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // The user-friendly name for the Autonomous Data Warehouse. The name does not have to be unique. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The Oracle license model that applies to the Oracle Autonomous Data Warehouse. The default is BRING_YOUR_OWN_LICENSE. + LicenseModel AutonomousDataWarehouseLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` + + // Additional information about the current lifecycle state. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The URL of the Service Console for the Data Warehouse. + ServiceConsoleUrl *string `mandatory:"false" json:"serviceConsoleUrl"` + + // The date and time the database was created. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} + +func (m AutonomousDataWarehouse) String() string { + return common.PointerString(m) +} + +// AutonomousDataWarehouseLicenseModelEnum Enum with underlying type: string +type AutonomousDataWarehouseLicenseModelEnum string + +// Set of constants representing the allowable values for AutonomousDataWarehouseLicenseModel +const ( + AutonomousDataWarehouseLicenseModelLicenseIncluded AutonomousDataWarehouseLicenseModelEnum = "LICENSE_INCLUDED" + AutonomousDataWarehouseLicenseModelBringYourOwnLicense AutonomousDataWarehouseLicenseModelEnum = "BRING_YOUR_OWN_LICENSE" +) + +var mappingAutonomousDataWarehouseLicenseModel = map[string]AutonomousDataWarehouseLicenseModelEnum{ + "LICENSE_INCLUDED": AutonomousDataWarehouseLicenseModelLicenseIncluded, + "BRING_YOUR_OWN_LICENSE": AutonomousDataWarehouseLicenseModelBringYourOwnLicense, +} + +// GetAutonomousDataWarehouseLicenseModelEnumValues Enumerates the set of values for AutonomousDataWarehouseLicenseModel +func GetAutonomousDataWarehouseLicenseModelEnumValues() []AutonomousDataWarehouseLicenseModelEnum { + values := make([]AutonomousDataWarehouseLicenseModelEnum, 0) + for _, v := range mappingAutonomousDataWarehouseLicenseModel { + values = append(values, v) + } + return values +} + +// AutonomousDataWarehouseLifecycleStateEnum Enum with underlying type: string +type AutonomousDataWarehouseLifecycleStateEnum string + +// Set of constants representing the allowable values for AutonomousDataWarehouseLifecycleState +const ( + AutonomousDataWarehouseLifecycleStateProvisioning AutonomousDataWarehouseLifecycleStateEnum = "PROVISIONING" + AutonomousDataWarehouseLifecycleStateAvailable AutonomousDataWarehouseLifecycleStateEnum = "AVAILABLE" + AutonomousDataWarehouseLifecycleStateStopping AutonomousDataWarehouseLifecycleStateEnum = "STOPPING" + AutonomousDataWarehouseLifecycleStateStopped AutonomousDataWarehouseLifecycleStateEnum = "STOPPED" + AutonomousDataWarehouseLifecycleStateStarting AutonomousDataWarehouseLifecycleStateEnum = "STARTING" + AutonomousDataWarehouseLifecycleStateTerminating AutonomousDataWarehouseLifecycleStateEnum = "TERMINATING" + AutonomousDataWarehouseLifecycleStateTerminated AutonomousDataWarehouseLifecycleStateEnum = "TERMINATED" + AutonomousDataWarehouseLifecycleStateUnavailable AutonomousDataWarehouseLifecycleStateEnum = "UNAVAILABLE" + AutonomousDataWarehouseLifecycleStateRestoreInProgress AutonomousDataWarehouseLifecycleStateEnum = "RESTORE_IN_PROGRESS" + AutonomousDataWarehouseLifecycleStateBackupInProgress AutonomousDataWarehouseLifecycleStateEnum = "BACKUP_IN_PROGRESS" + AutonomousDataWarehouseLifecycleStateScaleInProgress AutonomousDataWarehouseLifecycleStateEnum = "SCALE_IN_PROGRESS" + AutonomousDataWarehouseLifecycleStateAvailableNeedsAttention AutonomousDataWarehouseLifecycleStateEnum = "AVAILABLE_NEEDS_ATTENTION" +) + +var mappingAutonomousDataWarehouseLifecycleState = map[string]AutonomousDataWarehouseLifecycleStateEnum{ + "PROVISIONING": AutonomousDataWarehouseLifecycleStateProvisioning, + "AVAILABLE": AutonomousDataWarehouseLifecycleStateAvailable, + "STOPPING": AutonomousDataWarehouseLifecycleStateStopping, + "STOPPED": AutonomousDataWarehouseLifecycleStateStopped, + "STARTING": AutonomousDataWarehouseLifecycleStateStarting, + "TERMINATING": AutonomousDataWarehouseLifecycleStateTerminating, + "TERMINATED": AutonomousDataWarehouseLifecycleStateTerminated, + "UNAVAILABLE": AutonomousDataWarehouseLifecycleStateUnavailable, + "RESTORE_IN_PROGRESS": AutonomousDataWarehouseLifecycleStateRestoreInProgress, + "BACKUP_IN_PROGRESS": AutonomousDataWarehouseLifecycleStateBackupInProgress, + "SCALE_IN_PROGRESS": AutonomousDataWarehouseLifecycleStateScaleInProgress, + "AVAILABLE_NEEDS_ATTENTION": AutonomousDataWarehouseLifecycleStateAvailableNeedsAttention, +} + +// GetAutonomousDataWarehouseLifecycleStateEnumValues Enumerates the set of values for AutonomousDataWarehouseLifecycleState +func GetAutonomousDataWarehouseLifecycleStateEnumValues() []AutonomousDataWarehouseLifecycleStateEnum { + values := make([]AutonomousDataWarehouseLifecycleStateEnum, 0) + for _, v := range mappingAutonomousDataWarehouseLifecycleState { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/autonomous_data_warehouse_backup.go b/vendor/github.com/oracle/oci-go-sdk/database/autonomous_data_warehouse_backup.go new file mode 100644 index 000000000..d2c0e3f8d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/autonomous_data_warehouse_backup.go @@ -0,0 +1,105 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. +// + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// AutonomousDataWarehouseBackup An Autonomous Data Warehouse backup. +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type AutonomousDataWarehouseBackup struct { + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse. + AutonomousDataWarehouseId *string `mandatory:"true" json:"autonomousDataWarehouseId"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The user-friendly name for the backup. The name does not have to be unique. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse backup. + Id *string `mandatory:"true" json:"id"` + + // Indicates whether the backup is user-initiated or automatic. + IsAutomatic *bool `mandatory:"true" json:"isAutomatic"` + + // The current state of the backup. + LifecycleState AutonomousDataWarehouseBackupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The type of backup. + Type AutonomousDataWarehouseBackupTypeEnum `mandatory:"true" json:"type"` + + // Additional information about the current lifecycle state. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The date and time the backup completed. + TimeEnded *common.SDKTime `mandatory:"false" json:"timeEnded"` + + // The date and time the backup started. + TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` +} + +func (m AutonomousDataWarehouseBackup) String() string { + return common.PointerString(m) +} + +// AutonomousDataWarehouseBackupLifecycleStateEnum Enum with underlying type: string +type AutonomousDataWarehouseBackupLifecycleStateEnum string + +// Set of constants representing the allowable values for AutonomousDataWarehouseBackupLifecycleState +const ( + AutonomousDataWarehouseBackupLifecycleStateCreating AutonomousDataWarehouseBackupLifecycleStateEnum = "CREATING" + AutonomousDataWarehouseBackupLifecycleStateActive AutonomousDataWarehouseBackupLifecycleStateEnum = "ACTIVE" + AutonomousDataWarehouseBackupLifecycleStateDeleting AutonomousDataWarehouseBackupLifecycleStateEnum = "DELETING" + AutonomousDataWarehouseBackupLifecycleStateDeleted AutonomousDataWarehouseBackupLifecycleStateEnum = "DELETED" + AutonomousDataWarehouseBackupLifecycleStateFailed AutonomousDataWarehouseBackupLifecycleStateEnum = "FAILED" +) + +var mappingAutonomousDataWarehouseBackupLifecycleState = map[string]AutonomousDataWarehouseBackupLifecycleStateEnum{ + "CREATING": AutonomousDataWarehouseBackupLifecycleStateCreating, + "ACTIVE": AutonomousDataWarehouseBackupLifecycleStateActive, + "DELETING": AutonomousDataWarehouseBackupLifecycleStateDeleting, + "DELETED": AutonomousDataWarehouseBackupLifecycleStateDeleted, + "FAILED": AutonomousDataWarehouseBackupLifecycleStateFailed, +} + +// GetAutonomousDataWarehouseBackupLifecycleStateEnumValues Enumerates the set of values for AutonomousDataWarehouseBackupLifecycleState +func GetAutonomousDataWarehouseBackupLifecycleStateEnumValues() []AutonomousDataWarehouseBackupLifecycleStateEnum { + values := make([]AutonomousDataWarehouseBackupLifecycleStateEnum, 0) + for _, v := range mappingAutonomousDataWarehouseBackupLifecycleState { + values = append(values, v) + } + return values +} + +// AutonomousDataWarehouseBackupTypeEnum Enum with underlying type: string +type AutonomousDataWarehouseBackupTypeEnum string + +// Set of constants representing the allowable values for AutonomousDataWarehouseBackupType +const ( + AutonomousDataWarehouseBackupTypeIncremental AutonomousDataWarehouseBackupTypeEnum = "INCREMENTAL" + AutonomousDataWarehouseBackupTypeFull AutonomousDataWarehouseBackupTypeEnum = "FULL" +) + +var mappingAutonomousDataWarehouseBackupType = map[string]AutonomousDataWarehouseBackupTypeEnum{ + "INCREMENTAL": AutonomousDataWarehouseBackupTypeIncremental, + "FULL": AutonomousDataWarehouseBackupTypeFull, +} + +// GetAutonomousDataWarehouseBackupTypeEnumValues Enumerates the set of values for AutonomousDataWarehouseBackupType +func GetAutonomousDataWarehouseBackupTypeEnumValues() []AutonomousDataWarehouseBackupTypeEnum { + values := make([]AutonomousDataWarehouseBackupTypeEnum, 0) + for _, v := range mappingAutonomousDataWarehouseBackupType { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/autonomous_data_warehouse_backup_summary.go b/vendor/github.com/oracle/oci-go-sdk/database/autonomous_data_warehouse_backup_summary.go new file mode 100644 index 000000000..43807dad7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/autonomous_data_warehouse_backup_summary.go @@ -0,0 +1,105 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. +// + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// AutonomousDataWarehouseBackupSummary An Autonomous Data Warehouse backup. +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type AutonomousDataWarehouseBackupSummary struct { + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse. + AutonomousDataWarehouseId *string `mandatory:"true" json:"autonomousDataWarehouseId"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The user-friendly name for the backup. The name does not have to be unique. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse backup. + Id *string `mandatory:"true" json:"id"` + + // Indicates whether the backup is user-initiated or automatic. + IsAutomatic *bool `mandatory:"true" json:"isAutomatic"` + + // The current state of the backup. + LifecycleState AutonomousDataWarehouseBackupSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The type of backup. + Type AutonomousDataWarehouseBackupSummaryTypeEnum `mandatory:"true" json:"type"` + + // Additional information about the current lifecycle state. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The date and time the backup completed. + TimeEnded *common.SDKTime `mandatory:"false" json:"timeEnded"` + + // The date and time the backup started. + TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` +} + +func (m AutonomousDataWarehouseBackupSummary) String() string { + return common.PointerString(m) +} + +// AutonomousDataWarehouseBackupSummaryLifecycleStateEnum Enum with underlying type: string +type AutonomousDataWarehouseBackupSummaryLifecycleStateEnum string + +// Set of constants representing the allowable values for AutonomousDataWarehouseBackupSummaryLifecycleState +const ( + AutonomousDataWarehouseBackupSummaryLifecycleStateCreating AutonomousDataWarehouseBackupSummaryLifecycleStateEnum = "CREATING" + AutonomousDataWarehouseBackupSummaryLifecycleStateActive AutonomousDataWarehouseBackupSummaryLifecycleStateEnum = "ACTIVE" + AutonomousDataWarehouseBackupSummaryLifecycleStateDeleting AutonomousDataWarehouseBackupSummaryLifecycleStateEnum = "DELETING" + AutonomousDataWarehouseBackupSummaryLifecycleStateDeleted AutonomousDataWarehouseBackupSummaryLifecycleStateEnum = "DELETED" + AutonomousDataWarehouseBackupSummaryLifecycleStateFailed AutonomousDataWarehouseBackupSummaryLifecycleStateEnum = "FAILED" +) + +var mappingAutonomousDataWarehouseBackupSummaryLifecycleState = map[string]AutonomousDataWarehouseBackupSummaryLifecycleStateEnum{ + "CREATING": AutonomousDataWarehouseBackupSummaryLifecycleStateCreating, + "ACTIVE": AutonomousDataWarehouseBackupSummaryLifecycleStateActive, + "DELETING": AutonomousDataWarehouseBackupSummaryLifecycleStateDeleting, + "DELETED": AutonomousDataWarehouseBackupSummaryLifecycleStateDeleted, + "FAILED": AutonomousDataWarehouseBackupSummaryLifecycleStateFailed, +} + +// GetAutonomousDataWarehouseBackupSummaryLifecycleStateEnumValues Enumerates the set of values for AutonomousDataWarehouseBackupSummaryLifecycleState +func GetAutonomousDataWarehouseBackupSummaryLifecycleStateEnumValues() []AutonomousDataWarehouseBackupSummaryLifecycleStateEnum { + values := make([]AutonomousDataWarehouseBackupSummaryLifecycleStateEnum, 0) + for _, v := range mappingAutonomousDataWarehouseBackupSummaryLifecycleState { + values = append(values, v) + } + return values +} + +// AutonomousDataWarehouseBackupSummaryTypeEnum Enum with underlying type: string +type AutonomousDataWarehouseBackupSummaryTypeEnum string + +// Set of constants representing the allowable values for AutonomousDataWarehouseBackupSummaryType +const ( + AutonomousDataWarehouseBackupSummaryTypeIncremental AutonomousDataWarehouseBackupSummaryTypeEnum = "INCREMENTAL" + AutonomousDataWarehouseBackupSummaryTypeFull AutonomousDataWarehouseBackupSummaryTypeEnum = "FULL" +) + +var mappingAutonomousDataWarehouseBackupSummaryType = map[string]AutonomousDataWarehouseBackupSummaryTypeEnum{ + "INCREMENTAL": AutonomousDataWarehouseBackupSummaryTypeIncremental, + "FULL": AutonomousDataWarehouseBackupSummaryTypeFull, +} + +// GetAutonomousDataWarehouseBackupSummaryTypeEnumValues Enumerates the set of values for AutonomousDataWarehouseBackupSummaryType +func GetAutonomousDataWarehouseBackupSummaryTypeEnumValues() []AutonomousDataWarehouseBackupSummaryTypeEnum { + values := make([]AutonomousDataWarehouseBackupSummaryTypeEnum, 0) + for _, v := range mappingAutonomousDataWarehouseBackupSummaryType { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/autonomous_data_warehouse_connection_strings.go b/vendor/github.com/oracle/oci-go-sdk/database/autonomous_data_warehouse_connection_strings.go new file mode 100644 index 000000000..23374e8db --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/autonomous_data_warehouse_connection_strings.go @@ -0,0 +1,30 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. +// + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// AutonomousDataWarehouseConnectionStrings Connection strings to connect to an Oracle Autonomous Data Warehouse. +type AutonomousDataWarehouseConnectionStrings struct { + + // The High database service provides the highest level of resources to each SQL statement resulting in the highest performance, but supports the fewest number of concurrent SQL statements. + High *string `mandatory:"false" json:"high"` + + // The Low database service provides the least level of resources to each SQL statement, but supports the most number of concurrent SQL statements. + Low *string `mandatory:"false" json:"low"` + + // The Medium database service provides a lower level of resources to each SQL statement potentially resulting a lower level of performance, but supports more concurrent SQL statements. + Medium *string `mandatory:"false" json:"medium"` +} + +func (m AutonomousDataWarehouseConnectionStrings) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/autonomous_data_warehouse_summary.go b/vendor/github.com/oracle/oci-go-sdk/database/autonomous_data_warehouse_summary.go new file mode 100644 index 000000000..0711c4c80 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/autonomous_data_warehouse_summary.go @@ -0,0 +1,134 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. +// + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// AutonomousDataWarehouseSummary An Oracle Autonomous Data Warehouse. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type AutonomousDataWarehouseSummary struct { + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The number of CPU cores to be made available to the database. + CpuCoreCount *int `mandatory:"true" json:"cpuCoreCount"` + + // The quantity of data in the database, in terabytes. + DataStorageSizeInTBs *int `mandatory:"true" json:"dataStorageSizeInTBs"` + + // The database name. + DbName *string `mandatory:"true" json:"dbName"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse. + Id *string `mandatory:"true" json:"id"` + + // The current state of the database. + LifecycleState AutonomousDataWarehouseSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The connection string used to connect to the Data Warehouse. The username for the Service Console is ADMIN. Use the password you entered when creating the Autonomous Data Warehouse for the password value. + ConnectionStrings *AutonomousDataWarehouseConnectionStrings `mandatory:"false" json:"connectionStrings"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // The user-friendly name for the Autonomous Data Warehouse. The name does not have to be unique. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The Oracle license model that applies to the Oracle Autonomous Data Warehouse. The default is BRING_YOUR_OWN_LICENSE. + LicenseModel AutonomousDataWarehouseSummaryLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` + + // Additional information about the current lifecycle state. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The URL of the Service Console for the Data Warehouse. + ServiceConsoleUrl *string `mandatory:"false" json:"serviceConsoleUrl"` + + // The date and time the database was created. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} + +func (m AutonomousDataWarehouseSummary) String() string { + return common.PointerString(m) +} + +// AutonomousDataWarehouseSummaryLicenseModelEnum Enum with underlying type: string +type AutonomousDataWarehouseSummaryLicenseModelEnum string + +// Set of constants representing the allowable values for AutonomousDataWarehouseSummaryLicenseModel +const ( + AutonomousDataWarehouseSummaryLicenseModelLicenseIncluded AutonomousDataWarehouseSummaryLicenseModelEnum = "LICENSE_INCLUDED" + AutonomousDataWarehouseSummaryLicenseModelBringYourOwnLicense AutonomousDataWarehouseSummaryLicenseModelEnum = "BRING_YOUR_OWN_LICENSE" +) + +var mappingAutonomousDataWarehouseSummaryLicenseModel = map[string]AutonomousDataWarehouseSummaryLicenseModelEnum{ + "LICENSE_INCLUDED": AutonomousDataWarehouseSummaryLicenseModelLicenseIncluded, + "BRING_YOUR_OWN_LICENSE": AutonomousDataWarehouseSummaryLicenseModelBringYourOwnLicense, +} + +// GetAutonomousDataWarehouseSummaryLicenseModelEnumValues Enumerates the set of values for AutonomousDataWarehouseSummaryLicenseModel +func GetAutonomousDataWarehouseSummaryLicenseModelEnumValues() []AutonomousDataWarehouseSummaryLicenseModelEnum { + values := make([]AutonomousDataWarehouseSummaryLicenseModelEnum, 0) + for _, v := range mappingAutonomousDataWarehouseSummaryLicenseModel { + values = append(values, v) + } + return values +} + +// AutonomousDataWarehouseSummaryLifecycleStateEnum Enum with underlying type: string +type AutonomousDataWarehouseSummaryLifecycleStateEnum string + +// Set of constants representing the allowable values for AutonomousDataWarehouseSummaryLifecycleState +const ( + AutonomousDataWarehouseSummaryLifecycleStateProvisioning AutonomousDataWarehouseSummaryLifecycleStateEnum = "PROVISIONING" + AutonomousDataWarehouseSummaryLifecycleStateAvailable AutonomousDataWarehouseSummaryLifecycleStateEnum = "AVAILABLE" + AutonomousDataWarehouseSummaryLifecycleStateStopping AutonomousDataWarehouseSummaryLifecycleStateEnum = "STOPPING" + AutonomousDataWarehouseSummaryLifecycleStateStopped AutonomousDataWarehouseSummaryLifecycleStateEnum = "STOPPED" + AutonomousDataWarehouseSummaryLifecycleStateStarting AutonomousDataWarehouseSummaryLifecycleStateEnum = "STARTING" + AutonomousDataWarehouseSummaryLifecycleStateTerminating AutonomousDataWarehouseSummaryLifecycleStateEnum = "TERMINATING" + AutonomousDataWarehouseSummaryLifecycleStateTerminated AutonomousDataWarehouseSummaryLifecycleStateEnum = "TERMINATED" + AutonomousDataWarehouseSummaryLifecycleStateUnavailable AutonomousDataWarehouseSummaryLifecycleStateEnum = "UNAVAILABLE" + AutonomousDataWarehouseSummaryLifecycleStateRestoreInProgress AutonomousDataWarehouseSummaryLifecycleStateEnum = "RESTORE_IN_PROGRESS" + AutonomousDataWarehouseSummaryLifecycleStateBackupInProgress AutonomousDataWarehouseSummaryLifecycleStateEnum = "BACKUP_IN_PROGRESS" + AutonomousDataWarehouseSummaryLifecycleStateScaleInProgress AutonomousDataWarehouseSummaryLifecycleStateEnum = "SCALE_IN_PROGRESS" + AutonomousDataWarehouseSummaryLifecycleStateAvailableNeedsAttention AutonomousDataWarehouseSummaryLifecycleStateEnum = "AVAILABLE_NEEDS_ATTENTION" +) + +var mappingAutonomousDataWarehouseSummaryLifecycleState = map[string]AutonomousDataWarehouseSummaryLifecycleStateEnum{ + "PROVISIONING": AutonomousDataWarehouseSummaryLifecycleStateProvisioning, + "AVAILABLE": AutonomousDataWarehouseSummaryLifecycleStateAvailable, + "STOPPING": AutonomousDataWarehouseSummaryLifecycleStateStopping, + "STOPPED": AutonomousDataWarehouseSummaryLifecycleStateStopped, + "STARTING": AutonomousDataWarehouseSummaryLifecycleStateStarting, + "TERMINATING": AutonomousDataWarehouseSummaryLifecycleStateTerminating, + "TERMINATED": AutonomousDataWarehouseSummaryLifecycleStateTerminated, + "UNAVAILABLE": AutonomousDataWarehouseSummaryLifecycleStateUnavailable, + "RESTORE_IN_PROGRESS": AutonomousDataWarehouseSummaryLifecycleStateRestoreInProgress, + "BACKUP_IN_PROGRESS": AutonomousDataWarehouseSummaryLifecycleStateBackupInProgress, + "SCALE_IN_PROGRESS": AutonomousDataWarehouseSummaryLifecycleStateScaleInProgress, + "AVAILABLE_NEEDS_ATTENTION": AutonomousDataWarehouseSummaryLifecycleStateAvailableNeedsAttention, +} + +// GetAutonomousDataWarehouseSummaryLifecycleStateEnumValues Enumerates the set of values for AutonomousDataWarehouseSummaryLifecycleState +func GetAutonomousDataWarehouseSummaryLifecycleStateEnumValues() []AutonomousDataWarehouseSummaryLifecycleStateEnum { + values := make([]AutonomousDataWarehouseSummaryLifecycleStateEnum, 0) + for _, v := range mappingAutonomousDataWarehouseSummaryLifecycleState { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/autonomous_database.go b/vendor/github.com/oracle/oci-go-sdk/database/autonomous_database.go new file mode 100644 index 000000000..e7f39324d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/autonomous_database.go @@ -0,0 +1,134 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. +// + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// AutonomousDatabase An Oracle Autonomous Database. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type AutonomousDatabase struct { + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The number of CPU cores to be made available to the database. + CpuCoreCount *int `mandatory:"true" json:"cpuCoreCount"` + + // The quantity of data in the database, in terabytes. + DataStorageSizeInTBs *int `mandatory:"true" json:"dataStorageSizeInTBs"` + + // The database name. + DbName *string `mandatory:"true" json:"dbName"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database. + Id *string `mandatory:"true" json:"id"` + + // The current state of the database. + LifecycleState AutonomousDatabaseLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The connection string used to connect to the Autonomous Database. The username for the Service Console is ADMIN. Use the password you entered when creating the Autonomous Database for the password value. + ConnectionStrings *AutonomousDatabaseConnectionStrings `mandatory:"false" json:"connectionStrings"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // The user-friendly name for the Autonomous Database. The name does not have to be unique. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The Oracle license model that applies to the Oracle Autonomous Database. The default is BRING_YOUR_OWN_LICENSE. + LicenseModel AutonomousDatabaseLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` + + // Additional information about the current lifecycle state. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The URL of the Service Console for the Autonomous Database. + ServiceConsoleUrl *string `mandatory:"false" json:"serviceConsoleUrl"` + + // The date and time the database was created. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} + +func (m AutonomousDatabase) String() string { + return common.PointerString(m) +} + +// AutonomousDatabaseLicenseModelEnum Enum with underlying type: string +type AutonomousDatabaseLicenseModelEnum string + +// Set of constants representing the allowable values for AutonomousDatabaseLicenseModel +const ( + AutonomousDatabaseLicenseModelLicenseIncluded AutonomousDatabaseLicenseModelEnum = "LICENSE_INCLUDED" + AutonomousDatabaseLicenseModelBringYourOwnLicense AutonomousDatabaseLicenseModelEnum = "BRING_YOUR_OWN_LICENSE" +) + +var mappingAutonomousDatabaseLicenseModel = map[string]AutonomousDatabaseLicenseModelEnum{ + "LICENSE_INCLUDED": AutonomousDatabaseLicenseModelLicenseIncluded, + "BRING_YOUR_OWN_LICENSE": AutonomousDatabaseLicenseModelBringYourOwnLicense, +} + +// GetAutonomousDatabaseLicenseModelEnumValues Enumerates the set of values for AutonomousDatabaseLicenseModel +func GetAutonomousDatabaseLicenseModelEnumValues() []AutonomousDatabaseLicenseModelEnum { + values := make([]AutonomousDatabaseLicenseModelEnum, 0) + for _, v := range mappingAutonomousDatabaseLicenseModel { + values = append(values, v) + } + return values +} + +// AutonomousDatabaseLifecycleStateEnum Enum with underlying type: string +type AutonomousDatabaseLifecycleStateEnum string + +// Set of constants representing the allowable values for AutonomousDatabaseLifecycleState +const ( + AutonomousDatabaseLifecycleStateProvisioning AutonomousDatabaseLifecycleStateEnum = "PROVISIONING" + AutonomousDatabaseLifecycleStateAvailable AutonomousDatabaseLifecycleStateEnum = "AVAILABLE" + AutonomousDatabaseLifecycleStateStopping AutonomousDatabaseLifecycleStateEnum = "STOPPING" + AutonomousDatabaseLifecycleStateStopped AutonomousDatabaseLifecycleStateEnum = "STOPPED" + AutonomousDatabaseLifecycleStateStarting AutonomousDatabaseLifecycleStateEnum = "STARTING" + AutonomousDatabaseLifecycleStateTerminating AutonomousDatabaseLifecycleStateEnum = "TERMINATING" + AutonomousDatabaseLifecycleStateTerminated AutonomousDatabaseLifecycleStateEnum = "TERMINATED" + AutonomousDatabaseLifecycleStateUnavailable AutonomousDatabaseLifecycleStateEnum = "UNAVAILABLE" + AutonomousDatabaseLifecycleStateRestoreInProgress AutonomousDatabaseLifecycleStateEnum = "RESTORE_IN_PROGRESS" + AutonomousDatabaseLifecycleStateBackupInProgress AutonomousDatabaseLifecycleStateEnum = "BACKUP_IN_PROGRESS" + AutonomousDatabaseLifecycleStateScaleInProgress AutonomousDatabaseLifecycleStateEnum = "SCALE_IN_PROGRESS" + AutonomousDatabaseLifecycleStateAvailableNeedsAttention AutonomousDatabaseLifecycleStateEnum = "AVAILABLE_NEEDS_ATTENTION" +) + +var mappingAutonomousDatabaseLifecycleState = map[string]AutonomousDatabaseLifecycleStateEnum{ + "PROVISIONING": AutonomousDatabaseLifecycleStateProvisioning, + "AVAILABLE": AutonomousDatabaseLifecycleStateAvailable, + "STOPPING": AutonomousDatabaseLifecycleStateStopping, + "STOPPED": AutonomousDatabaseLifecycleStateStopped, + "STARTING": AutonomousDatabaseLifecycleStateStarting, + "TERMINATING": AutonomousDatabaseLifecycleStateTerminating, + "TERMINATED": AutonomousDatabaseLifecycleStateTerminated, + "UNAVAILABLE": AutonomousDatabaseLifecycleStateUnavailable, + "RESTORE_IN_PROGRESS": AutonomousDatabaseLifecycleStateRestoreInProgress, + "BACKUP_IN_PROGRESS": AutonomousDatabaseLifecycleStateBackupInProgress, + "SCALE_IN_PROGRESS": AutonomousDatabaseLifecycleStateScaleInProgress, + "AVAILABLE_NEEDS_ATTENTION": AutonomousDatabaseLifecycleStateAvailableNeedsAttention, +} + +// GetAutonomousDatabaseLifecycleStateEnumValues Enumerates the set of values for AutonomousDatabaseLifecycleState +func GetAutonomousDatabaseLifecycleStateEnumValues() []AutonomousDatabaseLifecycleStateEnum { + values := make([]AutonomousDatabaseLifecycleStateEnum, 0) + for _, v := range mappingAutonomousDatabaseLifecycleState { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/autonomous_database_backup.go b/vendor/github.com/oracle/oci-go-sdk/database/autonomous_database_backup.go new file mode 100644 index 000000000..8064daf67 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/autonomous_database_backup.go @@ -0,0 +1,105 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. +// + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// AutonomousDatabaseBackup An Autonomous Database backup. +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type AutonomousDatabaseBackup struct { + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database. + AutonomousDatabaseId *string `mandatory:"true" json:"autonomousDatabaseId"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The user-friendly name for the backup. The name does not have to be unique. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database backup. + Id *string `mandatory:"true" json:"id"` + + // Indicates whether the backup is user-initiated or automatic. + IsAutomatic *bool `mandatory:"true" json:"isAutomatic"` + + // The current state of the backup. + LifecycleState AutonomousDatabaseBackupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The type of backup. + Type AutonomousDatabaseBackupTypeEnum `mandatory:"true" json:"type"` + + // Additional information about the current lifecycle state. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The date and time the backup completed. + TimeEnded *common.SDKTime `mandatory:"false" json:"timeEnded"` + + // The date and time the backup started. + TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` +} + +func (m AutonomousDatabaseBackup) String() string { + return common.PointerString(m) +} + +// AutonomousDatabaseBackupLifecycleStateEnum Enum with underlying type: string +type AutonomousDatabaseBackupLifecycleStateEnum string + +// Set of constants representing the allowable values for AutonomousDatabaseBackupLifecycleState +const ( + AutonomousDatabaseBackupLifecycleStateCreating AutonomousDatabaseBackupLifecycleStateEnum = "CREATING" + AutonomousDatabaseBackupLifecycleStateActive AutonomousDatabaseBackupLifecycleStateEnum = "ACTIVE" + AutonomousDatabaseBackupLifecycleStateDeleting AutonomousDatabaseBackupLifecycleStateEnum = "DELETING" + AutonomousDatabaseBackupLifecycleStateDeleted AutonomousDatabaseBackupLifecycleStateEnum = "DELETED" + AutonomousDatabaseBackupLifecycleStateFailed AutonomousDatabaseBackupLifecycleStateEnum = "FAILED" +) + +var mappingAutonomousDatabaseBackupLifecycleState = map[string]AutonomousDatabaseBackupLifecycleStateEnum{ + "CREATING": AutonomousDatabaseBackupLifecycleStateCreating, + "ACTIVE": AutonomousDatabaseBackupLifecycleStateActive, + "DELETING": AutonomousDatabaseBackupLifecycleStateDeleting, + "DELETED": AutonomousDatabaseBackupLifecycleStateDeleted, + "FAILED": AutonomousDatabaseBackupLifecycleStateFailed, +} + +// GetAutonomousDatabaseBackupLifecycleStateEnumValues Enumerates the set of values for AutonomousDatabaseBackupLifecycleState +func GetAutonomousDatabaseBackupLifecycleStateEnumValues() []AutonomousDatabaseBackupLifecycleStateEnum { + values := make([]AutonomousDatabaseBackupLifecycleStateEnum, 0) + for _, v := range mappingAutonomousDatabaseBackupLifecycleState { + values = append(values, v) + } + return values +} + +// AutonomousDatabaseBackupTypeEnum Enum with underlying type: string +type AutonomousDatabaseBackupTypeEnum string + +// Set of constants representing the allowable values for AutonomousDatabaseBackupType +const ( + AutonomousDatabaseBackupTypeIncremental AutonomousDatabaseBackupTypeEnum = "INCREMENTAL" + AutonomousDatabaseBackupTypeFull AutonomousDatabaseBackupTypeEnum = "FULL" +) + +var mappingAutonomousDatabaseBackupType = map[string]AutonomousDatabaseBackupTypeEnum{ + "INCREMENTAL": AutonomousDatabaseBackupTypeIncremental, + "FULL": AutonomousDatabaseBackupTypeFull, +} + +// GetAutonomousDatabaseBackupTypeEnumValues Enumerates the set of values for AutonomousDatabaseBackupType +func GetAutonomousDatabaseBackupTypeEnumValues() []AutonomousDatabaseBackupTypeEnum { + values := make([]AutonomousDatabaseBackupTypeEnum, 0) + for _, v := range mappingAutonomousDatabaseBackupType { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/autonomous_database_backup_summary.go b/vendor/github.com/oracle/oci-go-sdk/database/autonomous_database_backup_summary.go new file mode 100644 index 000000000..993070367 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/autonomous_database_backup_summary.go @@ -0,0 +1,105 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. +// + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// AutonomousDatabaseBackupSummary An Autonomous Database backup. +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type AutonomousDatabaseBackupSummary struct { + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database. + AutonomousDatabaseId *string `mandatory:"true" json:"autonomousDatabaseId"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The user-friendly name for the backup. The name does not have to be unique. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database backup. + Id *string `mandatory:"true" json:"id"` + + // Indicates whether the backup is user-initiated or automatic. + IsAutomatic *bool `mandatory:"true" json:"isAutomatic"` + + // The current state of the backup. + LifecycleState AutonomousDatabaseBackupSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The type of backup. + Type AutonomousDatabaseBackupSummaryTypeEnum `mandatory:"true" json:"type"` + + // Additional information about the current lifecycle state. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The date and time the backup completed. + TimeEnded *common.SDKTime `mandatory:"false" json:"timeEnded"` + + // The date and time the backup started. + TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` +} + +func (m AutonomousDatabaseBackupSummary) String() string { + return common.PointerString(m) +} + +// AutonomousDatabaseBackupSummaryLifecycleStateEnum Enum with underlying type: string +type AutonomousDatabaseBackupSummaryLifecycleStateEnum string + +// Set of constants representing the allowable values for AutonomousDatabaseBackupSummaryLifecycleState +const ( + AutonomousDatabaseBackupSummaryLifecycleStateCreating AutonomousDatabaseBackupSummaryLifecycleStateEnum = "CREATING" + AutonomousDatabaseBackupSummaryLifecycleStateActive AutonomousDatabaseBackupSummaryLifecycleStateEnum = "ACTIVE" + AutonomousDatabaseBackupSummaryLifecycleStateDeleting AutonomousDatabaseBackupSummaryLifecycleStateEnum = "DELETING" + AutonomousDatabaseBackupSummaryLifecycleStateDeleted AutonomousDatabaseBackupSummaryLifecycleStateEnum = "DELETED" + AutonomousDatabaseBackupSummaryLifecycleStateFailed AutonomousDatabaseBackupSummaryLifecycleStateEnum = "FAILED" +) + +var mappingAutonomousDatabaseBackupSummaryLifecycleState = map[string]AutonomousDatabaseBackupSummaryLifecycleStateEnum{ + "CREATING": AutonomousDatabaseBackupSummaryLifecycleStateCreating, + "ACTIVE": AutonomousDatabaseBackupSummaryLifecycleStateActive, + "DELETING": AutonomousDatabaseBackupSummaryLifecycleStateDeleting, + "DELETED": AutonomousDatabaseBackupSummaryLifecycleStateDeleted, + "FAILED": AutonomousDatabaseBackupSummaryLifecycleStateFailed, +} + +// GetAutonomousDatabaseBackupSummaryLifecycleStateEnumValues Enumerates the set of values for AutonomousDatabaseBackupSummaryLifecycleState +func GetAutonomousDatabaseBackupSummaryLifecycleStateEnumValues() []AutonomousDatabaseBackupSummaryLifecycleStateEnum { + values := make([]AutonomousDatabaseBackupSummaryLifecycleStateEnum, 0) + for _, v := range mappingAutonomousDatabaseBackupSummaryLifecycleState { + values = append(values, v) + } + return values +} + +// AutonomousDatabaseBackupSummaryTypeEnum Enum with underlying type: string +type AutonomousDatabaseBackupSummaryTypeEnum string + +// Set of constants representing the allowable values for AutonomousDatabaseBackupSummaryType +const ( + AutonomousDatabaseBackupSummaryTypeIncremental AutonomousDatabaseBackupSummaryTypeEnum = "INCREMENTAL" + AutonomousDatabaseBackupSummaryTypeFull AutonomousDatabaseBackupSummaryTypeEnum = "FULL" +) + +var mappingAutonomousDatabaseBackupSummaryType = map[string]AutonomousDatabaseBackupSummaryTypeEnum{ + "INCREMENTAL": AutonomousDatabaseBackupSummaryTypeIncremental, + "FULL": AutonomousDatabaseBackupSummaryTypeFull, +} + +// GetAutonomousDatabaseBackupSummaryTypeEnumValues Enumerates the set of values for AutonomousDatabaseBackupSummaryType +func GetAutonomousDatabaseBackupSummaryTypeEnumValues() []AutonomousDatabaseBackupSummaryTypeEnum { + values := make([]AutonomousDatabaseBackupSummaryTypeEnum, 0) + for _, v := range mappingAutonomousDatabaseBackupSummaryType { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/autonomous_database_connection_strings.go b/vendor/github.com/oracle/oci-go-sdk/database/autonomous_database_connection_strings.go new file mode 100644 index 000000000..6956d0da1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/autonomous_database_connection_strings.go @@ -0,0 +1,30 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. +// + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// AutonomousDatabaseConnectionStrings Connection strings to connect to an Oracle Autonomous Database. +type AutonomousDatabaseConnectionStrings struct { + + // The High database service provides the highest level of resources to each SQL statement resulting in the highest performance, but supports the fewest number of concurrent SQL statements. + High *string `mandatory:"false" json:"high"` + + // The Low database service provides the least level of resources to each SQL statement, but supports the most number of concurrent SQL statements. + Low *string `mandatory:"false" json:"low"` + + // The Medium database service provides a lower level of resources to each SQL statement potentially resulting a lower level of performance, but supports more concurrent SQL statements. + Medium *string `mandatory:"false" json:"medium"` +} + +func (m AutonomousDatabaseConnectionStrings) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/autonomous_database_summary.go b/vendor/github.com/oracle/oci-go-sdk/database/autonomous_database_summary.go new file mode 100644 index 000000000..1871bf802 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/autonomous_database_summary.go @@ -0,0 +1,134 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. +// + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// AutonomousDatabaseSummary An Oracle Autonomous Database. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type AutonomousDatabaseSummary struct { + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The number of CPU cores to be made available to the database. + CpuCoreCount *int `mandatory:"true" json:"cpuCoreCount"` + + // The quantity of data in the database, in terabytes. + DataStorageSizeInTBs *int `mandatory:"true" json:"dataStorageSizeInTBs"` + + // The database name. + DbName *string `mandatory:"true" json:"dbName"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database. + Id *string `mandatory:"true" json:"id"` + + // The current state of the database. + LifecycleState AutonomousDatabaseSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The connection string used to connect to the Autonomous Database. The username for the Service Console is ADMIN. Use the password you entered when creating the Autonomous Database for the password value. + ConnectionStrings *AutonomousDatabaseConnectionStrings `mandatory:"false" json:"connectionStrings"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // The user-friendly name for the Autonomous Database. The name does not have to be unique. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The Oracle license model that applies to the Oracle Autonomous Database. The default is BRING_YOUR_OWN_LICENSE. + LicenseModel AutonomousDatabaseSummaryLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` + + // Additional information about the current lifecycle state. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The URL of the Service Console for the Autonomous Database. + ServiceConsoleUrl *string `mandatory:"false" json:"serviceConsoleUrl"` + + // The date and time the database was created. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} + +func (m AutonomousDatabaseSummary) String() string { + return common.PointerString(m) +} + +// AutonomousDatabaseSummaryLicenseModelEnum Enum with underlying type: string +type AutonomousDatabaseSummaryLicenseModelEnum string + +// Set of constants representing the allowable values for AutonomousDatabaseSummaryLicenseModel +const ( + AutonomousDatabaseSummaryLicenseModelLicenseIncluded AutonomousDatabaseSummaryLicenseModelEnum = "LICENSE_INCLUDED" + AutonomousDatabaseSummaryLicenseModelBringYourOwnLicense AutonomousDatabaseSummaryLicenseModelEnum = "BRING_YOUR_OWN_LICENSE" +) + +var mappingAutonomousDatabaseSummaryLicenseModel = map[string]AutonomousDatabaseSummaryLicenseModelEnum{ + "LICENSE_INCLUDED": AutonomousDatabaseSummaryLicenseModelLicenseIncluded, + "BRING_YOUR_OWN_LICENSE": AutonomousDatabaseSummaryLicenseModelBringYourOwnLicense, +} + +// GetAutonomousDatabaseSummaryLicenseModelEnumValues Enumerates the set of values for AutonomousDatabaseSummaryLicenseModel +func GetAutonomousDatabaseSummaryLicenseModelEnumValues() []AutonomousDatabaseSummaryLicenseModelEnum { + values := make([]AutonomousDatabaseSummaryLicenseModelEnum, 0) + for _, v := range mappingAutonomousDatabaseSummaryLicenseModel { + values = append(values, v) + } + return values +} + +// AutonomousDatabaseSummaryLifecycleStateEnum Enum with underlying type: string +type AutonomousDatabaseSummaryLifecycleStateEnum string + +// Set of constants representing the allowable values for AutonomousDatabaseSummaryLifecycleState +const ( + AutonomousDatabaseSummaryLifecycleStateProvisioning AutonomousDatabaseSummaryLifecycleStateEnum = "PROVISIONING" + AutonomousDatabaseSummaryLifecycleStateAvailable AutonomousDatabaseSummaryLifecycleStateEnum = "AVAILABLE" + AutonomousDatabaseSummaryLifecycleStateStopping AutonomousDatabaseSummaryLifecycleStateEnum = "STOPPING" + AutonomousDatabaseSummaryLifecycleStateStopped AutonomousDatabaseSummaryLifecycleStateEnum = "STOPPED" + AutonomousDatabaseSummaryLifecycleStateStarting AutonomousDatabaseSummaryLifecycleStateEnum = "STARTING" + AutonomousDatabaseSummaryLifecycleStateTerminating AutonomousDatabaseSummaryLifecycleStateEnum = "TERMINATING" + AutonomousDatabaseSummaryLifecycleStateTerminated AutonomousDatabaseSummaryLifecycleStateEnum = "TERMINATED" + AutonomousDatabaseSummaryLifecycleStateUnavailable AutonomousDatabaseSummaryLifecycleStateEnum = "UNAVAILABLE" + AutonomousDatabaseSummaryLifecycleStateRestoreInProgress AutonomousDatabaseSummaryLifecycleStateEnum = "RESTORE_IN_PROGRESS" + AutonomousDatabaseSummaryLifecycleStateBackupInProgress AutonomousDatabaseSummaryLifecycleStateEnum = "BACKUP_IN_PROGRESS" + AutonomousDatabaseSummaryLifecycleStateScaleInProgress AutonomousDatabaseSummaryLifecycleStateEnum = "SCALE_IN_PROGRESS" + AutonomousDatabaseSummaryLifecycleStateAvailableNeedsAttention AutonomousDatabaseSummaryLifecycleStateEnum = "AVAILABLE_NEEDS_ATTENTION" +) + +var mappingAutonomousDatabaseSummaryLifecycleState = map[string]AutonomousDatabaseSummaryLifecycleStateEnum{ + "PROVISIONING": AutonomousDatabaseSummaryLifecycleStateProvisioning, + "AVAILABLE": AutonomousDatabaseSummaryLifecycleStateAvailable, + "STOPPING": AutonomousDatabaseSummaryLifecycleStateStopping, + "STOPPED": AutonomousDatabaseSummaryLifecycleStateStopped, + "STARTING": AutonomousDatabaseSummaryLifecycleStateStarting, + "TERMINATING": AutonomousDatabaseSummaryLifecycleStateTerminating, + "TERMINATED": AutonomousDatabaseSummaryLifecycleStateTerminated, + "UNAVAILABLE": AutonomousDatabaseSummaryLifecycleStateUnavailable, + "RESTORE_IN_PROGRESS": AutonomousDatabaseSummaryLifecycleStateRestoreInProgress, + "BACKUP_IN_PROGRESS": AutonomousDatabaseSummaryLifecycleStateBackupInProgress, + "SCALE_IN_PROGRESS": AutonomousDatabaseSummaryLifecycleStateScaleInProgress, + "AVAILABLE_NEEDS_ATTENTION": AutonomousDatabaseSummaryLifecycleStateAvailableNeedsAttention, +} + +// GetAutonomousDatabaseSummaryLifecycleStateEnumValues Enumerates the set of values for AutonomousDatabaseSummaryLifecycleState +func GetAutonomousDatabaseSummaryLifecycleStateEnumValues() []AutonomousDatabaseSummaryLifecycleStateEnum { + values := make([]AutonomousDatabaseSummaryLifecycleStateEnum, 0) + for _, v := range mappingAutonomousDatabaseSummaryLifecycleState { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/backup.go b/vendor/github.com/oracle/oci-go-sdk/database/backup.go index feb8bf96f..5e9f5a1ba 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/backup.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/backup.go @@ -12,29 +12,30 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// Backup A database backup +// Backup A database backup. // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type Backup struct { - // The name of the Availability Domain that the backup is located in. + // The name of the availability domain where the database backup is stored. AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - // The OCID of the compartment. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"false" json:"compartmentId"` - // The Oracle Database Edition of the DbSystem on which the backup was taken. + // The Oracle Database edition of the DB system from which the database backup was taken. DatabaseEdition *string `mandatory:"false" json:"databaseEdition"` - // The OCID of the database. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database. DatabaseId *string `mandatory:"false" json:"databaseId"` - // Size of the database in mega-bytes at the time the backup was taken. + // Size of the database in megabytes (MB) at the time the backup was taken. DbDataSizeInMBs *int `mandatory:"false" json:"dbDataSizeInMBs"` - // The user-friendly name for the backup. It does not have to be unique. + // The user-friendly name for the backup. The name does not have to be unique. DisplayName *string `mandatory:"false" json:"displayName"` - // The OCID of the backup. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the backup. Id *string `mandatory:"false" json:"id"` // Additional information about the current lifecycleState. @@ -46,7 +47,7 @@ type Backup struct { // The date and time the backup was completed. TimeEnded *common.SDKTime `mandatory:"false" json:"timeEnded"` - // The date and time the backup starts. + // The date and time the backup started. TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` // The type of backup. diff --git a/vendor/github.com/oracle/oci-go-sdk/database/backup_summary.go b/vendor/github.com/oracle/oci-go-sdk/database/backup_summary.go index 9cbba5db9..c45e6eb82 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/backup_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/backup_summary.go @@ -12,29 +12,30 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// BackupSummary A database backup +// BackupSummary A database backup. // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type BackupSummary struct { - // The name of the Availability Domain that the backup is located in. + // The name of the availability domain where the database backup is stored. AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - // The OCID of the compartment. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"false" json:"compartmentId"` - // The Oracle Database Edition of the DbSystem on which the backup was taken. + // The Oracle Database edition of the DB system from which the database backup was taken. DatabaseEdition *string `mandatory:"false" json:"databaseEdition"` - // The OCID of the database. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database. DatabaseId *string `mandatory:"false" json:"databaseId"` - // Size of the database in mega-bytes at the time the backup was taken. + // Size of the database in megabytes (MB) at the time the backup was taken. DbDataSizeInMBs *int `mandatory:"false" json:"dbDataSizeInMBs"` - // The user-friendly name for the backup. It does not have to be unique. + // The user-friendly name for the backup. The name does not have to be unique. DisplayName *string `mandatory:"false" json:"displayName"` - // The OCID of the backup. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the backup. Id *string `mandatory:"false" json:"id"` // Additional information about the current lifecycleState. @@ -46,7 +47,7 @@ type BackupSummary struct { // The date and time the backup was completed. TimeEnded *common.SDKTime `mandatory:"false" json:"timeEnded"` - // The date and time the backup starts. + // The date and time the backup started. TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` // The type of backup. diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_autonomous_data_warehouse_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/database/create_autonomous_data_warehouse_backup_details.go new file mode 100644 index 000000000..c84b2b558 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_autonomous_data_warehouse_backup_details.go @@ -0,0 +1,28 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. +// + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// CreateAutonomousDataWarehouseBackupDetails Details to create an Oracle Autonomous Data Warehouse backup. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type CreateAutonomousDataWarehouseBackupDetails struct { + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse backup. + AutonomousDataWarehouseId *string `mandatory:"true" json:"autonomousDataWarehouseId"` + + // The user-friendly name for the backup. The name does not have to be unique. + DisplayName *string `mandatory:"true" json:"displayName"` +} + +func (m CreateAutonomousDataWarehouseBackupDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_autonomous_data_warehouse_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/create_autonomous_data_warehouse_backup_request_response.go new file mode 100644 index 000000000..512e6da63 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_autonomous_data_warehouse_backup_request_response.go @@ -0,0 +1,71 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// CreateAutonomousDataWarehouseBackupRequest wrapper for the CreateAutonomousDataWarehouseBackup operation +type CreateAutonomousDataWarehouseBackupRequest struct { + + // Request to create a new Autonomous Data Warehouse backup. + CreateAutonomousDataWarehouseBackupDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateAutonomousDataWarehouseBackupRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateAutonomousDataWarehouseBackupRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateAutonomousDataWarehouseBackupRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// CreateAutonomousDataWarehouseBackupResponse wrapper for the CreateAutonomousDataWarehouseBackup operation +type CreateAutonomousDataWarehouseBackupResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The AutonomousDataWarehouseBackup instance + AutonomousDataWarehouseBackup `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateAutonomousDataWarehouseBackupResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateAutonomousDataWarehouseBackupResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_autonomous_data_warehouse_details.go b/vendor/github.com/oracle/oci-go-sdk/database/create_autonomous_data_warehouse_details.go new file mode 100644 index 000000000..1764b61e6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_autonomous_data_warehouse_details.go @@ -0,0 +1,76 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. +// + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// CreateAutonomousDataWarehouseDetails Details to create an Oracle Autonomous Data Warehouse. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type CreateAutonomousDataWarehouseDetails struct { + + // A strong password for Admin. The password must be between 12 and 60 characters long, and must contain at least 1 uppercase, 1 lowercase and 2 numeric characters. It cannot contain the double quote symbol ("). It must be different than the last 4 passwords. + AdminPassword *string `mandatory:"true" json:"adminPassword"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment of the Autonomous Data Warehouse. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The number of CPU Cores to be made available to the database. + CpuCoreCount *int `mandatory:"true" json:"cpuCoreCount"` + + // Size, in terabytes, of the data volume that will be created and attached to the database. This storage can later be scaled up if needed. + DataStorageSizeInTBs *int `mandatory:"true" json:"dataStorageSizeInTBs"` + + // The database name. The name must begin with an alphabetic character and can contain a maximum of 14 alphanumeric characters. Special characters are not permitted. The database name must be unique in the tenancy. + DbName *string `mandatory:"true" json:"dbName"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // The user-friendly name for the Autonomous Data Warehouse. The name does not have to be unique. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The Oracle license model that applies to the Oracle Autonomous Data Warehouse. The default is BRING_YOUR_OWN_LICENSE. + LicenseModel CreateAutonomousDataWarehouseDetailsLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` +} + +func (m CreateAutonomousDataWarehouseDetails) String() string { + return common.PointerString(m) +} + +// CreateAutonomousDataWarehouseDetailsLicenseModelEnum Enum with underlying type: string +type CreateAutonomousDataWarehouseDetailsLicenseModelEnum string + +// Set of constants representing the allowable values for CreateAutonomousDataWarehouseDetailsLicenseModel +const ( + CreateAutonomousDataWarehouseDetailsLicenseModelLicenseIncluded CreateAutonomousDataWarehouseDetailsLicenseModelEnum = "LICENSE_INCLUDED" + CreateAutonomousDataWarehouseDetailsLicenseModelBringYourOwnLicense CreateAutonomousDataWarehouseDetailsLicenseModelEnum = "BRING_YOUR_OWN_LICENSE" +) + +var mappingCreateAutonomousDataWarehouseDetailsLicenseModel = map[string]CreateAutonomousDataWarehouseDetailsLicenseModelEnum{ + "LICENSE_INCLUDED": CreateAutonomousDataWarehouseDetailsLicenseModelLicenseIncluded, + "BRING_YOUR_OWN_LICENSE": CreateAutonomousDataWarehouseDetailsLicenseModelBringYourOwnLicense, +} + +// GetCreateAutonomousDataWarehouseDetailsLicenseModelEnumValues Enumerates the set of values for CreateAutonomousDataWarehouseDetailsLicenseModel +func GetCreateAutonomousDataWarehouseDetailsLicenseModelEnumValues() []CreateAutonomousDataWarehouseDetailsLicenseModelEnum { + values := make([]CreateAutonomousDataWarehouseDetailsLicenseModelEnum, 0) + for _, v := range mappingCreateAutonomousDataWarehouseDetailsLicenseModel { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_autonomous_data_warehouse_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/create_autonomous_data_warehouse_request_response.go new file mode 100644 index 000000000..8f5f5f781 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_autonomous_data_warehouse_request_response.go @@ -0,0 +1,71 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// CreateAutonomousDataWarehouseRequest wrapper for the CreateAutonomousDataWarehouse operation +type CreateAutonomousDataWarehouseRequest struct { + + // Request to create a new Autonomous Data Warehouse. + CreateAutonomousDataWarehouseDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateAutonomousDataWarehouseRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateAutonomousDataWarehouseRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateAutonomousDataWarehouseRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// CreateAutonomousDataWarehouseResponse wrapper for the CreateAutonomousDataWarehouse operation +type CreateAutonomousDataWarehouseResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The AutonomousDataWarehouse instance + AutonomousDataWarehouse `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateAutonomousDataWarehouseResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateAutonomousDataWarehouseResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_autonomous_database_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/database/create_autonomous_database_backup_details.go new file mode 100644 index 000000000..b50524710 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_autonomous_database_backup_details.go @@ -0,0 +1,28 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. +// + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// CreateAutonomousDatabaseBackupDetails Details to create an Oracle Autonomous Database backup. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type CreateAutonomousDatabaseBackupDetails struct { + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database backup. + AutonomousDatabaseId *string `mandatory:"true" json:"autonomousDatabaseId"` + + // The user-friendly name for the backup. The name does not have to be unique. + DisplayName *string `mandatory:"true" json:"displayName"` +} + +func (m CreateAutonomousDatabaseBackupDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_autonomous_database_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/create_autonomous_database_backup_request_response.go new file mode 100644 index 000000000..792963135 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_autonomous_database_backup_request_response.go @@ -0,0 +1,71 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// CreateAutonomousDatabaseBackupRequest wrapper for the CreateAutonomousDatabaseBackup operation +type CreateAutonomousDatabaseBackupRequest struct { + + // Request to create a new Autonomous Database backup. + CreateAutonomousDatabaseBackupDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateAutonomousDatabaseBackupRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateAutonomousDatabaseBackupRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateAutonomousDatabaseBackupRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// CreateAutonomousDatabaseBackupResponse wrapper for the CreateAutonomousDatabaseBackup operation +type CreateAutonomousDatabaseBackupResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The AutonomousDatabaseBackup instance + AutonomousDatabaseBackup `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateAutonomousDatabaseBackupResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateAutonomousDatabaseBackupResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_autonomous_database_details.go b/vendor/github.com/oracle/oci-go-sdk/database/create_autonomous_database_details.go new file mode 100644 index 000000000..76ccdb9e5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_autonomous_database_details.go @@ -0,0 +1,76 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. +// + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// CreateAutonomousDatabaseDetails Details to create an Oracle Autonomous Database. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type CreateAutonomousDatabaseDetails struct { + + // A strong password for Admin. The password must be between 12 and 60 characters long, and must contain at least 1 uppercase, 1 lowercase and 2 numeric characters. It cannot contain the double quote symbol ("). It must be different than the last 4 passwords. + AdminPassword *string `mandatory:"true" json:"adminPassword"` + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment of the autonomous database. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The number of CPU Cores to be made available to the database. + CpuCoreCount *int `mandatory:"true" json:"cpuCoreCount"` + + // The size, in terabytes, of the data volume that will be created and attached to the database. This storage can later be scaled up if needed. + DataStorageSizeInTBs *int `mandatory:"true" json:"dataStorageSizeInTBs"` + + // The database name. The name must begin with an alphabetic character and can contain a maximum of 14 alphanumeric characters. Special characters are not permitted. The database name must be unique in the tenancy. + DbName *string `mandatory:"true" json:"dbName"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // The user-friendly name for the Autonomous Database. The name does not have to be unique. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The Oracle license model that applies to the Oracle Autonomous Database. The default is BRING_YOUR_OWN_LICENSE. + LicenseModel CreateAutonomousDatabaseDetailsLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` +} + +func (m CreateAutonomousDatabaseDetails) String() string { + return common.PointerString(m) +} + +// CreateAutonomousDatabaseDetailsLicenseModelEnum Enum with underlying type: string +type CreateAutonomousDatabaseDetailsLicenseModelEnum string + +// Set of constants representing the allowable values for CreateAutonomousDatabaseDetailsLicenseModel +const ( + CreateAutonomousDatabaseDetailsLicenseModelLicenseIncluded CreateAutonomousDatabaseDetailsLicenseModelEnum = "LICENSE_INCLUDED" + CreateAutonomousDatabaseDetailsLicenseModelBringYourOwnLicense CreateAutonomousDatabaseDetailsLicenseModelEnum = "BRING_YOUR_OWN_LICENSE" +) + +var mappingCreateAutonomousDatabaseDetailsLicenseModel = map[string]CreateAutonomousDatabaseDetailsLicenseModelEnum{ + "LICENSE_INCLUDED": CreateAutonomousDatabaseDetailsLicenseModelLicenseIncluded, + "BRING_YOUR_OWN_LICENSE": CreateAutonomousDatabaseDetailsLicenseModelBringYourOwnLicense, +} + +// GetCreateAutonomousDatabaseDetailsLicenseModelEnumValues Enumerates the set of values for CreateAutonomousDatabaseDetailsLicenseModel +func GetCreateAutonomousDatabaseDetailsLicenseModelEnumValues() []CreateAutonomousDatabaseDetailsLicenseModelEnum { + values := make([]CreateAutonomousDatabaseDetailsLicenseModelEnum, 0) + for _, v := range mappingCreateAutonomousDatabaseDetailsLicenseModel { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_autonomous_database_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/create_autonomous_database_request_response.go new file mode 100644 index 000000000..d8e1ca8a3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_autonomous_database_request_response.go @@ -0,0 +1,71 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// CreateAutonomousDatabaseRequest wrapper for the CreateAutonomousDatabase operation +type CreateAutonomousDatabaseRequest struct { + + // Request to create a new Autonomous Database. + CreateAutonomousDatabaseDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateAutonomousDatabaseRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateAutonomousDatabaseRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateAutonomousDatabaseRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// CreateAutonomousDatabaseResponse wrapper for the CreateAutonomousDatabase operation +type CreateAutonomousDatabaseResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The AutonomousDatabase instance + AutonomousDatabase `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateAutonomousDatabaseResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateAutonomousDatabaseResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/database/create_backup_details.go index 6faa74c49..f2a1cd2a6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/create_backup_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_backup_details.go @@ -12,13 +12,14 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// CreateBackupDetails The representation of CreateBackupDetails +// CreateBackupDetails Details for creating a database backup. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type CreateBackupDetails struct { - // The OCID of the database. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database. DatabaseId *string `mandatory:"true" json:"databaseId"` - // The user-friendly name for the backup. It does not have to be unique. + // The user-friendly name for the backup. The name does not have to be unique. DisplayName *string `mandatory:"true" json:"displayName"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_data_guard_association_details.go b/vendor/github.com/oracle/oci-go-sdk/database/create_data_guard_association_details.go index dc92eb654..2af0683f1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/create_data_guard_association_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_data_guard_association_details.go @@ -77,6 +77,11 @@ func (m *createdataguardassociationdetails) UnmarshalJSON(data []byte) error { // UnmarshalPolymorphicJSON unmarshals polymorphic json func (m *createdataguardassociationdetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + var err error switch m.CreationType { case "ExistingDbSystem": @@ -84,7 +89,7 @@ func (m *createdataguardassociationdetails) UnmarshalPolymorphicJSON(data []byte err = json.Unmarshal(data, &mm) return mm, err default: - return m, nil + return *m, nil } } diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_data_guard_association_to_existing_db_system_details.go b/vendor/github.com/oracle/oci-go-sdk/database/create_data_guard_association_to_existing_db_system_details.go index 0badd6d50..94a41b7f4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/create_data_guard_association_to_existing_db_system_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_data_guard_association_to_existing_db_system_details.go @@ -25,7 +25,7 @@ type CreateDataGuardAssociationToExistingDbSystemDetails struct { // **The password MUST be the same as the primary admin password.** DatabaseAdminPassword *string `mandatory:"true" json:"databaseAdminPassword"` - // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB System to create the standby database on. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system to create the standby database on. PeerDbSystemId *string `mandatory:"false" json:"peerDbSystemId"` // The protection mode to set up between the primary and standby databases. For more information, see diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_database_details.go b/vendor/github.com/oracle/oci-go-sdk/database/create_database_details.go index 5f119edee..d02683e7d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/create_database_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_database_details.go @@ -12,22 +12,23 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// CreateDatabaseDetails The representation of CreateDatabaseDetails +// CreateDatabaseDetails Details for creating a database backup. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type CreateDatabaseDetails struct { // A strong password for SYS, SYSTEM, and PDB Admin. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numbers, and two special characters. The special characters must be _, \#, or -. AdminPassword *string `mandatory:"true" json:"adminPassword"` - // The database name. It must begin with an alphabetic character and can contain a maximum of eight alphanumeric characters. Special characters are not permitted. + // The database name. The name must begin with an alphabetic character and can contain a maximum of eight alphanumeric characters. Special characters are not permitted. DbName *string `mandatory:"true" json:"dbName"` // The character set for the database. The default is AL32UTF8. Allowed values are: - // AL32UTF8, AR8ADOS710, AR8ADOS720, AR8APTEC715, AR8ARABICMACS, AR8ASMO8X, AR8ISO8859P6, AR8MSWIN1256, AR8MUSSAD768, AR8NAFITHA711, AR8NAFITHA721, AR8SAKHR706, AR8SAKHR707, AZ8ISO8859P9E, BG8MSWIN, BG8PC437S, BLT8CP921, BLT8ISO8859P13, BLT8MSWIN1257, BLT8PC775, BN8BSCII, CDN8PC863, CEL8ISO8859P14, CL8ISO8859P5, CL8ISOIR111, CL8KOI8R, CL8KOI8U, CL8MACCYRILLICS, CL8MSWIN1251, EE8ISO8859P2, EE8MACCES, EE8MACCROATIANS, EE8MSWIN1250, EE8PC852, EL8DEC, EL8ISO8859P7, EL8MACGREEKS, EL8MSWIN1253, EL8PC437S, EL8PC851, EL8PC869, ET8MSWIN923, HU8ABMOD, HU8CWI2, IN8ISCII, IS8PC861, IW8ISO8859P8, IW8MACHEBREWS, IW8MSWIN1255, IW8PC1507, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE, JA16VMS, KO16KSCCS, KO16MSWIN949, LA8ISO6937, LA8PASSPORT, LT8MSWIN921, LT8PC772, LT8PC774, LV8PC1117, LV8PC8LR, LV8RST104090, N8PC865, NE8ISO8859P10, NEE8ISO8859P4, RU8BESTA, RU8PC855, RU8PC866, SE8ISO8859P3, TH8MACTHAIS, TH8TISASCII, TR8DEC, TR8MACTURKISHS, TR8MSWIN1254, TR8PC857, US7ASCII, US8PC437, UTF8, VN8MSWIN1258, VN8VN3, WE8DEC, WE8DG, WE8ISO8859P15, WE8ISO8859P9, WE8MACROMAN8S, WE8MSWIN1252, WE8NCR4970, WE8NEXTSTEP, WE8PC850, WE8PC858, WE8PC860, WE8ROMAN8, ZHS16CGB231280, ZHS16GBK, ZHT16BIG5, ZHT16CCDC, ZHT16DBT, ZHT16HKSCS, ZHT16MSWIN950, ZHT32EUC, ZHT32SOPS, ZHT32TRIS + // AL32UTF8, AR8ADOS710, AR8ADOS720, AR8APTEC715, AR8ARABICMACS, AR8ASMO8X, AR8ISO8859P6, AR8MSWIN1256, AR8MUSSAD768, AR8NAFITHA711, AR8NAFITHA721, AR8SAKHR706, AR8SAKHR707, AZ8ISO8859P9E, BG8MSWIN, BG8PC437S, BLT8CP921, BLT8ISO8859P13, BLT8MSWIN1257, BLT8PC775, BN8BSCII, CDN8PC863, CEL8ISO8859P14, CL8ISO8859P5, CL8ISOIR111, CL8KOI8R, CL8KOI8U, CL8MACCYRILLICS, CL8MSWIN1251, EE8ISO8859P2, EE8MACCES, EE8MACCROATIANS, EE8MSWIN1250, EE8PC852, EL8DEC, EL8ISO8859P7, EL8MACGREEKS, EL8MSWIN1253, EL8PC437S, EL8PC851, EL8PC869, ET8MSWIN923, HU8ABMOD, HU8CWI2, IN8ISCII, IS8PC861, IW8ISO8859P8, IW8MACHEBREWS, IW8MSWIN1255, IW8PC1507, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE, JA16VMS, KO16KSC5601, KO16KSCCS, KO16MSWIN949, LA8ISO6937, LA8PASSPORT, LT8MSWIN921, LT8PC772, LT8PC774, LV8PC1117, LV8PC8LR, LV8RST104090, N8PC865, NE8ISO8859P10, NEE8ISO8859P4, RU8BESTA, RU8PC855, RU8PC866, SE8ISO8859P3, TH8MACTHAIS, TH8TISASCII, TR8DEC, TR8MACTURKISHS, TR8MSWIN1254, TR8PC857, US7ASCII, US8PC437, UTF8, VN8MSWIN1258, VN8VN3, WE8DEC, WE8DG, WE8ISO8859P1, WE8ISO8859P15, WE8ISO8859P9, WE8MACROMAN8S, WE8MSWIN1252, WE8NCR4970, WE8NEXTSTEP, WE8PC850, WE8PC858, WE8PC860, WE8ROMAN8, ZHS16CGB231280, ZHS16GBK, ZHT16BIG5, ZHT16CCDC, ZHT16DBT, ZHT16HKSCS, ZHT16MSWIN950, ZHT32EUC, ZHT32SOPS, ZHT32TRIS CharacterSet *string `mandatory:"false" json:"characterSet"` DbBackupConfig *DbBackupConfig `mandatory:"false" json:"dbBackupConfig"` - // Database workload type. + // The database workload type. DbWorkload CreateDatabaseDetailsDbWorkloadEnum `mandatory:"false" json:"dbWorkload,omitempty"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. @@ -40,11 +41,11 @@ type CreateDatabaseDetails struct { // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - // National character set for the database. The default is AL16UTF16. Allowed values are: + // The national character set for the database. The default is AL16UTF16. Allowed values are: // AL16UTF16 or UTF8. NcharacterSet *string `mandatory:"false" json:"ncharacterSet"` - // Pluggable database name. It must begin with an alphabetic character and can contain a maximum of eight alphanumeric characters. Special characters are not permitted. Pluggable database should not be same as database name. + // The name of the pluggable database. The name must begin with an alphabetic character and can contain a maximum of eight alphanumeric characters. Special characters are not permitted. Pluggable database should not be same as database name. PdbName *string `mandatory:"false" json:"pdbName"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_database_from_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/database/create_database_from_backup_details.go index 9c25aadc4..05d6392b4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/create_database_from_backup_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_database_from_backup_details.go @@ -18,7 +18,7 @@ type CreateDatabaseFromBackupDetails struct { // A strong password for SYS, SYSTEM, PDB Admin and TDE Wallet. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numbers, and two special characters. The special characters must be _, \#, or -. AdminPassword *string `mandatory:"true" json:"adminPassword"` - // The backup OCID. + // The backup OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). BackupId *string `mandatory:"true" json:"backupId"` // The password to open the TDE wallet. diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_details.go b/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_details.go index 93eb4c928..6c4e63842 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_details.go @@ -12,11 +12,12 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// CreateDbHomeDetails The representation of CreateDbHomeDetails +// CreateDbHomeDetails Details for creating a database home. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type CreateDbHomeDetails struct { Database *CreateDatabaseDetails `mandatory:"true" json:"database"` - // A valid Oracle database version. To get a list of supported versions, use the ListDbVersions operation. + // A valid Oracle Database version. To get a list of supported versions, use the ListDbVersions operation. DbVersion *string `mandatory:"true" json:"dbVersion"` // The user-provided name of the database home. diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_from_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_from_backup_details.go index 53966dcc2..7d5b21464 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_from_backup_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_from_backup_details.go @@ -12,7 +12,8 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// CreateDbHomeFromBackupDetails The representation of CreateDbHomeFromBackupDetails +// CreateDbHomeFromBackupDetails Details for creating a database home if you are creating a database by restoring from a database backup. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type CreateDbHomeFromBackupDetails struct { Database *CreateDatabaseFromBackupDetails `mandatory:"true" json:"database"` diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_request_response.go index 5d1fedc5e..e558c596e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_request_response.go @@ -11,7 +11,7 @@ import ( // CreateDbHomeRequest wrapper for the CreateDbHome operation type CreateDbHomeRequest struct { - // Request to create a new DB Home. + // Request to create a new database home. CreateDbHomeWithDbSystemIdBase `contributesTo:"body"` // A token that uniquely identifies a request so it can be retried in case of a timeout or diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_with_db_system_id_base.go b/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_with_db_system_id_base.go index 670c00026..404e2d1c9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_with_db_system_id_base.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_with_db_system_id_base.go @@ -13,10 +13,11 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// CreateDbHomeWithDbSystemIdBase The representation of CreateDbHomeWithDbSystemIdBase +// CreateDbHomeWithDbSystemIdBase Details for creating a database home. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type CreateDbHomeWithDbSystemIdBase interface { - // The OCID of the DB System. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system. GetDbSystemId() *string // The user-provided name of the database home. @@ -50,6 +51,11 @@ func (m *createdbhomewithdbsystemidbase) UnmarshalJSON(data []byte) error { // UnmarshalPolymorphicJSON unmarshals polymorphic json func (m *createdbhomewithdbsystemidbase) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + var err error switch m.Source { case "DB_BACKUP": @@ -61,7 +67,7 @@ func (m *createdbhomewithdbsystemidbase) UnmarshalPolymorphicJSON(data []byte) ( err = json.Unmarshal(data, &mm) return mm, err default: - return m, nil + return *m, nil } } diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_with_db_system_id_details.go b/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_with_db_system_id_details.go index 92795f765..d58a8eb82 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_with_db_system_id_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_with_db_system_id_details.go @@ -16,12 +16,12 @@ import ( // CreateDbHomeWithDbSystemIdDetails The representation of CreateDbHomeWithDbSystemIdDetails type CreateDbHomeWithDbSystemIdDetails struct { - // The OCID of the DB System. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system. DbSystemId *string `mandatory:"true" json:"dbSystemId"` Database *CreateDatabaseDetails `mandatory:"true" json:"database"` - // A valid Oracle database version. To get a list of supported versions, use the ListDbVersions operation. + // A valid Oracle Database version. To get a list of supported versions, use the ListDbVersions operation. DbVersion *string `mandatory:"true" json:"dbVersion"` // The user-provided name of the database home. diff --git a/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_with_db_system_id_from_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_with_db_system_id_from_backup_details.go index 98f9fc305..9cc82e0bc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_with_db_system_id_from_backup_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/create_db_home_with_db_system_id_from_backup_details.go @@ -16,7 +16,7 @@ import ( // CreateDbHomeWithDbSystemIdFromBackupDetails The representation of CreateDbHomeWithDbSystemIdFromBackupDetails type CreateDbHomeWithDbSystemIdFromBackupDetails struct { - // The OCID of the DB System. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system. DbSystemId *string `mandatory:"true" json:"dbSystemId"` Database *CreateDatabaseFromBackupDetails `mandatory:"true" json:"database"` diff --git a/vendor/github.com/oracle/oci-go-sdk/database/data_guard_association.go b/vendor/github.com/oracle/oci-go-sdk/database/data_guard_association.go index d572feb42..3b39cd549 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/data_guard_association.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/data_guard_association.go @@ -30,7 +30,7 @@ type DataGuardAssociation struct { // The current state of the Data Guard association. LifecycleState DataGuardAssociationLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB System containing the associated + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system containing the associated // peer database. PeerDbSystemId *string `mandatory:"true" json:"peerDbSystemId"` diff --git a/vendor/github.com/oracle/oci-go-sdk/database/data_guard_association_summary.go b/vendor/github.com/oracle/oci-go-sdk/database/data_guard_association_summary.go index ebfc69c62..18eaa3bd2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/data_guard_association_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/data_guard_association_summary.go @@ -30,7 +30,7 @@ type DataGuardAssociationSummary struct { // The current state of the Data Guard association. LifecycleState DataGuardAssociationSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB System containing the associated + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system containing the associated // peer database. PeerDbSystemId *string `mandatory:"true" json:"peerDbSystemId"` diff --git a/vendor/github.com/oracle/oci-go-sdk/database/database.go b/vendor/github.com/oracle/oci-go-sdk/database/database.go index f0979ccb3..85149b74e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/database.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/database.go @@ -12,11 +12,12 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// Database An Oracle database on a DB System. For more information, see Managing Oracle Databases (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/overview.htm). +// Database An Oracle database on a bare metal or virtual machine DB system. For more information, see Bare Metal and Virtual Machine DB Systems (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/overview.htm). // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type Database struct { - // The OCID of the compartment. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The database name. @@ -25,7 +26,7 @@ type Database struct { // A system-generated name for the database to ensure uniqueness within an Oracle Data Guard group (a primary database and its standby databases). The unique name cannot be changed. DbUniqueName *string `mandatory:"true" json:"dbUniqueName"` - // The OCID of the database. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database. Id *string `mandatory:"true" json:"id"` // The current state of the database. @@ -36,10 +37,10 @@ type Database struct { DbBackupConfig *DbBackupConfig `mandatory:"false" json:"dbBackupConfig"` - // The OCID of the database home. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database home. DbHomeId *string `mandatory:"false" json:"dbHomeId"` - // Database workload type. + // The database workload type. DbWorkload *string `mandatory:"false" json:"dbWorkload"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. @@ -58,7 +59,7 @@ type Database struct { // The national character set for the database. NcharacterSet *string `mandatory:"false" json:"ncharacterSet"` - // Pluggable database name. It must begin with an alphabetic character and can contain a maximum of eight alphanumeric characters. Special characters are not permitted. Pluggable database should not be same as database name. + // The name of the pluggable database. The name must begin with an alphabetic character and can contain a maximum of eight alphanumeric characters. Special characters are not permitted. Pluggable database should not be same as database name. PdbName *string `mandatory:"false" json:"pdbName"` // The date and time the database was created. diff --git a/vendor/github.com/oracle/oci-go-sdk/database/database_client.go b/vendor/github.com/oracle/oci-go-sdk/database/database_client.go index cab6c6904..9da633d2a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/database_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/database_client.go @@ -58,6 +58,194 @@ func (client *DatabaseClient) ConfigurationProvider() *common.ConfigurationProvi return client.config } +// CreateAutonomousDataWarehouse Creates a new Autonomous Data Warehouse. +func (client DatabaseClient) CreateAutonomousDataWarehouse(ctx context.Context, request CreateAutonomousDataWarehouseRequest) (response CreateAutonomousDataWarehouseResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createAutonomousDataWarehouse, policy) + if err != nil { + if ociResponse != nil { + response = CreateAutonomousDataWarehouseResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(CreateAutonomousDataWarehouseResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateAutonomousDataWarehouseResponse") + } + return +} + +// createAutonomousDataWarehouse implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) createAutonomousDataWarehouse(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPost, "/autonomousDataWarehouses") + if err != nil { + return nil, err + } + + var response CreateAutonomousDataWarehouseResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateAutonomousDataWarehouseBackup Creates a new Autonomous Data Warehouse backup for the specified database based on the provided request parameters. +func (client DatabaseClient) CreateAutonomousDataWarehouseBackup(ctx context.Context, request CreateAutonomousDataWarehouseBackupRequest) (response CreateAutonomousDataWarehouseBackupResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createAutonomousDataWarehouseBackup, policy) + if err != nil { + if ociResponse != nil { + response = CreateAutonomousDataWarehouseBackupResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(CreateAutonomousDataWarehouseBackupResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateAutonomousDataWarehouseBackupResponse") + } + return +} + +// createAutonomousDataWarehouseBackup implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) createAutonomousDataWarehouseBackup(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPost, "/autonomousDataWarehouseBackups") + if err != nil { + return nil, err + } + + var response CreateAutonomousDataWarehouseBackupResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateAutonomousDatabase Creates a new Autonomous Database. +func (client DatabaseClient) CreateAutonomousDatabase(ctx context.Context, request CreateAutonomousDatabaseRequest) (response CreateAutonomousDatabaseResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createAutonomousDatabase, policy) + if err != nil { + if ociResponse != nil { + response = CreateAutonomousDatabaseResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(CreateAutonomousDatabaseResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateAutonomousDatabaseResponse") + } + return +} + +// createAutonomousDatabase implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) createAutonomousDatabase(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPost, "/autonomousDatabases") + if err != nil { + return nil, err + } + + var response CreateAutonomousDatabaseResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateAutonomousDatabaseBackup Creates a new Autonomous Database backup for the specified database based on the provided request parameters. +func (client DatabaseClient) CreateAutonomousDatabaseBackup(ctx context.Context, request CreateAutonomousDatabaseBackupRequest) (response CreateAutonomousDatabaseBackupResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createAutonomousDatabaseBackup, policy) + if err != nil { + if ociResponse != nil { + response = CreateAutonomousDatabaseBackupResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(CreateAutonomousDatabaseBackupResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateAutonomousDatabaseBackupResponse") + } + return +} + +// createAutonomousDatabaseBackup implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) createAutonomousDatabaseBackup(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPost, "/autonomousDatabaseBackups") + if err != nil { + return nil, err + } + + var response CreateAutonomousDatabaseBackupResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // CreateBackup Creates a new backup in the specified database based on the request parameters you provide. If you previously used RMAN or dbcli to configure backups and then you switch to using the Console or the API for backups, a new backup configuration is created and associated with your database. This means that you can no longer rely on your previously configured unmanaged backups to work. func (client DatabaseClient) CreateBackup(ctx context.Context, request CreateBackupRequest) (response CreateBackupResponse, err error) { var ociResponse common.OCIResponse @@ -65,8 +253,16 @@ func (client DatabaseClient) CreateBackup(ctx context.Context, request CreateBac if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createBackup, policy) if err != nil { + if ociResponse != nil { + response = CreateBackupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateBackupResponse); ok { @@ -110,8 +306,16 @@ func (client DatabaseClient) CreateDataGuardAssociation(ctx context.Context, req if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createDataGuardAssociation, policy) if err != nil { + if ociResponse != nil { + response = CreateDataGuardAssociationResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateDataGuardAssociationResponse); ok { @@ -142,15 +346,23 @@ func (client DatabaseClient) createDataGuardAssociation(ctx context.Context, req return response, err } -// CreateDbHome Creates a new DB Home in the specified DB System based on the request parameters you provide. +// CreateDbHome Creates a new database home in the specified DB system based on the request parameters you provide. func (client DatabaseClient) CreateDbHome(ctx context.Context, request CreateDbHomeRequest) (response CreateDbHomeResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createDbHome, policy) if err != nil { + if ociResponse != nil { + response = CreateDbHomeResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateDbHomeResponse); ok { @@ -188,7 +400,7 @@ func (client DatabaseClient) createDbHome(ctx context.Context, request common.OC // **reset** - power off and power on // Note that the **stop** state has no effect on the resources you consume. // Billing continues for DB Nodes that you stop, and related resources continue -// to apply against any relevant quotas. You must terminate the DB System +// to apply against any relevant quotas. You must terminate the DB system // (TerminateDbSystem) // to remove its resources from billing and quotas. func (client DatabaseClient) DbNodeAction(ctx context.Context, request DbNodeActionRequest) (response DbNodeActionResponse, err error) { @@ -197,8 +409,16 @@ func (client DatabaseClient) DbNodeAction(ctx context.Context, request DbNodeAct if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.dbNodeAction, policy) if err != nil { + if ociResponse != nil { + response = DbNodeActionResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DbNodeActionResponse); ok { @@ -229,6 +449,90 @@ func (client DatabaseClient) dbNodeAction(ctx context.Context, request common.OC return response, err } +// DeleteAutonomousDataWarehouse Deletes the specified Autonomous Data Warehouse. +func (client DatabaseClient) DeleteAutonomousDataWarehouse(ctx context.Context, request DeleteAutonomousDataWarehouseRequest) (response DeleteAutonomousDataWarehouseResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteAutonomousDataWarehouse, policy) + if err != nil { + if ociResponse != nil { + response = DeleteAutonomousDataWarehouseResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(DeleteAutonomousDataWarehouseResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteAutonomousDataWarehouseResponse") + } + return +} + +// deleteAutonomousDataWarehouse implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) deleteAutonomousDataWarehouse(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/autonomousDataWarehouses/{autonomousDataWarehouseId}") + if err != nil { + return nil, err + } + + var response DeleteAutonomousDataWarehouseResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteAutonomousDatabase Deletes the specified Autonomous Database. +func (client DatabaseClient) DeleteAutonomousDatabase(ctx context.Context, request DeleteAutonomousDatabaseRequest) (response DeleteAutonomousDatabaseResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteAutonomousDatabase, policy) + if err != nil { + if ociResponse != nil { + response = DeleteAutonomousDatabaseResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(DeleteAutonomousDatabaseResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteAutonomousDatabaseResponse") + } + return +} + +// deleteAutonomousDatabase implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) deleteAutonomousDatabase(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/autonomousDatabases/{autonomousDatabaseId}") + if err != nil { + return nil, err + } + + var response DeleteAutonomousDatabaseResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // DeleteBackup Deletes a full backup. You cannot delete automatic backups using this API. func (client DatabaseClient) DeleteBackup(ctx context.Context, request DeleteBackupRequest) (response DeleteBackupResponse, err error) { var ociResponse common.OCIResponse @@ -238,6 +542,9 @@ func (client DatabaseClient) DeleteBackup(ctx context.Context, request DeleteBac } ociResponse, err = common.Retry(ctx, request, client.deleteBackup, policy) if err != nil { + if ociResponse != nil { + response = DeleteBackupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteBackupResponse); ok { @@ -268,7 +575,7 @@ func (client DatabaseClient) deleteBackup(ctx context.Context, request common.OC return response, err } -// DeleteDbHome Deletes a DB Home. The DB Home and its database data are local to the DB System and will be lost when it is deleted. Oracle recommends that you back up any data in the DB System prior to deleting it. +// DeleteDbHome Deletes a DB Home. The DB Home and its database data are local to the DB system and will be lost when it is deleted. Oracle recommends that you back up any data in the DB system prior to deleting it. func (client DatabaseClient) DeleteDbHome(ctx context.Context, request DeleteDbHomeRequest) (response DeleteDbHomeResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -277,6 +584,9 @@ func (client DatabaseClient) DeleteDbHome(ctx context.Context, request DeleteDbH } ociResponse, err = common.Retry(ctx, request, client.deleteDbHome, policy) if err != nil { + if ociResponse != nil { + response = DeleteDbHomeResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteDbHomeResponse); ok { @@ -319,6 +629,9 @@ func (client DatabaseClient) FailoverDataGuardAssociation(ctx context.Context, r } ociResponse, err = common.Retry(ctx, request, client.failoverDataGuardAssociation, policy) if err != nil { + if ociResponse != nil { + response = FailoverDataGuardAssociationResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(FailoverDataGuardAssociationResponse); ok { @@ -349,6 +662,174 @@ func (client DatabaseClient) failoverDataGuardAssociation(ctx context.Context, r return response, err } +// GetAutonomousDataWarehouse Gets the details of the specified Autonomous Data Warehouse. +func (client DatabaseClient) GetAutonomousDataWarehouse(ctx context.Context, request GetAutonomousDataWarehouseRequest) (response GetAutonomousDataWarehouseResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getAutonomousDataWarehouse, policy) + if err != nil { + if ociResponse != nil { + response = GetAutonomousDataWarehouseResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(GetAutonomousDataWarehouseResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetAutonomousDataWarehouseResponse") + } + return +} + +// getAutonomousDataWarehouse implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) getAutonomousDataWarehouse(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/autonomousDataWarehouses/{autonomousDataWarehouseId}") + if err != nil { + return nil, err + } + + var response GetAutonomousDataWarehouseResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetAutonomousDataWarehouseBackup Gets information about the specified Autonomous Data Warehouse backup. +func (client DatabaseClient) GetAutonomousDataWarehouseBackup(ctx context.Context, request GetAutonomousDataWarehouseBackupRequest) (response GetAutonomousDataWarehouseBackupResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getAutonomousDataWarehouseBackup, policy) + if err != nil { + if ociResponse != nil { + response = GetAutonomousDataWarehouseBackupResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(GetAutonomousDataWarehouseBackupResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetAutonomousDataWarehouseBackupResponse") + } + return +} + +// getAutonomousDataWarehouseBackup implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) getAutonomousDataWarehouseBackup(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/autonomousDataWarehouseBackups/{autonomousDataWarehouseBackupId}") + if err != nil { + return nil, err + } + + var response GetAutonomousDataWarehouseBackupResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetAutonomousDatabase Gets the details of the specified Autonomous Database. +func (client DatabaseClient) GetAutonomousDatabase(ctx context.Context, request GetAutonomousDatabaseRequest) (response GetAutonomousDatabaseResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getAutonomousDatabase, policy) + if err != nil { + if ociResponse != nil { + response = GetAutonomousDatabaseResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(GetAutonomousDatabaseResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetAutonomousDatabaseResponse") + } + return +} + +// getAutonomousDatabase implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) getAutonomousDatabase(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/autonomousDatabases/{autonomousDatabaseId}") + if err != nil { + return nil, err + } + + var response GetAutonomousDatabaseResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetAutonomousDatabaseBackup Gets information about the specified Autonomous Database backup. +func (client DatabaseClient) GetAutonomousDatabaseBackup(ctx context.Context, request GetAutonomousDatabaseBackupRequest) (response GetAutonomousDatabaseBackupResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getAutonomousDatabaseBackup, policy) + if err != nil { + if ociResponse != nil { + response = GetAutonomousDatabaseBackupResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(GetAutonomousDatabaseBackupResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetAutonomousDatabaseBackupResponse") + } + return +} + +// getAutonomousDatabaseBackup implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) getAutonomousDatabaseBackup(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/autonomousDatabaseBackups/{autonomousDatabaseBackupId}") + if err != nil { + return nil, err + } + + var response GetAutonomousDatabaseBackupResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // GetBackup Gets information about the specified backup. func (client DatabaseClient) GetBackup(ctx context.Context, request GetBackupRequest) (response GetBackupResponse, err error) { var ociResponse common.OCIResponse @@ -358,6 +839,9 @@ func (client DatabaseClient) GetBackup(ctx context.Context, request GetBackupReq } ociResponse, err = common.Retry(ctx, request, client.getBackup, policy) if err != nil { + if ociResponse != nil { + response = GetBackupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetBackupResponse); ok { @@ -397,6 +881,9 @@ func (client DatabaseClient) GetDataGuardAssociation(ctx context.Context, reques } ociResponse, err = common.Retry(ctx, request, client.getDataGuardAssociation, policy) if err != nil { + if ociResponse != nil { + response = GetDataGuardAssociationResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetDataGuardAssociationResponse); ok { @@ -436,6 +923,9 @@ func (client DatabaseClient) GetDatabase(ctx context.Context, request GetDatabas } ociResponse, err = common.Retry(ctx, request, client.getDatabase, policy) if err != nil { + if ociResponse != nil { + response = GetDatabaseResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetDatabaseResponse); ok { @@ -475,6 +965,9 @@ func (client DatabaseClient) GetDbHome(ctx context.Context, request GetDbHomeReq } ociResponse, err = common.Retry(ctx, request, client.getDbHome, policy) if err != nil { + if ociResponse != nil { + response = GetDbHomeResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetDbHomeResponse); ok { @@ -514,6 +1007,9 @@ func (client DatabaseClient) GetDbHomePatch(ctx context.Context, request GetDbHo } ociResponse, err = common.Retry(ctx, request, client.getDbHomePatch, policy) if err != nil { + if ociResponse != nil { + response = GetDbHomePatchResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetDbHomePatchResponse); ok { @@ -553,6 +1049,9 @@ func (client DatabaseClient) GetDbHomePatchHistoryEntry(ctx context.Context, req } ociResponse, err = common.Retry(ctx, request, client.getDbHomePatchHistoryEntry, policy) if err != nil { + if ociResponse != nil { + response = GetDbHomePatchHistoryEntryResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetDbHomePatchHistoryEntryResponse); ok { @@ -592,6 +1091,9 @@ func (client DatabaseClient) GetDbNode(ctx context.Context, request GetDbNodeReq } ociResponse, err = common.Retry(ctx, request, client.getDbNode, policy) if err != nil { + if ociResponse != nil { + response = GetDbNodeResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetDbNodeResponse); ok { @@ -622,7 +1124,7 @@ func (client DatabaseClient) getDbNode(ctx context.Context, request common.OCIRe return response, err } -// GetDbSystem Gets information about the specified DB System. +// GetDbSystem Gets information about the specified DB system. func (client DatabaseClient) GetDbSystem(ctx context.Context, request GetDbSystemRequest) (response GetDbSystemResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -631,6 +1133,9 @@ func (client DatabaseClient) GetDbSystem(ctx context.Context, request GetDbSyste } ociResponse, err = common.Retry(ctx, request, client.getDbSystem, policy) if err != nil { + if ociResponse != nil { + response = GetDbSystemResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetDbSystemResponse); ok { @@ -670,6 +1175,9 @@ func (client DatabaseClient) GetDbSystemPatch(ctx context.Context, request GetDb } ociResponse, err = common.Retry(ctx, request, client.getDbSystemPatch, policy) if err != nil { + if ociResponse != nil { + response = GetDbSystemPatchResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetDbSystemPatchResponse); ok { @@ -707,26 +1215,206 @@ func (client DatabaseClient) GetDbSystemPatchHistoryEntry(ctx context.Context, r if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getDbSystemPatchHistoryEntry, policy) + ociResponse, err = common.Retry(ctx, request, client.getDbSystemPatchHistoryEntry, policy) + if err != nil { + if ociResponse != nil { + response = GetDbSystemPatchHistoryEntryResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(GetDbSystemPatchHistoryEntryResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetDbSystemPatchHistoryEntryResponse") + } + return +} + +// getDbSystemPatchHistoryEntry implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) getDbSystemPatchHistoryEntry(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/dbSystems/{dbSystemId}/patchHistoryEntries/{patchHistoryEntryId}") + if err != nil { + return nil, err + } + + var response GetDbSystemPatchHistoryEntryResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// LaunchDbSystem Launches a new DB system in the specified compartment and availability domain. The Oracle +// Database edition that you specify applies to all the databases on that DB system. The selected edition cannot be changed. +// An initial database is created on the DB system based on the request parameters you provide and some default +// options. For more information, +// see Default Options for the Initial Database (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Tasks/launchingDB.htm#DefaultOptionsfortheInitialDatabase). +func (client DatabaseClient) LaunchDbSystem(ctx context.Context, request LaunchDbSystemRequest) (response LaunchDbSystemResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.launchDbSystem, policy) + if err != nil { + if ociResponse != nil { + response = LaunchDbSystemResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(LaunchDbSystemResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into LaunchDbSystemResponse") + } + return +} + +// launchDbSystem implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) launchDbSystem(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPost, "/dbSystems") + if err != nil { + return nil, err + } + + var response LaunchDbSystemResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListAutonomousDataWarehouseBackups Gets a list of Autonomous Data Warehouse backups based on either the `autonomousDataWarehouseId` or `compartmentId` specified as a query parameter. +func (client DatabaseClient) ListAutonomousDataWarehouseBackups(ctx context.Context, request ListAutonomousDataWarehouseBackupsRequest) (response ListAutonomousDataWarehouseBackupsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listAutonomousDataWarehouseBackups, policy) + if err != nil { + if ociResponse != nil { + response = ListAutonomousDataWarehouseBackupsResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(ListAutonomousDataWarehouseBackupsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListAutonomousDataWarehouseBackupsResponse") + } + return +} + +// listAutonomousDataWarehouseBackups implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) listAutonomousDataWarehouseBackups(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/autonomousDataWarehouseBackups") + if err != nil { + return nil, err + } + + var response ListAutonomousDataWarehouseBackupsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListAutonomousDataWarehouses Gets a list of Autonomous Data Warehouses. +func (client DatabaseClient) ListAutonomousDataWarehouses(ctx context.Context, request ListAutonomousDataWarehousesRequest) (response ListAutonomousDataWarehousesResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listAutonomousDataWarehouses, policy) + if err != nil { + if ociResponse != nil { + response = ListAutonomousDataWarehousesResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(ListAutonomousDataWarehousesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListAutonomousDataWarehousesResponse") + } + return +} + +// listAutonomousDataWarehouses implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) listAutonomousDataWarehouses(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/autonomousDataWarehouses") + if err != nil { + return nil, err + } + + var response ListAutonomousDataWarehousesResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListAutonomousDatabaseBackups Gets a list of Autonomous Database backups based on either the `autonomousDatabaseId` or `compartmentId` specified as a query parameter. +func (client DatabaseClient) ListAutonomousDatabaseBackups(ctx context.Context, request ListAutonomousDatabaseBackupsRequest) (response ListAutonomousDatabaseBackupsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listAutonomousDatabaseBackups, policy) if err != nil { + if ociResponse != nil { + response = ListAutonomousDatabaseBackupsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } - if convertedResponse, ok := ociResponse.(GetDbSystemPatchHistoryEntryResponse); ok { + if convertedResponse, ok := ociResponse.(ListAutonomousDatabaseBackupsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetDbSystemPatchHistoryEntryResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListAutonomousDatabaseBackupsResponse") } return } -// getDbSystemPatchHistoryEntry implements the OCIOperation interface (enables retrying operations) -func (client DatabaseClient) getDbSystemPatchHistoryEntry(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/dbSystems/{dbSystemId}/patchHistoryEntries/{patchHistoryEntryId}") +// listAutonomousDatabaseBackups implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) listAutonomousDatabaseBackups(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/autonomousDatabaseBackups") if err != nil { return nil, err } - var response GetDbSystemPatchHistoryEntryResponse + var response ListAutonomousDatabaseBackupsResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) @@ -739,40 +1427,36 @@ func (client DatabaseClient) getDbSystemPatchHistoryEntry(ctx context.Context, r return response, err } -// LaunchDbSystem Launches a new DB System in the specified compartment and Availability Domain. You'll specify a single Oracle -// Database Edition that applies to all the databases on that DB System. The selected edition cannot be changed. -// An initial database is created on the DB System based on the request parameters you provide and some default -// options. For more information, -// see Default Options for the Initial Database (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Tasks/launchingDB.htm#Default_Options_for_the_Initial_Database). -// The DB System will include a command line interface (CLI) that you can use to create additional databases and -// manage existing databases. For more information, see the -// Oracle Database CLI Reference (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/References/odacli.htm#Oracle_Database_CLI_Reference). -func (client DatabaseClient) LaunchDbSystem(ctx context.Context, request LaunchDbSystemRequest) (response LaunchDbSystemResponse, err error) { +// ListAutonomousDatabases Gets a list of Autonomous Databases. +func (client DatabaseClient) ListAutonomousDatabases(ctx context.Context, request ListAutonomousDatabasesRequest) (response ListAutonomousDatabasesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.launchDbSystem, policy) + ociResponse, err = common.Retry(ctx, request, client.listAutonomousDatabases, policy) if err != nil { + if ociResponse != nil { + response = ListAutonomousDatabasesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } - if convertedResponse, ok := ociResponse.(LaunchDbSystemResponse); ok { + if convertedResponse, ok := ociResponse.(ListAutonomousDatabasesResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into LaunchDbSystemResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListAutonomousDatabasesResponse") } return } -// launchDbSystem implements the OCIOperation interface (enables retrying operations) -func (client DatabaseClient) launchDbSystem(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/dbSystems") +// listAutonomousDatabases implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) listAutonomousDatabases(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/autonomousDatabases") if err != nil { return nil, err } - var response LaunchDbSystemResponse + var response ListAutonomousDatabasesResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) @@ -794,6 +1478,9 @@ func (client DatabaseClient) ListBackups(ctx context.Context, request ListBackup } ociResponse, err = common.Retry(ctx, request, client.listBackups, policy) if err != nil { + if ociResponse != nil { + response = ListBackupsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListBackupsResponse); ok { @@ -833,6 +1520,9 @@ func (client DatabaseClient) ListDataGuardAssociations(ctx context.Context, requ } ociResponse, err = common.Retry(ctx, request, client.listDataGuardAssociations, policy) if err != nil { + if ociResponse != nil { + response = ListDataGuardAssociationsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListDataGuardAssociationsResponse); ok { @@ -872,6 +1562,9 @@ func (client DatabaseClient) ListDatabases(ctx context.Context, request ListData } ociResponse, err = common.Retry(ctx, request, client.listDatabases, policy) if err != nil { + if ociResponse != nil { + response = ListDatabasesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListDatabasesResponse); ok { @@ -911,6 +1604,9 @@ func (client DatabaseClient) ListDbHomePatchHistoryEntries(ctx context.Context, } ociResponse, err = common.Retry(ctx, request, client.listDbHomePatchHistoryEntries, policy) if err != nil { + if ociResponse != nil { + response = ListDbHomePatchHistoryEntriesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListDbHomePatchHistoryEntriesResponse); ok { @@ -950,6 +1646,9 @@ func (client DatabaseClient) ListDbHomePatches(ctx context.Context, request List } ociResponse, err = common.Retry(ctx, request, client.listDbHomePatches, policy) if err != nil { + if ociResponse != nil { + response = ListDbHomePatchesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListDbHomePatchesResponse); ok { @@ -980,7 +1679,7 @@ func (client DatabaseClient) listDbHomePatches(ctx context.Context, request comm return response, err } -// ListDbHomes Gets a list of database homes in the specified DB System and compartment. A database home is a directory where Oracle database software is installed. +// ListDbHomes Gets a list of database homes in the specified DB system and compartment. A database home is a directory where Oracle database software is installed. func (client DatabaseClient) ListDbHomes(ctx context.Context, request ListDbHomesRequest) (response ListDbHomesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -989,6 +1688,9 @@ func (client DatabaseClient) ListDbHomes(ctx context.Context, request ListDbHome } ociResponse, err = common.Retry(ctx, request, client.listDbHomes, policy) if err != nil { + if ociResponse != nil { + response = ListDbHomesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListDbHomesResponse); ok { @@ -1019,7 +1721,7 @@ func (client DatabaseClient) listDbHomes(ctx context.Context, request common.OCI return response, err } -// ListDbNodes Gets a list of database nodes in the specified DB System and compartment. A database node is a server running database software. +// ListDbNodes Gets a list of database nodes in the specified DB system and compartment. A database node is a server running database software. func (client DatabaseClient) ListDbNodes(ctx context.Context, request ListDbNodesRequest) (response ListDbNodesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1028,6 +1730,9 @@ func (client DatabaseClient) ListDbNodes(ctx context.Context, request ListDbNode } ociResponse, err = common.Retry(ctx, request, client.listDbNodes, policy) if err != nil { + if ociResponse != nil { + response = ListDbNodesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListDbNodesResponse); ok { @@ -1058,7 +1763,7 @@ func (client DatabaseClient) listDbNodes(ctx context.Context, request common.OCI return response, err } -// ListDbSystemPatchHistoryEntries Gets the history of the patch actions performed on the specified DB System. +// ListDbSystemPatchHistoryEntries Gets the history of the patch actions performed on the specified DB system. func (client DatabaseClient) ListDbSystemPatchHistoryEntries(ctx context.Context, request ListDbSystemPatchHistoryEntriesRequest) (response ListDbSystemPatchHistoryEntriesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1067,6 +1772,9 @@ func (client DatabaseClient) ListDbSystemPatchHistoryEntries(ctx context.Context } ociResponse, err = common.Retry(ctx, request, client.listDbSystemPatchHistoryEntries, policy) if err != nil { + if ociResponse != nil { + response = ListDbSystemPatchHistoryEntriesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListDbSystemPatchHistoryEntriesResponse); ok { @@ -1097,7 +1805,7 @@ func (client DatabaseClient) listDbSystemPatchHistoryEntries(ctx context.Context return response, err } -// ListDbSystemPatches Lists the patches applicable to the requested DB System. +// ListDbSystemPatches Lists the patches applicable to the requested DB system. func (client DatabaseClient) ListDbSystemPatches(ctx context.Context, request ListDbSystemPatchesRequest) (response ListDbSystemPatchesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1106,6 +1814,9 @@ func (client DatabaseClient) ListDbSystemPatches(ctx context.Context, request Li } ociResponse, err = common.Retry(ctx, request, client.listDbSystemPatches, policy) if err != nil { + if ociResponse != nil { + response = ListDbSystemPatchesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListDbSystemPatchesResponse); ok { @@ -1136,7 +1847,7 @@ func (client DatabaseClient) listDbSystemPatches(ctx context.Context, request co return response, err } -// ListDbSystemShapes Gets a list of the shapes that can be used to launch a new DB System. The shape determines resources to allocate to the DB system - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. +// ListDbSystemShapes Gets a list of the shapes that can be used to launch a new DB system. The shape determines resources to allocate to the DB system - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. func (client DatabaseClient) ListDbSystemShapes(ctx context.Context, request ListDbSystemShapesRequest) (response ListDbSystemShapesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1145,6 +1856,9 @@ func (client DatabaseClient) ListDbSystemShapes(ctx context.Context, request Lis } ociResponse, err = common.Retry(ctx, request, client.listDbSystemShapes, policy) if err != nil { + if ociResponse != nil { + response = ListDbSystemShapesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListDbSystemShapesResponse); ok { @@ -1175,7 +1889,7 @@ func (client DatabaseClient) listDbSystemShapes(ctx context.Context, request com return response, err } -// ListDbSystems Gets a list of the DB Systems in the specified compartment. You can specify a backupId to list only the DB Systems that support creating a database using this backup in this compartment. +// ListDbSystems Gets a list of the DB systems in the specified compartment. You can specify a backupId to list only the DB systems that support creating a database using this backup in this compartment. // func (client DatabaseClient) ListDbSystems(ctx context.Context, request ListDbSystemsRequest) (response ListDbSystemsResponse, err error) { var ociResponse common.OCIResponse @@ -1185,6 +1899,9 @@ func (client DatabaseClient) ListDbSystems(ctx context.Context, request ListDbSy } ociResponse, err = common.Retry(ctx, request, client.listDbSystems, policy) if err != nil { + if ociResponse != nil { + response = ListDbSystemsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListDbSystemsResponse); ok { @@ -1224,6 +1941,9 @@ func (client DatabaseClient) ListDbVersions(ctx context.Context, request ListDbV } ociResponse, err = common.Retry(ctx, request, client.listDbVersions, policy) if err != nil { + if ociResponse != nil { + response = ListDbVersionsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListDbVersionsResponse); ok { @@ -1263,6 +1983,9 @@ func (client DatabaseClient) ReinstateDataGuardAssociation(ctx context.Context, } ociResponse, err = common.Retry(ctx, request, client.reinstateDataGuardAssociation, policy) if err != nil { + if ociResponse != nil { + response = ReinstateDataGuardAssociationResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ReinstateDataGuardAssociationResponse); ok { @@ -1293,6 +2016,90 @@ func (client DatabaseClient) reinstateDataGuardAssociation(ctx context.Context, return response, err } +// RestoreAutonomousDataWarehouse Restores an Autonomous Data Warehouse based on the provided request parameters. +func (client DatabaseClient) RestoreAutonomousDataWarehouse(ctx context.Context, request RestoreAutonomousDataWarehouseRequest) (response RestoreAutonomousDataWarehouseResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.restoreAutonomousDataWarehouse, policy) + if err != nil { + if ociResponse != nil { + response = RestoreAutonomousDataWarehouseResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(RestoreAutonomousDataWarehouseResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into RestoreAutonomousDataWarehouseResponse") + } + return +} + +// restoreAutonomousDataWarehouse implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) restoreAutonomousDataWarehouse(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPost, "/autonomousDataWarehouses/{autonomousDataWarehouseId}/actions/restore") + if err != nil { + return nil, err + } + + var response RestoreAutonomousDataWarehouseResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// RestoreAutonomousDatabase Restores an Autonomous Database based on the provided request parameters. +func (client DatabaseClient) RestoreAutonomousDatabase(ctx context.Context, request RestoreAutonomousDatabaseRequest) (response RestoreAutonomousDatabaseResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.restoreAutonomousDatabase, policy) + if err != nil { + if ociResponse != nil { + response = RestoreAutonomousDatabaseResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(RestoreAutonomousDatabaseResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into RestoreAutonomousDatabaseResponse") + } + return +} + +// restoreAutonomousDatabase implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) restoreAutonomousDatabase(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPost, "/autonomousDatabases/{autonomousDatabaseId}/actions/restore") + if err != nil { + return nil, err + } + + var response RestoreAutonomousDatabaseResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // RestoreDatabase Restore a Database based on the request parameters you provide. func (client DatabaseClient) RestoreDatabase(ctx context.Context, request RestoreDatabaseRequest) (response RestoreDatabaseResponse, err error) { var ociResponse common.OCIResponse @@ -1302,6 +2109,9 @@ func (client DatabaseClient) RestoreDatabase(ctx context.Context, request Restor } ociResponse, err = common.Retry(ctx, request, client.restoreDatabase, policy) if err != nil { + if ociResponse != nil { + response = RestoreDatabaseResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(RestoreDatabaseResponse); ok { @@ -1332,6 +2142,174 @@ func (client DatabaseClient) restoreDatabase(ctx context.Context, request common return response, err } +// StartAutonomousDataWarehouse Starts the specified autonomous Data Warehouse. +func (client DatabaseClient) StartAutonomousDataWarehouse(ctx context.Context, request StartAutonomousDataWarehouseRequest) (response StartAutonomousDataWarehouseResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.startAutonomousDataWarehouse, policy) + if err != nil { + if ociResponse != nil { + response = StartAutonomousDataWarehouseResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(StartAutonomousDataWarehouseResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into StartAutonomousDataWarehouseResponse") + } + return +} + +// startAutonomousDataWarehouse implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) startAutonomousDataWarehouse(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPost, "/autonomousDataWarehouses/{autonomousDataWarehouseId}/actions/start") + if err != nil { + return nil, err + } + + var response StartAutonomousDataWarehouseResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// StartAutonomousDatabase Starts the specified Autonomous Database. +func (client DatabaseClient) StartAutonomousDatabase(ctx context.Context, request StartAutonomousDatabaseRequest) (response StartAutonomousDatabaseResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.startAutonomousDatabase, policy) + if err != nil { + if ociResponse != nil { + response = StartAutonomousDatabaseResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(StartAutonomousDatabaseResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into StartAutonomousDatabaseResponse") + } + return +} + +// startAutonomousDatabase implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) startAutonomousDatabase(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPost, "/autonomousDatabases/{autonomousDatabaseId}/actions/start") + if err != nil { + return nil, err + } + + var response StartAutonomousDatabaseResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// StopAutonomousDataWarehouse Stops the specified Autonomous Data Warehouse. +func (client DatabaseClient) StopAutonomousDataWarehouse(ctx context.Context, request StopAutonomousDataWarehouseRequest) (response StopAutonomousDataWarehouseResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.stopAutonomousDataWarehouse, policy) + if err != nil { + if ociResponse != nil { + response = StopAutonomousDataWarehouseResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(StopAutonomousDataWarehouseResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into StopAutonomousDataWarehouseResponse") + } + return +} + +// stopAutonomousDataWarehouse implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) stopAutonomousDataWarehouse(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPost, "/autonomousDataWarehouses/{autonomousDataWarehouseId}/actions/stop") + if err != nil { + return nil, err + } + + var response StopAutonomousDataWarehouseResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// StopAutonomousDatabase Stops the specified Autonomous Database. +func (client DatabaseClient) StopAutonomousDatabase(ctx context.Context, request StopAutonomousDatabaseRequest) (response StopAutonomousDatabaseResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.stopAutonomousDatabase, policy) + if err != nil { + if ociResponse != nil { + response = StopAutonomousDatabaseResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(StopAutonomousDatabaseResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into StopAutonomousDatabaseResponse") + } + return +} + +// stopAutonomousDatabase implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) stopAutonomousDatabase(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPost, "/autonomousDatabases/{autonomousDatabaseId}/actions/stop") + if err != nil { + return nil, err + } + + var response StopAutonomousDatabaseResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // SwitchoverDataGuardAssociation Performs a switchover to transition the primary database of a Data Guard association into a standby role. The // standby database associated with the `dataGuardAssociationId` assumes the primary database role. // A switchover guarantees no data loss. @@ -1343,6 +2321,9 @@ func (client DatabaseClient) SwitchoverDataGuardAssociation(ctx context.Context, } ociResponse, err = common.Retry(ctx, request, client.switchoverDataGuardAssociation, policy) if err != nil { + if ociResponse != nil { + response = SwitchoverDataGuardAssociationResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(SwitchoverDataGuardAssociationResponse); ok { @@ -1373,7 +2354,7 @@ func (client DatabaseClient) switchoverDataGuardAssociation(ctx context.Context, return response, err } -// TerminateDbSystem Terminates a DB System and permanently deletes it and any databases running on it, and any storage volumes attached to it. The database data is local to the DB System and will be lost when the system is terminated. Oracle recommends that you back up any data in the DB System prior to terminating it. +// TerminateDbSystem Terminates a DB system and permanently deletes it and any databases running on it, and any storage volumes attached to it. The database data is local to the DB system and will be lost when the system is terminated. Oracle recommends that you back up any data in the DB system prior to terminating it. func (client DatabaseClient) TerminateDbSystem(ctx context.Context, request TerminateDbSystemRequest) (response TerminateDbSystemResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1382,6 +2363,9 @@ func (client DatabaseClient) TerminateDbSystem(ctx context.Context, request Term } ociResponse, err = common.Retry(ctx, request, client.terminateDbSystem, policy) if err != nil { + if ociResponse != nil { + response = TerminateDbSystemResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(TerminateDbSystemResponse); ok { @@ -1412,6 +2396,90 @@ func (client DatabaseClient) terminateDbSystem(ctx context.Context, request comm return response, err } +// UpdateAutonomousDataWarehouse Updates the specified Autonomous Data Warehouse with a new CPU core count and size. +func (client DatabaseClient) UpdateAutonomousDataWarehouse(ctx context.Context, request UpdateAutonomousDataWarehouseRequest) (response UpdateAutonomousDataWarehouseResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.updateAutonomousDataWarehouse, policy) + if err != nil { + if ociResponse != nil { + response = UpdateAutonomousDataWarehouseResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(UpdateAutonomousDataWarehouseResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateAutonomousDataWarehouseResponse") + } + return +} + +// updateAutonomousDataWarehouse implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) updateAutonomousDataWarehouse(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPut, "/autonomousDataWarehouses/{autonomousDataWarehouseId}") + if err != nil { + return nil, err + } + + var response UpdateAutonomousDataWarehouseResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateAutonomousDatabase Updates the specified Autonomous Database with a new CPU core count and size. +func (client DatabaseClient) UpdateAutonomousDatabase(ctx context.Context, request UpdateAutonomousDatabaseRequest) (response UpdateAutonomousDatabaseResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.updateAutonomousDatabase, policy) + if err != nil { + if ociResponse != nil { + response = UpdateAutonomousDatabaseResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(UpdateAutonomousDatabaseResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateAutonomousDatabaseResponse") + } + return +} + +// updateAutonomousDatabase implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) updateAutonomousDatabase(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPut, "/autonomousDatabases/{autonomousDatabaseId}") + if err != nil { + return nil, err + } + + var response UpdateAutonomousDatabaseResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // UpdateDatabase Update a Database based on the request parameters you provide. func (client DatabaseClient) UpdateDatabase(ctx context.Context, request UpdateDatabaseRequest) (response UpdateDatabaseResponse, err error) { var ociResponse common.OCIResponse @@ -1421,6 +2489,9 @@ func (client DatabaseClient) UpdateDatabase(ctx context.Context, request UpdateD } ociResponse, err = common.Retry(ctx, request, client.updateDatabase, policy) if err != nil { + if ociResponse != nil { + response = UpdateDatabaseResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateDatabaseResponse); ok { @@ -1460,6 +2531,9 @@ func (client DatabaseClient) UpdateDbHome(ctx context.Context, request UpdateDbH } ociResponse, err = common.Retry(ctx, request, client.updateDbHome, policy) if err != nil { + if ociResponse != nil { + response = UpdateDbHomeResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateDbHomeResponse); ok { @@ -1490,7 +2564,7 @@ func (client DatabaseClient) updateDbHome(ctx context.Context, request common.OC return response, err } -// UpdateDbSystem Updates the properties of a DB System, such as the CPU core count. +// UpdateDbSystem Updates the properties of a DB system, such as the CPU core count. func (client DatabaseClient) UpdateDbSystem(ctx context.Context, request UpdateDbSystemRequest) (response UpdateDbSystemResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1499,6 +2573,9 @@ func (client DatabaseClient) UpdateDbSystem(ctx context.Context, request UpdateD } ociResponse, err = common.Retry(ctx, request, client.updateDbSystem, policy) if err != nil { + if ociResponse != nil { + response = UpdateDbSystemResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateDbSystemResponse); ok { diff --git a/vendor/github.com/oracle/oci-go-sdk/database/database_summary.go b/vendor/github.com/oracle/oci-go-sdk/database/database_summary.go index 8028fb062..f860db772 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/database_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/database_summary.go @@ -12,11 +12,12 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// DatabaseSummary An Oracle database on a DB System. For more information, see Managing Oracle Databases (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/overview.htm). +// DatabaseSummary An Oracle database on a bare metal or virtual machine DB system. For more information, see Bare Metal and Virtual Machine DB Systems (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/overview.htm). // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type DatabaseSummary struct { - // The OCID of the compartment. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The database name. @@ -25,7 +26,7 @@ type DatabaseSummary struct { // A system-generated name for the database to ensure uniqueness within an Oracle Data Guard group (a primary database and its standby databases). The unique name cannot be changed. DbUniqueName *string `mandatory:"true" json:"dbUniqueName"` - // The OCID of the database. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database. Id *string `mandatory:"true" json:"id"` // The current state of the database. @@ -36,10 +37,10 @@ type DatabaseSummary struct { DbBackupConfig *DbBackupConfig `mandatory:"false" json:"dbBackupConfig"` - // The OCID of the database home. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database home. DbHomeId *string `mandatory:"false" json:"dbHomeId"` - // Database workload type. + // The database workload type. DbWorkload *string `mandatory:"false" json:"dbWorkload"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. @@ -58,7 +59,7 @@ type DatabaseSummary struct { // The national character set for the database. NcharacterSet *string `mandatory:"false" json:"ncharacterSet"` - // Pluggable database name. It must begin with an alphabetic character and can contain a maximum of eight alphanumeric characters. Special characters are not permitted. Pluggable database should not be same as database name. + // The name of the pluggable database. The name must begin with an alphabetic character and can contain a maximum of eight alphanumeric characters. Special characters are not permitted. Pluggable database should not be same as database name. PdbName *string `mandatory:"false" json:"pdbName"` // The date and time the database was created. diff --git a/vendor/github.com/oracle/oci-go-sdk/database/db_home.go b/vendor/github.com/oracle/oci-go-sdk/database/db_home.go index dc768b7cc..eccd913ba 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/db_home.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/db_home.go @@ -12,34 +12,34 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// DbHome A directory where Oracle database software is installed. Each DB System can have multiple database homes, -// and each database home can have multiple databases within it. All the databases within a single database home -// must be the same database version, but different database homes can run different versions. For more information, -// see Managing Oracle Databases (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/overview.htm). +// DbHome A directory where Oracle Database software is installed. A bare metal DB system can have multiple database homes +// and each database home can run a different supported version of Oracle Database. A virtual machine DB system can have only one database home. +// For more information, see Bare Metal and Virtual Machine DB Systems (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/overview.htm). // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an // administrator. If you're an administrator who needs to write policies to give users access, // see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type DbHome struct { - // The OCID of the compartment. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // The Oracle database version. + // The Oracle Database version. DbVersion *string `mandatory:"true" json:"dbVersion"` - // The user-provided name for the database home. It does not need to be unique. + // The user-provided name for the database home. The name does not need to be unique. DisplayName *string `mandatory:"true" json:"displayName"` - // The OCID of the database home. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database home. Id *string `mandatory:"true" json:"id"` // The current state of the database home. LifecycleState DbHomeLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - // The OCID of the DB System. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system. DbSystemId *string `mandatory:"false" json:"dbSystemId"` - // The OCID of the last patch history. This is updated as soon as a patch operation is started. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the last patch history. This value is updated as soon as a patch operation is started. LastPatchHistoryEntryId *string `mandatory:"false" json:"lastPatchHistoryEntryId"` // The date and time the database home was created. diff --git a/vendor/github.com/oracle/oci-go-sdk/database/db_home_summary.go b/vendor/github.com/oracle/oci-go-sdk/database/db_home_summary.go index b71dec836..487de9d50 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/db_home_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/db_home_summary.go @@ -12,34 +12,34 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// DbHomeSummary A directory where Oracle database software is installed. Each DB System can have multiple database homes, -// and each database home can have multiple databases within it. All the databases within a single database home -// must be the same database version, but different database homes can run different versions. For more information, -// see Managing Oracle Databases (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/overview.htm). +// DbHomeSummary A directory where Oracle Database software is installed. A bare metal DB system can have multiple database homes +// and each database home can run a different supported version of Oracle Database. A virtual machine DB system can have only one database home. +// For more information, see Bare Metal and Virtual Machine DB Systems (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/overview.htm). // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an // administrator. If you're an administrator who needs to write policies to give users access, // see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type DbHomeSummary struct { - // The OCID of the compartment. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // The Oracle database version. + // The Oracle Database version. DbVersion *string `mandatory:"true" json:"dbVersion"` - // The user-provided name for the database home. It does not need to be unique. + // The user-provided name for the database home. The name does not need to be unique. DisplayName *string `mandatory:"true" json:"displayName"` - // The OCID of the database home. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database home. Id *string `mandatory:"true" json:"id"` // The current state of the database home. LifecycleState DbHomeSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - // The OCID of the DB System. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system. DbSystemId *string `mandatory:"false" json:"dbSystemId"` - // The OCID of the last patch history. This is updated as soon as a patch operation is started. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the last patch history. This value is updated as soon as a patch operation is started. LastPatchHistoryEntryId *string `mandatory:"false" json:"lastPatchHistoryEntryId"` // The date and time the database home was created. diff --git a/vendor/github.com/oracle/oci-go-sdk/database/db_node.go b/vendor/github.com/oracle/oci-go-sdk/database/db_node.go index 3e052d092..9e2bd402a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/db_node.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/db_node.go @@ -12,32 +12,33 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// DbNode A server where Oracle database software is running. +// DbNode A server where Oracle Database software is running. // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type DbNode struct { - // The OCID of the DB System. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system. DbSystemId *string `mandatory:"true" json:"dbSystemId"` - // The OCID of the DB Node. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database node. Id *string `mandatory:"true" json:"id"` // The current state of the database node. LifecycleState DbNodeLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - // The date and time that the DB Node was created. + // The date and time that the database node was created. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - // The OCID of the VNIC. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the VNIC. VnicId *string `mandatory:"true" json:"vnicId"` - // The OCID of the backup VNIC. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the backup VNIC. BackupVnicId *string `mandatory:"false" json:"backupVnicId"` - // The host name for the DB Node. + // The host name for the database node. Hostname *string `mandatory:"false" json:"hostname"` - // Storage size, in GBs, of the software volume that is allocated to the DB system. This is applicable only for VM-based DBs. + // The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems. SoftwareStorageSizeInGB *int `mandatory:"false" json:"softwareStorageSizeInGB"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/database/db_node_summary.go b/vendor/github.com/oracle/oci-go-sdk/database/db_node_summary.go index 47e4ea0dc..b6fe99c60 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/db_node_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/db_node_summary.go @@ -12,32 +12,33 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// DbNodeSummary A server where Oracle database software is running. +// DbNodeSummary A server where Oracle Database software is running. // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type DbNodeSummary struct { - // The OCID of the DB System. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system. DbSystemId *string `mandatory:"true" json:"dbSystemId"` - // The OCID of the DB Node. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database node. Id *string `mandatory:"true" json:"id"` // The current state of the database node. LifecycleState DbNodeSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - // The date and time that the DB Node was created. + // The date and time that the database node was created. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - // The OCID of the VNIC. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the VNIC. VnicId *string `mandatory:"true" json:"vnicId"` - // The OCID of the backup VNIC. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the backup VNIC. BackupVnicId *string `mandatory:"false" json:"backupVnicId"` - // The host name for the DB Node. + // The host name for the database node. Hostname *string `mandatory:"false" json:"hostname"` - // Storage size, in GBs, of the software volume that is allocated to the DB system. This is applicable only for VM-based DBs. + // The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems. SoftwareStorageSizeInGB *int `mandatory:"false" json:"softwareStorageSizeInGB"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/database/db_system.go b/vendor/github.com/oracle/oci-go-sdk/database/db_system.go index 35b9f06af..c67ff749b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/db_system.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/db_system.go @@ -12,74 +12,76 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// DbSystem The Database Service supports several types of DB Systems, ranging in size, price, and performance. For details about each type of system, see: +// DbSystem The Database Service supports several types of DB systems, ranging in size, price, and performance. For details about each type of system, see: // - Exadata DB Systems (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/exaoverview.htm) // - Bare Metal and Virtual Machine DB Systems (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/overview.htm) -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you are not authorized, talk to an administrator. If you are an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). // // For information about access control and compartments, see // Overview of the Identity Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). -// For information about Availability Domains, see +// For information about availability domains, see // Regions and Availability Domains (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/regions.htm). -// To get a list of Availability Domains, use the `ListAvailabilityDomains` operation +// To get a list of availability domains, use the `ListAvailabilityDomains` operation // in the Identity Service API. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type DbSystem struct { - // The name of the Availability Domain that the DB System is located in. + // The name of the availability domain that the DB system is located in. AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - // The OCID of the compartment. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // The number of CPU cores enabled on the DB System. + // The number of CPU cores enabled on the DB system. CpuCoreCount *int `mandatory:"true" json:"cpuCoreCount"` - // The Oracle Database Edition that applies to all the databases on the DB System. + // The Oracle Database edition that applies to all the databases on the DB system. DatabaseEdition DbSystemDatabaseEditionEnum `mandatory:"true" json:"databaseEdition"` - // The user-friendly name for the DB System. It does not have to be unique. + // The user-friendly name for the DB system. The name does not have to be unique. DisplayName *string `mandatory:"true" json:"displayName"` - // The domain name for the DB System. + // The domain name for the DB system. Domain *string `mandatory:"true" json:"domain"` - // The host name for the DB Node. + // The hostname for the DB system. Hostname *string `mandatory:"true" json:"hostname"` - // The OCID of the DB System. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system. Id *string `mandatory:"true" json:"id"` - // The current state of the DB System. + // The current state of the DB system. LifecycleState DbSystemLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - // The shape of the DB System. The shape determines resources to allocate to the DB system - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. + // The shape of the DB system. The shape determines resources to allocate to the DB system. + // - For virtual machine shapes, the number of CPU cores and memory + // - For bare metal and Exadata shapes, the number of CPU cores, storage, and memory Shape *string `mandatory:"true" json:"shape"` - // The public key portion of one or more key pairs used for SSH access to the DB System. + // The public key portion of one or more key pairs used for SSH access to the DB system. SshPublicKeys []string `mandatory:"true" json:"sshPublicKeys"` - // The OCID of the subnet the DB System is associated with. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the subnet the DB system is associated with. // **Subnet Restrictions:** - // - For single node and 2-node (RAC) DB Systems, do not use a subnet that overlaps with 192.168.16.16/28 - // - For Exadata and VM-based RAC DB Systems, do not use a subnet that overlaps with 192.168.128.0/20 + // - For bare metal DB systems and for single node virtual machine DB systems, do not use a subnet that overlaps with 192.168.16.16/28. + // - For Exadata and virtual machine 2-node RAC DB systems, do not use a subnet that overlaps with 192.168.128.0/20. // These subnets are used by the Oracle Clusterware private interconnect on the database instance. // Specifying an overlapping subnet will cause the private interconnect to malfunction. // This restriction applies to both the client subnet and backup subnet. SubnetId *string `mandatory:"true" json:"subnetId"` - // The OCID of the backup network subnet the DB System is associated with. Applicable only to Exadata. - // **Subnet Restriction:** See above subnetId's 'Subnet Restriction'. - // to malfunction. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the backup network subnet the DB system is associated with. Applicable only to Exadata DB systems. + // **Subnet Restriction:** See the subnet restrictions information for **subnetId**. BackupSubnetId *string `mandatory:"false" json:"backupSubnetId"` - // Cluster name for Exadata and 2-node RAC DB Systems. The cluster name must begin with an an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive. + // The cluster name for Exadata and 2-node RAC virtual machine DB systems. The cluster name must begin with an an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive. ClusterName *string `mandatory:"false" json:"clusterName"` // The percentage assigned to DATA storage (user data and database files). - // The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). Accepted values are 40 and 80. + // The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). Accepted values are 40 and 80. The default is 80 percent assigned to DATA storage. Not applicable for virtual machine DB systems. DataStoragePercentage *int `mandatory:"false" json:"dataStoragePercentage"` - // Data storage size, in GBs, that is currently available to the DB system. This is applicable only for VM-based DBs. + // The data storage size, in gigabytes, that is currently available to the DB system. Applies only for virtual machine DB systems. DataStorageSizeInGBs *int `mandatory:"false" json:"dataStorageSizeInGBs"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. @@ -87,9 +89,9 @@ type DbSystem struct { // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - // The type of redundancy configured for the DB System. - // Normal is 2-way redundancy. - // High is 3-way redundancy. + // The type of redundancy configured for the DB system. + // NORMAL is 2-way redundancy. + // HIGH is 3-way redundancy. DiskRedundancy DbSystemDiskRedundancyEnum `mandatory:"false" json:"diskRedundancy,omitempty"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. @@ -97,43 +99,43 @@ type DbSystem struct { // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - // The OCID of the last patch history. This is updated as soon as a patch operation is started. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the last patch history. This value is updated as soon as a patch operation starts. LastPatchHistoryEntryId *string `mandatory:"false" json:"lastPatchHistoryEntryId"` - // The Oracle license model that applies to all the databases on the DB System. The default is LICENSE_INCLUDED. + // The Oracle license model that applies to all the databases on the DB system. The default is LICENSE_INCLUDED. LicenseModel DbSystemLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` // Additional information about the current lifecycleState. LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - // The port number configured for the listener on the DB System. + // The port number configured for the listener on the DB system. ListenerPort *int `mandatory:"false" json:"listenerPort"` - // Number of nodes in this DB system. For RAC DBs, this will be greater than 1. + // The number of nodes in the DB system. For RAC DB systems, the value is greater than 1. NodeCount *int `mandatory:"false" json:"nodeCount"` - // RECO/REDO storage size, in GBs, that is currently allocated to the DB system. This is applicable only for VM-based DBs. + // The RECO/REDO storage size, in gigabytes, that is currently allocated to the DB system. Applies only for virtual machine DB systems. RecoStorageSizeInGB *int `mandatory:"false" json:"recoStorageSizeInGB"` - // The OCID of the DNS record for the SCAN IP addresses that are associated with the DB System. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DNS record for the SCAN IP addresses that are associated with the DB system. ScanDnsRecordId *string `mandatory:"false" json:"scanDnsRecordId"` - // The OCID of the Single Client Access Name (SCAN) IP addresses associated with the DB System. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Single Client Access Name (SCAN) IP addresses associated with the DB system. // SCAN IP addresses are typically used for load balancing and are not assigned to any interface. - // Clusterware directs the requests to the appropriate nodes in the cluster. - // - For a single-node DB System, this list is empty. + // Oracle Clusterware directs the requests to the appropriate nodes in the cluster. + // **Note:** For a single-node DB system, this list is empty. ScanIpIds []string `mandatory:"false" json:"scanIpIds"` - // The date and time the DB System was created. + // The date and time the DB system was created. TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - // The version of the DB System. + // The Oracle Database version of the DB system. Version *string `mandatory:"false" json:"version"` - // The OCID of the virtual IP (VIP) addresses associated with the DB System. - // The Cluster Ready Services (CRS) creates and maintains one VIP address for each node in the DB System to + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the virtual IP (VIP) addresses associated with the DB system. + // The Cluster Ready Services (CRS) creates and maintains one VIP address for each node in the DB system to // enable failover. If one node fails, the VIP is reassigned to another active node in the cluster. - // - For a single-node DB System, this list is empty. + // **Note:** For a single-node DB system, this list is empty. VipIds []string `mandatory:"false" json:"vipIds"` } @@ -148,15 +150,15 @@ type DbSystemDatabaseEditionEnum string const ( DbSystemDatabaseEditionStandardEdition DbSystemDatabaseEditionEnum = "STANDARD_EDITION" DbSystemDatabaseEditionEnterpriseEdition DbSystemDatabaseEditionEnum = "ENTERPRISE_EDITION" - DbSystemDatabaseEditionEnterpriseEditionExtremePerformance DbSystemDatabaseEditionEnum = "ENTERPRISE_EDITION_EXTREME_PERFORMANCE" DbSystemDatabaseEditionEnterpriseEditionHighPerformance DbSystemDatabaseEditionEnum = "ENTERPRISE_EDITION_HIGH_PERFORMANCE" + DbSystemDatabaseEditionEnterpriseEditionExtremePerformance DbSystemDatabaseEditionEnum = "ENTERPRISE_EDITION_EXTREME_PERFORMANCE" ) var mappingDbSystemDatabaseEdition = map[string]DbSystemDatabaseEditionEnum{ "STANDARD_EDITION": DbSystemDatabaseEditionStandardEdition, "ENTERPRISE_EDITION": DbSystemDatabaseEditionEnterpriseEdition, - "ENTERPRISE_EDITION_EXTREME_PERFORMANCE": DbSystemDatabaseEditionEnterpriseEditionExtremePerformance, "ENTERPRISE_EDITION_HIGH_PERFORMANCE": DbSystemDatabaseEditionEnterpriseEditionHighPerformance, + "ENTERPRISE_EDITION_EXTREME_PERFORMANCE": DbSystemDatabaseEditionEnterpriseEditionExtremePerformance, } // GetDbSystemDatabaseEditionEnumValues Enumerates the set of values for DbSystemDatabaseEdition diff --git a/vendor/github.com/oracle/oci-go-sdk/database/db_system_shape_summary.go b/vendor/github.com/oracle/oci-go-sdk/database/db_system_shape_summary.go index 6e8a2a200..f1b103ae0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/db_system_shape_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/db_system_shape_summary.go @@ -12,17 +12,17 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// DbSystemShapeSummary The shape of the DB System. The shape determines resources to allocate to the DB system - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. +// DbSystemShapeSummary The shape of the DB system. The shape determines resources to allocate to the DB system - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. // For a description of shapes, see DB System Launch Options (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/References/launchoptions.htm). // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. // If you're an administrator who needs to write policies to give users access, // see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type DbSystemShapeSummary struct { - // The maximum number of CPU cores that can be enabled on the DB System for this shape. + // The maximum number of CPU cores that can be enabled on the DB system for this shape. AvailableCoreCount *int `mandatory:"true" json:"availableCoreCount"` - // The name of the shape used for the DB System. + // The name of the shape used for the DB system. Name *string `mandatory:"true" json:"name"` // The discrete number by which the CPU core count for this shape can be increased or decreased. @@ -31,7 +31,7 @@ type DbSystemShapeSummary struct { // The maximum number of database nodes available for this shape. MaximumNodeCount *int `mandatory:"false" json:"maximumNodeCount"` - // The minimum number of CPU cores that can be enabled on the DB System for this shape. + // The minimum number of CPU cores that can be enabled on the DB system for this shape. MinimumCoreCount *int `mandatory:"false" json:"minimumCoreCount"` // The minimum number of database nodes available for this shape. diff --git a/vendor/github.com/oracle/oci-go-sdk/database/db_system_summary.go b/vendor/github.com/oracle/oci-go-sdk/database/db_system_summary.go index 40cbce8e4..4d9a44401 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/db_system_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/db_system_summary.go @@ -12,74 +12,76 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// DbSystemSummary The Database Service supports several types of DB Systems, ranging in size, price, and performance. For details about each type of system, see: +// DbSystemSummary The Database Service supports several types of DB systems, ranging in size, price, and performance. For details about each type of system, see: // - Exadata DB Systems (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/exaoverview.htm) // - Bare Metal and Virtual Machine DB Systems (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/overview.htm) -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you are not authorized, talk to an administrator. If you are an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). // // For information about access control and compartments, see // Overview of the Identity Service (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). -// For information about Availability Domains, see +// For information about availability domains, see // Regions and Availability Domains (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/regions.htm). -// To get a list of Availability Domains, use the `ListAvailabilityDomains` operation +// To get a list of availability domains, use the `ListAvailabilityDomains` operation // in the Identity Service API. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type DbSystemSummary struct { - // The name of the Availability Domain that the DB System is located in. + // The name of the availability domain that the DB system is located in. AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - // The OCID of the compartment. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // The number of CPU cores enabled on the DB System. + // The number of CPU cores enabled on the DB system. CpuCoreCount *int `mandatory:"true" json:"cpuCoreCount"` - // The Oracle Database Edition that applies to all the databases on the DB System. + // The Oracle Database edition that applies to all the databases on the DB system. DatabaseEdition DbSystemSummaryDatabaseEditionEnum `mandatory:"true" json:"databaseEdition"` - // The user-friendly name for the DB System. It does not have to be unique. + // The user-friendly name for the DB system. The name does not have to be unique. DisplayName *string `mandatory:"true" json:"displayName"` - // The domain name for the DB System. + // The domain name for the DB system. Domain *string `mandatory:"true" json:"domain"` - // The host name for the DB Node. + // The hostname for the DB system. Hostname *string `mandatory:"true" json:"hostname"` - // The OCID of the DB System. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system. Id *string `mandatory:"true" json:"id"` - // The current state of the DB System. + // The current state of the DB system. LifecycleState DbSystemSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - // The shape of the DB System. The shape determines resources to allocate to the DB system - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. + // The shape of the DB system. The shape determines resources to allocate to the DB system. + // - For virtual machine shapes, the number of CPU cores and memory + // - For bare metal and Exadata shapes, the number of CPU cores, storage, and memory Shape *string `mandatory:"true" json:"shape"` - // The public key portion of one or more key pairs used for SSH access to the DB System. + // The public key portion of one or more key pairs used for SSH access to the DB system. SshPublicKeys []string `mandatory:"true" json:"sshPublicKeys"` - // The OCID of the subnet the DB System is associated with. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the subnet the DB system is associated with. // **Subnet Restrictions:** - // - For single node and 2-node (RAC) DB Systems, do not use a subnet that overlaps with 192.168.16.16/28 - // - For Exadata and VM-based RAC DB Systems, do not use a subnet that overlaps with 192.168.128.0/20 + // - For bare metal DB systems and for single node virtual machine DB systems, do not use a subnet that overlaps with 192.168.16.16/28. + // - For Exadata and virtual machine 2-node RAC DB systems, do not use a subnet that overlaps with 192.168.128.0/20. // These subnets are used by the Oracle Clusterware private interconnect on the database instance. // Specifying an overlapping subnet will cause the private interconnect to malfunction. // This restriction applies to both the client subnet and backup subnet. SubnetId *string `mandatory:"true" json:"subnetId"` - // The OCID of the backup network subnet the DB System is associated with. Applicable only to Exadata. - // **Subnet Restriction:** See above subnetId's 'Subnet Restriction'. - // to malfunction. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the backup network subnet the DB system is associated with. Applicable only to Exadata DB systems. + // **Subnet Restriction:** See the subnet restrictions information for **subnetId**. BackupSubnetId *string `mandatory:"false" json:"backupSubnetId"` - // Cluster name for Exadata and 2-node RAC DB Systems. The cluster name must begin with an an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive. + // The cluster name for Exadata and 2-node RAC virtual machine DB systems. The cluster name must begin with an an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive. ClusterName *string `mandatory:"false" json:"clusterName"` // The percentage assigned to DATA storage (user data and database files). - // The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). Accepted values are 40 and 80. + // The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). Accepted values are 40 and 80. The default is 80 percent assigned to DATA storage. Not applicable for virtual machine DB systems. DataStoragePercentage *int `mandatory:"false" json:"dataStoragePercentage"` - // Data storage size, in GBs, that is currently available to the DB system. This is applicable only for VM-based DBs. + // The data storage size, in gigabytes, that is currently available to the DB system. Applies only for virtual machine DB systems. DataStorageSizeInGBs *int `mandatory:"false" json:"dataStorageSizeInGBs"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. @@ -87,9 +89,9 @@ type DbSystemSummary struct { // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - // The type of redundancy configured for the DB System. - // Normal is 2-way redundancy. - // High is 3-way redundancy. + // The type of redundancy configured for the DB system. + // NORMAL is 2-way redundancy. + // HIGH is 3-way redundancy. DiskRedundancy DbSystemSummaryDiskRedundancyEnum `mandatory:"false" json:"diskRedundancy,omitempty"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. @@ -97,43 +99,43 @@ type DbSystemSummary struct { // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - // The OCID of the last patch history. This is updated as soon as a patch operation is started. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the last patch history. This value is updated as soon as a patch operation starts. LastPatchHistoryEntryId *string `mandatory:"false" json:"lastPatchHistoryEntryId"` - // The Oracle license model that applies to all the databases on the DB System. The default is LICENSE_INCLUDED. + // The Oracle license model that applies to all the databases on the DB system. The default is LICENSE_INCLUDED. LicenseModel DbSystemSummaryLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` // Additional information about the current lifecycleState. LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - // The port number configured for the listener on the DB System. + // The port number configured for the listener on the DB system. ListenerPort *int `mandatory:"false" json:"listenerPort"` - // Number of nodes in this DB system. For RAC DBs, this will be greater than 1. + // The number of nodes in the DB system. For RAC DB systems, the value is greater than 1. NodeCount *int `mandatory:"false" json:"nodeCount"` - // RECO/REDO storage size, in GBs, that is currently allocated to the DB system. This is applicable only for VM-based DBs. + // The RECO/REDO storage size, in gigabytes, that is currently allocated to the DB system. Applies only for virtual machine DB systems. RecoStorageSizeInGB *int `mandatory:"false" json:"recoStorageSizeInGB"` - // The OCID of the DNS record for the SCAN IP addresses that are associated with the DB System. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DNS record for the SCAN IP addresses that are associated with the DB system. ScanDnsRecordId *string `mandatory:"false" json:"scanDnsRecordId"` - // The OCID of the Single Client Access Name (SCAN) IP addresses associated with the DB System. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Single Client Access Name (SCAN) IP addresses associated with the DB system. // SCAN IP addresses are typically used for load balancing and are not assigned to any interface. - // Clusterware directs the requests to the appropriate nodes in the cluster. - // - For a single-node DB System, this list is empty. + // Oracle Clusterware directs the requests to the appropriate nodes in the cluster. + // **Note:** For a single-node DB system, this list is empty. ScanIpIds []string `mandatory:"false" json:"scanIpIds"` - // The date and time the DB System was created. + // The date and time the DB system was created. TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - // The version of the DB System. + // The Oracle Database version of the DB system. Version *string `mandatory:"false" json:"version"` - // The OCID of the virtual IP (VIP) addresses associated with the DB System. - // The Cluster Ready Services (CRS) creates and maintains one VIP address for each node in the DB System to + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the virtual IP (VIP) addresses associated with the DB system. + // The Cluster Ready Services (CRS) creates and maintains one VIP address for each node in the DB system to // enable failover. If one node fails, the VIP is reassigned to another active node in the cluster. - // - For a single-node DB System, this list is empty. + // **Note:** For a single-node DB system, this list is empty. VipIds []string `mandatory:"false" json:"vipIds"` } @@ -148,15 +150,15 @@ type DbSystemSummaryDatabaseEditionEnum string const ( DbSystemSummaryDatabaseEditionStandardEdition DbSystemSummaryDatabaseEditionEnum = "STANDARD_EDITION" DbSystemSummaryDatabaseEditionEnterpriseEdition DbSystemSummaryDatabaseEditionEnum = "ENTERPRISE_EDITION" - DbSystemSummaryDatabaseEditionEnterpriseEditionExtremePerformance DbSystemSummaryDatabaseEditionEnum = "ENTERPRISE_EDITION_EXTREME_PERFORMANCE" DbSystemSummaryDatabaseEditionEnterpriseEditionHighPerformance DbSystemSummaryDatabaseEditionEnum = "ENTERPRISE_EDITION_HIGH_PERFORMANCE" + DbSystemSummaryDatabaseEditionEnterpriseEditionExtremePerformance DbSystemSummaryDatabaseEditionEnum = "ENTERPRISE_EDITION_EXTREME_PERFORMANCE" ) var mappingDbSystemSummaryDatabaseEdition = map[string]DbSystemSummaryDatabaseEditionEnum{ "STANDARD_EDITION": DbSystemSummaryDatabaseEditionStandardEdition, "ENTERPRISE_EDITION": DbSystemSummaryDatabaseEditionEnterpriseEdition, - "ENTERPRISE_EDITION_EXTREME_PERFORMANCE": DbSystemSummaryDatabaseEditionEnterpriseEditionExtremePerformance, "ENTERPRISE_EDITION_HIGH_PERFORMANCE": DbSystemSummaryDatabaseEditionEnterpriseEditionHighPerformance, + "ENTERPRISE_EDITION_EXTREME_PERFORMANCE": DbSystemSummaryDatabaseEditionEnterpriseEditionExtremePerformance, } // GetDbSystemSummaryDatabaseEditionEnumValues Enumerates the set of values for DbSystemSummaryDatabaseEdition diff --git a/vendor/github.com/oracle/oci-go-sdk/database/db_version_summary.go b/vendor/github.com/oracle/oci-go-sdk/database/db_version_summary.go index 5920cb4b9..b8e6f8d35 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/db_version_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/db_version_summary.go @@ -16,10 +16,10 @@ import ( // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). type DbVersionSummary struct { - // A valid Oracle database version. + // A valid Oracle Database version. Version *string `mandatory:"true" json:"version"` - // True if this version of the Oracle database software supports pluggable dbs. + // True if this version of the Oracle Database software supports pluggable databases. SupportsPdb *bool `mandatory:"false" json:"supportsPdb"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/database/delete_autonomous_data_warehouse_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/delete_autonomous_data_warehouse_request_response.go new file mode 100644 index 000000000..bb8d5a3c4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/delete_autonomous_data_warehouse_request_response.go @@ -0,0 +1,63 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// DeleteAutonomousDataWarehouseRequest wrapper for the DeleteAutonomousDataWarehouse operation +type DeleteAutonomousDataWarehouseRequest struct { + + // The database OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + AutonomousDataWarehouseId *string `mandatory:"true" contributesTo:"path" name:"autonomousDataWarehouseId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteAutonomousDataWarehouseRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteAutonomousDataWarehouseRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteAutonomousDataWarehouseRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// DeleteAutonomousDataWarehouseResponse wrapper for the DeleteAutonomousDataWarehouse operation +type DeleteAutonomousDataWarehouseResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteAutonomousDataWarehouseResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteAutonomousDataWarehouseResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/delete_autonomous_database_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/delete_autonomous_database_request_response.go new file mode 100644 index 000000000..d130dfdaf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/delete_autonomous_database_request_response.go @@ -0,0 +1,63 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// DeleteAutonomousDatabaseRequest wrapper for the DeleteAutonomousDatabase operation +type DeleteAutonomousDatabaseRequest struct { + + // The database OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + AutonomousDatabaseId *string `mandatory:"true" contributesTo:"path" name:"autonomousDatabaseId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteAutonomousDatabaseRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteAutonomousDatabaseRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteAutonomousDatabaseRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// DeleteAutonomousDatabaseResponse wrapper for the DeleteAutonomousDatabase operation +type DeleteAutonomousDatabaseResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteAutonomousDatabaseResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteAutonomousDatabaseResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/delete_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/delete_backup_request_response.go index cb4728d60..9171aca5c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/delete_backup_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/delete_backup_request_response.go @@ -11,7 +11,7 @@ import ( // DeleteBackupRequest wrapper for the DeleteBackup operation type DeleteBackupRequest struct { - // The backup OCID. + // The backup OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). BackupId *string `mandatory:"true" contributesTo:"path" name:"backupId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` diff --git a/vendor/github.com/oracle/oci-go-sdk/database/failover_data_guard_association_details.go b/vendor/github.com/oracle/oci-go-sdk/database/failover_data_guard_association_details.go index 40e8bc76b..32ea95497 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/failover_data_guard_association_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/failover_data_guard_association_details.go @@ -15,7 +15,7 @@ import ( // FailoverDataGuardAssociationDetails The Data Guard association failover parameters. type FailoverDataGuardAssociationDetails struct { - // The DB System administrator password. + // The DB system administrator password. DatabaseAdminPassword *string `mandatory:"true" json:"databaseAdminPassword"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/database/get_autonomous_data_warehouse_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/get_autonomous_data_warehouse_backup_request_response.go new file mode 100644 index 000000000..676e051ea --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/get_autonomous_data_warehouse_backup_request_response.go @@ -0,0 +1,64 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// GetAutonomousDataWarehouseBackupRequest wrapper for the GetAutonomousDataWarehouseBackup operation +type GetAutonomousDataWarehouseBackupRequest struct { + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse backup. + AutonomousDataWarehouseBackupId *string `mandatory:"true" contributesTo:"path" name:"autonomousDataWarehouseBackupId"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetAutonomousDataWarehouseBackupRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetAutonomousDataWarehouseBackupRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetAutonomousDataWarehouseBackupRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// GetAutonomousDataWarehouseBackupResponse wrapper for the GetAutonomousDataWarehouseBackup operation +type GetAutonomousDataWarehouseBackupResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The AutonomousDataWarehouseBackup instance + AutonomousDataWarehouseBackup `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetAutonomousDataWarehouseBackupResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetAutonomousDataWarehouseBackupResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/get_autonomous_data_warehouse_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/get_autonomous_data_warehouse_request_response.go new file mode 100644 index 000000000..8d8e4c97d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/get_autonomous_data_warehouse_request_response.go @@ -0,0 +1,61 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// GetAutonomousDataWarehouseRequest wrapper for the GetAutonomousDataWarehouse operation +type GetAutonomousDataWarehouseRequest struct { + + // The database OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + AutonomousDataWarehouseId *string `mandatory:"true" contributesTo:"path" name:"autonomousDataWarehouseId"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetAutonomousDataWarehouseRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetAutonomousDataWarehouseRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetAutonomousDataWarehouseRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// GetAutonomousDataWarehouseResponse wrapper for the GetAutonomousDataWarehouse operation +type GetAutonomousDataWarehouseResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The AutonomousDataWarehouse instance + AutonomousDataWarehouse `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetAutonomousDataWarehouseResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetAutonomousDataWarehouseResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/get_autonomous_database_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/get_autonomous_database_backup_request_response.go new file mode 100644 index 000000000..fbdf03844 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/get_autonomous_database_backup_request_response.go @@ -0,0 +1,64 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// GetAutonomousDatabaseBackupRequest wrapper for the GetAutonomousDatabaseBackup operation +type GetAutonomousDatabaseBackupRequest struct { + + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database backup. + AutonomousDatabaseBackupId *string `mandatory:"true" contributesTo:"path" name:"autonomousDatabaseBackupId"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetAutonomousDatabaseBackupRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetAutonomousDatabaseBackupRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetAutonomousDatabaseBackupRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// GetAutonomousDatabaseBackupResponse wrapper for the GetAutonomousDatabaseBackup operation +type GetAutonomousDatabaseBackupResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The AutonomousDatabaseBackup instance + AutonomousDatabaseBackup `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetAutonomousDatabaseBackupResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetAutonomousDatabaseBackupResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/get_autonomous_database_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/get_autonomous_database_request_response.go new file mode 100644 index 000000000..72ab819d4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/get_autonomous_database_request_response.go @@ -0,0 +1,64 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// GetAutonomousDatabaseRequest wrapper for the GetAutonomousDatabase operation +type GetAutonomousDatabaseRequest struct { + + // The database OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + AutonomousDatabaseId *string `mandatory:"true" contributesTo:"path" name:"autonomousDatabaseId"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetAutonomousDatabaseRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetAutonomousDatabaseRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetAutonomousDatabaseRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// GetAutonomousDatabaseResponse wrapper for the GetAutonomousDatabase operation +type GetAutonomousDatabaseResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The AutonomousDatabase instance + AutonomousDatabase `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetAutonomousDatabaseResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetAutonomousDatabaseResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/get_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/get_backup_request_response.go index 0eb197c54..616c1a90f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/get_backup_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/get_backup_request_response.go @@ -11,7 +11,7 @@ import ( // GetBackupRequest wrapper for the GetBackup operation type GetBackupRequest struct { - // The backup OCID. + // The backup OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). BackupId *string `mandatory:"true" contributesTo:"path" name:"backupId"` // Unique Oracle-assigned identifier for the request. diff --git a/vendor/github.com/oracle/oci-go-sdk/database/get_db_home_patch_history_entry_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/get_db_home_patch_history_entry_request_response.go index 45afc6c5a..fe8b15326 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/get_db_home_patch_history_entry_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/get_db_home_patch_history_entry_request_response.go @@ -14,7 +14,7 @@ type GetDbHomePatchHistoryEntryRequest struct { // The database home OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). DbHomeId *string `mandatory:"true" contributesTo:"path" name:"dbHomeId"` - // The OCID of the patch history entry. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the patch history entry. PatchHistoryEntryId *string `mandatory:"true" contributesTo:"path" name:"patchHistoryEntryId"` // Unique Oracle-assigned identifier for the request. diff --git a/vendor/github.com/oracle/oci-go-sdk/database/get_db_home_patch_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/get_db_home_patch_request_response.go index 3994d45f8..5a5acb760 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/get_db_home_patch_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/get_db_home_patch_request_response.go @@ -14,7 +14,7 @@ type GetDbHomePatchRequest struct { // The database home OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). DbHomeId *string `mandatory:"true" contributesTo:"path" name:"dbHomeId"` - // The OCID of the patch. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the patch. PatchId *string `mandatory:"true" contributesTo:"path" name:"patchId"` // Unique Oracle-assigned identifier for the request. diff --git a/vendor/github.com/oracle/oci-go-sdk/database/get_db_system_patch_history_entry_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/get_db_system_patch_history_entry_request_response.go index b158b3cda..e24e90c1a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/get_db_system_patch_history_entry_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/get_db_system_patch_history_entry_request_response.go @@ -11,10 +11,10 @@ import ( // GetDbSystemPatchHistoryEntryRequest wrapper for the GetDbSystemPatchHistoryEntry operation type GetDbSystemPatchHistoryEntryRequest struct { - // The DB System OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + // The DB system OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). DbSystemId *string `mandatory:"true" contributesTo:"path" name:"dbSystemId"` - // The OCID of the patch history entry. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the patch history entry. PatchHistoryEntryId *string `mandatory:"true" contributesTo:"path" name:"patchHistoryEntryId"` // Unique Oracle-assigned identifier for the request. diff --git a/vendor/github.com/oracle/oci-go-sdk/database/get_db_system_patch_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/get_db_system_patch_request_response.go index fec5ae6d4..b6772ff8d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/get_db_system_patch_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/get_db_system_patch_request_response.go @@ -11,10 +11,10 @@ import ( // GetDbSystemPatchRequest wrapper for the GetDbSystemPatch operation type GetDbSystemPatchRequest struct { - // The DB System OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + // The DB system OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). DbSystemId *string `mandatory:"true" contributesTo:"path" name:"dbSystemId"` - // The OCID of the patch. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the patch. PatchId *string `mandatory:"true" contributesTo:"path" name:"patchId"` // Unique Oracle-assigned identifier for the request. diff --git a/vendor/github.com/oracle/oci-go-sdk/database/get_db_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/get_db_system_request_response.go index 75cfeb978..865a21126 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/get_db_system_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/get_db_system_request_response.go @@ -11,7 +11,7 @@ import ( // GetDbSystemRequest wrapper for the GetDbSystem operation type GetDbSystemRequest struct { - // The DB System OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + // The DB system OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). DbSystemId *string `mandatory:"true" contributesTo:"path" name:"dbSystemId"` // Unique Oracle-assigned identifier for the request. diff --git a/vendor/github.com/oracle/oci-go-sdk/database/launch_db_system_base.go b/vendor/github.com/oracle/oci-go-sdk/database/launch_db_system_base.go index 90feddd34..29371a91a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/launch_db_system_base.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/launch_db_system_base.go @@ -13,56 +13,64 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// LaunchDbSystemBase The representation of LaunchDbSystemBase +// LaunchDbSystemBase Parameters for provisioning a bare metal, virtual machine, or Exadata DB system. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type LaunchDbSystemBase interface { - // The Availability Domain where the DB System is located. + // The availability domain where the DB system is located. GetAvailabilityDomain() *string - // The Oracle Cloud ID (OCID) of the compartment the DB System belongs in. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment the DB system belongs in. GetCompartmentId() *string - // The number of CPU cores to enable. The valid values depend on the specified shape: - // - BM.DenseIO1.36 and BM.HighIO1.36 - Specify a multiple of 2, from 2 to 36. - // - BM.RACLocalStorage1.72 - Specify a multiple of 4, from 4 to 72. + // The number of CPU cores to enable for a bare metal or Exadata DB system. The valid values depend on the specified shape: + // - BM.DenseIO1.36 - Specify a multiple of 2, from 2 to 36. + // - BM.DenseIO2.52 - Specify a multiple of 2, from 2 to 52. // - Exadata.Quarter1.84 - Specify a multiple of 2, from 22 to 84. // - Exadata.Half1.168 - Specify a multiple of 4, from 44 to 168. // - Exadata.Full1.336 - Specify a multiple of 8, from 88 to 336. - // For VM DB systems, the core count is inferred from the specific VM shape chosen, so this parameter is not used. + // - Exadata.Quarter2.92 - Specify a multiple of 2, from 0 to 92. + // - Exadata.Half2.184 - Specify a multiple of 4, from 0 to 184. + // - Exadata.Full2.368 - Specify a multiple of 8, from 0 to 368. + // This parameter is not used for virtual machine DB systems because virtual machine DB systems have a set number of cores for each shape. + // For information about the number of cores for a virtual machine DB system shape, see Virtual Machine DB Systems (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/overview.htm#virtualmachine) GetCpuCoreCount() *int - // The host name for the DB System. The host name must begin with an alphabetic character and + // The hostname for the DB system. The hostname must begin with an alphabetic character and // can contain a maximum of 30 alphanumeric characters, including hyphens (-). // The maximum length of the combined hostname and domain is 63 characters. // **Note:** The hostname must be unique within the subnet. If it is not unique, - // the DB System will fail to provision. + // the DB system will fail to provision. GetHostname() *string - // The shape of the DB System. The shape determines resources allocated to the DB System - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. To get a list of shapes, use the ListDbSystemShapes operation. + // The shape of the DB system. The shape determines resources allocated to the DB system. + // - For virtual machine shapes, the number of CPU cores and memory + // - For bare metal and Exadata shapes, the number of CPU cores, memory, and storage + // To get a list of shapes, use the ListDbSystemShapes operation. GetShape() *string - // The public key portion of the key pair to use for SSH access to the DB System. Multiple public keys can be provided. The length of the combined keys cannot exceed 10,000 characters. + // The public key portion of the key pair to use for SSH access to the DB system. Multiple public keys can be provided. The length of the combined keys cannot exceed 10,000 characters. GetSshPublicKeys() []string - // The OCID of the subnet the DB System is associated with. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the subnet the DB system is associated with. // **Subnet Restrictions:** - // - For single node and 2-node (RAC) DB Systems, do not use a subnet that overlaps with 192.168.16.16/28 - // - For Exadata and VM-based RAC DB Systems, do not use a subnet that overlaps with 192.168.128.0/20 + // - For bare metal DB systems and for single node virtual machine DB systems, do not use a subnet that overlaps with 192.168.16.16/28. + // - For Exadata and virtual machine 2-node RAC DB systems, do not use a subnet that overlaps with 192.168.128.0/20. // These subnets are used by the Oracle Clusterware private interconnect on the database instance. // Specifying an overlapping subnet will cause the private interconnect to malfunction. - // This restriction applies to both the client subnet and backup subnet. + // This restriction applies to both the client subnet and the backup subnet. GetSubnetId() *string - // The OCID of the backup network subnet the DB System is associated with. Applicable only to Exadata. - // **Subnet Restrictions:** See above subnetId's **Subnet Restriction**. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the backup network subnet the DB system is associated with. Applicable only to Exadata DB systems. + // **Subnet Restrictions:** See the subnet restrictions information for **subnetId**. GetBackupSubnetId() *string - // Cluster name for Exadata and 2-node RAC DB Systems. The cluster name must begin with an an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive. + // The cluster name for Exadata and 2-node RAC virtual machine DB systems. The cluster name must begin with an an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive. GetClusterName() *string // The percentage assigned to DATA storage (user data and database files). // The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). - // Specify 80 or 40. The default is 80 percent assigned to DATA storage. This is not applicable for VM based DB systems. + // Specify 80 or 40. The default is 80 percent assigned to DATA storage. Not applicable for virtual machine DB systems. GetDataStoragePercentage() *int // Defined tags for this resource. Each key is predefined and scoped to a namespace. @@ -70,12 +78,12 @@ type LaunchDbSystemBase interface { // Example: `{"Operations": {"CostCenter": "42"}}` GetDefinedTags() map[string]map[string]interface{} - // The user-friendly name for the DB System. It does not have to be unique. + // The user-friendly name for the DB system. The name does not have to be unique. GetDisplayName() *string - // A domain name used for the DB System. If the Oracle-provided Internet and VCN + // A domain name used for the DB system. If the Oracle-provided Internet and VCN // Resolver is enabled for the specified subnet, the domain name for the subnet is used - // (don't provide one). Otherwise, provide a valid DNS domain name. Hyphens (-) are not permitted. + // (do not provide one). Otherwise, provide a valid DNS domain name. Hyphens (-) are not permitted. GetDomain() *string // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. @@ -83,10 +91,10 @@ type LaunchDbSystemBase interface { // Example: `{"Department": "Finance"}` GetFreeformTags() map[string]string - // Size, in GBs, of the initial data volume that will be created and attached to VM-shape based DB system. This storage can later be scaled up if needed. Note that the total storage size attached will be more than what is requested, to account for REDO/RECO space and software volume. + // Size (in GB) of the initial data volume that will be created and attached to a virtual machine DB system. You can scale up storage after provisioning, as needed. Note that the total storage size attached will be more than the amount you specify to allow for REDO/RECO space and software volume. GetInitialDataStorageSizeInGB() *int - // Number of nodes to launch for a VM-shape based RAC DB system. + // The number of nodes to launch for a 2-node RAC virtual machine DB system. GetNodeCount() *int } @@ -145,6 +153,11 @@ func (m *launchdbsystembase) UnmarshalJSON(data []byte) error { // UnmarshalPolymorphicJSON unmarshals polymorphic json func (m *launchdbsystembase) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + var err error switch m.Source { case "NONE": @@ -156,7 +169,7 @@ func (m *launchdbsystembase) UnmarshalPolymorphicJSON(data []byte) (interface{}, err = json.Unmarshal(data, &mm) return mm, err default: - return m, nil + return *m, nil } } diff --git a/vendor/github.com/oracle/oci-go-sdk/database/launch_db_system_details.go b/vendor/github.com/oracle/oci-go-sdk/database/launch_db_system_details.go index bd27422ef..b1d158f45 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/launch_db_system_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/launch_db_system_details.go @@ -16,55 +16,62 @@ import ( // LaunchDbSystemDetails The representation of LaunchDbSystemDetails type LaunchDbSystemDetails struct { - // The Availability Domain where the DB System is located. + // The availability domain where the DB system is located. AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - // The Oracle Cloud ID (OCID) of the compartment the DB System belongs in. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment the DB system belongs in. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // The number of CPU cores to enable. The valid values depend on the specified shape: - // - BM.DenseIO1.36 and BM.HighIO1.36 - Specify a multiple of 2, from 2 to 36. - // - BM.RACLocalStorage1.72 - Specify a multiple of 4, from 4 to 72. + // The number of CPU cores to enable for a bare metal or Exadata DB system. The valid values depend on the specified shape: + // - BM.DenseIO1.36 - Specify a multiple of 2, from 2 to 36. + // - BM.DenseIO2.52 - Specify a multiple of 2, from 2 to 52. // - Exadata.Quarter1.84 - Specify a multiple of 2, from 22 to 84. // - Exadata.Half1.168 - Specify a multiple of 4, from 44 to 168. // - Exadata.Full1.336 - Specify a multiple of 8, from 88 to 336. - // For VM DB systems, the core count is inferred from the specific VM shape chosen, so this parameter is not used. + // - Exadata.Quarter2.92 - Specify a multiple of 2, from 0 to 92. + // - Exadata.Half2.184 - Specify a multiple of 4, from 0 to 184. + // - Exadata.Full2.368 - Specify a multiple of 8, from 0 to 368. + // This parameter is not used for virtual machine DB systems because virtual machine DB systems have a set number of cores for each shape. + // For information about the number of cores for a virtual machine DB system shape, see Virtual Machine DB Systems (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/overview.htm#virtualmachine) CpuCoreCount *int `mandatory:"true" json:"cpuCoreCount"` - // The host name for the DB System. The host name must begin with an alphabetic character and + // The hostname for the DB system. The hostname must begin with an alphabetic character and // can contain a maximum of 30 alphanumeric characters, including hyphens (-). // The maximum length of the combined hostname and domain is 63 characters. // **Note:** The hostname must be unique within the subnet. If it is not unique, - // the DB System will fail to provision. + // the DB system will fail to provision. Hostname *string `mandatory:"true" json:"hostname"` - // The shape of the DB System. The shape determines resources allocated to the DB System - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. To get a list of shapes, use the ListDbSystemShapes operation. + // The shape of the DB system. The shape determines resources allocated to the DB system. + // - For virtual machine shapes, the number of CPU cores and memory + // - For bare metal and Exadata shapes, the number of CPU cores, memory, and storage + // To get a list of shapes, use the ListDbSystemShapes operation. Shape *string `mandatory:"true" json:"shape"` - // The public key portion of the key pair to use for SSH access to the DB System. Multiple public keys can be provided. The length of the combined keys cannot exceed 10,000 characters. + // The public key portion of the key pair to use for SSH access to the DB system. Multiple public keys can be provided. The length of the combined keys cannot exceed 10,000 characters. SshPublicKeys []string `mandatory:"true" json:"sshPublicKeys"` - // The OCID of the subnet the DB System is associated with. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the subnet the DB system is associated with. // **Subnet Restrictions:** - // - For single node and 2-node (RAC) DB Systems, do not use a subnet that overlaps with 192.168.16.16/28 - // - For Exadata and VM-based RAC DB Systems, do not use a subnet that overlaps with 192.168.128.0/20 + // - For bare metal DB systems and for single node virtual machine DB systems, do not use a subnet that overlaps with 192.168.16.16/28. + // - For Exadata and virtual machine 2-node RAC DB systems, do not use a subnet that overlaps with 192.168.128.0/20. // These subnets are used by the Oracle Clusterware private interconnect on the database instance. // Specifying an overlapping subnet will cause the private interconnect to malfunction. - // This restriction applies to both the client subnet and backup subnet. + // This restriction applies to both the client subnet and the backup subnet. SubnetId *string `mandatory:"true" json:"subnetId"` DbHome *CreateDbHomeDetails `mandatory:"true" json:"dbHome"` - // The OCID of the backup network subnet the DB System is associated with. Applicable only to Exadata. - // **Subnet Restrictions:** See above subnetId's **Subnet Restriction**. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the backup network subnet the DB system is associated with. Applicable only to Exadata DB systems. + // **Subnet Restrictions:** See the subnet restrictions information for **subnetId**. BackupSubnetId *string `mandatory:"false" json:"backupSubnetId"` - // Cluster name for Exadata and 2-node RAC DB Systems. The cluster name must begin with an an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive. + // The cluster name for Exadata and 2-node RAC virtual machine DB systems. The cluster name must begin with an an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive. ClusterName *string `mandatory:"false" json:"clusterName"` // The percentage assigned to DATA storage (user data and database files). // The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). - // Specify 80 or 40. The default is 80 percent assigned to DATA storage. This is not applicable for VM based DB systems. + // Specify 80 or 40. The default is 80 percent assigned to DATA storage. Not applicable for virtual machine DB systems. DataStoragePercentage *int `mandatory:"false" json:"dataStoragePercentage"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. @@ -72,12 +79,12 @@ type LaunchDbSystemDetails struct { // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - // The user-friendly name for the DB System. It does not have to be unique. + // The user-friendly name for the DB system. The name does not have to be unique. DisplayName *string `mandatory:"false" json:"displayName"` - // A domain name used for the DB System. If the Oracle-provided Internet and VCN + // A domain name used for the DB system. If the Oracle-provided Internet and VCN // Resolver is enabled for the specified subnet, the domain name for the subnet is used - // (don't provide one). Otherwise, provide a valid DNS domain name. Hyphens (-) are not permitted. + // (do not provide one). Otherwise, provide a valid DNS domain name. Hyphens (-) are not permitted. Domain *string `mandatory:"false" json:"domain"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. @@ -85,22 +92,22 @@ type LaunchDbSystemDetails struct { // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - // Size, in GBs, of the initial data volume that will be created and attached to VM-shape based DB system. This storage can later be scaled up if needed. Note that the total storage size attached will be more than what is requested, to account for REDO/RECO space and software volume. + // Size (in GB) of the initial data volume that will be created and attached to a virtual machine DB system. You can scale up storage after provisioning, as needed. Note that the total storage size attached will be more than the amount you specify to allow for REDO/RECO space and software volume. InitialDataStorageSizeInGB *int `mandatory:"false" json:"initialDataStorageSizeInGB"` - // Number of nodes to launch for a VM-shape based RAC DB system. + // The number of nodes to launch for a 2-node RAC virtual machine DB system. NodeCount *int `mandatory:"false" json:"nodeCount"` - // The Oracle Database Edition that applies to all the databases on the DB System. - // Exadata DB Systems and 2-node RAC DB Systems require ENTERPRISE_EDITION_EXTREME_PERFORMANCE. + // The Oracle Database Edition that applies to all the databases on the DB system. + // Exadata DB systems and 2-node RAC DB systems require ENTERPRISE_EDITION_EXTREME_PERFORMANCE. DatabaseEdition LaunchDbSystemDetailsDatabaseEditionEnum `mandatory:"true" json:"databaseEdition"` - // The type of redundancy configured for the DB System. + // The type of redundancy configured for the DB system. // Normal is 2-way redundancy, recommended for test and development systems. // High is 3-way redundancy, recommended for production systems. DiskRedundancy LaunchDbSystemDetailsDiskRedundancyEnum `mandatory:"false" json:"diskRedundancy,omitempty"` - // The Oracle license model that applies to all the databases on the DB System. The default is LICENSE_INCLUDED. + // The Oracle license model that applies to all the databases on the DB system. The default is LICENSE_INCLUDED. LicenseModel LaunchDbSystemDetailsLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` } @@ -209,15 +216,15 @@ type LaunchDbSystemDetailsDatabaseEditionEnum string const ( LaunchDbSystemDetailsDatabaseEditionStandardEdition LaunchDbSystemDetailsDatabaseEditionEnum = "STANDARD_EDITION" LaunchDbSystemDetailsDatabaseEditionEnterpriseEdition LaunchDbSystemDetailsDatabaseEditionEnum = "ENTERPRISE_EDITION" - LaunchDbSystemDetailsDatabaseEditionEnterpriseEditionExtremePerformance LaunchDbSystemDetailsDatabaseEditionEnum = "ENTERPRISE_EDITION_EXTREME_PERFORMANCE" LaunchDbSystemDetailsDatabaseEditionEnterpriseEditionHighPerformance LaunchDbSystemDetailsDatabaseEditionEnum = "ENTERPRISE_EDITION_HIGH_PERFORMANCE" + LaunchDbSystemDetailsDatabaseEditionEnterpriseEditionExtremePerformance LaunchDbSystemDetailsDatabaseEditionEnum = "ENTERPRISE_EDITION_EXTREME_PERFORMANCE" ) var mappingLaunchDbSystemDetailsDatabaseEdition = map[string]LaunchDbSystemDetailsDatabaseEditionEnum{ "STANDARD_EDITION": LaunchDbSystemDetailsDatabaseEditionStandardEdition, "ENTERPRISE_EDITION": LaunchDbSystemDetailsDatabaseEditionEnterpriseEdition, - "ENTERPRISE_EDITION_EXTREME_PERFORMANCE": LaunchDbSystemDetailsDatabaseEditionEnterpriseEditionExtremePerformance, "ENTERPRISE_EDITION_HIGH_PERFORMANCE": LaunchDbSystemDetailsDatabaseEditionEnterpriseEditionHighPerformance, + "ENTERPRISE_EDITION_EXTREME_PERFORMANCE": LaunchDbSystemDetailsDatabaseEditionEnterpriseEditionExtremePerformance, } // GetLaunchDbSystemDetailsDatabaseEditionEnumValues Enumerates the set of values for LaunchDbSystemDetailsDatabaseEdition diff --git a/vendor/github.com/oracle/oci-go-sdk/database/launch_db_system_from_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/database/launch_db_system_from_backup_details.go index 309a54dc0..cc5f1ac05 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/launch_db_system_from_backup_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/launch_db_system_from_backup_details.go @@ -16,55 +16,62 @@ import ( // LaunchDbSystemFromBackupDetails The representation of LaunchDbSystemFromBackupDetails type LaunchDbSystemFromBackupDetails struct { - // The Availability Domain where the DB System is located. + // The availability domain where the DB system is located. AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - // The Oracle Cloud ID (OCID) of the compartment the DB System belongs in. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment the DB system belongs in. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // The number of CPU cores to enable. The valid values depend on the specified shape: - // - BM.DenseIO1.36 and BM.HighIO1.36 - Specify a multiple of 2, from 2 to 36. - // - BM.RACLocalStorage1.72 - Specify a multiple of 4, from 4 to 72. + // The number of CPU cores to enable for a bare metal or Exadata DB system. The valid values depend on the specified shape: + // - BM.DenseIO1.36 - Specify a multiple of 2, from 2 to 36. + // - BM.DenseIO2.52 - Specify a multiple of 2, from 2 to 52. // - Exadata.Quarter1.84 - Specify a multiple of 2, from 22 to 84. // - Exadata.Half1.168 - Specify a multiple of 4, from 44 to 168. // - Exadata.Full1.336 - Specify a multiple of 8, from 88 to 336. - // For VM DB systems, the core count is inferred from the specific VM shape chosen, so this parameter is not used. + // - Exadata.Quarter2.92 - Specify a multiple of 2, from 0 to 92. + // - Exadata.Half2.184 - Specify a multiple of 4, from 0 to 184. + // - Exadata.Full2.368 - Specify a multiple of 8, from 0 to 368. + // This parameter is not used for virtual machine DB systems because virtual machine DB systems have a set number of cores for each shape. + // For information about the number of cores for a virtual machine DB system shape, see Virtual Machine DB Systems (https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/overview.htm#virtualmachine) CpuCoreCount *int `mandatory:"true" json:"cpuCoreCount"` - // The host name for the DB System. The host name must begin with an alphabetic character and + // The hostname for the DB system. The hostname must begin with an alphabetic character and // can contain a maximum of 30 alphanumeric characters, including hyphens (-). // The maximum length of the combined hostname and domain is 63 characters. // **Note:** The hostname must be unique within the subnet. If it is not unique, - // the DB System will fail to provision. + // the DB system will fail to provision. Hostname *string `mandatory:"true" json:"hostname"` - // The shape of the DB System. The shape determines resources allocated to the DB System - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. To get a list of shapes, use the ListDbSystemShapes operation. + // The shape of the DB system. The shape determines resources allocated to the DB system. + // - For virtual machine shapes, the number of CPU cores and memory + // - For bare metal and Exadata shapes, the number of CPU cores, memory, and storage + // To get a list of shapes, use the ListDbSystemShapes operation. Shape *string `mandatory:"true" json:"shape"` - // The public key portion of the key pair to use for SSH access to the DB System. Multiple public keys can be provided. The length of the combined keys cannot exceed 10,000 characters. + // The public key portion of the key pair to use for SSH access to the DB system. Multiple public keys can be provided. The length of the combined keys cannot exceed 10,000 characters. SshPublicKeys []string `mandatory:"true" json:"sshPublicKeys"` - // The OCID of the subnet the DB System is associated with. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the subnet the DB system is associated with. // **Subnet Restrictions:** - // - For single node and 2-node (RAC) DB Systems, do not use a subnet that overlaps with 192.168.16.16/28 - // - For Exadata and VM-based RAC DB Systems, do not use a subnet that overlaps with 192.168.128.0/20 + // - For bare metal DB systems and for single node virtual machine DB systems, do not use a subnet that overlaps with 192.168.16.16/28. + // - For Exadata and virtual machine 2-node RAC DB systems, do not use a subnet that overlaps with 192.168.128.0/20. // These subnets are used by the Oracle Clusterware private interconnect on the database instance. // Specifying an overlapping subnet will cause the private interconnect to malfunction. - // This restriction applies to both the client subnet and backup subnet. + // This restriction applies to both the client subnet and the backup subnet. SubnetId *string `mandatory:"true" json:"subnetId"` DbHome *CreateDbHomeFromBackupDetails `mandatory:"true" json:"dbHome"` - // The OCID of the backup network subnet the DB System is associated with. Applicable only to Exadata. - // **Subnet Restrictions:** See above subnetId's **Subnet Restriction**. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the backup network subnet the DB system is associated with. Applicable only to Exadata DB systems. + // **Subnet Restrictions:** See the subnet restrictions information for **subnetId**. BackupSubnetId *string `mandatory:"false" json:"backupSubnetId"` - // Cluster name for Exadata and 2-node RAC DB Systems. The cluster name must begin with an an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive. + // The cluster name for Exadata and 2-node RAC virtual machine DB systems. The cluster name must begin with an an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive. ClusterName *string `mandatory:"false" json:"clusterName"` // The percentage assigned to DATA storage (user data and database files). // The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). - // Specify 80 or 40. The default is 80 percent assigned to DATA storage. This is not applicable for VM based DB systems. + // Specify 80 or 40. The default is 80 percent assigned to DATA storage. Not applicable for virtual machine DB systems. DataStoragePercentage *int `mandatory:"false" json:"dataStoragePercentage"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. @@ -72,12 +79,12 @@ type LaunchDbSystemFromBackupDetails struct { // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - // The user-friendly name for the DB System. It does not have to be unique. + // The user-friendly name for the DB system. The name does not have to be unique. DisplayName *string `mandatory:"false" json:"displayName"` - // A domain name used for the DB System. If the Oracle-provided Internet and VCN + // A domain name used for the DB system. If the Oracle-provided Internet and VCN // Resolver is enabled for the specified subnet, the domain name for the subnet is used - // (don't provide one). Otherwise, provide a valid DNS domain name. Hyphens (-) are not permitted. + // (do not provide one). Otherwise, provide a valid DNS domain name. Hyphens (-) are not permitted. Domain *string `mandatory:"false" json:"domain"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. @@ -85,22 +92,22 @@ type LaunchDbSystemFromBackupDetails struct { // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - // Size, in GBs, of the initial data volume that will be created and attached to VM-shape based DB system. This storage can later be scaled up if needed. Note that the total storage size attached will be more than what is requested, to account for REDO/RECO space and software volume. + // Size (in GB) of the initial data volume that will be created and attached to a virtual machine DB system. You can scale up storage after provisioning, as needed. Note that the total storage size attached will be more than the amount you specify to allow for REDO/RECO space and software volume. InitialDataStorageSizeInGB *int `mandatory:"false" json:"initialDataStorageSizeInGB"` - // Number of nodes to launch for a VM-shape based RAC DB system. + // The number of nodes to launch for a 2-node RAC virtual machine DB system. NodeCount *int `mandatory:"false" json:"nodeCount"` - // The Oracle Database Edition that applies to all the databases on the DB System. - // Exadata DB Systems and 2-node RAC DB Systems require ENTERPRISE_EDITION_EXTREME_PERFORMANCE. + // The Oracle Database Edition that applies to all the databases on the DB system. + // Exadata DB systems and 2-node RAC DB systems require ENTERPRISE_EDITION_EXTREME_PERFORMANCE. DatabaseEdition LaunchDbSystemFromBackupDetailsDatabaseEditionEnum `mandatory:"true" json:"databaseEdition"` - // The type of redundancy configured for the DB System. - // Normal is 2-way redundancy, recommended for test and development systems. - // High is 3-way redundancy, recommended for production systems. + // The type of redundancy configured for the DB system. + // NORMAL 2-way redundancy, recommended for test and development systems. + // HIGH is 3-way redundancy, recommended for production systems. DiskRedundancy LaunchDbSystemFromBackupDetailsDiskRedundancyEnum `mandatory:"false" json:"diskRedundancy,omitempty"` - // The Oracle license model that applies to all the databases on the DB System. The default is LICENSE_INCLUDED. + // The Oracle license model that applies to all the databases on the DB system. The default is LICENSE_INCLUDED. LicenseModel LaunchDbSystemFromBackupDetailsLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` } @@ -209,15 +216,15 @@ type LaunchDbSystemFromBackupDetailsDatabaseEditionEnum string const ( LaunchDbSystemFromBackupDetailsDatabaseEditionStandardEdition LaunchDbSystemFromBackupDetailsDatabaseEditionEnum = "STANDARD_EDITION" LaunchDbSystemFromBackupDetailsDatabaseEditionEnterpriseEdition LaunchDbSystemFromBackupDetailsDatabaseEditionEnum = "ENTERPRISE_EDITION" - LaunchDbSystemFromBackupDetailsDatabaseEditionEnterpriseEditionExtremePerformance LaunchDbSystemFromBackupDetailsDatabaseEditionEnum = "ENTERPRISE_EDITION_EXTREME_PERFORMANCE" LaunchDbSystemFromBackupDetailsDatabaseEditionEnterpriseEditionHighPerformance LaunchDbSystemFromBackupDetailsDatabaseEditionEnum = "ENTERPRISE_EDITION_HIGH_PERFORMANCE" + LaunchDbSystemFromBackupDetailsDatabaseEditionEnterpriseEditionExtremePerformance LaunchDbSystemFromBackupDetailsDatabaseEditionEnum = "ENTERPRISE_EDITION_EXTREME_PERFORMANCE" ) var mappingLaunchDbSystemFromBackupDetailsDatabaseEdition = map[string]LaunchDbSystemFromBackupDetailsDatabaseEditionEnum{ "STANDARD_EDITION": LaunchDbSystemFromBackupDetailsDatabaseEditionStandardEdition, "ENTERPRISE_EDITION": LaunchDbSystemFromBackupDetailsDatabaseEditionEnterpriseEdition, - "ENTERPRISE_EDITION_EXTREME_PERFORMANCE": LaunchDbSystemFromBackupDetailsDatabaseEditionEnterpriseEditionExtremePerformance, "ENTERPRISE_EDITION_HIGH_PERFORMANCE": LaunchDbSystemFromBackupDetailsDatabaseEditionEnterpriseEditionHighPerformance, + "ENTERPRISE_EDITION_EXTREME_PERFORMANCE": LaunchDbSystemFromBackupDetailsDatabaseEditionEnterpriseEditionExtremePerformance, } // GetLaunchDbSystemFromBackupDetailsDatabaseEditionEnumValues Enumerates the set of values for LaunchDbSystemFromBackupDetailsDatabaseEdition diff --git a/vendor/github.com/oracle/oci-go-sdk/database/launch_db_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/launch_db_system_request_response.go index 2f09bfec7..dc97c9c5c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/launch_db_system_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/launch_db_system_request_response.go @@ -11,7 +11,7 @@ import ( // LaunchDbSystemRequest wrapper for the LaunchDbSystem operation type LaunchDbSystemRequest struct { - // Request to launch a DB System. + // Request to launch a DB system. LaunchDbSystemDetails LaunchDbSystemBase `contributesTo:"body"` // A token that uniquely identifies a request so it can be retried in case of a timeout or diff --git a/vendor/github.com/oracle/oci-go-sdk/database/list_autonomous_data_warehouse_backups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/list_autonomous_data_warehouse_backups_request_response.go new file mode 100644 index 000000000..c05d80c99 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/list_autonomous_data_warehouse_backups_request_response.go @@ -0,0 +1,135 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// ListAutonomousDataWarehouseBackupsRequest wrapper for the ListAutonomousDataWarehouseBackups operation +type ListAutonomousDataWarehouseBackupsRequest struct { + + // The database OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + AutonomousDataWarehouseId *string `mandatory:"false" contributesTo:"query" name:"autonomousDataWarehouseId"` + + // The compartment OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` + + // The maximum number of items to return per page. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The pagination token to continue listing from. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive. + // **Note:** If you do not include the availability domain filter, the resources are grouped by availability domain, then sorted. + SortBy ListAutonomousDataWarehouseBackupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). + SortOrder ListAutonomousDataWarehouseBackupsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only resources that match the given lifecycle state exactly. + LifecycleState AutonomousDataWarehouseBackupSummaryLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // A filter to return only resources that match the entire display name given. The match is not case sensitive. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListAutonomousDataWarehouseBackupsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListAutonomousDataWarehouseBackupsRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListAutonomousDataWarehouseBackupsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ListAutonomousDataWarehouseBackupsResponse wrapper for the ListAutonomousDataWarehouseBackups operation +type ListAutonomousDataWarehouseBackupsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []AutonomousDataWarehouseBackupSummary instances + Items []AutonomousDataWarehouseBackupSummary `presentIn:"body"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then there are additional items still to get. Include this value as the `page` parameter for the + // subsequent GET request. For information about pagination, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListAutonomousDataWarehouseBackupsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListAutonomousDataWarehouseBackupsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListAutonomousDataWarehouseBackupsSortByEnum Enum with underlying type: string +type ListAutonomousDataWarehouseBackupsSortByEnum string + +// Set of constants representing the allowable values for ListAutonomousDataWarehouseBackupsSortBy +const ( + ListAutonomousDataWarehouseBackupsSortByTimecreated ListAutonomousDataWarehouseBackupsSortByEnum = "TIMECREATED" + ListAutonomousDataWarehouseBackupsSortByDisplayname ListAutonomousDataWarehouseBackupsSortByEnum = "DISPLAYNAME" +) + +var mappingListAutonomousDataWarehouseBackupsSortBy = map[string]ListAutonomousDataWarehouseBackupsSortByEnum{ + "TIMECREATED": ListAutonomousDataWarehouseBackupsSortByTimecreated, + "DISPLAYNAME": ListAutonomousDataWarehouseBackupsSortByDisplayname, +} + +// GetListAutonomousDataWarehouseBackupsSortByEnumValues Enumerates the set of values for ListAutonomousDataWarehouseBackupsSortBy +func GetListAutonomousDataWarehouseBackupsSortByEnumValues() []ListAutonomousDataWarehouseBackupsSortByEnum { + values := make([]ListAutonomousDataWarehouseBackupsSortByEnum, 0) + for _, v := range mappingListAutonomousDataWarehouseBackupsSortBy { + values = append(values, v) + } + return values +} + +// ListAutonomousDataWarehouseBackupsSortOrderEnum Enum with underlying type: string +type ListAutonomousDataWarehouseBackupsSortOrderEnum string + +// Set of constants representing the allowable values for ListAutonomousDataWarehouseBackupsSortOrder +const ( + ListAutonomousDataWarehouseBackupsSortOrderAsc ListAutonomousDataWarehouseBackupsSortOrderEnum = "ASC" + ListAutonomousDataWarehouseBackupsSortOrderDesc ListAutonomousDataWarehouseBackupsSortOrderEnum = "DESC" +) + +var mappingListAutonomousDataWarehouseBackupsSortOrder = map[string]ListAutonomousDataWarehouseBackupsSortOrderEnum{ + "ASC": ListAutonomousDataWarehouseBackupsSortOrderAsc, + "DESC": ListAutonomousDataWarehouseBackupsSortOrderDesc, +} + +// GetListAutonomousDataWarehouseBackupsSortOrderEnumValues Enumerates the set of values for ListAutonomousDataWarehouseBackupsSortOrder +func GetListAutonomousDataWarehouseBackupsSortOrderEnumValues() []ListAutonomousDataWarehouseBackupsSortOrderEnum { + values := make([]ListAutonomousDataWarehouseBackupsSortOrderEnum, 0) + for _, v := range mappingListAutonomousDataWarehouseBackupsSortOrder { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/list_autonomous_data_warehouses_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/list_autonomous_data_warehouses_request_response.go new file mode 100644 index 000000000..316d3a8a0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/list_autonomous_data_warehouses_request_response.go @@ -0,0 +1,132 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// ListAutonomousDataWarehousesRequest wrapper for the ListAutonomousDataWarehouses operation +type ListAutonomousDataWarehousesRequest struct { + + // The compartment OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The maximum number of items to return per page. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The pagination token to continue listing from. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive. + // **Note:** If you do not include the availability domain filter, the resources are grouped by availability domain, then sorted. + SortBy ListAutonomousDataWarehousesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). + SortOrder ListAutonomousDataWarehousesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only resources that match the given lifecycle state exactly. + LifecycleState AutonomousDataWarehouseSummaryLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // A filter to return only resources that match the entire display name given. The match is not case sensitive. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListAutonomousDataWarehousesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListAutonomousDataWarehousesRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListAutonomousDataWarehousesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ListAutonomousDataWarehousesResponse wrapper for the ListAutonomousDataWarehouses operation +type ListAutonomousDataWarehousesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []AutonomousDataWarehouseSummary instances + Items []AutonomousDataWarehouseSummary `presentIn:"body"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then there are additional items still to get. Include this value as the `page` parameter for the + // subsequent GET request. For information about pagination, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListAutonomousDataWarehousesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListAutonomousDataWarehousesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListAutonomousDataWarehousesSortByEnum Enum with underlying type: string +type ListAutonomousDataWarehousesSortByEnum string + +// Set of constants representing the allowable values for ListAutonomousDataWarehousesSortBy +const ( + ListAutonomousDataWarehousesSortByTimecreated ListAutonomousDataWarehousesSortByEnum = "TIMECREATED" + ListAutonomousDataWarehousesSortByDisplayname ListAutonomousDataWarehousesSortByEnum = "DISPLAYNAME" +) + +var mappingListAutonomousDataWarehousesSortBy = map[string]ListAutonomousDataWarehousesSortByEnum{ + "TIMECREATED": ListAutonomousDataWarehousesSortByTimecreated, + "DISPLAYNAME": ListAutonomousDataWarehousesSortByDisplayname, +} + +// GetListAutonomousDataWarehousesSortByEnumValues Enumerates the set of values for ListAutonomousDataWarehousesSortBy +func GetListAutonomousDataWarehousesSortByEnumValues() []ListAutonomousDataWarehousesSortByEnum { + values := make([]ListAutonomousDataWarehousesSortByEnum, 0) + for _, v := range mappingListAutonomousDataWarehousesSortBy { + values = append(values, v) + } + return values +} + +// ListAutonomousDataWarehousesSortOrderEnum Enum with underlying type: string +type ListAutonomousDataWarehousesSortOrderEnum string + +// Set of constants representing the allowable values for ListAutonomousDataWarehousesSortOrder +const ( + ListAutonomousDataWarehousesSortOrderAsc ListAutonomousDataWarehousesSortOrderEnum = "ASC" + ListAutonomousDataWarehousesSortOrderDesc ListAutonomousDataWarehousesSortOrderEnum = "DESC" +) + +var mappingListAutonomousDataWarehousesSortOrder = map[string]ListAutonomousDataWarehousesSortOrderEnum{ + "ASC": ListAutonomousDataWarehousesSortOrderAsc, + "DESC": ListAutonomousDataWarehousesSortOrderDesc, +} + +// GetListAutonomousDataWarehousesSortOrderEnumValues Enumerates the set of values for ListAutonomousDataWarehousesSortOrder +func GetListAutonomousDataWarehousesSortOrderEnumValues() []ListAutonomousDataWarehousesSortOrderEnum { + values := make([]ListAutonomousDataWarehousesSortOrderEnum, 0) + for _, v := range mappingListAutonomousDataWarehousesSortOrder { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/list_autonomous_database_backups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/list_autonomous_database_backups_request_response.go new file mode 100644 index 000000000..19d5c1b60 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/list_autonomous_database_backups_request_response.go @@ -0,0 +1,135 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// ListAutonomousDatabaseBackupsRequest wrapper for the ListAutonomousDatabaseBackups operation +type ListAutonomousDatabaseBackupsRequest struct { + + // The database OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + AutonomousDatabaseId *string `mandatory:"false" contributesTo:"query" name:"autonomousDatabaseId"` + + // The compartment OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` + + // The maximum number of items to return per page. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The pagination token to continue listing from. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive. + // **Note:** If you do not include the availability domain filter, the resources are grouped by availability domain, then sorted. + SortBy ListAutonomousDatabaseBackupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). + SortOrder ListAutonomousDatabaseBackupsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only resources that match the given lifecycle state exactly. + LifecycleState AutonomousDatabaseBackupSummaryLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // A filter to return only resources that match the entire display name given. The match is not case sensitive. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListAutonomousDatabaseBackupsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListAutonomousDatabaseBackupsRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListAutonomousDatabaseBackupsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ListAutonomousDatabaseBackupsResponse wrapper for the ListAutonomousDatabaseBackups operation +type ListAutonomousDatabaseBackupsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []AutonomousDatabaseBackupSummary instances + Items []AutonomousDatabaseBackupSummary `presentIn:"body"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then there are additional items still to get. Include this value as the `page` parameter for the + // subsequent GET request. For information about pagination, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListAutonomousDatabaseBackupsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListAutonomousDatabaseBackupsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListAutonomousDatabaseBackupsSortByEnum Enum with underlying type: string +type ListAutonomousDatabaseBackupsSortByEnum string + +// Set of constants representing the allowable values for ListAutonomousDatabaseBackupsSortBy +const ( + ListAutonomousDatabaseBackupsSortByTimecreated ListAutonomousDatabaseBackupsSortByEnum = "TIMECREATED" + ListAutonomousDatabaseBackupsSortByDisplayname ListAutonomousDatabaseBackupsSortByEnum = "DISPLAYNAME" +) + +var mappingListAutonomousDatabaseBackupsSortBy = map[string]ListAutonomousDatabaseBackupsSortByEnum{ + "TIMECREATED": ListAutonomousDatabaseBackupsSortByTimecreated, + "DISPLAYNAME": ListAutonomousDatabaseBackupsSortByDisplayname, +} + +// GetListAutonomousDatabaseBackupsSortByEnumValues Enumerates the set of values for ListAutonomousDatabaseBackupsSortBy +func GetListAutonomousDatabaseBackupsSortByEnumValues() []ListAutonomousDatabaseBackupsSortByEnum { + values := make([]ListAutonomousDatabaseBackupsSortByEnum, 0) + for _, v := range mappingListAutonomousDatabaseBackupsSortBy { + values = append(values, v) + } + return values +} + +// ListAutonomousDatabaseBackupsSortOrderEnum Enum with underlying type: string +type ListAutonomousDatabaseBackupsSortOrderEnum string + +// Set of constants representing the allowable values for ListAutonomousDatabaseBackupsSortOrder +const ( + ListAutonomousDatabaseBackupsSortOrderAsc ListAutonomousDatabaseBackupsSortOrderEnum = "ASC" + ListAutonomousDatabaseBackupsSortOrderDesc ListAutonomousDatabaseBackupsSortOrderEnum = "DESC" +) + +var mappingListAutonomousDatabaseBackupsSortOrder = map[string]ListAutonomousDatabaseBackupsSortOrderEnum{ + "ASC": ListAutonomousDatabaseBackupsSortOrderAsc, + "DESC": ListAutonomousDatabaseBackupsSortOrderDesc, +} + +// GetListAutonomousDatabaseBackupsSortOrderEnumValues Enumerates the set of values for ListAutonomousDatabaseBackupsSortOrder +func GetListAutonomousDatabaseBackupsSortOrderEnumValues() []ListAutonomousDatabaseBackupsSortOrderEnum { + values := make([]ListAutonomousDatabaseBackupsSortOrderEnum, 0) + for _, v := range mappingListAutonomousDatabaseBackupsSortOrder { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/list_autonomous_databases_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/list_autonomous_databases_request_response.go new file mode 100644 index 000000000..641d03f79 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/list_autonomous_databases_request_response.go @@ -0,0 +1,132 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// ListAutonomousDatabasesRequest wrapper for the ListAutonomousDatabases operation +type ListAutonomousDatabasesRequest struct { + + // The compartment OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The maximum number of items to return per page. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The pagination token to continue listing from. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive. + // **Note:** If you do not include the availability domain filter, the resources are grouped by availability domain, then sorted. + SortBy ListAutonomousDatabasesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). + SortOrder ListAutonomousDatabasesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only resources that match the given lifecycle state exactly. + LifecycleState AutonomousDatabaseSummaryLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // A filter to return only resources that match the entire display name given. The match is not case sensitive. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListAutonomousDatabasesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListAutonomousDatabasesRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListAutonomousDatabasesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ListAutonomousDatabasesResponse wrapper for the ListAutonomousDatabases operation +type ListAutonomousDatabasesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []AutonomousDatabaseSummary instances + Items []AutonomousDatabaseSummary `presentIn:"body"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then there are additional items still to get. Include this value as the `page` parameter for the + // subsequent GET request. For information about pagination, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListAutonomousDatabasesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListAutonomousDatabasesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListAutonomousDatabasesSortByEnum Enum with underlying type: string +type ListAutonomousDatabasesSortByEnum string + +// Set of constants representing the allowable values for ListAutonomousDatabasesSortBy +const ( + ListAutonomousDatabasesSortByTimecreated ListAutonomousDatabasesSortByEnum = "TIMECREATED" + ListAutonomousDatabasesSortByDisplayname ListAutonomousDatabasesSortByEnum = "DISPLAYNAME" +) + +var mappingListAutonomousDatabasesSortBy = map[string]ListAutonomousDatabasesSortByEnum{ + "TIMECREATED": ListAutonomousDatabasesSortByTimecreated, + "DISPLAYNAME": ListAutonomousDatabasesSortByDisplayname, +} + +// GetListAutonomousDatabasesSortByEnumValues Enumerates the set of values for ListAutonomousDatabasesSortBy +func GetListAutonomousDatabasesSortByEnumValues() []ListAutonomousDatabasesSortByEnum { + values := make([]ListAutonomousDatabasesSortByEnum, 0) + for _, v := range mappingListAutonomousDatabasesSortBy { + values = append(values, v) + } + return values +} + +// ListAutonomousDatabasesSortOrderEnum Enum with underlying type: string +type ListAutonomousDatabasesSortOrderEnum string + +// Set of constants representing the allowable values for ListAutonomousDatabasesSortOrder +const ( + ListAutonomousDatabasesSortOrderAsc ListAutonomousDatabasesSortOrderEnum = "ASC" + ListAutonomousDatabasesSortOrderDesc ListAutonomousDatabasesSortOrderEnum = "DESC" +) + +var mappingListAutonomousDatabasesSortOrder = map[string]ListAutonomousDatabasesSortOrderEnum{ + "ASC": ListAutonomousDatabasesSortOrderAsc, + "DESC": ListAutonomousDatabasesSortOrderDesc, +} + +// GetListAutonomousDatabasesSortOrderEnumValues Enumerates the set of values for ListAutonomousDatabasesSortOrder +func GetListAutonomousDatabasesSortOrderEnumValues() []ListAutonomousDatabasesSortOrderEnum { + values := make([]ListAutonomousDatabasesSortOrderEnum, 0) + for _, v := range mappingListAutonomousDatabasesSortOrder { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/list_backups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/list_backups_request_response.go index c323f1b34..3b11c666e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/list_backups_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/list_backups_request_response.go @@ -11,13 +11,13 @@ import ( // ListBackupsRequest wrapper for the ListBackups operation type ListBackupsRequest struct { - // The OCID of the database. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database. DatabaseId *string `mandatory:"false" contributesTo:"query" name:"databaseId"` - // The compartment OCID. + // The compartment OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` - // The maximum number of items to return. + // The maximum number of items to return per page. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The pagination token to continue listing from. @@ -58,7 +58,7 @@ type ListBackupsResponse struct { // For pagination of a list of items. When paging through a list, if this header appears in the response, // then there are additional items still to get. Include this value as the `page` parameter for the // subsequent GET request. For information about pagination, see - // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#List_Pagination). + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/database/list_data_guard_associations_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/list_data_guard_associations_request_response.go index 368f73320..d33982784 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/list_data_guard_associations_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/list_data_guard_associations_request_response.go @@ -14,7 +14,7 @@ type ListDataGuardAssociationsRequest struct { // The database OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). DatabaseId *string `mandatory:"true" contributesTo:"path" name:"databaseId"` - // The maximum number of items to return. + // The maximum number of items to return per page. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The pagination token to continue listing from. @@ -55,7 +55,7 @@ type ListDataGuardAssociationsResponse struct { // For pagination of a list of items. When paging through a list, if this header appears in the response, // then there are additional items still to get. Include this value as the `page` parameter for the // subsequent GET request. For information about pagination, see - // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#List_Pagination). + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/database/list_databases_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/list_databases_request_response.go index 2c8380774..2a4d80445 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/list_databases_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/list_databases_request_response.go @@ -17,7 +17,7 @@ type ListDatabasesRequest struct { // A database home OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). DbHomeId *string `mandatory:"true" contributesTo:"query" name:"dbHomeId"` - // The maximum number of items to return. + // The maximum number of items to return per page. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The pagination token to continue listing from. @@ -58,7 +58,7 @@ type ListDatabasesResponse struct { // For pagination of a list of items. When paging through a list, if this header appears in the response, // then there are additional items still to get. Include this value as the `page` parameter for the // subsequent GET request. For information about pagination, see - // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#List_Pagination). + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/database/list_db_home_patch_history_entries_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/list_db_home_patch_history_entries_request_response.go index c421ec669..7e17ddb01 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/list_db_home_patch_history_entries_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/list_db_home_patch_history_entries_request_response.go @@ -14,7 +14,7 @@ type ListDbHomePatchHistoryEntriesRequest struct { // The database home OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). DbHomeId *string `mandatory:"true" contributesTo:"path" name:"dbHomeId"` - // The maximum number of items to return. + // The maximum number of items to return per page. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The pagination token to continue listing from. @@ -55,7 +55,7 @@ type ListDbHomePatchHistoryEntriesResponse struct { // For pagination of a list of items. When paging through a list, if this header appears in the response, // then there are additional items still to get. Include this value as the `page` parameter for the // subsequent GET request. For information about pagination, see - // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#List_Pagination). + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/database/list_db_home_patches_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/list_db_home_patches_request_response.go index 07e495530..755699b55 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/list_db_home_patches_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/list_db_home_patches_request_response.go @@ -14,7 +14,7 @@ type ListDbHomePatchesRequest struct { // The database home OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). DbHomeId *string `mandatory:"true" contributesTo:"path" name:"dbHomeId"` - // The maximum number of items to return. + // The maximum number of items to return per page. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The pagination token to continue listing from. @@ -55,7 +55,7 @@ type ListDbHomePatchesResponse struct { // For pagination of a list of items. When paging through a list, if this header appears in the response, // then there are additional items still to get. Include this value as the `page` parameter for the // subsequent GET request. For information about pagination, see - // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#List_Pagination). + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/database/list_db_homes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/list_db_homes_request_response.go index be6132b91..70aa72cf1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/list_db_homes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/list_db_homes_request_response.go @@ -14,10 +14,10 @@ type ListDbHomesRequest struct { // The compartment OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB System. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system. DbSystemId *string `mandatory:"true" contributesTo:"query" name:"dbSystemId"` - // The maximum number of items to return. + // The maximum number of items to return per page. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The pagination token to continue listing from. @@ -58,7 +58,7 @@ type ListDbHomesResponse struct { // For pagination of a list of items. When paging through a list, if this header appears in the response, // then there are additional items still to get. Include this value as the `page` parameter for the // subsequent GET request. For information about pagination, see - // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#List_Pagination). + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/database/list_db_nodes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/list_db_nodes_request_response.go index 845ebad3a..7b0f65953 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/list_db_nodes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/list_db_nodes_request_response.go @@ -14,10 +14,10 @@ type ListDbNodesRequest struct { // The compartment OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB System. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system. DbSystemId *string `mandatory:"true" contributesTo:"query" name:"dbSystemId"` - // The maximum number of items to return. + // The maximum number of items to return per page. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The pagination token to continue listing from. @@ -58,7 +58,7 @@ type ListDbNodesResponse struct { // For pagination of a list of items. When paging through a list, if this header appears in the response, // then there are additional items still to get. Include this value as the `page` parameter for the // subsequent GET request. For information about pagination, see - // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#List_Pagination). + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/database/list_db_system_patch_history_entries_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/list_db_system_patch_history_entries_request_response.go index 8717d5a67..9ad8708b2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/list_db_system_patch_history_entries_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/list_db_system_patch_history_entries_request_response.go @@ -11,10 +11,10 @@ import ( // ListDbSystemPatchHistoryEntriesRequest wrapper for the ListDbSystemPatchHistoryEntries operation type ListDbSystemPatchHistoryEntriesRequest struct { - // The DB System OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + // The DB system OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). DbSystemId *string `mandatory:"true" contributesTo:"path" name:"dbSystemId"` - // The maximum number of items to return. + // The maximum number of items to return per page. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The pagination token to continue listing from. @@ -55,7 +55,7 @@ type ListDbSystemPatchHistoryEntriesResponse struct { // For pagination of a list of items. When paging through a list, if this header appears in the response, // then there are additional items still to get. Include this value as the `page` parameter for the // subsequent GET request. For information about pagination, see - // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#List_Pagination). + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/database/list_db_system_patches_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/list_db_system_patches_request_response.go index 82feefa79..5bd311f28 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/list_db_system_patches_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/list_db_system_patches_request_response.go @@ -11,10 +11,10 @@ import ( // ListDbSystemPatchesRequest wrapper for the ListDbSystemPatches operation type ListDbSystemPatchesRequest struct { - // The DB System OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + // The DB system OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). DbSystemId *string `mandatory:"true" contributesTo:"path" name:"dbSystemId"` - // The maximum number of items to return. + // The maximum number of items to return per page. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The pagination token to continue listing from. @@ -55,7 +55,7 @@ type ListDbSystemPatchesResponse struct { // For pagination of a list of items. When paging through a list, if this header appears in the response, // then there are additional items still to get. Include this value as the `page` parameter for the // subsequent GET request. For information about pagination, see - // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#List_Pagination). + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/database/list_db_system_shapes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/list_db_system_shapes_request_response.go index 8cb139fec..cdacce9bc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/list_db_system_shapes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/list_db_system_shapes_request_response.go @@ -17,7 +17,7 @@ type ListDbSystemShapesRequest struct { // The compartment OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - // The maximum number of items to return. + // The maximum number of items to return per page. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The pagination token to continue listing from. @@ -58,7 +58,7 @@ type ListDbSystemShapesResponse struct { // For pagination of a list of items. When paging through a list, if this header appears in the response, // then there are additional items still to get. Include this value as the `page` parameter for the // subsequent GET request. For information about pagination, see - // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#List_Pagination). + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/database/list_db_systems_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/list_db_systems_request_response.go index 707094a96..6aeac1065 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/list_db_systems_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/list_db_systems_request_response.go @@ -14,13 +14,13 @@ type ListDbSystemsRequest struct { // The compartment OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - // The maximum number of items to return. + // The maximum number of items to return per page. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The pagination token to continue listing from. Page *string `mandatory:"false" contributesTo:"query" name:"page"` - // The OCID of the backup. Specify a backupId to list only the DB Systems that support creating a database using this backup in this compartment. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the backup. Specify a backupId to list only the DB systems that support creating a database using this backup in this compartment. BackupId *string `mandatory:"false" contributesTo:"query" name:"backupId"` // Unique Oracle-assigned identifier for the request. @@ -58,7 +58,7 @@ type ListDbSystemsResponse struct { // For pagination of a list of items. When paging through a list, if this header appears in the response, // then there are additional items still to get. Include this value as the `page` parameter for the // subsequent GET request. For information about pagination, see - // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#List_Pagination). + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/database/list_db_versions_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/list_db_versions_request_response.go index 256a04642..6f0c3cf6a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/list_db_versions_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/list_db_versions_request_response.go @@ -14,7 +14,7 @@ type ListDbVersionsRequest struct { // The compartment OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - // The maximum number of items to return. + // The maximum number of items to return per page. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The pagination token to continue listing from. @@ -23,7 +23,7 @@ type ListDbVersionsRequest struct { // If provided, filters the results to the set of database versions which are supported for the given shape. DbSystemShape *string `mandatory:"false" contributesTo:"query" name:"dbSystemShape"` - // The DB system OCID. If provided, filters the results to the set of database versions which are supported for the DB system. + // The DB system OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). If provided, filters the results to the set of database versions which are supported for the DB system. DbSystemId *string `mandatory:"false" contributesTo:"query" name:"dbSystemId"` // Unique Oracle-assigned identifier for the request. @@ -61,7 +61,7 @@ type ListDbVersionsResponse struct { // For pagination of a list of items. When paging through a list, if this header appears in the response, // then there are additional items still to get. Include this value as the `page` parameter for the // subsequent GET request. For information about pagination, see - // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#List_Pagination). + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about diff --git a/vendor/github.com/oracle/oci-go-sdk/database/patch.go b/vendor/github.com/oracle/oci-go-sdk/database/patch.go index 7ed8a3398..2a47ffacf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/patch.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/patch.go @@ -12,7 +12,7 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// Patch A Patch for a DB System or DB Home. +// Patch A Patch for a DB system or DB Home. // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, // talk to an administrator. If you're an administrator who needs to write policies to give users access, // see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). @@ -21,7 +21,7 @@ type Patch struct { // The text describing this patch package. Description *string `mandatory:"true" json:"description"` - // The OCID of the patch. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the patch. Id *string `mandatory:"true" json:"id"` // The date and time that the patch was released. diff --git a/vendor/github.com/oracle/oci-go-sdk/database/patch_details.go b/vendor/github.com/oracle/oci-go-sdk/database/patch_details.go index 1dab6a67a..58d0bf886 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/patch_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/patch_details.go @@ -14,13 +14,13 @@ import ( // PatchDetails The details about what actions to perform and using what patch to the specified target. // This is part of an update request that is applied to a version field on the target such -// as DB System, database home, etc. +// as DB system, database home, etc. type PatchDetails struct { // The action to perform on the patch. Action PatchDetailsActionEnum `mandatory:"false" json:"action,omitempty"` - // The OCID of the patch. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the patch. PatchId *string `mandatory:"false" json:"patchId"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/database/patch_history_entry.go b/vendor/github.com/oracle/oci-go-sdk/database/patch_history_entry.go index 21fa02767..caa565ed9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/patch_history_entry.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/patch_history_entry.go @@ -15,13 +15,13 @@ import ( // PatchHistoryEntry The record of a patch action on a specified target. type PatchHistoryEntry struct { - // The OCID of the patch history entry. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the patch history entry. Id *string `mandatory:"true" json:"id"` // The current state of the action. LifecycleState PatchHistoryEntryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - // The OCID of the patch. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the patch. PatchId *string `mandatory:"true" json:"patchId"` // The date and time when the patch action started. diff --git a/vendor/github.com/oracle/oci-go-sdk/database/patch_history_entry_summary.go b/vendor/github.com/oracle/oci-go-sdk/database/patch_history_entry_summary.go index ddb964f93..fab53e3cb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/patch_history_entry_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/patch_history_entry_summary.go @@ -15,13 +15,13 @@ import ( // PatchHistoryEntrySummary The record of a patch action on a specified target. type PatchHistoryEntrySummary struct { - // The OCID of the patch history entry. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the patch history entry. Id *string `mandatory:"true" json:"id"` // The current state of the action. LifecycleState PatchHistoryEntrySummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - // The OCID of the patch. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the patch. PatchId *string `mandatory:"true" json:"patchId"` // The date and time when the patch action started. diff --git a/vendor/github.com/oracle/oci-go-sdk/database/patch_summary.go b/vendor/github.com/oracle/oci-go-sdk/database/patch_summary.go index e803c53fb..7e3cc9129 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/patch_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/patch_summary.go @@ -12,7 +12,7 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// PatchSummary A Patch for a DB System or DB Home. +// PatchSummary A Patch for a DB system or DB Home. // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, // talk to an administrator. If you're an administrator who needs to write policies to give users access, // see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). @@ -21,7 +21,7 @@ type PatchSummary struct { // The text describing this patch package. Description *string `mandatory:"true" json:"description"` - // The OCID of the patch. + // The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the patch. Id *string `mandatory:"true" json:"id"` // The date and time that the patch was released. diff --git a/vendor/github.com/oracle/oci-go-sdk/database/reinstate_data_guard_association_details.go b/vendor/github.com/oracle/oci-go-sdk/database/reinstate_data_guard_association_details.go index b348fafb9..53e76301f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/reinstate_data_guard_association_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/reinstate_data_guard_association_details.go @@ -15,7 +15,7 @@ import ( // ReinstateDataGuardAssociationDetails The Data Guard association reinstate parameters. type ReinstateDataGuardAssociationDetails struct { - // The DB System administrator password. + // The DB system administrator password. DatabaseAdminPassword *string `mandatory:"true" json:"databaseAdminPassword"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/database/restore_autonomous_data_warehouse_details.go b/vendor/github.com/oracle/oci-go-sdk/database/restore_autonomous_data_warehouse_details.go new file mode 100644 index 000000000..d72e95f1d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/restore_autonomous_data_warehouse_details.go @@ -0,0 +1,24 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. +// + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// RestoreAutonomousDataWarehouseDetails Details to restore an Oracle Autonomous Data Warehouse. +type RestoreAutonomousDataWarehouseDetails struct { + + // The time to restore the database to. + Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` +} + +func (m RestoreAutonomousDataWarehouseDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/restore_autonomous_data_warehouse_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/restore_autonomous_data_warehouse_request_response.go new file mode 100644 index 000000000..797f1f2f1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/restore_autonomous_data_warehouse_request_response.go @@ -0,0 +1,72 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// RestoreAutonomousDataWarehouseRequest wrapper for the RestoreAutonomousDataWarehouse operation +type RestoreAutonomousDataWarehouseRequest struct { + + // The database OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + AutonomousDataWarehouseId *string `mandatory:"true" contributesTo:"path" name:"autonomousDataWarehouseId"` + + // Request to perform an Autonomous Data Warehouse restore. + RestoreAutonomousDataWarehouseDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request RestoreAutonomousDataWarehouseRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request RestoreAutonomousDataWarehouseRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request RestoreAutonomousDataWarehouseRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// RestoreAutonomousDataWarehouseResponse wrapper for the RestoreAutonomousDataWarehouse operation +type RestoreAutonomousDataWarehouseResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The AutonomousDataWarehouse instance + AutonomousDataWarehouse `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response RestoreAutonomousDataWarehouseResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response RestoreAutonomousDataWarehouseResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/restore_autonomous_database_details.go b/vendor/github.com/oracle/oci-go-sdk/database/restore_autonomous_database_details.go new file mode 100644 index 000000000..7af107bbc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/restore_autonomous_database_details.go @@ -0,0 +1,24 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. +// + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// RestoreAutonomousDatabaseDetails Details to restore an Oracle Autonomous Database. +type RestoreAutonomousDatabaseDetails struct { + + // The time to restore the database to. + Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` +} + +func (m RestoreAutonomousDatabaseDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/restore_autonomous_database_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/restore_autonomous_database_request_response.go new file mode 100644 index 000000000..85a466e1d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/restore_autonomous_database_request_response.go @@ -0,0 +1,72 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// RestoreAutonomousDatabaseRequest wrapper for the RestoreAutonomousDatabase operation +type RestoreAutonomousDatabaseRequest struct { + + // The database OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + AutonomousDatabaseId *string `mandatory:"true" contributesTo:"path" name:"autonomousDatabaseId"` + + // Request to perform an Autonomous Database restore. + RestoreAutonomousDatabaseDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request RestoreAutonomousDatabaseRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request RestoreAutonomousDatabaseRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request RestoreAutonomousDatabaseRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// RestoreAutonomousDatabaseResponse wrapper for the RestoreAutonomousDatabase operation +type RestoreAutonomousDatabaseResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The AutonomousDatabase instance + AutonomousDatabase `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response RestoreAutonomousDatabaseResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response RestoreAutonomousDatabaseResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/start_autonomous_data_warehouse_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/start_autonomous_data_warehouse_request_response.go new file mode 100644 index 000000000..6ddc615fc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/start_autonomous_data_warehouse_request_response.go @@ -0,0 +1,69 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// StartAutonomousDataWarehouseRequest wrapper for the StartAutonomousDataWarehouse operation +type StartAutonomousDataWarehouseRequest struct { + + // The database OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + AutonomousDataWarehouseId *string `mandatory:"true" contributesTo:"path" name:"autonomousDataWarehouseId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request StartAutonomousDataWarehouseRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request StartAutonomousDataWarehouseRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request StartAutonomousDataWarehouseRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// StartAutonomousDataWarehouseResponse wrapper for the StartAutonomousDataWarehouse operation +type StartAutonomousDataWarehouseResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The AutonomousDataWarehouse instance + AutonomousDataWarehouse `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response StartAutonomousDataWarehouseResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response StartAutonomousDataWarehouseResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/start_autonomous_database_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/start_autonomous_database_request_response.go new file mode 100644 index 000000000..0904746e8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/start_autonomous_database_request_response.go @@ -0,0 +1,69 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// StartAutonomousDatabaseRequest wrapper for the StartAutonomousDatabase operation +type StartAutonomousDatabaseRequest struct { + + // The database OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + AutonomousDatabaseId *string `mandatory:"true" contributesTo:"path" name:"autonomousDatabaseId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request StartAutonomousDatabaseRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request StartAutonomousDatabaseRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request StartAutonomousDatabaseRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// StartAutonomousDatabaseResponse wrapper for the StartAutonomousDatabase operation +type StartAutonomousDatabaseResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The AutonomousDatabase instance + AutonomousDatabase `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response StartAutonomousDatabaseResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response StartAutonomousDatabaseResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/stop_autonomous_data_warehouse_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/stop_autonomous_data_warehouse_request_response.go new file mode 100644 index 000000000..c9a6a3a3d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/stop_autonomous_data_warehouse_request_response.go @@ -0,0 +1,69 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// StopAutonomousDataWarehouseRequest wrapper for the StopAutonomousDataWarehouse operation +type StopAutonomousDataWarehouseRequest struct { + + // The database OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + AutonomousDataWarehouseId *string `mandatory:"true" contributesTo:"path" name:"autonomousDataWarehouseId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request StopAutonomousDataWarehouseRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request StopAutonomousDataWarehouseRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request StopAutonomousDataWarehouseRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// StopAutonomousDataWarehouseResponse wrapper for the StopAutonomousDataWarehouse operation +type StopAutonomousDataWarehouseResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The AutonomousDataWarehouse instance + AutonomousDataWarehouse `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response StopAutonomousDataWarehouseResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response StopAutonomousDataWarehouseResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/stop_autonomous_database_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/stop_autonomous_database_request_response.go new file mode 100644 index 000000000..44bd91378 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/stop_autonomous_database_request_response.go @@ -0,0 +1,69 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// StopAutonomousDatabaseRequest wrapper for the StopAutonomousDatabase operation +type StopAutonomousDatabaseRequest struct { + + // The database OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + AutonomousDatabaseId *string `mandatory:"true" contributesTo:"path" name:"autonomousDatabaseId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request StopAutonomousDatabaseRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request StopAutonomousDatabaseRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request StopAutonomousDatabaseRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// StopAutonomousDatabaseResponse wrapper for the StopAutonomousDatabase operation +type StopAutonomousDatabaseResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The AutonomousDatabase instance + AutonomousDatabase `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response StopAutonomousDatabaseResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response StopAutonomousDatabaseResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/switchover_data_guard_association_details.go b/vendor/github.com/oracle/oci-go-sdk/database/switchover_data_guard_association_details.go index 087705923..561dc4421 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/switchover_data_guard_association_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/switchover_data_guard_association_details.go @@ -15,7 +15,7 @@ import ( // SwitchoverDataGuardAssociationDetails The Data Guard association switchover parameters. type SwitchoverDataGuardAssociationDetails struct { - // The DB System administrator password. + // The DB system administrator password. DatabaseAdminPassword *string `mandatory:"true" json:"databaseAdminPassword"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/database/terminate_db_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/terminate_db_system_request_response.go index a3c274ad5..7cabb680a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/terminate_db_system_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/terminate_db_system_request_response.go @@ -11,7 +11,7 @@ import ( // TerminateDbSystemRequest wrapper for the TerminateDbSystem operation type TerminateDbSystemRequest struct { - // The DB System OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + // The DB system OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). DbSystemId *string `mandatory:"true" contributesTo:"path" name:"dbSystemId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` diff --git a/vendor/github.com/oracle/oci-go-sdk/database/update_autonomous_data_warehouse_details.go b/vendor/github.com/oracle/oci-go-sdk/database/update_autonomous_data_warehouse_details.go new file mode 100644 index 000000000..426119c56 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/update_autonomous_data_warehouse_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. +// + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// UpdateAutonomousDataWarehouseDetails Details to update an Oracle Autonomous Data Warehouse. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type UpdateAutonomousDataWarehouseDetails struct { + + // A strong password for Admin. The password must be between 12 and 60 characters long, and must contain at least 1 uppercase, 1 lowercase and 2 numeric characters. It cannot contain the double quote symbol ("). It must be different than the last 4 passwords. + AdminPassword *string `mandatory:"false" json:"adminPassword"` + + // The number of CPU cores to be made available to the database. + CpuCoreCount *int `mandatory:"false" json:"cpuCoreCount"` + + // Size, in terabytes, of the data volume that will be attached to the database. + DataStorageSizeInTBs *int `mandatory:"false" json:"dataStorageSizeInTBs"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // The user-friendly name for the Autonomous Data Warehouse. The name does not have to be unique. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m UpdateAutonomousDataWarehouseDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/update_autonomous_data_warehouse_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/update_autonomous_data_warehouse_request_response.go new file mode 100644 index 000000000..b8c523f81 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/update_autonomous_data_warehouse_request_response.go @@ -0,0 +1,72 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// UpdateAutonomousDataWarehouseRequest wrapper for the UpdateAutonomousDataWarehouse operation +type UpdateAutonomousDataWarehouseRequest struct { + + // The database OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + AutonomousDataWarehouseId *string `mandatory:"true" contributesTo:"path" name:"autonomousDataWarehouseId"` + + // Request to update the properties of an Autonomous Data Warehouse. + UpdateAutonomousDataWarehouseDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateAutonomousDataWarehouseRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateAutonomousDataWarehouseRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateAutonomousDataWarehouseRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// UpdateAutonomousDataWarehouseResponse wrapper for the UpdateAutonomousDataWarehouse operation +type UpdateAutonomousDataWarehouseResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The AutonomousDataWarehouse instance + AutonomousDataWarehouse `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateAutonomousDataWarehouseResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateAutonomousDataWarehouseResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/update_autonomous_database_details.go b/vendor/github.com/oracle/oci-go-sdk/database/update_autonomous_database_details.go new file mode 100644 index 000000000..2db718335 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/update_autonomous_database_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. +// + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// UpdateAutonomousDatabaseDetails Details to update an Oracle Autonomous Database. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type UpdateAutonomousDatabaseDetails struct { + + // A strong password for Admin. The password must be between 12 and 60 characters long, and must contain at least 1 uppercase, 1 lowercase and 2 numeric characters. It cannot contain the double quote symbol ("). It must be different than the last 4 passwords. + AdminPassword *string `mandatory:"false" json:"adminPassword"` + + // The number of CPU cores to be made available to the database. + CpuCoreCount *int `mandatory:"false" json:"cpuCoreCount"` + + // The size, in terabytes, of the data volume that will be attached to the database. + DataStorageSizeInTBs *int `mandatory:"false" json:"dataStorageSizeInTBs"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // The user-friendly name for the Autonomous Database. The name does not have to be unique. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m UpdateAutonomousDatabaseDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/update_autonomous_database_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/update_autonomous_database_request_response.go new file mode 100644 index 000000000..4ded658cb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/database/update_autonomous_database_request_response.go @@ -0,0 +1,72 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package database + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// UpdateAutonomousDatabaseRequest wrapper for the UpdateAutonomousDatabase operation +type UpdateAutonomousDatabaseRequest struct { + + // The database OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + AutonomousDatabaseId *string `mandatory:"true" contributesTo:"path" name:"autonomousDatabaseId"` + + // Request to update the properties of an Autonomous Database. + UpdateAutonomousDatabaseDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateAutonomousDatabaseRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateAutonomousDatabaseRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateAutonomousDatabaseRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// UpdateAutonomousDatabaseResponse wrapper for the UpdateAutonomousDatabase operation +type UpdateAutonomousDatabaseResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The AutonomousDatabase instance + AutonomousDatabase `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateAutonomousDatabaseResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateAutonomousDatabaseResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/database/update_database_details.go b/vendor/github.com/oracle/oci-go-sdk/database/update_database_details.go index 9eaa6801c..00a01020e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/update_database_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/update_database_details.go @@ -12,7 +12,8 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// UpdateDatabaseDetails The representation of UpdateDatabaseDetails +// UpdateDatabaseDetails Details to update a database. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type UpdateDatabaseDetails struct { DbBackupConfig *DbBackupConfig `mandatory:"false" json:"dbBackupConfig"` diff --git a/vendor/github.com/oracle/oci-go-sdk/database/update_db_home_details.go b/vendor/github.com/oracle/oci-go-sdk/database/update_db_home_details.go index 741a7e36f..574fc0ccb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/update_db_home_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/update_db_home_details.go @@ -12,7 +12,7 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// UpdateDbHomeDetails Describes the modification parameters for the DB Home. +// UpdateDbHomeDetails Describes the modification parameters for the database home. type UpdateDbHomeDetails struct { DbVersion *PatchDetails `mandatory:"false" json:"dbVersion"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/database/update_db_system_details.go b/vendor/github.com/oracle/oci-go-sdk/database/update_db_system_details.go index b7c400d83..b0f789b2a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/update_db_system_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/update_db_system_details.go @@ -12,13 +12,14 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// UpdateDbSystemDetails Describes the modification parameters for the DB System. +// UpdateDbSystemDetails Describes the parameters for updating the DB system. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type UpdateDbSystemDetails struct { - // The number of CPU Cores to be set on the DB System. Applicable only for non-VM based DB systems. + // The new number of CPU cores to set for the DB system. Not applicable for virtual machine DB systems. CpuCoreCount *int `mandatory:"false" json:"cpuCoreCount"` - // Size, in GBs, to which the currently attached storage needs to be scaled up to for VM based DB system. This must be greater than current storage size. Note that the total storage size attached will be more than what is requested, to account for REDO/RECO space and software volume. + // The size, in gigabytes, to scale the attached storage up to for this virtual machine DB system. This value must be greater than current storage size. Note that the resulting total storage size attached will be greater than the amount requested to allow for REDO/RECO space and software volume. Applies only to virtual machine DB systems. DataStorageSizeInGBs *int `mandatory:"false" json:"dataStorageSizeInGBs"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. @@ -31,7 +32,7 @@ type UpdateDbSystemDetails struct { // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - // The public key portion of the key pair to use for SSH access to the DB System. Multiple public keys can be provided. The length of the combined keys cannot exceed 10,000 characters. + // The public key portion of the key pair to use for SSH access to the DB system. Multiple public keys can be provided. The length of the combined keys cannot exceed 10,000 characters. SshPublicKeys []string `mandatory:"false" json:"sshPublicKeys"` Version *PatchDetails `mandatory:"false" json:"version"` diff --git a/vendor/github.com/oracle/oci-go-sdk/database/update_db_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/database/update_db_system_request_response.go index 80fdec7a2..a70872804 100644 --- a/vendor/github.com/oracle/oci-go-sdk/database/update_db_system_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/database/update_db_system_request_response.go @@ -11,10 +11,10 @@ import ( // UpdateDbSystemRequest wrapper for the UpdateDbSystem operation type UpdateDbSystemRequest struct { - // The DB System OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). + // The DB system OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm). DbSystemId *string `mandatory:"true" contributesTo:"path" name:"dbSystemId"` - // Request to update the properties of a DB System. + // Request to update the properties of a DB system. UpdateDbSystemDetails `contributesTo:"body"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/dns_client.go b/vendor/github.com/oracle/oci-go-sdk/dns/dns_client.go index b1b124cc2..de029cfc0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/dns/dns_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/dns/dns_client.go @@ -69,6 +69,9 @@ func (client DnsClient) CreateZone(ctx context.Context, request CreateZoneReques } ociResponse, err = common.Retry(ctx, request, client.createZone, policy) if err != nil { + if ociResponse != nil { + response = CreateZoneResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateZoneResponse); ok { @@ -108,6 +111,9 @@ func (client DnsClient) DeleteDomainRecords(ctx context.Context, request DeleteD } ociResponse, err = common.Retry(ctx, request, client.deleteDomainRecords, policy) if err != nil { + if ociResponse != nil { + response = DeleteDomainRecordsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteDomainRecordsResponse); ok { @@ -147,6 +153,9 @@ func (client DnsClient) DeleteRRSet(ctx context.Context, request DeleteRRSetRequ } ociResponse, err = common.Retry(ctx, request, client.deleteRRSet, policy) if err != nil { + if ociResponse != nil { + response = DeleteRRSetResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteRRSetResponse); ok { @@ -187,6 +196,9 @@ func (client DnsClient) DeleteZone(ctx context.Context, request DeleteZoneReques } ociResponse, err = common.Retry(ctx, request, client.deleteZone, policy) if err != nil { + if ociResponse != nil { + response = DeleteZoneResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteZoneResponse); ok { @@ -228,6 +240,9 @@ func (client DnsClient) GetDomainRecords(ctx context.Context, request GetDomainR } ociResponse, err = common.Retry(ctx, request, client.getDomainRecords, policy) if err != nil { + if ociResponse != nil { + response = GetDomainRecordsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetDomainRecordsResponse); ok { @@ -268,6 +283,9 @@ func (client DnsClient) GetRRSet(ctx context.Context, request GetRRSetRequest) ( } ociResponse, err = common.Retry(ctx, request, client.getRRSet, policy) if err != nil { + if ociResponse != nil { + response = GetRRSetResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetRRSetResponse); ok { @@ -308,6 +326,9 @@ func (client DnsClient) GetZone(ctx context.Context, request GetZoneRequest) (re } ociResponse, err = common.Retry(ctx, request, client.getZone, policy) if err != nil { + if ociResponse != nil { + response = GetZoneResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetZoneResponse); ok { @@ -349,6 +370,9 @@ func (client DnsClient) GetZoneRecords(ctx context.Context, request GetZoneRecor } ociResponse, err = common.Retry(ctx, request, client.getZoneRecords, policy) if err != nil { + if ociResponse != nil { + response = GetZoneRecordsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetZoneRecordsResponse); ok { @@ -389,6 +413,9 @@ func (client DnsClient) ListZones(ctx context.Context, request ListZonesRequest) } ociResponse, err = common.Retry(ctx, request, client.listZones, policy) if err != nil { + if ociResponse != nil { + response = ListZonesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListZonesResponse); ok { @@ -428,6 +455,9 @@ func (client DnsClient) PatchDomainRecords(ctx context.Context, request PatchDom } ociResponse, err = common.Retry(ctx, request, client.patchDomainRecords, policy) if err != nil { + if ociResponse != nil { + response = PatchDomainRecordsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(PatchDomainRecordsResponse); ok { @@ -467,6 +497,9 @@ func (client DnsClient) PatchRRSet(ctx context.Context, request PatchRRSetReques } ociResponse, err = common.Retry(ctx, request, client.patchRRSet, policy) if err != nil { + if ociResponse != nil { + response = PatchRRSetResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(PatchRRSetResponse); ok { @@ -509,6 +542,9 @@ func (client DnsClient) PatchZoneRecords(ctx context.Context, request PatchZoneR } ociResponse, err = common.Retry(ctx, request, client.patchZoneRecords, policy) if err != nil { + if ociResponse != nil { + response = PatchZoneRecordsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(PatchZoneRecordsResponse); ok { @@ -553,6 +589,9 @@ func (client DnsClient) UpdateDomainRecords(ctx context.Context, request UpdateD } ociResponse, err = common.Retry(ctx, request, client.updateDomainRecords, policy) if err != nil { + if ociResponse != nil { + response = UpdateDomainRecordsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateDomainRecordsResponse); ok { @@ -592,6 +631,9 @@ func (client DnsClient) UpdateRRSet(ctx context.Context, request UpdateRRSetRequ } ociResponse, err = common.Retry(ctx, request, client.updateRRSet, policy) if err != nil { + if ociResponse != nil { + response = UpdateRRSetResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateRRSetResponse); ok { @@ -633,6 +675,9 @@ func (client DnsClient) UpdateZone(ctx context.Context, request UpdateZoneReques } ociResponse, err = common.Retry(ctx, request, client.updateZone, policy) if err != nil { + if ociResponse != nil { + response = UpdateZoneResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateZoneResponse); ok { @@ -676,6 +721,9 @@ func (client DnsClient) UpdateZoneRecords(ctx context.Context, request UpdateZon } ociResponse, err = common.Retry(ctx, request, client.updateZoneRecords, policy) if err != nil { + if ociResponse != nil { + response = UpdateZoneRecordsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateZoneRecordsResponse); ok { diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/get_domain_records_request_response.go b/vendor/github.com/oracle/oci-go-sdk/dns/get_domain_records_request_response.go index 3adaf85e1..c4caa263f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/dns/get_domain_records_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/dns/get_domain_records_request_response.go @@ -30,7 +30,7 @@ type GetDomainRecordsRequest struct { IfModifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Modified-Since"` // The maximum number of items to return in a page of the collection. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + Limit *int64 `mandatory:"false" contributesTo:"query" name:"limit"` // The value of the `opc-next-page` response header from the previous "List" call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/get_r_r_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/dns/get_r_r_set_request_response.go index acad3eb31..4d9301792 100644 --- a/vendor/github.com/oracle/oci-go-sdk/dns/get_r_r_set_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/dns/get_r_r_set_request_response.go @@ -33,7 +33,7 @@ type GetRRSetRequest struct { IfModifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Modified-Since"` // The maximum number of items to return in a page of the collection. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + Limit *int64 `mandatory:"false" contributesTo:"query" name:"limit"` // The value of the `opc-next-page` response header from the previous "List" call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/get_zone_records_request_response.go b/vendor/github.com/oracle/oci-go-sdk/dns/get_zone_records_request_response.go index 7aa915300..eb9cb3024 100644 --- a/vendor/github.com/oracle/oci-go-sdk/dns/get_zone_records_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/dns/get_zone_records_request_response.go @@ -27,7 +27,7 @@ type GetZoneRecordsRequest struct { IfModifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Modified-Since"` // The maximum number of items to return in a page of the collection. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + Limit *int64 `mandatory:"false" contributesTo:"query" name:"limit"` // The value of the `opc-next-page` response header from the previous "List" call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/list_zones_request_response.go b/vendor/github.com/oracle/oci-go-sdk/dns/list_zones_request_response.go index 79b68258a..0fdb4852a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/dns/list_zones_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/dns/list_zones_request_response.go @@ -15,7 +15,7 @@ type ListZonesRequest struct { CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The maximum number of items to return in a page of the collection. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + Limit *int64 `mandatory:"false" contributesTo:"query" name:"limit"` // The value of the `opc-next-page` response header from the previous "List" call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/zone.go b/vendor/github.com/oracle/oci-go-sdk/dns/zone.go index 53e1efaae..3307b391f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/dns/zone.go +++ b/vendor/github.com/oracle/oci-go-sdk/dns/zone.go @@ -44,7 +44,7 @@ type Zone struct { Version *string `mandatory:"false" json:"version"` // The current serial of the zone. As seen in the zone's SOA record. - Serial *int `mandatory:"false" json:"serial"` + Serial *int64 `mandatory:"false" json:"serial"` // The current state of the zone resource. LifecycleState ZoneLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` diff --git a/vendor/github.com/oracle/oci-go-sdk/dns/zone_summary.go b/vendor/github.com/oracle/oci-go-sdk/dns/zone_summary.go index ea2994d16..75137e618 100644 --- a/vendor/github.com/oracle/oci-go-sdk/dns/zone_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/dns/zone_summary.go @@ -41,7 +41,7 @@ type ZoneSummary struct { Version *string `mandatory:"false" json:"version"` // The current serial of the zone. As seen in the zone's SOA record. - Serial *int `mandatory:"false" json:"serial"` + Serial *int64 `mandatory:"false" json:"serial"` } func (m ZoneSummary) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/email/email_client.go b/vendor/github.com/oracle/oci-go-sdk/email/email_client.go index 2d6a402fc..e505eddeb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/email/email_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/email/email_client.go @@ -67,6 +67,9 @@ func (client EmailClient) CreateSender(ctx context.Context, request CreateSender } ociResponse, err = common.Retry(ctx, request, client.createSender, policy) if err != nil { + if ociResponse != nil { + response = CreateSenderResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateSenderResponse); ok { @@ -106,6 +109,9 @@ func (client EmailClient) CreateSuppression(ctx context.Context, request CreateS } ociResponse, err = common.Retry(ctx, request, client.createSuppression, policy) if err != nil { + if ociResponse != nil { + response = CreateSuppressionResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateSuppressionResponse); ok { @@ -146,6 +152,9 @@ func (client EmailClient) DeleteSender(ctx context.Context, request DeleteSender } ociResponse, err = common.Retry(ctx, request, client.deleteSender, policy) if err != nil { + if ociResponse != nil { + response = DeleteSenderResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteSenderResponse); ok { @@ -186,6 +195,9 @@ func (client EmailClient) DeleteSuppression(ctx context.Context, request DeleteS } ociResponse, err = common.Retry(ctx, request, client.deleteSuppression, policy) if err != nil { + if ociResponse != nil { + response = DeleteSuppressionResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteSuppressionResponse); ok { @@ -225,6 +237,9 @@ func (client EmailClient) GetSender(ctx context.Context, request GetSenderReques } ociResponse, err = common.Retry(ctx, request, client.getSender, policy) if err != nil { + if ociResponse != nil { + response = GetSenderResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetSenderResponse); ok { @@ -265,6 +280,9 @@ func (client EmailClient) GetSuppression(ctx context.Context, request GetSuppres } ociResponse, err = common.Retry(ctx, request, client.getSuppression, policy) if err != nil { + if ociResponse != nil { + response = GetSuppressionResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetSuppressionResponse); ok { @@ -304,6 +322,9 @@ func (client EmailClient) ListSenders(ctx context.Context, request ListSendersRe } ociResponse, err = common.Retry(ctx, request, client.listSenders, policy) if err != nil { + if ociResponse != nil { + response = ListSendersResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListSendersResponse); ok { @@ -345,6 +366,9 @@ func (client EmailClient) ListSuppressions(ctx context.Context, request ListSupp } ociResponse, err = common.Retry(ctx, request, client.listSuppressions, policy) if err != nil { + if ociResponse != nil { + response = ListSuppressionsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListSuppressionsResponse); ok { diff --git a/vendor/github.com/oracle/oci-go-sdk/example/example_identity_test.go b/vendor/github.com/oracle/oci-go-sdk/example/example_identity_test.go index a62315c42..48b6e1ada 100644 --- a/vendor/github.com/oracle/oci-go-sdk/example/example_identity_test.go +++ b/vendor/github.com/oracle/oci-go-sdk/example/example_identity_test.go @@ -13,6 +13,7 @@ import ( "github.com/oracle/oci-go-sdk/common" "github.com/oracle/oci-go-sdk/example/helpers" "github.com/oracle/oci-go-sdk/identity" + "net/http" ) // ExampleListAvailabilityDomains Lists the Availability Domains in your tenancy. @@ -39,3 +40,35 @@ func ExampleListAvailabilityDomains() { // Output: // list available domains completed } + +// ExampleListGroupsWithCustomSignedHeader Lists groups by passing a custom signed header in the request +func ExampleListGroupsWithCustomSignedHeader() { + provider := common.DefaultConfigProvider() + c, err := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider()) + helpers.FatalIfError(err) + + //Bear in mind that services expect well known headers to be signed. Signing arbitrary headers + //might lead to authentication errors + customHeader := "opc-my-token" + allHeaders := append(common.DefaultGenericHeaders(), customHeader) + c.Signer = common.RequestSigner(provider, allHeaders, common.DefaultBodyHeaders()) + c.Interceptor = func(request *http.Request) error { + request.Header.Add(customHeader, "customvalue") + return nil + } + + + // The OCID of the tenancy containing the compartment. + tenancyID, _ := provider.TenancyOCID() + request := identity.ListGroupsRequest{ + CompartmentId: common.String(tenancyID), + } + r, err := c.ListGroups(context.Background(), request) + helpers.FatalIfError(err) + + log.Printf("list groups completed: %v", r.Items) + fmt.Println("list groups completed") + + // Output: + // list groups completed +} diff --git a/vendor/github.com/oracle/oci-go-sdk/example/example_objectstorage_test.go b/vendor/github.com/oracle/oci-go-sdk/example/example_objectstorage_test.go index c23d08c06..08f60fbfa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/example/example_objectstorage_test.go +++ b/vendor/github.com/oracle/oci-go-sdk/example/example_objectstorage_test.go @@ -44,7 +44,7 @@ func ExampleObjectStorage_UploadFile() { defer file.Close() helpers.FatalIfError(e) - e = putObject(ctx, c, namespace, bname, filename, int(filesize), file, nil) + e = putObject(ctx, c, namespace, bname, filename, filesize, file, nil) helpers.FatalIfError(e) defer deleteObject(ctx, c, namespace, bname, filename) @@ -64,7 +64,7 @@ func getNamespace(ctx context.Context, c objectstorage.ObjectStorageClient) stri return *r.Value } -func putObject(ctx context.Context, c objectstorage.ObjectStorageClient, namespace, bucketname, objectname string, contentLen int, content io.ReadCloser, metadata map[string]string) error { +func putObject(ctx context.Context, c objectstorage.ObjectStorageClient, namespace, bucketname, objectname string, contentLen int64, content io.ReadCloser, metadata map[string]string) error { request := objectstorage.PutObjectRequest{ NamespaceName: &namespace, BucketName: &bucketname, diff --git a/vendor/github.com/oracle/oci-go-sdk/example/example_resourcesearch_test.go b/vendor/github.com/oracle/oci-go-sdk/example/example_resourcesearch_test.go new file mode 100644 index 000000000..72e255219 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/example/example_resourcesearch_test.go @@ -0,0 +1,78 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Example for Resource Search Service +// +// Search for resources across your cloud infrastructure + +package example + +import ( + "context" + "fmt" + "log" + + "github.com/oracle/oci-go-sdk/common" + "github.com/oracle/oci-go-sdk/example/helpers" + "github.com/oracle/oci-go-sdk/resourcesearch" +) + +func Example_ResourceSearch() { + client, err := resourcesearch.NewResourceSearchClientWithConfigurationProvider(common.DefaultConfigProvider()) + ctx := context.Background() + helpers.FatalIfError(err) + + // list resource types + listReq := resourcesearch.ListResourceTypesRequest{} + listResp, err := client.ListResourceTypes(ctx, listReq) + fmt.Println("list resource types") + + for _, element := range listResp.Items { + log.Printf("Resource: %s", *element.Name) + } + + // get group type details + getReq := resourcesearch.GetResourceTypeRequest{ + Name: common.String("Group"), + } + getResp, err := client.GetResourceType(context.Background(), getReq) + helpers.FatalIfError(err) + fmt.Println("get group type details") + log.Printf("Resource type: %s", getResp.ResourceType) + + // search resource by freetext + searchReq := resourcesearch.SearchResourcesRequest{ + SearchDetails: resourcesearch.FreeTextSearchDetails{ + Text: common.String("displayname"), + }, + } + + freeSearchResp, err := client.SearchResources(context.Background(), searchReq) + helpers.FatalIfError(err) + fmt.Println("search resource by freetext") + + for _, element := range freeSearchResp.Items { + log.Printf("Resource: %s", element) + } + + searchReq.SearchDetails = resourcesearch.StructuredSearchDetails{ + MatchingContextType: resourcesearch.SearchDetailsMatchingContextTypeHighlights, + Query: common.String("query all resources"), + } + + structureSearchResp, err := client.SearchResources(context.Background(), searchReq) + helpers.FatalIfError(err) + + // search resource by structured query + fmt.Println("search resource by structured query") + + for _, element := range structureSearchResp.Items { + log.Printf("Resource: %s", element) + } + + // Output: + // list resource types + // get group type details + // search resource by freetext + // search resource by structured query +} diff --git a/vendor/github.com/oracle/oci-go-sdk/filestorage/client_options.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/client_options.go new file mode 100644 index 000000000..43e892d6e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/client_options.go @@ -0,0 +1,107 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// File Storage Service API +// +// The API for the File Storage Service. +// + +package filestorage + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// ClientOptions NFS export options applied to a specified set of +// clients. Only governs access through the associated +// export. Access to the same file system through a different +// export (on the same or different mount target) will be governed +// by that export's export options. +type ClientOptions struct { + + // Clients these options should apply to. Must be a either + // single IPv4 address or single IPv4 CIDR block. + // **Note:** Access will also be limited by any applicable VCN + // security rules and the ability to route IP packets to the + // mount target. Mount targets do not have Internet-routable IP addresses. + Source *string `mandatory:"true" json:"source"` + + // If `true`, clients accessing the file system through this + // export must connect from a privileged source port. If + // unspecified, defaults to `true`. + RequirePrivilegedSourcePort *bool `mandatory:"false" json:"requirePrivilegedSourcePort"` + + // Type of access to grant clients using the file system + // through this export. If unspecified defaults to `READ_ONLY`. + Access ClientOptionsAccessEnum `mandatory:"false" json:"access,omitempty"` + + // Used when clients accessing the file system through this export + // have their UID and GID remapped to 'anonymousUid' and + // 'anonymousGid'. If `ALL`, all users and groups are remapped; + // if `ROOT`, only the root user and group (UID/GID 0) are + // remapped; if `NONE`, no remapping is done. If unspecified, + // defaults to `ROOT`. + IdentitySquash ClientOptionsIdentitySquashEnum `mandatory:"false" json:"identitySquash,omitempty"` + + // UID value to remap to when squashing a client UID (see + // identitySquash for more details.) If unspecified, defaults + // to `65534`. + AnonymousUid *int64 `mandatory:"false" json:"anonymousUid"` + + // GID value to remap to when squashing a client GID (see + // identitySquash for more details.) If unspecified defaults + // to `65534`. + AnonymousGid *int64 `mandatory:"false" json:"anonymousGid"` +} + +func (m ClientOptions) String() string { + return common.PointerString(m) +} + +// ClientOptionsAccessEnum Enum with underlying type: string +type ClientOptionsAccessEnum string + +// Set of constants representing the allowable values for ClientOptionsAccess +const ( + ClientOptionsAccessWrite ClientOptionsAccessEnum = "READ_WRITE" + ClientOptionsAccessOnly ClientOptionsAccessEnum = "READ_ONLY" +) + +var mappingClientOptionsAccess = map[string]ClientOptionsAccessEnum{ + "READ_WRITE": ClientOptionsAccessWrite, + "READ_ONLY": ClientOptionsAccessOnly, +} + +// GetClientOptionsAccessEnumValues Enumerates the set of values for ClientOptionsAccess +func GetClientOptionsAccessEnumValues() []ClientOptionsAccessEnum { + values := make([]ClientOptionsAccessEnum, 0) + for _, v := range mappingClientOptionsAccess { + values = append(values, v) + } + return values +} + +// ClientOptionsIdentitySquashEnum Enum with underlying type: string +type ClientOptionsIdentitySquashEnum string + +// Set of constants representing the allowable values for ClientOptionsIdentitySquash +const ( + ClientOptionsIdentitySquashNone ClientOptionsIdentitySquashEnum = "NONE" + ClientOptionsIdentitySquashRoot ClientOptionsIdentitySquashEnum = "ROOT" + ClientOptionsIdentitySquashAll ClientOptionsIdentitySquashEnum = "ALL" +) + +var mappingClientOptionsIdentitySquash = map[string]ClientOptionsIdentitySquashEnum{ + "NONE": ClientOptionsIdentitySquashNone, + "ROOT": ClientOptionsIdentitySquashRoot, + "ALL": ClientOptionsIdentitySquashAll, +} + +// GetClientOptionsIdentitySquashEnumValues Enumerates the set of values for ClientOptionsIdentitySquash +func GetClientOptionsIdentitySquashEnumValues() []ClientOptionsIdentitySquashEnum { + values := make([]ClientOptionsIdentitySquashEnum, 0) + for _, v := range mappingClientOptionsIdentitySquash { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/filestorage/create_export_details.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/create_export_details.go index 56642c4e9..4fa3230b2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/filestorage/create_export_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/create_export_details.go @@ -25,6 +25,26 @@ type CreateExportDetails struct { // Avoid entering confidential information. // Example: `/mediafiles` Path *string `mandatory:"true" json:"path"` + + // Export options for the new export. If left unspecified, + // defaults to: + // [ + // { + // "source" : "0.0.0.0/0", + // "requirePrivilegedSourcePort" : false, + // "access" : "READ_WRITE", + // "identitySquash" : "NONE" + // } + // ] + // **Note:** Mount targets do not have Internet-routable IP + // addresses. Therefore they will not be reachable from the + // Internet, even if an associated `ClientOptions` item has + // a source of `0.0.0.0/0`. + // **If set to the empty array then the export will not be + // visible to any clients.** + // The export's `exportOptions` can be changed after creation + // using the `UpdateExport` operation. + ExportOptions []ClientOptions `mandatory:"false" json:"exportOptions"` } func (m CreateExportDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/filestorage/create_snapshot_details.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/create_snapshot_details.go index 77736e0d5..15c5d5609 100644 --- a/vendor/github.com/oracle/oci-go-sdk/filestorage/create_snapshot_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/create_snapshot_details.go @@ -15,7 +15,7 @@ import ( // CreateSnapshotDetails The representation of CreateSnapshotDetails type CreateSnapshotDetails struct { - // The OCID of this export's file system. + // The OCID of the file system to take a snapshot of. FileSystemId *string `mandatory:"true" json:"fileSystemId"` // Name of the snapshot. This value is immutable. It must also be unique with respect diff --git a/vendor/github.com/oracle/oci-go-sdk/filestorage/export.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/export.go index f0065824b..a33efc7fc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/filestorage/export.go +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/export.go @@ -35,8 +35,33 @@ import ( // or two periods in sequence (..). All path elements must be 255 bytes or less. // No two non-'DELETED' export resources in the same export set can // reference the same file system. +// Use `exportOptions` to control access to an export. For more information, see +// Export Options (https://docs.us-phoenix-1.oraclecloud.com/Content/File/Tasks/exportoptions.htm). type Export struct { + // Policies that apply to NFS requests made through this + // export. `exportOptions` contains a sequential list of + // `ClientOptions`. Each `ClientOptions` item defines the + // export options that are applied to a specified + // set of clients. + // For each NFS request, the first `ClientOptions` option + // in the list whose `source` attribute matches the source + // IP address of the request is applied. + // If a client source IP address does not match the `source` + // property of any `ClientOptions` in the list, then the + // export will be invisible to that client. This export will + // not be returned by `MOUNTPROC_EXPORT` calls made by the client + // and any attempt to mount or access the file system through + // this export will result in an error. + // **Exports without defined `ClientOptions` are invisible to all clients.** + // If one export is invisible to a particular client, associated file + // systems may still be accessible through other exports on the same + // or different mount targets. + // To completely deny client access to a file system, be sure that the client + // source IP address is not included in any export for any mount target + // associated with the file system. + ExportOptions []ClientOptions `mandatory:"true" json:"exportOptions"` + // The OCID of this export's export set. ExportSetId *string `mandatory:"true" json:"exportSetId"` diff --git a/vendor/github.com/oracle/oci-go-sdk/filestorage/export_set.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/export_set.go index ed4ad87b8..4af622354 100644 --- a/vendor/github.com/oracle/oci-go-sdk/filestorage/export_set.go +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/export_set.go @@ -52,9 +52,9 @@ type ExportSet struct { // `maxFsStatBytes` minus the metered size of the file // system. If the metered size is larger than `maxFsStatBytes`, // then `fbytes` and `abytes` will both be '0'. - MaxFsStatBytes *int `mandatory:"false" json:"maxFsStatBytes"` + MaxFsStatBytes *int64 `mandatory:"false" json:"maxFsStatBytes"` - // Controls the maximum `ffiles`, `ffiles`, and `afiles` + // Controls the maximum `tfiles`, `ffiles`, and `afiles` // values reported by `NFS FSSTAT` calls through any associated // mount targets. This is an advanced feature. For most // applications, use the default value. The @@ -63,7 +63,7 @@ type ExportSet struct { // `maxFsStatFiles` minus the metered size of the file // system. If the metered size is larger than `maxFsStatFiles`, // then `ffiles` and `afiles` will both be '0'. - MaxFsStatFiles *int `mandatory:"false" json:"maxFsStatFiles"` + MaxFsStatFiles *int64 `mandatory:"false" json:"maxFsStatFiles"` } func (m ExportSet) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/filestorage/file_system.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/file_system.go index 93d4547a7..2a14ab0a4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/filestorage/file_system.go +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/file_system.go @@ -27,7 +27,7 @@ type FileSystem struct { // any snapshots. This number reflects the metered size of the file // system and is updated asynchronously with respect to // updates to the file system. - MeteredBytes *int `mandatory:"true" json:"meteredBytes"` + MeteredBytes *int64 `mandatory:"true" json:"meteredBytes"` // The OCID of the compartment that contains the file system. CompartmentId *string `mandatory:"true" json:"compartmentId"` diff --git a/vendor/github.com/oracle/oci-go-sdk/filestorage/file_system_summary.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/file_system_summary.go index e4f36b816..fd4c506b4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/filestorage/file_system_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/file_system_summary.go @@ -19,7 +19,7 @@ type FileSystemSummary struct { // any snapshots. This number reflects the metered size of the file // system and is updated asynchronously with respect to // updates to the file system. - MeteredBytes *int `mandatory:"true" json:"meteredBytes"` + MeteredBytes *int64 `mandatory:"true" json:"meteredBytes"` // The OCID of the compartment that contains the file system. CompartmentId *string `mandatory:"true" json:"compartmentId"` diff --git a/vendor/github.com/oracle/oci-go-sdk/filestorage/filestorage_client.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/filestorage_client.go index 4439b13e5..44a3fe17d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/filestorage/filestorage_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/filestorage_client.go @@ -66,8 +66,16 @@ func (client FileStorageClient) CreateExport(ctx context.Context, request Create if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createExport, policy) if err != nil { + if ociResponse != nil { + response = CreateExportResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateExportResponse); ok { @@ -126,8 +134,16 @@ func (client FileStorageClient) CreateFileSystem(ctx context.Context, request Cr if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createFileSystem, policy) if err != nil { + if ociResponse != nil { + response = CreateFileSystemResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateFileSystemResponse); ok { @@ -192,8 +208,16 @@ func (client FileStorageClient) CreateMountTarget(ctx context.Context, request C if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createMountTarget, policy) if err != nil { + if ociResponse != nil { + response = CreateMountTargetResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateMountTargetResponse); ok { @@ -232,8 +256,16 @@ func (client FileStorageClient) CreateSnapshot(ctx context.Context, request Crea if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createSnapshot, policy) if err != nil { + if ociResponse != nil { + response = CreateSnapshotResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateSnapshotResponse); ok { @@ -273,6 +305,9 @@ func (client FileStorageClient) DeleteExport(ctx context.Context, request Delete } ociResponse, err = common.Retry(ctx, request, client.deleteExport, policy) if err != nil { + if ociResponse != nil { + response = DeleteExportResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteExportResponse); ok { @@ -314,6 +349,9 @@ func (client FileStorageClient) DeleteFileSystem(ctx context.Context, request De } ociResponse, err = common.Retry(ctx, request, client.deleteFileSystem, policy) if err != nil { + if ociResponse != nil { + response = DeleteFileSystemResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteFileSystemResponse); ok { @@ -354,6 +392,9 @@ func (client FileStorageClient) DeleteMountTarget(ctx context.Context, request D } ociResponse, err = common.Retry(ctx, request, client.deleteMountTarget, policy) if err != nil { + if ociResponse != nil { + response = DeleteMountTargetResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteMountTargetResponse); ok { @@ -393,6 +434,9 @@ func (client FileStorageClient) DeleteSnapshot(ctx context.Context, request Dele } ociResponse, err = common.Retry(ctx, request, client.deleteSnapshot, policy) if err != nil { + if ociResponse != nil { + response = DeleteSnapshotResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteSnapshotResponse); ok { @@ -432,6 +476,9 @@ func (client FileStorageClient) GetExport(ctx context.Context, request GetExport } ociResponse, err = common.Retry(ctx, request, client.getExport, policy) if err != nil { + if ociResponse != nil { + response = GetExportResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetExportResponse); ok { @@ -471,6 +518,9 @@ func (client FileStorageClient) GetExportSet(ctx context.Context, request GetExp } ociResponse, err = common.Retry(ctx, request, client.getExportSet, policy) if err != nil { + if ociResponse != nil { + response = GetExportSetResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetExportSetResponse); ok { @@ -510,6 +560,9 @@ func (client FileStorageClient) GetFileSystem(ctx context.Context, request GetFi } ociResponse, err = common.Retry(ctx, request, client.getFileSystem, policy) if err != nil { + if ociResponse != nil { + response = GetFileSystemResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetFileSystemResponse); ok { @@ -549,6 +602,9 @@ func (client FileStorageClient) GetMountTarget(ctx context.Context, request GetM } ociResponse, err = common.Retry(ctx, request, client.getMountTarget, policy) if err != nil { + if ociResponse != nil { + response = GetMountTargetResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetMountTargetResponse); ok { @@ -588,6 +644,9 @@ func (client FileStorageClient) GetSnapshot(ctx context.Context, request GetSnap } ociResponse, err = common.Retry(ctx, request, client.getSnapshot, policy) if err != nil { + if ociResponse != nil { + response = GetSnapshotResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetSnapshotResponse); ok { @@ -627,6 +686,9 @@ func (client FileStorageClient) ListExportSets(ctx context.Context, request List } ociResponse, err = common.Retry(ctx, request, client.listExportSets, policy) if err != nil { + if ociResponse != nil { + response = ListExportSetsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListExportSetsResponse); ok { @@ -668,6 +730,9 @@ func (client FileStorageClient) ListExports(ctx context.Context, request ListExp } ociResponse, err = common.Retry(ctx, request, client.listExports, policy) if err != nil { + if ociResponse != nil { + response = ListExportsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListExportsResponse); ok { @@ -707,6 +772,9 @@ func (client FileStorageClient) ListFileSystems(ctx context.Context, request Lis } ociResponse, err = common.Retry(ctx, request, client.listFileSystems, policy) if err != nil { + if ociResponse != nil { + response = ListFileSystemsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListFileSystemsResponse); ok { @@ -746,6 +814,9 @@ func (client FileStorageClient) ListMountTargets(ctx context.Context, request Li } ociResponse, err = common.Retry(ctx, request, client.listMountTargets, policy) if err != nil { + if ociResponse != nil { + response = ListMountTargetsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListMountTargetsResponse); ok { @@ -785,6 +856,9 @@ func (client FileStorageClient) ListSnapshots(ctx context.Context, request ListS } ociResponse, err = common.Retry(ctx, request, client.listSnapshots, policy) if err != nil { + if ociResponse != nil { + response = ListSnapshotsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListSnapshotsResponse); ok { @@ -815,6 +889,48 @@ func (client FileStorageClient) listSnapshots(ctx context.Context, request commo return response, err } +// UpdateExport Updates the specified export's information. +func (client FileStorageClient) UpdateExport(ctx context.Context, request UpdateExportRequest) (response UpdateExportResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.updateExport, policy) + if err != nil { + if ociResponse != nil { + response = UpdateExportResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(UpdateExportResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateExportResponse") + } + return +} + +// updateExport implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) updateExport(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPut, "/exports/{exportId}") + if err != nil { + return nil, err + } + + var response UpdateExportResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // UpdateExportSet Updates the specified export set's information. func (client FileStorageClient) UpdateExportSet(ctx context.Context, request UpdateExportSetRequest) (response UpdateExportSetResponse, err error) { var ociResponse common.OCIResponse @@ -824,6 +940,9 @@ func (client FileStorageClient) UpdateExportSet(ctx context.Context, request Upd } ociResponse, err = common.Retry(ctx, request, client.updateExportSet, policy) if err != nil { + if ociResponse != nil { + response = UpdateExportSetResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateExportSetResponse); ok { @@ -864,6 +983,9 @@ func (client FileStorageClient) UpdateFileSystem(ctx context.Context, request Up } ociResponse, err = common.Retry(ctx, request, client.updateFileSystem, policy) if err != nil { + if ociResponse != nil { + response = UpdateFileSystemResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateFileSystemResponse); ok { @@ -903,6 +1025,9 @@ func (client FileStorageClient) UpdateMountTarget(ctx context.Context, request U } ociResponse, err = common.Retry(ctx, request, client.updateMountTarget, policy) if err != nil { + if ociResponse != nil { + response = UpdateMountTargetResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateMountTargetResponse); ok { diff --git a/vendor/github.com/oracle/oci-go-sdk/filestorage/update_export_details.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/update_export_details.go new file mode 100644 index 000000000..df036983c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/update_export_details.go @@ -0,0 +1,26 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// File Storage Service API +// +// The API for the File Storage Service. +// + +package filestorage + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// UpdateExportDetails The representation of UpdateExportDetails +type UpdateExportDetails struct { + + // New export options for the export. + // **Setting to the empty array will make the export invisible to all clients.** + // Leaving unset will leave the `exportOptions` unchanged. + ExportOptions []ClientOptions `mandatory:"false" json:"exportOptions"` +} + +func (m UpdateExportDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/filestorage/update_export_request_response.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/update_export_request_response.go new file mode 100644 index 000000000..0892e2ddf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/update_export_request_response.go @@ -0,0 +1,75 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// UpdateExportRequest wrapper for the UpdateExport operation +type UpdateExportRequest struct { + + // The OCID of the export. + ExportId *string `mandatory:"true" contributesTo:"path" name:"exportId"` + + // Details object for updating an export. + UpdateExportDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateExportRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateExportRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateExportRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// UpdateExportResponse wrapper for the UpdateExport operation +type UpdateExportResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Export instance + Export `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateExportResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateExportResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/filestorage/update_export_set_details.go b/vendor/github.com/oracle/oci-go-sdk/filestorage/update_export_set_details.go index ceb3c7447..d21b10542 100644 --- a/vendor/github.com/oracle/oci-go-sdk/filestorage/update_export_set_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/filestorage/update_export_set_details.go @@ -29,7 +29,7 @@ type UpdateExportSetDetails struct { // `maxFsStatBytes` minus the metered size of the file // system. If the metered size is larger than `maxFsStatBytes`, // then `fbytes` and `abytes` will both be '0'. - MaxFsStatBytes *int `mandatory:"false" json:"maxFsStatBytes"` + MaxFsStatBytes *int64 `mandatory:"false" json:"maxFsStatBytes"` // Controls the maximum `ffiles`, `ffiles`, and `afiles` // values reported by `NFS FSSTAT` calls through any associated @@ -40,7 +40,7 @@ type UpdateExportSetDetails struct { // `maxFsStatFiles` minus the metered size of the file // system. If the metered size is larger than `maxFsStatFiles`, // then `ffiles` and `afiles` will both be '0'. - MaxFsStatFiles *int `mandatory:"false" json:"maxFsStatFiles"` + MaxFsStatFiles *int64 `mandatory:"false" json:"maxFsStatFiles"` } func (m UpdateExportSetDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/api_key.go b/vendor/github.com/oracle/oci-go-sdk/identity/api_key.go index d5b9eed1d..91de1fb10 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/api_key.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/api_key.go @@ -43,7 +43,7 @@ type ApiKey struct { LifecycleState ApiKeyLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` } func (m ApiKey) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/auth_token.go b/vendor/github.com/oracle/oci-go-sdk/identity/auth_token.go index 25237aefa..3e2d676cf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/auth_token.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/auth_token.go @@ -48,7 +48,7 @@ type AuthToken struct { LifecycleState AuthTokenLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` } func (m AuthToken) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/availability_domain.go b/vendor/github.com/oracle/oci-go-sdk/identity/availability_domain.go index 7d5d03b95..50316e7a6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/availability_domain.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/availability_domain.go @@ -20,6 +20,9 @@ type AvailabilityDomain struct { // The name of the Availability Domain. Name *string `mandatory:"false" json:"name"` + // The OCID of the Availability Domain. + Id *string `mandatory:"false" json:"id"` + // The OCID of the tenancy. CompartmentId *string `mandatory:"false" json:"compartmentId"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/compartment.go b/vendor/github.com/oracle/oci-go-sdk/identity/compartment.go index 84e432f10..64dbf0b36 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/compartment.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/compartment.go @@ -50,7 +50,7 @@ type Compartment struct { LifecycleState CompartmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_identity_provider_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_identity_provider_details.go index 3b8d84bc8..0e501b020 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/create_identity_provider_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_identity_provider_details.go @@ -80,6 +80,11 @@ func (m *createidentityproviderdetails) UnmarshalJSON(data []byte) error { // UnmarshalPolymorphicJSON unmarshals polymorphic json func (m *createidentityproviderdetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + var err error switch m.Protocol { case "SAML2": @@ -87,7 +92,7 @@ func (m *createidentityproviderdetails) UnmarshalPolymorphicJSON(data []byte) (i err = json.Unmarshal(data, &mm) return mm, err default: - return m, nil + return *m, nil } } diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/create_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/create_policy_details.go index 187890608..256ba4aa0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/create_policy_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/create_policy_details.go @@ -33,7 +33,7 @@ type CreatePolicyDetails struct { // The version of the policy. If null or set to an empty string, when a request comes in for authorization, the // policy will be evaluated according to the current behavior of the services at that moment. If set to a particular // date (YYYY-MM-DD), the policy will be evaluated according to the behavior of the services on that date. - VersionDate *common.SDKTime `mandatory:"false" json:"versionDate"` + VersionDate *common.SDKDate `mandatory:"false" json:"versionDate"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/customer_secret_key.go b/vendor/github.com/oracle/oci-go-sdk/identity/customer_secret_key.go index f3137bf6e..1142a4551 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/customer_secret_key.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/customer_secret_key.go @@ -45,7 +45,7 @@ type CustomerSecretKey struct { LifecycleState CustomerSecretKeyLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` } func (m CustomerSecretKey) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/customer_secret_key_summary.go b/vendor/github.com/oracle/oci-go-sdk/identity/customer_secret_key_summary.go index bc59eed42..12acd6b44 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/customer_secret_key_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/customer_secret_key_summary.go @@ -39,7 +39,7 @@ type CustomerSecretKeySummary struct { LifecycleState CustomerSecretKeySummaryLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` } func (m CustomerSecretKeySummary) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/dynamic_group.go b/vendor/github.com/oracle/oci-go-sdk/identity/dynamic_group.go index 386edcaa8..a8e9a417e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/dynamic_group.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/dynamic_group.go @@ -48,7 +48,7 @@ type DynamicGroup struct { LifecycleState DynamicGroupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` } func (m DynamicGroup) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/fault_domain.go b/vendor/github.com/oracle/oci-go-sdk/identity/fault_domain.go new file mode 100644 index 000000000..4182a8cdf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/fault_domain.go @@ -0,0 +1,35 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, and policies. +// + +package identity + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// FaultDomain A Fault Domain is a logical grouping of hardware and infrastructure within an Availability Domain that can become +// unavailable in its entirety either due to hardware failure such as Top-of-rack (TOR) switch failure or due to +// planned software maintenance such as security updates that reboot your instances. +type FaultDomain struct { + + // The name of the Fault Domain. + Name *string `mandatory:"false" json:"name"` + + // The OCID of the Fault Domain. + Id *string `mandatory:"false" json:"id"` + + // The OCID of the compartment. Currently only tenancy (root) compartment can be provided. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The name of the availabilityDomain where the Fault Domain belongs. + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` +} + +func (m FaultDomain) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/group.go b/vendor/github.com/oracle/oci-go-sdk/identity/group.go index 75c91ace9..be1510b11 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/group.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/group.go @@ -47,7 +47,7 @@ type Group struct { LifecycleState GroupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/identity_client.go b/vendor/github.com/oracle/oci-go-sdk/identity/identity_client.go index f019155e0..e1c0ae981 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/identity_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/identity_client.go @@ -67,8 +67,16 @@ func (client IdentityClient) AddUserToGroup(ctx context.Context, request AddUser if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.addUserToGroup, policy) if err != nil { + if ociResponse != nil { + response = AddUserToGroupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(AddUserToGroupResponse); ok { @@ -113,8 +121,16 @@ func (client IdentityClient) CreateAuthToken(ctx context.Context, request Create if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createAuthToken, policy) if err != nil { + if ociResponse != nil { + response = CreateAuthTokenResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateAuthTokenResponse); ok { @@ -165,8 +181,16 @@ func (client IdentityClient) CreateCompartment(ctx context.Context, request Crea if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createCompartment, policy) if err != nil { + if ociResponse != nil { + response = CreateCompartmentResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateCompartmentResponse); ok { @@ -212,8 +236,16 @@ func (client IdentityClient) CreateCustomerSecretKey(ctx context.Context, reques if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createCustomerSecretKey, policy) if err != nil { + if ociResponse != nil { + response = CreateCustomerSecretKeyResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateCustomerSecretKeyResponse); ok { @@ -264,8 +296,16 @@ func (client IdentityClient) CreateDynamicGroup(ctx context.Context, request Cre if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createDynamicGroup, policy) if err != nil { + if ociResponse != nil { + response = CreateDynamicGroupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateDynamicGroupResponse); ok { @@ -318,8 +358,16 @@ func (client IdentityClient) CreateGroup(ctx context.Context, request CreateGrou if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createGroup, policy) if err != nil { + if ociResponse != nil { + response = CreateGroupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateGroupResponse); ok { @@ -370,8 +418,16 @@ func (client IdentityClient) CreateIdentityProvider(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createIdentityProvider, policy) if err != nil { + if ociResponse != nil { + response = CreateIdentityProviderResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateIdentityProviderResponse); ok { @@ -410,8 +466,16 @@ func (client IdentityClient) CreateIdpGroupMapping(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createIdpGroupMapping, policy) if err != nil { + if ociResponse != nil { + response = CreateIdpGroupMappingResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateIdpGroupMappingResponse); ok { @@ -457,8 +521,16 @@ func (client IdentityClient) CreateOrResetUIPassword(ctx context.Context, reques if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createOrResetUIPassword, policy) if err != nil { + if ociResponse != nil { + response = CreateOrResetUIPasswordResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateOrResetUIPasswordResponse); ok { @@ -507,8 +579,16 @@ func (client IdentityClient) CreatePolicy(ctx context.Context, request CreatePol if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createPolicy, policy) if err != nil { + if ociResponse != nil { + response = CreatePolicyResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreatePolicyResponse); ok { @@ -546,8 +626,16 @@ func (client IdentityClient) CreateRegionSubscription(ctx context.Context, reque if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createRegionSubscription, policy) if err != nil { + if ociResponse != nil { + response = CreateRegionSubscriptionResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateRegionSubscriptionResponse); ok { @@ -588,8 +676,16 @@ func (client IdentityClient) CreateSmtpCredential(ctx context.Context, request C if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createSmtpCredential, policy) if err != nil { + if ociResponse != nil { + response = CreateSmtpCredentialResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateSmtpCredentialResponse); ok { @@ -635,8 +731,16 @@ func (client IdentityClient) CreateSwiftPassword(ctx context.Context, request Cr if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createSwiftPassword, policy) if err != nil { + if ociResponse != nil { + response = CreateSwiftPasswordResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateSwiftPasswordResponse); ok { @@ -682,8 +786,16 @@ func (client IdentityClient) CreateTag(ctx context.Context, request CreateTagReq if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createTag, policy) if err != nil { + if ociResponse != nil { + response = CreateTagResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateTagResponse); ok { @@ -733,8 +845,16 @@ func (client IdentityClient) CreateTagNamespace(ctx context.Context, request Cre if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createTagNamespace, policy) if err != nil { + if ociResponse != nil { + response = CreateTagNamespaceResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateTagNamespaceResponse); ok { @@ -800,8 +920,16 @@ func (client IdentityClient) CreateUser(ctx context.Context, request CreateUserR if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createUser, policy) if err != nil { + if ociResponse != nil { + response = CreateUserResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateUserResponse); ok { @@ -845,6 +973,9 @@ func (client IdentityClient) DeleteApiKey(ctx context.Context, request DeleteApi } ociResponse, err = common.Retry(ctx, request, client.deleteApiKey, policy) if err != nil { + if ociResponse != nil { + response = DeleteApiKeyResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteApiKeyResponse); ok { @@ -884,6 +1015,9 @@ func (client IdentityClient) DeleteAuthToken(ctx context.Context, request Delete } ociResponse, err = common.Retry(ctx, request, client.deleteAuthToken, policy) if err != nil { + if ociResponse != nil { + response = DeleteAuthTokenResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteAuthTokenResponse); ok { @@ -923,6 +1057,9 @@ func (client IdentityClient) DeleteCustomerSecretKey(ctx context.Context, reques } ociResponse, err = common.Retry(ctx, request, client.deleteCustomerSecretKey, policy) if err != nil { + if ociResponse != nil { + response = DeleteCustomerSecretKeyResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteCustomerSecretKeyResponse); ok { @@ -962,6 +1099,9 @@ func (client IdentityClient) DeleteDynamicGroup(ctx context.Context, request Del } ociResponse, err = common.Retry(ctx, request, client.deleteDynamicGroup, policy) if err != nil { + if ociResponse != nil { + response = DeleteDynamicGroupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteDynamicGroupResponse); ok { @@ -1001,6 +1141,9 @@ func (client IdentityClient) DeleteGroup(ctx context.Context, request DeleteGrou } ociResponse, err = common.Retry(ctx, request, client.deleteGroup, policy) if err != nil { + if ociResponse != nil { + response = DeleteGroupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteGroupResponse); ok { @@ -1041,6 +1184,9 @@ func (client IdentityClient) DeleteIdentityProvider(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.deleteIdentityProvider, policy) if err != nil { + if ociResponse != nil { + response = DeleteIdentityProviderResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteIdentityProviderResponse); ok { @@ -1080,6 +1226,9 @@ func (client IdentityClient) DeleteIdpGroupMapping(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.deleteIdpGroupMapping, policy) if err != nil { + if ociResponse != nil { + response = DeleteIdpGroupMappingResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteIdpGroupMappingResponse); ok { @@ -1119,6 +1268,9 @@ func (client IdentityClient) DeletePolicy(ctx context.Context, request DeletePol } ociResponse, err = common.Retry(ctx, request, client.deletePolicy, policy) if err != nil { + if ociResponse != nil { + response = DeletePolicyResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeletePolicyResponse); ok { @@ -1158,6 +1310,9 @@ func (client IdentityClient) DeleteSmtpCredential(ctx context.Context, request D } ociResponse, err = common.Retry(ctx, request, client.deleteSmtpCredential, policy) if err != nil { + if ociResponse != nil { + response = DeleteSmtpCredentialResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteSmtpCredentialResponse); ok { @@ -1198,6 +1353,9 @@ func (client IdentityClient) DeleteSwiftPassword(ctx context.Context, request De } ociResponse, err = common.Retry(ctx, request, client.deleteSwiftPassword, policy) if err != nil { + if ociResponse != nil { + response = DeleteSwiftPasswordResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteSwiftPasswordResponse); ok { @@ -1237,6 +1395,9 @@ func (client IdentityClient) DeleteUser(ctx context.Context, request DeleteUserR } ociResponse, err = common.Retry(ctx, request, client.deleteUser, policy) if err != nil { + if ociResponse != nil { + response = DeleteUserResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteUserResponse); ok { @@ -1282,6 +1443,9 @@ func (client IdentityClient) GetCompartment(ctx context.Context, request GetComp } ociResponse, err = common.Retry(ctx, request, client.getCompartment, policy) if err != nil { + if ociResponse != nil { + response = GetCompartmentResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetCompartmentResponse); ok { @@ -1321,6 +1485,9 @@ func (client IdentityClient) GetDynamicGroup(ctx context.Context, request GetDyn } ociResponse, err = common.Retry(ctx, request, client.getDynamicGroup, policy) if err != nil { + if ociResponse != nil { + response = GetDynamicGroupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetDynamicGroupResponse); ok { @@ -1363,6 +1530,9 @@ func (client IdentityClient) GetGroup(ctx context.Context, request GetGroupReque } ociResponse, err = common.Retry(ctx, request, client.getGroup, policy) if err != nil { + if ociResponse != nil { + response = GetGroupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetGroupResponse); ok { @@ -1402,6 +1572,9 @@ func (client IdentityClient) GetIdentityProvider(ctx context.Context, request Ge } ociResponse, err = common.Retry(ctx, request, client.getIdentityProvider, policy) if err != nil { + if ociResponse != nil { + response = GetIdentityProviderResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetIdentityProviderResponse); ok { @@ -1441,6 +1614,9 @@ func (client IdentityClient) GetIdpGroupMapping(ctx context.Context, request Get } ociResponse, err = common.Retry(ctx, request, client.getIdpGroupMapping, policy) if err != nil { + if ociResponse != nil { + response = GetIdpGroupMappingResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetIdpGroupMappingResponse); ok { @@ -1480,6 +1656,9 @@ func (client IdentityClient) GetPolicy(ctx context.Context, request GetPolicyReq } ociResponse, err = common.Retry(ctx, request, client.getPolicy, policy) if err != nil { + if ociResponse != nil { + response = GetPolicyResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetPolicyResponse); ok { @@ -1519,6 +1698,9 @@ func (client IdentityClient) GetTag(ctx context.Context, request GetTagRequest) } ociResponse, err = common.Retry(ctx, request, client.getTag, policy) if err != nil { + if ociResponse != nil { + response = GetTagResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetTagResponse); ok { @@ -1558,6 +1740,9 @@ func (client IdentityClient) GetTagNamespace(ctx context.Context, request GetTag } ociResponse, err = common.Retry(ctx, request, client.getTagNamespace, policy) if err != nil { + if ociResponse != nil { + response = GetTagNamespaceResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetTagNamespaceResponse); ok { @@ -1597,6 +1782,9 @@ func (client IdentityClient) GetTenancy(ctx context.Context, request GetTenancyR } ociResponse, err = common.Retry(ctx, request, client.getTenancy, policy) if err != nil { + if ociResponse != nil { + response = GetTenancyResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetTenancyResponse); ok { @@ -1636,6 +1824,9 @@ func (client IdentityClient) GetUser(ctx context.Context, request GetUserRequest } ociResponse, err = common.Retry(ctx, request, client.getUser, policy) if err != nil { + if ociResponse != nil { + response = GetUserResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetUserResponse); ok { @@ -1675,6 +1866,9 @@ func (client IdentityClient) GetUserGroupMembership(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.getUserGroupMembership, policy) if err != nil { + if ociResponse != nil { + response = GetUserGroupMembershipResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetUserGroupMembershipResponse); ok { @@ -1716,6 +1910,9 @@ func (client IdentityClient) ListApiKeys(ctx context.Context, request ListApiKey } ociResponse, err = common.Retry(ctx, request, client.listApiKeys, policy) if err != nil { + if ociResponse != nil { + response = ListApiKeysResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListApiKeysResponse); ok { @@ -1756,6 +1953,9 @@ func (client IdentityClient) ListAuthTokens(ctx context.Context, request ListAut } ociResponse, err = common.Retry(ctx, request, client.listAuthTokens, policy) if err != nil { + if ociResponse != nil { + response = ListAuthTokensResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListAuthTokensResponse); ok { @@ -1786,9 +1986,11 @@ func (client IdentityClient) listAuthTokens(ctx context.Context, request common. return response, err } -// ListAvailabilityDomains Lists the Availability Domains in your tenancy. Specify the OCID of either the tenancy or another +// ListAvailabilityDomains Lists the availability domains in your tenancy. Specify the OCID of either the tenancy or another // of your compartments as the value for the compartment ID (remember that the tenancy is simply the root compartment). // See Where to Get the Tenancy's OCID and User's OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm#five). +// Note that the order of the results returned can change if availability domains are added or removed; therefore, do not +// create a dependency on the list order. func (client IdentityClient) ListAvailabilityDomains(ctx context.Context, request ListAvailabilityDomainsRequest) (response ListAvailabilityDomainsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1797,6 +1999,9 @@ func (client IdentityClient) ListAvailabilityDomains(ctx context.Context, reques } ociResponse, err = common.Retry(ctx, request, client.listAvailabilityDomains, policy) if err != nil { + if ociResponse != nil { + response = ListAvailabilityDomainsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListAvailabilityDomainsResponse); ok { @@ -1838,6 +2043,9 @@ func (client IdentityClient) ListCompartments(ctx context.Context, request ListC } ociResponse, err = common.Retry(ctx, request, client.listCompartments, policy) if err != nil { + if ociResponse != nil { + response = ListCompartmentsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListCompartmentsResponse); ok { @@ -1878,6 +2086,9 @@ func (client IdentityClient) ListCustomerSecretKeys(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.listCustomerSecretKeys, policy) if err != nil { + if ociResponse != nil { + response = ListCustomerSecretKeysResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListCustomerSecretKeysResponse); ok { @@ -1919,6 +2130,9 @@ func (client IdentityClient) ListDynamicGroups(ctx context.Context, request List } ociResponse, err = common.Retry(ctx, request, client.listDynamicGroups, policy) if err != nil { + if ociResponse != nil { + response = ListDynamicGroupsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListDynamicGroupsResponse); ok { @@ -1949,6 +2163,50 @@ func (client IdentityClient) listDynamicGroups(ctx context.Context, request comm return response, err } +// ListFaultDomains Lists the Fault Domains in your tenancy. Specify the OCID of either the tenancy or another +// of your compartments as the value for the compartment ID (remember that the tenancy is simply the root compartment). +// See Where to Get the Tenancy's OCID and User's OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm#five). +func (client IdentityClient) ListFaultDomains(ctx context.Context, request ListFaultDomainsRequest) (response ListFaultDomainsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listFaultDomains, policy) + if err != nil { + if ociResponse != nil { + response = ListFaultDomainsResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(ListFaultDomainsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListFaultDomainsResponse") + } + return +} + +// listFaultDomains implements the OCIOperation interface (enables retrying operations) +func (client IdentityClient) listFaultDomains(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/faultDomains/") + if err != nil { + return nil, err + } + + var response ListFaultDomainsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ListGroups Lists the groups in your tenancy. You must specify your tenancy's OCID as the value for // the compartment ID (remember that the tenancy is simply the root compartment). // See Where to Get the Tenancy's OCID and User's OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm#five). @@ -1960,6 +2218,9 @@ func (client IdentityClient) ListGroups(ctx context.Context, request ListGroupsR } ociResponse, err = common.Retry(ctx, request, client.listGroups, policy) if err != nil { + if ociResponse != nil { + response = ListGroupsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListGroupsResponse); ok { @@ -2018,6 +2279,9 @@ func (client IdentityClient) ListIdentityProviders(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.listIdentityProviders, policy) if err != nil { + if ociResponse != nil { + response = ListIdentityProvidersResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListIdentityProvidersResponse); ok { @@ -2057,6 +2321,9 @@ func (client IdentityClient) ListIdpGroupMappings(ctx context.Context, request L } ociResponse, err = common.Retry(ctx, request, client.listIdpGroupMappings, policy) if err != nil { + if ociResponse != nil { + response = ListIdpGroupMappingsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListIdpGroupMappingsResponse); ok { @@ -2099,6 +2366,9 @@ func (client IdentityClient) ListPolicies(ctx context.Context, request ListPolic } ociResponse, err = common.Retry(ctx, request, client.listPolicies, policy) if err != nil { + if ociResponse != nil { + response = ListPoliciesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListPoliciesResponse); ok { @@ -2138,6 +2408,9 @@ func (client IdentityClient) ListRegionSubscriptions(ctx context.Context, reques } ociResponse, err = common.Retry(ctx, request, client.listRegionSubscriptions, policy) if err != nil { + if ociResponse != nil { + response = ListRegionSubscriptionsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListRegionSubscriptionsResponse); ok { @@ -2173,6 +2446,9 @@ func (client IdentityClient) ListRegions(ctx context.Context) (response ListRegi var ociResponse common.OCIResponse ociResponse, err = client.listRegions(ctx) if err != nil { + if ociResponse != nil { + response = ListRegionsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListRegionsResponse); ok { @@ -2211,6 +2487,9 @@ func (client IdentityClient) ListSmtpCredentials(ctx context.Context, request Li } ociResponse, err = common.Retry(ctx, request, client.listSmtpCredentials, policy) if err != nil { + if ociResponse != nil { + response = ListSmtpCredentialsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListSmtpCredentialsResponse); ok { @@ -2252,6 +2531,9 @@ func (client IdentityClient) ListSwiftPasswords(ctx context.Context, request Lis } ociResponse, err = common.Retry(ctx, request, client.listSwiftPasswords, policy) if err != nil { + if ociResponse != nil { + response = ListSwiftPasswordsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListSwiftPasswordsResponse); ok { @@ -2291,6 +2573,9 @@ func (client IdentityClient) ListTagNamespaces(ctx context.Context, request List } ociResponse, err = common.Retry(ctx, request, client.listTagNamespaces, policy) if err != nil { + if ociResponse != nil { + response = ListTagNamespacesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListTagNamespacesResponse); ok { @@ -2330,6 +2615,9 @@ func (client IdentityClient) ListTags(ctx context.Context, request ListTagsReque } ociResponse, err = common.Retry(ctx, request, client.listTags, policy) if err != nil { + if ociResponse != nil { + response = ListTagsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListTagsResponse); ok { @@ -2377,6 +2665,9 @@ func (client IdentityClient) ListUserGroupMemberships(ctx context.Context, reque } ociResponse, err = common.Retry(ctx, request, client.listUserGroupMemberships, policy) if err != nil { + if ociResponse != nil { + response = ListUserGroupMembershipsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListUserGroupMembershipsResponse); ok { @@ -2418,6 +2709,9 @@ func (client IdentityClient) ListUsers(ctx context.Context, request ListUsersReq } ociResponse, err = common.Retry(ctx, request, client.listUsers, policy) if err != nil { + if ociResponse != nil { + response = ListUsersResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListUsersResponse); ok { @@ -2457,6 +2751,9 @@ func (client IdentityClient) RemoveUserFromGroup(ctx context.Context, request Re } ociResponse, err = common.Retry(ctx, request, client.removeUserFromGroup, policy) if err != nil { + if ociResponse != nil { + response = RemoveUserFromGroupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(RemoveUserFromGroupResponse); ok { @@ -2496,6 +2793,9 @@ func (client IdentityClient) UpdateAuthToken(ctx context.Context, request Update } ociResponse, err = common.Retry(ctx, request, client.updateAuthToken, policy) if err != nil { + if ociResponse != nil { + response = UpdateAuthTokenResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateAuthTokenResponse); ok { @@ -2535,6 +2835,9 @@ func (client IdentityClient) UpdateCompartment(ctx context.Context, request Upda } ociResponse, err = common.Retry(ctx, request, client.updateCompartment, policy) if err != nil { + if ociResponse != nil { + response = UpdateCompartmentResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateCompartmentResponse); ok { @@ -2574,6 +2877,9 @@ func (client IdentityClient) UpdateCustomerSecretKey(ctx context.Context, reques } ociResponse, err = common.Retry(ctx, request, client.updateCustomerSecretKey, policy) if err != nil { + if ociResponse != nil { + response = UpdateCustomerSecretKeyResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateCustomerSecretKeyResponse); ok { @@ -2613,6 +2919,9 @@ func (client IdentityClient) UpdateDynamicGroup(ctx context.Context, request Upd } ociResponse, err = common.Retry(ctx, request, client.updateDynamicGroup, policy) if err != nil { + if ociResponse != nil { + response = UpdateDynamicGroupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateDynamicGroupResponse); ok { @@ -2652,6 +2961,9 @@ func (client IdentityClient) UpdateGroup(ctx context.Context, request UpdateGrou } ociResponse, err = common.Retry(ctx, request, client.updateGroup, policy) if err != nil { + if ociResponse != nil { + response = UpdateGroupResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateGroupResponse); ok { @@ -2691,6 +3003,9 @@ func (client IdentityClient) UpdateIdentityProvider(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.updateIdentityProvider, policy) if err != nil { + if ociResponse != nil { + response = UpdateIdentityProviderResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateIdentityProviderResponse); ok { @@ -2730,6 +3045,9 @@ func (client IdentityClient) UpdateIdpGroupMapping(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.updateIdpGroupMapping, policy) if err != nil { + if ociResponse != nil { + response = UpdateIdpGroupMappingResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateIdpGroupMappingResponse); ok { @@ -2770,6 +3088,9 @@ func (client IdentityClient) UpdatePolicy(ctx context.Context, request UpdatePol } ociResponse, err = common.Retry(ctx, request, client.updatePolicy, policy) if err != nil { + if ociResponse != nil { + response = UpdatePolicyResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdatePolicyResponse); ok { @@ -2809,6 +3130,9 @@ func (client IdentityClient) UpdateSmtpCredential(ctx context.Context, request U } ociResponse, err = common.Retry(ctx, request, client.updateSmtpCredential, policy) if err != nil { + if ociResponse != nil { + response = UpdateSmtpCredentialResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateSmtpCredentialResponse); ok { @@ -2849,6 +3173,9 @@ func (client IdentityClient) UpdateSwiftPassword(ctx context.Context, request Up } ociResponse, err = common.Retry(ctx, request, client.updateSwiftPassword, policy) if err != nil { + if ociResponse != nil { + response = UpdateSwiftPasswordResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateSwiftPasswordResponse); ok { @@ -2888,6 +3215,9 @@ func (client IdentityClient) UpdateTag(ctx context.Context, request UpdateTagReq } ociResponse, err = common.Retry(ctx, request, client.updateTag, policy) if err != nil { + if ociResponse != nil { + response = UpdateTagResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateTagResponse); ok { @@ -2933,6 +3263,9 @@ func (client IdentityClient) UpdateTagNamespace(ctx context.Context, request Upd } ociResponse, err = common.Retry(ctx, request, client.updateTagNamespace, policy) if err != nil { + if ociResponse != nil { + response = UpdateTagNamespaceResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateTagNamespaceResponse); ok { @@ -2972,6 +3305,9 @@ func (client IdentityClient) UpdateUser(ctx context.Context, request UpdateUserR } ociResponse, err = common.Retry(ctx, request, client.updateUser, policy) if err != nil { + if ociResponse != nil { + response = UpdateUserResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateUserResponse); ok { @@ -3011,6 +3347,9 @@ func (client IdentityClient) UpdateUserState(ctx context.Context, request Update } ociResponse, err = common.Retry(ctx, request, client.updateUserState, policy) if err != nil { + if ociResponse != nil { + response = UpdateUserStateResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateUserStateResponse); ok { @@ -3059,8 +3398,16 @@ func (client IdentityClient) UploadApiKey(ctx context.Context, request UploadApi if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.uploadApiKey, policy) if err != nil { + if ociResponse != nil { + response = UploadApiKeyResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UploadApiKeyResponse); ok { diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/identity_provider.go b/vendor/github.com/oracle/oci-go-sdk/identity/identity_provider.go index 6b3f9c572..f5def3b95 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/identity_provider.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/identity_provider.go @@ -58,7 +58,7 @@ type IdentityProvider interface { GetLifecycleState() IdentityProviderLifecycleStateEnum // The detailed status of INACTIVE lifecycleState. - GetInactiveStatus() *int + GetInactiveStatus() *int64 // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). @@ -80,7 +80,7 @@ type identityprovider struct { ProductType *string `mandatory:"true" json:"productType"` TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` LifecycleState IdentityProviderLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` Protocol string `json:"protocol"` @@ -114,6 +114,11 @@ func (m *identityprovider) UnmarshalJSON(data []byte) error { // UnmarshalPolymorphicJSON unmarshals polymorphic json func (m *identityprovider) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + var err error switch m.Protocol { case "SAML2": @@ -121,7 +126,7 @@ func (m *identityprovider) UnmarshalPolymorphicJSON(data []byte) (interface{}, e err = json.Unmarshal(data, &mm) return mm, err default: - return m, nil + return *m, nil } } @@ -161,7 +166,7 @@ func (m identityprovider) GetLifecycleState() IdentityProviderLifecycleStateEnum } //GetInactiveStatus returns InactiveStatus -func (m identityprovider) GetInactiveStatus() *int { +func (m identityprovider) GetInactiveStatus() *int64 { return m.InactiveStatus } diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/idp_group_mapping.go b/vendor/github.com/oracle/oci-go-sdk/identity/idp_group_mapping.go index cf9c0100b..10db141d0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/idp_group_mapping.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/idp_group_mapping.go @@ -47,7 +47,7 @@ type IdpGroupMapping struct { LifecycleState IdpGroupMappingLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` } func (m IdpGroupMapping) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/list_fault_domains_request_response.go b/vendor/github.com/oracle/oci-go-sdk/identity/list_fault_domains_request_response.go new file mode 100644 index 000000000..d8c895bb5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/identity/list_fault_domains_request_response.go @@ -0,0 +1,64 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package identity + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// ListFaultDomainsRequest wrapper for the ListFaultDomains operation +type ListFaultDomainsRequest struct { + + // The OCID of the compartment (remember that the tenancy is simply the root compartment). + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The name of the availibilityDomain. + AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListFaultDomainsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListFaultDomainsRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListFaultDomainsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ListFaultDomainsResponse wrapper for the ListFaultDomains operation +type ListFaultDomainsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The []FaultDomain instance + Items []FaultDomain `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListFaultDomainsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListFaultDomainsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/policy.go b/vendor/github.com/oracle/oci-go-sdk/identity/policy.go index be04461b5..cfd32f14c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/policy.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/policy.go @@ -49,12 +49,12 @@ type Policy struct { LifecycleState PolicyLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` // The version of the policy. If null or set to an empty string, when a request comes in for authorization, the // policy will be evaluated according to the current behavior of the services at that moment. If set to a particular // date (YYYY-MM-DD), the policy will be evaluated according to the behavior of the services on that date. - VersionDate *common.SDKTime `mandatory:"false" json:"versionDate"` + VersionDate *common.SDKDate `mandatory:"false" json:"versionDate"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/saml2_identity_provider.go b/vendor/github.com/oracle/oci-go-sdk/identity/saml2_identity_provider.go index 265b07748..ccec806bd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/saml2_identity_provider.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/saml2_identity_provider.go @@ -61,7 +61,7 @@ type Saml2IdentityProvider struct { RedirectUrl *string `mandatory:"true" json:"redirectUrl"` // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). @@ -114,7 +114,7 @@ func (m Saml2IdentityProvider) GetLifecycleState() IdentityProviderLifecycleStat } //GetInactiveStatus returns InactiveStatus -func (m Saml2IdentityProvider) GetInactiveStatus() *int { +func (m Saml2IdentityProvider) GetInactiveStatus() *int64 { return m.InactiveStatus } diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/smtp_credential.go b/vendor/github.com/oracle/oci-go-sdk/identity/smtp_credential.go index e2b8bda13..e19e8e254 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/smtp_credential.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/smtp_credential.go @@ -49,7 +49,7 @@ type SmtpCredential struct { LifecycleState SmtpCredentialLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` } func (m SmtpCredential) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/smtp_credential_summary.go b/vendor/github.com/oracle/oci-go-sdk/identity/smtp_credential_summary.go index 5ad398c8b..d23b8e72f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/smtp_credential_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/smtp_credential_summary.go @@ -43,7 +43,7 @@ type SmtpCredentialSummary struct { LifecycleState SmtpCredentialSummaryLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` } func (m SmtpCredentialSummary) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/swift_password.go b/vendor/github.com/oracle/oci-go-sdk/identity/swift_password.go index 92bab6995..c40ba75ab 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/swift_password.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/swift_password.go @@ -47,7 +47,7 @@ type SwiftPassword struct { LifecycleState SwiftPasswordLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` } func (m SwiftPassword) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/ui_password.go b/vendor/github.com/oracle/oci-go-sdk/identity/ui_password.go index d0ff89997..a4bd9b8f0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/ui_password.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/ui_password.go @@ -32,7 +32,7 @@ type UiPassword struct { LifecycleState UiPasswordLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` } func (m UiPassword) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/update_identity_provider_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/update_identity_provider_details.go index 175591cdf..21c12dc32 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/update_identity_provider_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/update_identity_provider_details.go @@ -60,6 +60,11 @@ func (m *updateidentityproviderdetails) UnmarshalJSON(data []byte) error { // UnmarshalPolymorphicJSON unmarshals polymorphic json func (m *updateidentityproviderdetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + var err error switch m.Protocol { case "SAML2": @@ -67,7 +72,7 @@ func (m *updateidentityproviderdetails) UnmarshalPolymorphicJSON(data []byte) (i err = json.Unmarshal(data, &mm) return mm, err default: - return m, nil + return *m, nil } } diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/update_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/identity/update_policy_details.go index 264f4aef7..d17398d4d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/update_policy_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/update_policy_details.go @@ -26,7 +26,7 @@ type UpdatePolicyDetails struct { // The version of the policy. If null or set to an empty string, when a request comes in for authorization, the // policy will be evaluated according to the current behavior of the services at that moment. If set to a particular // date (YYYY-MM-DD), the policy will be evaluated according to the behavior of the services on that date. - VersionDate *common.SDKTime `mandatory:"false" json:"versionDate"` + VersionDate *common.SDKDate `mandatory:"false" json:"versionDate"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/user.go b/vendor/github.com/oracle/oci-go-sdk/identity/user.go index af4c328a2..b7c1d2851 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/user.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/user.go @@ -55,7 +55,7 @@ type User struct { // - bit 0: SUSPENDED (reserved for future use) // - bit 1: DISABLED (reserved for future use) // - bit 2: BLOCKED (the user has exceeded the maximum number of failed login attempts for the Console) - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). diff --git a/vendor/github.com/oracle/oci-go-sdk/identity/user_group_membership.go b/vendor/github.com/oracle/oci-go-sdk/identity/user_group_membership.go index f2b1a3aee..11a006028 100644 --- a/vendor/github.com/oracle/oci-go-sdk/identity/user_group_membership.go +++ b/vendor/github.com/oracle/oci-go-sdk/identity/user_group_membership.go @@ -37,7 +37,7 @@ type UserGroupMembership struct { LifecycleState UserGroupMembershipLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int `mandatory:"false" json:"inactiveStatus"` + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` } func (m UserGroupMembership) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/cancel_vault_deletion_request_response.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/cancel_vault_deletion_request_response.go new file mode 100644 index 000000000..6196f1592 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/cancel_vault_deletion_request_response.go @@ -0,0 +1,80 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// CancelVaultDeletionRequest wrapper for the CancelVaultDeletion operation +type CancelVaultDeletionRequest struct { + + // The OCID of the vault. + VaultId *string `mandatory:"true" contributesTo:"path" name:"vaultId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a + // resource, set the `if-match` parameter to the value of the etag from a + // previous GET or POST response for that resource. The resource will be + // updated or deleted only if the etag you provide matches the resource's + // current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. If provided, the returned request ID + // will include this value. Otherwise, a random request ID will be + // generated by the service. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case + // of a timeout or server error without risk of executing that same action + // again. Retry tokens expire after 24 hours, but can be invalidated + // before then due to conflicting operations (e.g., if a resource has been + // deleted and purged from the system, then a retry of the original + // creation request may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CancelVaultDeletionRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CancelVaultDeletionRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CancelVaultDeletionRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// CancelVaultDeletionResponse wrapper for the CancelVaultDeletion operation +type CancelVaultDeletionResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Vault instance + Vault `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CancelVaultDeletionResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CancelVaultDeletionResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/create_key_details.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/create_key_details.go new file mode 100644 index 000000000..efb6b01bb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/create_key_details.go @@ -0,0 +1,30 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Key Management Service API +// +// API for managing and performing operations with keys and vaults. +// + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// CreateKeyDetails The representation of CreateKeyDetails +type CreateKeyDetails struct { + + // The OCID of the compartment that contains this key. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name for the key. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + KeyShape *KeyShape `mandatory:"true" json:"keyShape"` +} + +func (m CreateKeyDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/create_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/create_key_request_response.go new file mode 100644 index 000000000..451b19ff1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/create_key_request_response.go @@ -0,0 +1,73 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// CreateKeyRequest wrapper for the CreateKey operation +type CreateKeyRequest struct { + + // CreateKeyDetails + CreateKeyDetails `contributesTo:"body"` + + // Unique identifier for the request. If provided, the returned request ID + // will include this value. Otherwise, a random request ID will be + // generated by the service. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case + // of a timeout or server error without risk of executing that same action + // again. Retry tokens expire after 24 hours, but can be invalidated + // before then due to conflicting operations (e.g., if a resource has been + // deleted and purged from the system, then a retry of the original + // creation request may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateKeyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateKeyRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateKeyRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// CreateKeyResponse wrapper for the CreateKey operation +type CreateKeyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Key instance + Key `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateKeyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateKeyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/create_key_version_request_response.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/create_key_version_request_response.go new file mode 100644 index 000000000..39e14b19c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/create_key_version_request_response.go @@ -0,0 +1,73 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// CreateKeyVersionRequest wrapper for the CreateKeyVersion operation +type CreateKeyVersionRequest struct { + + // The OCID of the key. + KeyId *string `mandatory:"true" contributesTo:"path" name:"keyId"` + + // Unique identifier for the request. If provided, the returned request ID + // will include this value. Otherwise, a random request ID will be + // generated by the service. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case + // of a timeout or server error without risk of executing that same action + // again. Retry tokens expire after 24 hours, but can be invalidated + // before then due to conflicting operations (e.g., if a resource has been + // deleted and purged from the system, then a retry of the original + // creation request may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateKeyVersionRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateKeyVersionRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateKeyVersionRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// CreateKeyVersionResponse wrapper for the CreateKeyVersion operation +type CreateKeyVersionResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The KeyVersion instance + KeyVersion `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateKeyVersionResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateKeyVersionResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/create_vault_details.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/create_vault_details.go new file mode 100644 index 000000000..50fe87a24 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/create_vault_details.go @@ -0,0 +1,52 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Key Management Service API +// +// API for managing and performing operations with keys and vaults. +// + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// CreateVaultDetails The representation of CreateVaultDetails +type CreateVaultDetails struct { + + // The OCID of the compartment where you want to create this vault. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name for the vault. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The type of vault to create. Each type of vault stores the key with different degrees of isolation and has different options and pricing. + VaultType CreateVaultDetailsVaultTypeEnum `mandatory:"true" json:"vaultType"` +} + +func (m CreateVaultDetails) String() string { + return common.PointerString(m) +} + +// CreateVaultDetailsVaultTypeEnum Enum with underlying type: string +type CreateVaultDetailsVaultTypeEnum string + +// Set of constants representing the allowable values for CreateVaultDetailsVaultType +const ( + CreateVaultDetailsVaultTypePrivate CreateVaultDetailsVaultTypeEnum = "VIRTUAL_PRIVATE" +) + +var mappingCreateVaultDetailsVaultType = map[string]CreateVaultDetailsVaultTypeEnum{ + "VIRTUAL_PRIVATE": CreateVaultDetailsVaultTypePrivate, +} + +// GetCreateVaultDetailsVaultTypeEnumValues Enumerates the set of values for CreateVaultDetailsVaultType +func GetCreateVaultDetailsVaultTypeEnumValues() []CreateVaultDetailsVaultTypeEnum { + values := make([]CreateVaultDetailsVaultTypeEnum, 0) + for _, v := range mappingCreateVaultDetailsVaultType { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/create_vault_request_response.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/create_vault_request_response.go new file mode 100644 index 000000000..1fca787f0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/create_vault_request_response.go @@ -0,0 +1,73 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// CreateVaultRequest wrapper for the CreateVault operation +type CreateVaultRequest struct { + + // CreateVaultDetails + CreateVaultDetails `contributesTo:"body"` + + // Unique identifier for the request. If provided, the returned request ID + // will include this value. Otherwise, a random request ID will be + // generated by the service. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case + // of a timeout or server error without risk of executing that same action + // again. Retry tokens expire after 24 hours, but can be invalidated + // before then due to conflicting operations (e.g., if a resource has been + // deleted and purged from the system, then a retry of the original + // creation request may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateVaultRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateVaultRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateVaultRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// CreateVaultResponse wrapper for the CreateVault operation +type CreateVaultResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Vault instance + Vault `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateVaultResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateVaultResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/decrypt_data_details.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/decrypt_data_details.go new file mode 100644 index 000000000..9af7a20a9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/decrypt_data_details.go @@ -0,0 +1,32 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Key Management Service API +// +// API for managing and performing operations with keys and vaults. +// + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// DecryptDataDetails The representation of DecryptDataDetails +type DecryptDataDetails struct { + + // The encrypted data to decrypt. + Ciphertext *string `mandatory:"true" json:"ciphertext"` + + // The OCID of the key used to encrypt the ciphertext. + KeyId *string `mandatory:"true" json:"keyId"` + + // Information that can be used to provide an encryption context for the + // encrypted data. The length of the string representation of the associatedData + // must be fewer than 4096 characters. + AssociatedData map[string]string `mandatory:"false" json:"associatedData"` +} + +func (m DecryptDataDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/decrypt_request_response.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/decrypt_request_response.go new file mode 100644 index 000000000..cb650320e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/decrypt_request_response.go @@ -0,0 +1,62 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// DecryptRequest wrapper for the Decrypt operation +type DecryptRequest struct { + + // DecryptDataDetails + DecryptDataDetails `contributesTo:"body"` + + // Unique identifier for the request. If provided, the returned request ID + // will include this value. Otherwise, a random request ID will be + // generated by the service. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DecryptRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DecryptRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DecryptRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// DecryptResponse wrapper for the Decrypt operation +type DecryptResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The DecryptedData instance + DecryptedData `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DecryptResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DecryptResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/decrypted_data.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/decrypted_data.go new file mode 100644 index 000000000..1a1764c67 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/decrypted_data.go @@ -0,0 +1,27 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Key Management Service API +// +// API for managing and performing operations with keys and vaults. +// + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// DecryptedData The representation of DecryptedData +type DecryptedData struct { + + // The decrypted data, in the form of a base64-encoded value. + Plaintext *string `mandatory:"true" json:"plaintext"` + + // Checksum of the decrypted data. + PlaintextChecksum *string `mandatory:"true" json:"plaintextChecksum"` +} + +func (m DecryptedData) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/disable_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/disable_key_request_response.go new file mode 100644 index 000000000..1a8e2860c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/disable_key_request_response.go @@ -0,0 +1,80 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// DisableKeyRequest wrapper for the DisableKey operation +type DisableKeyRequest struct { + + // The OCID of the key. + KeyId *string `mandatory:"true" contributesTo:"path" name:"keyId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a + // resource, set the `if-match` parameter to the value of the etag from a + // previous GET or POST response for that resource. The resource will be + // updated or deleted only if the etag you provide matches the resource's + // current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. If provided, the returned request ID + // will include this value. Otherwise, a random request ID will be + // generated by the service. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case + // of a timeout or server error without risk of executing that same action + // again. Retry tokens expire after 24 hours, but can be invalidated + // before then due to conflicting operations (e.g., if a resource has been + // deleted and purged from the system, then a retry of the original + // creation request may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DisableKeyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DisableKeyRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DisableKeyRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// DisableKeyResponse wrapper for the DisableKey operation +type DisableKeyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Key instance + Key `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DisableKeyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DisableKeyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/enable_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/enable_key_request_response.go new file mode 100644 index 000000000..bdaf90b74 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/enable_key_request_response.go @@ -0,0 +1,80 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// EnableKeyRequest wrapper for the EnableKey operation +type EnableKeyRequest struct { + + // The OCID of the key. + KeyId *string `mandatory:"true" contributesTo:"path" name:"keyId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a + // resource, set the `if-match` parameter to the value of the etag from a + // previous GET or POST response for that resource. The resource will be + // updated or deleted only if the etag you provide matches the resource's + // current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. If provided, the returned request ID + // will include this value. Otherwise, a random request ID will be + // generated by the service. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case + // of a timeout or server error without risk of executing that same action + // again. Retry tokens expire after 24 hours, but can be invalidated + // before then due to conflicting operations (e.g., if a resource has been + // deleted and purged from the system, then a retry of the original + // creation request may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request EnableKeyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request EnableKeyRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request EnableKeyRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// EnableKeyResponse wrapper for the EnableKey operation +type EnableKeyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Key instance + Key `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response EnableKeyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response EnableKeyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/encrypt_data_details.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/encrypt_data_details.go new file mode 100644 index 000000000..ba3a78860 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/encrypt_data_details.go @@ -0,0 +1,32 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Key Management Service API +// +// API for managing and performing operations with keys and vaults. +// + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// EncryptDataDetails The representation of EncryptDataDetails +type EncryptDataDetails struct { + + // The OCID of the key to encrypt with. + KeyId *string `mandatory:"true" json:"keyId"` + + // The plaintext data to encrypt. + Plaintext *string `mandatory:"true" json:"plaintext"` + + // Information that can be used to provide an encryption context for the + // encrypted data. The length of the string representation of the associatedData + // must be fewer than 4096 characters. + AssociatedData map[string]string `mandatory:"false" json:"associatedData"` +} + +func (m EncryptDataDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/encrypt_request_response.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/encrypt_request_response.go new file mode 100644 index 000000000..84643f250 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/encrypt_request_response.go @@ -0,0 +1,62 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// EncryptRequest wrapper for the Encrypt operation +type EncryptRequest struct { + + // EncryptDataDetails + EncryptDataDetails `contributesTo:"body"` + + // Unique identifier for the request. If provided, the returned request ID + // will include this value. Otherwise, a random request ID will be + // generated by the service. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request EncryptRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request EncryptRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request EncryptRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// EncryptResponse wrapper for the Encrypt operation +type EncryptResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The EncryptedData instance + EncryptedData `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response EncryptResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response EncryptResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/encrypted_data.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/encrypted_data.go new file mode 100644 index 000000000..5d787ebdf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/encrypted_data.go @@ -0,0 +1,24 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Key Management Service API +// +// API for managing and performing operations with keys and vaults. +// + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// EncryptedData The representation of EncryptedData +type EncryptedData struct { + + // The encrypted data. + Ciphertext *string `mandatory:"true" json:"ciphertext"` +} + +func (m EncryptedData) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/generate_data_encryption_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/generate_data_encryption_key_request_response.go new file mode 100644 index 000000000..68c389e88 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/generate_data_encryption_key_request_response.go @@ -0,0 +1,62 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// GenerateDataEncryptionKeyRequest wrapper for the GenerateDataEncryptionKey operation +type GenerateDataEncryptionKeyRequest struct { + + // GenerateKeyDetails + GenerateKeyDetails `contributesTo:"body"` + + // Unique identifier for the request. If provided, the returned request ID + // will include this value. Otherwise, a random request ID will be + // generated by the service. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GenerateDataEncryptionKeyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GenerateDataEncryptionKeyRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GenerateDataEncryptionKeyRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// GenerateDataEncryptionKeyResponse wrapper for the GenerateDataEncryptionKey operation +type GenerateDataEncryptionKeyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The GeneratedKey instance + GeneratedKey `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GenerateDataEncryptionKeyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GenerateDataEncryptionKeyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/generate_key_details.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/generate_key_details.go new file mode 100644 index 000000000..43ab07e4e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/generate_key_details.go @@ -0,0 +1,34 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Key Management Service API +// +// API for managing and performing operations with keys and vaults. +// + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// GenerateKeyDetails The representation of GenerateKeyDetails +type GenerateKeyDetails struct { + + // If true, the generated key is also returned unencrypted. + IncludePlaintextKey *bool `mandatory:"true" json:"includePlaintextKey"` + + // The OCID of the master encryption key to encrypt the generated data encryption key with. + KeyId *string `mandatory:"true" json:"keyId"` + + KeyShape *KeyShape `mandatory:"true" json:"keyShape"` + + // Information that can be used to provide an encryption context for the + // encrypted data. The length of the string representation of the associatedData + // must be fewer than 4096 characters. + AssociatedData map[string]string `mandatory:"false" json:"associatedData"` +} + +func (m GenerateKeyDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/generated_key.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/generated_key.go new file mode 100644 index 000000000..93adbed63 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/generated_key.go @@ -0,0 +1,35 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Key Management Service API +// +// API for managing and performing operations with keys and vaults. +// + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// GeneratedKey The representation of GeneratedKey +type GeneratedKey struct { + + // The encrypted generated data encryption key. + Ciphertext *string `mandatory:"true" json:"ciphertext"` + + // The plaintext generated data encryption key, a base64-encoded + // sequence of random bytes, which is included if the + // GenerateDataEncryptionKey request includes the "includePlaintextKey" + // parameter and sets its value to 'true'. + Plaintext *string `mandatory:"false" json:"plaintext"` + + // The checksum of the plaintext generated data encryption key, which + // is included if the GenerateDataEncryptionKey request includes the + // "includePlaintextKey parameter and sets its value to 'true'. + PlaintextChecksum *string `mandatory:"false" json:"plaintextChecksum"` +} + +func (m GeneratedKey) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/get_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/get_key_request_response.go new file mode 100644 index 000000000..2d8dde19c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/get_key_request_response.go @@ -0,0 +1,65 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// GetKeyRequest wrapper for the GetKey operation +type GetKeyRequest struct { + + // The OCID of the key. + KeyId *string `mandatory:"true" contributesTo:"path" name:"keyId"` + + // Unique identifier for the request. If provided, the returned request ID + // will include this value. Otherwise, a random request ID will be + // generated by the service. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetKeyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetKeyRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetKeyRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// GetKeyResponse wrapper for the GetKey operation +type GetKeyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Key instance + Key `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetKeyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetKeyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/get_key_version_request_response.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/get_key_version_request_response.go new file mode 100644 index 000000000..d11696865 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/get_key_version_request_response.go @@ -0,0 +1,68 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// GetKeyVersionRequest wrapper for the GetKeyVersion operation +type GetKeyVersionRequest struct { + + // The OCID of the key. + KeyId *string `mandatory:"true" contributesTo:"path" name:"keyId"` + + // The OCID of the key version. + KeyVersionId *string `mandatory:"true" contributesTo:"path" name:"keyVersionId"` + + // Unique identifier for the request. If provided, the returned request ID + // will include this value. Otherwise, a random request ID will be + // generated by the service. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetKeyVersionRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetKeyVersionRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetKeyVersionRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// GetKeyVersionResponse wrapper for the GetKeyVersion operation +type GetKeyVersionResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The KeyVersion instance + KeyVersion `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetKeyVersionResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetKeyVersionResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/get_vault_request_response.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/get_vault_request_response.go new file mode 100644 index 000000000..3a80686c3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/get_vault_request_response.go @@ -0,0 +1,65 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// GetVaultRequest wrapper for the GetVault operation +type GetVaultRequest struct { + + // The OCID of the vault. + VaultId *string `mandatory:"true" contributesTo:"path" name:"vaultId"` + + // Unique identifier for the request. If provided, the returned request ID + // will include this value. Otherwise, a random request ID will be + // generated by the service. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetVaultRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetVaultRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetVaultRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// GetVaultResponse wrapper for the GetVault operation +type GetVaultResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Vault instance + Vault `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetVaultResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetVaultResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/key.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/key.go new file mode 100644 index 000000000..565a9eacd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/key.go @@ -0,0 +1,97 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Key Management Service API +// +// API for managing and performing operations with keys and vaults. +// + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// Key The representation of Key +type Key struct { + + // The OCID of the compartment that contains this key. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the KeyVersion resource used in cryptographic operations. During key rotation, service may be in transitional state + // where this or a newer KeyVersion are used intermittently, and currentKeyVersion field is updated once service is guaranteed to + // use new KeyVersion for all consequent encrypt operations. + CurrentKeyVersion *string `mandatory:"true" json:"currentKeyVersion"` + + // A user-friendly name for the key. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID of the key. + Id *string `mandatory:"true" json:"id"` + + KeyShape *KeyShape `mandatory:"true" json:"keyShape"` + + // The key's current state. + // Example: `ENABLED` + LifecycleState KeyLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the key was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // Example: `2018-04-03T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID of the vault that contains this key. + VaultId *string `mandatory:"true" json:"vaultId"` + + // Usage of predefined tag keys. These predefined keys are scoped to namespaces. + // Example: `{"foo-namespace": {"bar-key": "foo-value"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Simple key-value pair that is applied without any predefined name, type, or scope. + // Exists for cross-compatibility only. + // Example: `{"bar-key": "value"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m Key) String() string { + return common.PointerString(m) +} + +// KeyLifecycleStateEnum Enum with underlying type: string +type KeyLifecycleStateEnum string + +// Set of constants representing the allowable values for KeyLifecycleState +const ( + KeyLifecycleStateCreating KeyLifecycleStateEnum = "CREATING" + KeyLifecycleStateEnabling KeyLifecycleStateEnum = "ENABLING" + KeyLifecycleStateEnabled KeyLifecycleStateEnum = "ENABLED" + KeyLifecycleStateDisabling KeyLifecycleStateEnum = "DISABLING" + KeyLifecycleStateDisabled KeyLifecycleStateEnum = "DISABLED" + KeyLifecycleStateDeleting KeyLifecycleStateEnum = "DELETING" + KeyLifecycleStateDeleted KeyLifecycleStateEnum = "DELETED" + KeyLifecycleStatePendingDeletion KeyLifecycleStateEnum = "PENDING_DELETION" + KeyLifecycleStateSchedulingDeletion KeyLifecycleStateEnum = "SCHEDULING_DELETION" + KeyLifecycleStateCancellingDeletion KeyLifecycleStateEnum = "CANCELLING_DELETION" +) + +var mappingKeyLifecycleState = map[string]KeyLifecycleStateEnum{ + "CREATING": KeyLifecycleStateCreating, + "ENABLING": KeyLifecycleStateEnabling, + "ENABLED": KeyLifecycleStateEnabled, + "DISABLING": KeyLifecycleStateDisabling, + "DISABLED": KeyLifecycleStateDisabled, + "DELETING": KeyLifecycleStateDeleting, + "DELETED": KeyLifecycleStateDeleted, + "PENDING_DELETION": KeyLifecycleStatePendingDeletion, + "SCHEDULING_DELETION": KeyLifecycleStateSchedulingDeletion, + "CANCELLING_DELETION": KeyLifecycleStateCancellingDeletion, +} + +// GetKeyLifecycleStateEnumValues Enumerates the set of values for KeyLifecycleState +func GetKeyLifecycleStateEnumValues() []KeyLifecycleStateEnum { + values := make([]KeyLifecycleStateEnum, 0) + for _, v := range mappingKeyLifecycleState { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/key_shape.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/key_shape.go new file mode 100644 index 000000000..17184b1f0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/key_shape.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Key Management Service API +// +// API for managing and performing operations with keys and vaults. +// + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// KeyShape The cryptographic properties of a key. +type KeyShape struct { + + // The algorithm used by a key's KeyVersions to encrypt or decrypt. + Algorithm KeyShapeAlgorithmEnum `mandatory:"true" json:"algorithm"` + + // The length of the key, expressed as an integer. Values of 16, 24, or 32 are supported. + Length *int `mandatory:"true" json:"length"` +} + +func (m KeyShape) String() string { + return common.PointerString(m) +} + +// KeyShapeAlgorithmEnum Enum with underlying type: string +type KeyShapeAlgorithmEnum string + +// Set of constants representing the allowable values for KeyShapeAlgorithm +const ( + KeyShapeAlgorithmAes KeyShapeAlgorithmEnum = "AES" +) + +var mappingKeyShapeAlgorithm = map[string]KeyShapeAlgorithmEnum{ + "AES": KeyShapeAlgorithmAes, +} + +// GetKeyShapeAlgorithmEnumValues Enumerates the set of values for KeyShapeAlgorithm +func GetKeyShapeAlgorithmEnumValues() []KeyShapeAlgorithmEnum { + values := make([]KeyShapeAlgorithmEnum, 0) + for _, v := range mappingKeyShapeAlgorithm { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/key_summary.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/key_summary.go new file mode 100644 index 000000000..7aa578b1f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/key_summary.go @@ -0,0 +1,90 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Key Management Service API +// +// API for managing and performing operations with keys and vaults. +// + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// KeySummary The representation of KeySummary +type KeySummary struct { + + // The OCID of the compartment that contains the key. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name for the key. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID of the key. + Id *string `mandatory:"true" json:"id"` + + // The key's current state. + // Example: `ENABLED` + LifecycleState KeySummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the key was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // Example: `2018-04-03T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID of the vault that contains the key. + VaultId *string `mandatory:"true" json:"vaultId"` + + // Usage of predefined tag keys. These predefined keys are scoped to namespaces. + // Example: `{"foo-namespace": {"bar-key": "foo-value"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Simple key-value pair that is applied without any predefined name, type, or scope. + // Exists for cross-compatibility only. + // Example: `{"bar-key": "value"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m KeySummary) String() string { + return common.PointerString(m) +} + +// KeySummaryLifecycleStateEnum Enum with underlying type: string +type KeySummaryLifecycleStateEnum string + +// Set of constants representing the allowable values for KeySummaryLifecycleState +const ( + KeySummaryLifecycleStateCreating KeySummaryLifecycleStateEnum = "CREATING" + KeySummaryLifecycleStateEnabling KeySummaryLifecycleStateEnum = "ENABLING" + KeySummaryLifecycleStateEnabled KeySummaryLifecycleStateEnum = "ENABLED" + KeySummaryLifecycleStateDisabling KeySummaryLifecycleStateEnum = "DISABLING" + KeySummaryLifecycleStateDisabled KeySummaryLifecycleStateEnum = "DISABLED" + KeySummaryLifecycleStateDeleting KeySummaryLifecycleStateEnum = "DELETING" + KeySummaryLifecycleStateDeleted KeySummaryLifecycleStateEnum = "DELETED" + KeySummaryLifecycleStatePendingDeletion KeySummaryLifecycleStateEnum = "PENDING_DELETION" + KeySummaryLifecycleStateSchedulingDeletion KeySummaryLifecycleStateEnum = "SCHEDULING_DELETION" + KeySummaryLifecycleStateCancellingDeletion KeySummaryLifecycleStateEnum = "CANCELLING_DELETION" +) + +var mappingKeySummaryLifecycleState = map[string]KeySummaryLifecycleStateEnum{ + "CREATING": KeySummaryLifecycleStateCreating, + "ENABLING": KeySummaryLifecycleStateEnabling, + "ENABLED": KeySummaryLifecycleStateEnabled, + "DISABLING": KeySummaryLifecycleStateDisabling, + "DISABLED": KeySummaryLifecycleStateDisabled, + "DELETING": KeySummaryLifecycleStateDeleting, + "DELETED": KeySummaryLifecycleStateDeleted, + "PENDING_DELETION": KeySummaryLifecycleStatePendingDeletion, + "SCHEDULING_DELETION": KeySummaryLifecycleStateSchedulingDeletion, + "CANCELLING_DELETION": KeySummaryLifecycleStateCancellingDeletion, +} + +// GetKeySummaryLifecycleStateEnumValues Enumerates the set of values for KeySummaryLifecycleState +func GetKeySummaryLifecycleStateEnumValues() []KeySummaryLifecycleStateEnum { + values := make([]KeySummaryLifecycleStateEnum, 0) + for _, v := range mappingKeySummaryLifecycleState { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/key_version.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/key_version.go new file mode 100644 index 000000000..054562a26 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/key_version.go @@ -0,0 +1,37 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Key Management Service API +// +// API for managing and performing operations with keys and vaults. +// + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// KeyVersion The representation of KeyVersion +type KeyVersion struct { + + // The OCID of the compartment that contains this key version. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the key version. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the key associated with this key version. + KeyId *string `mandatory:"true" json:"keyId"` + + // The date and time this key version was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // Example: `2018-04-03T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID of the vault that contains this key version. + VaultId *string `mandatory:"true" json:"vaultId"` +} + +func (m KeyVersion) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/key_version_summary.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/key_version_summary.go new file mode 100644 index 000000000..061822dee --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/key_version_summary.go @@ -0,0 +1,37 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Key Management Service API +// +// API for managing and performing operations with keys and vaults. +// + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// KeyVersionSummary The representation of KeyVersionSummary +type KeyVersionSummary struct { + + // The OCID of the compartment that contains this key version. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the key version. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the key associated with this key version. + KeyId *string `mandatory:"true" json:"keyId"` + + // The date and time this key version was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // Example: `2018-04-03T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID of the vault that contains this key version. + VaultId *string `mandatory:"true" json:"vaultId"` +} + +func (m KeyVersionSummary) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/keymanagement_kmscrypto_client.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/keymanagement_kmscrypto_client.go new file mode 100644 index 000000000..4c8153a34 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/keymanagement_kmscrypto_client.go @@ -0,0 +1,180 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Key Management Service API +// +// API for managing and performing operations with keys and vaults. +// + +package keymanagement + +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +//KmsCryptoClient a client for KmsCrypto +type KmsCryptoClient struct { + common.BaseClient + config *common.ConfigurationProvider +} + +// NewKmsCryptoClientWithConfigurationProvider Creates a new default KmsCrypto client with the given configuration provider. +// the configuration provider will be used for the default signer +func NewKmsCryptoClientWithConfigurationProvider(configProvider common.ConfigurationProvider, endpoint string) (client KmsCryptoClient, err error) { + baseClient, err := common.NewClientWithConfig(configProvider) + if err != nil { + return + } + + client = KmsCryptoClient{BaseClient: baseClient} + client.BasePath = "20180608" + client.Host = endpoint + err = client.setConfigurationProvider(configProvider) + return +} + +// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid +func (client *KmsCryptoClient) setConfigurationProvider(configProvider common.ConfigurationProvider) error { + if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { + return err + } + + client.config = &configProvider + return nil +} + +// ConfigurationProvider the ConfigurationProvider used in this client, or null if none set +func (client *KmsCryptoClient) ConfigurationProvider() *common.ConfigurationProvider { + return client.config +} + +// Decrypt Decrypts data using the given DecryptDataDetails resource. +func (client KmsCryptoClient) Decrypt(ctx context.Context, request DecryptRequest) (response DecryptResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.decrypt, policy) + if err != nil { + if ociResponse != nil { + response = DecryptResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(DecryptResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DecryptResponse") + } + return +} + +// decrypt implements the OCIOperation interface (enables retrying operations) +func (client KmsCryptoClient) decrypt(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPost, "/decrypt") + if err != nil { + return nil, err + } + + var response DecryptResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// Encrypt Encrypts data using the given EncryptDataDetails resource. +// Plaintext included in the example request is a base64-encoded value +// of a UTF-8 string. +func (client KmsCryptoClient) Encrypt(ctx context.Context, request EncryptRequest) (response EncryptResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.encrypt, policy) + if err != nil { + if ociResponse != nil { + response = EncryptResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(EncryptResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into EncryptResponse") + } + return +} + +// encrypt implements the OCIOperation interface (enables retrying operations) +func (client KmsCryptoClient) encrypt(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPost, "/encrypt") + if err != nil { + return nil, err + } + + var response EncryptResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GenerateDataEncryptionKey Generates a key that you can use to encrypt or decrypt data. +func (client KmsCryptoClient) GenerateDataEncryptionKey(ctx context.Context, request GenerateDataEncryptionKeyRequest) (response GenerateDataEncryptionKeyResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.generateDataEncryptionKey, policy) + if err != nil { + if ociResponse != nil { + response = GenerateDataEncryptionKeyResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(GenerateDataEncryptionKeyResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GenerateDataEncryptionKeyResponse") + } + return +} + +// generateDataEncryptionKey implements the OCIOperation interface (enables retrying operations) +func (client KmsCryptoClient) generateDataEncryptionKey(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPost, "/generateDataEncryptionKey") + if err != nil { + return nil, err + } + + var response GenerateDataEncryptionKeyResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/keymanagement_kmsmanagement_client.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/keymanagement_kmsmanagement_client.go new file mode 100644 index 000000000..e98383ae1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/keymanagement_kmsmanagement_client.go @@ -0,0 +1,455 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Key Management Service API +// +// API for managing and performing operations with keys and vaults. +// + +package keymanagement + +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +//KmsManagementClient a client for KmsManagement +type KmsManagementClient struct { + common.BaseClient + config *common.ConfigurationProvider +} + +// NewKmsManagementClientWithConfigurationProvider Creates a new default KmsManagement client with the given configuration provider. +// the configuration provider will be used for the default signer +func NewKmsManagementClientWithConfigurationProvider(configProvider common.ConfigurationProvider, endpoint string) (client KmsManagementClient, err error) { + baseClient, err := common.NewClientWithConfig(configProvider) + if err != nil { + return + } + + client = KmsManagementClient{BaseClient: baseClient} + client.BasePath = "20180608" + client.Host = endpoint + err = client.setConfigurationProvider(configProvider) + return +} + +// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid +func (client *KmsManagementClient) setConfigurationProvider(configProvider common.ConfigurationProvider) error { + if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { + return err + } + + client.config = &configProvider + return nil +} + +// ConfigurationProvider the ConfigurationProvider used in this client, or null if none set +func (client *KmsManagementClient) ConfigurationProvider() *common.ConfigurationProvider { + return client.config +} + +// CreateKey Creates a new key. +func (client KmsManagementClient) CreateKey(ctx context.Context, request CreateKeyRequest) (response CreateKeyResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createKey, policy) + if err != nil { + if ociResponse != nil { + response = CreateKeyResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(CreateKeyResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateKeyResponse") + } + return +} + +// createKey implements the OCIOperation interface (enables retrying operations) +func (client KmsManagementClient) createKey(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPost, "/keys") + if err != nil { + return nil, err + } + + var response CreateKeyResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateKeyVersion Generates new cryptographic material for a key. Key must be in an `ENABLED` state to be +// rotated. +func (client KmsManagementClient) CreateKeyVersion(ctx context.Context, request CreateKeyVersionRequest) (response CreateKeyVersionResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createKeyVersion, policy) + if err != nil { + if ociResponse != nil { + response = CreateKeyVersionResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(CreateKeyVersionResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateKeyVersionResponse") + } + return +} + +// createKeyVersion implements the OCIOperation interface (enables retrying operations) +func (client KmsManagementClient) createKeyVersion(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPost, "/keys/{keyId}/keyVersions") + if err != nil { + return nil, err + } + + var response CreateKeyVersionResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DisableKey Disables a key to make it unavailable for encryption +// or decryption. +func (client KmsManagementClient) DisableKey(ctx context.Context, request DisableKeyRequest) (response DisableKeyResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.disableKey, policy) + if err != nil { + if ociResponse != nil { + response = DisableKeyResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(DisableKeyResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DisableKeyResponse") + } + return +} + +// disableKey implements the OCIOperation interface (enables retrying operations) +func (client KmsManagementClient) disableKey(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPost, "/keys/{keyId}/actions/disable") + if err != nil { + return nil, err + } + + var response DisableKeyResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// EnableKey Enables a key to make it available for encryption or +// decryption. +func (client KmsManagementClient) EnableKey(ctx context.Context, request EnableKeyRequest) (response EnableKeyResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.enableKey, policy) + if err != nil { + if ociResponse != nil { + response = EnableKeyResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(EnableKeyResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into EnableKeyResponse") + } + return +} + +// enableKey implements the OCIOperation interface (enables retrying operations) +func (client KmsManagementClient) enableKey(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPost, "/keys/{keyId}/actions/enable") + if err != nil { + return nil, err + } + + var response EnableKeyResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetKey Gets information about the specified key. +func (client KmsManagementClient) GetKey(ctx context.Context, request GetKeyRequest) (response GetKeyResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getKey, policy) + if err != nil { + if ociResponse != nil { + response = GetKeyResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(GetKeyResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetKeyResponse") + } + return +} + +// getKey implements the OCIOperation interface (enables retrying operations) +func (client KmsManagementClient) getKey(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/keys/{keyId}") + if err != nil { + return nil, err + } + + var response GetKeyResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetKeyVersion Gets information about the specified key version. +func (client KmsManagementClient) GetKeyVersion(ctx context.Context, request GetKeyVersionRequest) (response GetKeyVersionResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getKeyVersion, policy) + if err != nil { + if ociResponse != nil { + response = GetKeyVersionResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(GetKeyVersionResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetKeyVersionResponse") + } + return +} + +// getKeyVersion implements the OCIOperation interface (enables retrying operations) +func (client KmsManagementClient) getKeyVersion(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/keys/{keyId}/keyVersions/{keyVersionId}") + if err != nil { + return nil, err + } + + var response GetKeyVersionResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListKeyVersions Lists all key versions for the specified key. +func (client KmsManagementClient) ListKeyVersions(ctx context.Context, request ListKeyVersionsRequest) (response ListKeyVersionsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listKeyVersions, policy) + if err != nil { + if ociResponse != nil { + response = ListKeyVersionsResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(ListKeyVersionsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListKeyVersionsResponse") + } + return +} + +// listKeyVersions implements the OCIOperation interface (enables retrying operations) +func (client KmsManagementClient) listKeyVersions(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/keys/{keyId}/keyVersions") + if err != nil { + return nil, err + } + + var response ListKeyVersionsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListKeys Lists the keys in the specified vault and compartment. +func (client KmsManagementClient) ListKeys(ctx context.Context, request ListKeysRequest) (response ListKeysResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listKeys, policy) + if err != nil { + if ociResponse != nil { + response = ListKeysResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(ListKeysResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListKeysResponse") + } + return +} + +// listKeys implements the OCIOperation interface (enables retrying operations) +func (client KmsManagementClient) listKeys(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/keys") + if err != nil { + return nil, err + } + + var response ListKeysResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateKey Updates the properties of a key. Specifically, you can +// only update the `displayName` property. Furthermore, the +// key must in an `ACTIVE` or `CREATING` state. +func (client KmsManagementClient) UpdateKey(ctx context.Context, request UpdateKeyRequest) (response UpdateKeyResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.updateKey, policy) + if err != nil { + if ociResponse != nil { + response = UpdateKeyResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(UpdateKeyResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateKeyResponse") + } + return +} + +// updateKey implements the OCIOperation interface (enables retrying operations) +func (client KmsManagementClient) updateKey(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPut, "/keys/{keyId}") + if err != nil { + return nil, err + } + + var response UpdateKeyResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/keymanagement_kmsvault_client.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/keymanagement_kmsvault_client.go new file mode 100644 index 000000000..b40dbf6db --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/keymanagement_kmsvault_client.go @@ -0,0 +1,334 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Key Management Service API +// +// API for managing and performing operations with keys and vaults. +// + +package keymanagement + +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +//KmsVaultClient a client for KmsVault +type KmsVaultClient struct { + common.BaseClient + config *common.ConfigurationProvider +} + +// NewKmsVaultClientWithConfigurationProvider Creates a new default KmsVault client with the given configuration provider. +// the configuration provider will be used for the default signer as well as reading the region +func NewKmsVaultClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client KmsVaultClient, err error) { + baseClient, err := common.NewClientWithConfig(configProvider) + if err != nil { + return + } + + client = KmsVaultClient{BaseClient: baseClient} + client.BasePath = "20180608" + err = client.setConfigurationProvider(configProvider) + return +} + +// SetRegion overrides the region of this client. +func (client *KmsVaultClient) SetRegion(region string) { + client.Host = fmt.Sprintf(common.DefaultHostURLTemplate, "kms", region) +} + +// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid +func (client *KmsVaultClient) setConfigurationProvider(configProvider common.ConfigurationProvider) error { + if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { + return err + } + + // Error has been checked already + region, _ := configProvider.Region() + client.SetRegion(region) + client.config = &configProvider + return nil +} + +// ConfigurationProvider the ConfigurationProvider used in this client, or null if none set +func (client *KmsVaultClient) ConfigurationProvider() *common.ConfigurationProvider { + return client.config +} + +// CancelVaultDeletion Cancels the scheduled deletion of the specified Vault, which must be in PendingDeletion +// state. The Vault and all Keys in it will be moved back to their previous states before +// the deletion was scheduled. +func (client KmsVaultClient) CancelVaultDeletion(ctx context.Context, request CancelVaultDeletionRequest) (response CancelVaultDeletionResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.cancelVaultDeletion, policy) + if err != nil { + if ociResponse != nil { + response = CancelVaultDeletionResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(CancelVaultDeletionResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CancelVaultDeletionResponse") + } + return +} + +// cancelVaultDeletion implements the OCIOperation interface (enables retrying operations) +func (client KmsVaultClient) cancelVaultDeletion(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPost, "/vaults/{vaultId}/actions/cancelDeletion") + if err != nil { + return nil, err + } + + var response CancelVaultDeletionResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateVault Creates a new vault. The type of vault you create determines key +// placement, pricing, and available options. Options include storage +// isolation, a dedicated service endpoint instead of a shared service +// endpoint for API calls, and a dedicated HSM or a multitenant HSM. +func (client KmsVaultClient) CreateVault(ctx context.Context, request CreateVaultRequest) (response CreateVaultResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createVault, policy) + if err != nil { + if ociResponse != nil { + response = CreateVaultResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(CreateVaultResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateVaultResponse") + } + return +} + +// createVault implements the OCIOperation interface (enables retrying operations) +func (client KmsVaultClient) createVault(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPost, "/vaults") + if err != nil { + return nil, err + } + + var response CreateVaultResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetVault Gets the specified vault's configuration information. +func (client KmsVaultClient) GetVault(ctx context.Context, request GetVaultRequest) (response GetVaultResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getVault, policy) + if err != nil { + if ociResponse != nil { + response = GetVaultResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(GetVaultResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetVaultResponse") + } + return +} + +// getVault implements the OCIOperation interface (enables retrying operations) +func (client KmsVaultClient) getVault(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/vaults/{vaultId}") + if err != nil { + return nil, err + } + + var response GetVaultResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListVaults Lists vaults in the specified compartment. +func (client KmsVaultClient) ListVaults(ctx context.Context, request ListVaultsRequest) (response ListVaultsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listVaults, policy) + if err != nil { + if ociResponse != nil { + response = ListVaultsResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(ListVaultsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListVaultsResponse") + } + return +} + +// listVaults implements the OCIOperation interface (enables retrying operations) +func (client KmsVaultClient) listVaults(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/vaults") + if err != nil { + return nil, err + } + + var response ListVaultsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ScheduleVaultDeletion Schedules the deletion of the specified Vault. The Vault and all Keys in it +// will be moved to PendingDeletion state and deleted after the retention period. +func (client KmsVaultClient) ScheduleVaultDeletion(ctx context.Context, request ScheduleVaultDeletionRequest) (response ScheduleVaultDeletionResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.scheduleVaultDeletion, policy) + if err != nil { + if ociResponse != nil { + response = ScheduleVaultDeletionResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(ScheduleVaultDeletionResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ScheduleVaultDeletionResponse") + } + return +} + +// scheduleVaultDeletion implements the OCIOperation interface (enables retrying operations) +func (client KmsVaultClient) scheduleVaultDeletion(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPost, "/vaults/{vaultId}/actions/scheduleDeletion") + if err != nil { + return nil, err + } + + var response ScheduleVaultDeletionResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateVault Updates the properties of a vault. Specifically, you can +// only update the `displayName` property. Furthermore, the vault +// must be in an `ACTIVE` or `CREATING` state. +func (client KmsVaultClient) UpdateVault(ctx context.Context, request UpdateVaultRequest) (response UpdateVaultResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.updateVault, policy) + if err != nil { + if ociResponse != nil { + response = UpdateVaultResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(UpdateVaultResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateVaultResponse") + } + return +} + +// updateVault implements the OCIOperation interface (enables retrying operations) +func (client KmsVaultClient) updateVault(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPut, "/vaults/{vaultId}") + if err != nil { + return nil, err + } + + var response UpdateVaultResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/list_key_versions_request_response.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/list_key_versions_request_response.go new file mode 100644 index 000000000..672133023 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/list_key_versions_request_response.go @@ -0,0 +1,129 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// ListKeyVersionsRequest wrapper for the ListKeyVersions operation +type ListKeyVersionsRequest struct { + + // The OCID of the key. + KeyId *string `mandatory:"true" contributesTo:"path" name:"keyId"` + + // The maximum number of items to return in a paginated "List" call. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header + // from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Unique identifier for the request. If provided, the returned request ID + // will include this value. Otherwise, a random request ID will be + // generated by the service. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The field to sort by. You can specify only one sort order. The default + // order for TIMECREATED is descending. The default order for DISPLAYNAME + // is ascending. + SortBy ListKeyVersionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). + SortOrder ListKeyVersionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListKeyVersionsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListKeyVersionsRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListKeyVersionsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ListKeyVersionsResponse wrapper for the ListKeyVersions operation +type ListKeyVersionsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []KeyVersionSummary instances + Items []KeyVersionSummary `presentIn:"body"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then there are additional items still to get. Include this value as the `page` parameter for the + // subsequent GET request. For information about pagination, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#List_Pagination). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListKeyVersionsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListKeyVersionsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListKeyVersionsSortByEnum Enum with underlying type: string +type ListKeyVersionsSortByEnum string + +// Set of constants representing the allowable values for ListKeyVersionsSortBy +const ( + ListKeyVersionsSortByTimecreated ListKeyVersionsSortByEnum = "TIMECREATED" + ListKeyVersionsSortByDisplayname ListKeyVersionsSortByEnum = "DISPLAYNAME" +) + +var mappingListKeyVersionsSortBy = map[string]ListKeyVersionsSortByEnum{ + "TIMECREATED": ListKeyVersionsSortByTimecreated, + "DISPLAYNAME": ListKeyVersionsSortByDisplayname, +} + +// GetListKeyVersionsSortByEnumValues Enumerates the set of values for ListKeyVersionsSortBy +func GetListKeyVersionsSortByEnumValues() []ListKeyVersionsSortByEnum { + values := make([]ListKeyVersionsSortByEnum, 0) + for _, v := range mappingListKeyVersionsSortBy { + values = append(values, v) + } + return values +} + +// ListKeyVersionsSortOrderEnum Enum with underlying type: string +type ListKeyVersionsSortOrderEnum string + +// Set of constants representing the allowable values for ListKeyVersionsSortOrder +const ( + ListKeyVersionsSortOrderAsc ListKeyVersionsSortOrderEnum = "ASC" + ListKeyVersionsSortOrderDesc ListKeyVersionsSortOrderEnum = "DESC" +) + +var mappingListKeyVersionsSortOrder = map[string]ListKeyVersionsSortOrderEnum{ + "ASC": ListKeyVersionsSortOrderAsc, + "DESC": ListKeyVersionsSortOrderDesc, +} + +// GetListKeyVersionsSortOrderEnumValues Enumerates the set of values for ListKeyVersionsSortOrder +func GetListKeyVersionsSortOrderEnumValues() []ListKeyVersionsSortOrderEnum { + values := make([]ListKeyVersionsSortOrderEnum, 0) + for _, v := range mappingListKeyVersionsSortOrder { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/list_keys_request_response.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/list_keys_request_response.go new file mode 100644 index 000000000..84dfd4f5c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/list_keys_request_response.go @@ -0,0 +1,129 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// ListKeysRequest wrapper for the ListKeys operation +type ListKeysRequest struct { + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The maximum number of items to return in a paginated "List" call. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header + // from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Unique identifier for the request. If provided, the returned request ID + // will include this value. Otherwise, a random request ID will be + // generated by the service. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The field to sort by. You can specify only one sort order. The default + // order for TIMECREATED is descending. The default order for DISPLAYNAME + // is ascending. + SortBy ListKeysSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). + SortOrder ListKeysSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListKeysRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListKeysRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListKeysRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ListKeysResponse wrapper for the ListKeys operation +type ListKeysResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []KeySummary instances + Items []KeySummary `presentIn:"body"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then there are additional items still to get. Include this value as the `page` parameter for the + // subsequent GET request. For information about pagination, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#List_Pagination). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListKeysResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListKeysResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListKeysSortByEnum Enum with underlying type: string +type ListKeysSortByEnum string + +// Set of constants representing the allowable values for ListKeysSortBy +const ( + ListKeysSortByTimecreated ListKeysSortByEnum = "TIMECREATED" + ListKeysSortByDisplayname ListKeysSortByEnum = "DISPLAYNAME" +) + +var mappingListKeysSortBy = map[string]ListKeysSortByEnum{ + "TIMECREATED": ListKeysSortByTimecreated, + "DISPLAYNAME": ListKeysSortByDisplayname, +} + +// GetListKeysSortByEnumValues Enumerates the set of values for ListKeysSortBy +func GetListKeysSortByEnumValues() []ListKeysSortByEnum { + values := make([]ListKeysSortByEnum, 0) + for _, v := range mappingListKeysSortBy { + values = append(values, v) + } + return values +} + +// ListKeysSortOrderEnum Enum with underlying type: string +type ListKeysSortOrderEnum string + +// Set of constants representing the allowable values for ListKeysSortOrder +const ( + ListKeysSortOrderAsc ListKeysSortOrderEnum = "ASC" + ListKeysSortOrderDesc ListKeysSortOrderEnum = "DESC" +) + +var mappingListKeysSortOrder = map[string]ListKeysSortOrderEnum{ + "ASC": ListKeysSortOrderAsc, + "DESC": ListKeysSortOrderDesc, +} + +// GetListKeysSortOrderEnumValues Enumerates the set of values for ListKeysSortOrder +func GetListKeysSortOrderEnumValues() []ListKeysSortOrderEnum { + values := make([]ListKeysSortOrderEnum, 0) + for _, v := range mappingListKeysSortOrder { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/list_vaults_request_response.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/list_vaults_request_response.go new file mode 100644 index 000000000..f4c787f47 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/list_vaults_request_response.go @@ -0,0 +1,129 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// ListVaultsRequest wrapper for the ListVaults operation +type ListVaultsRequest struct { + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The maximum number of items to return in a paginated "List" call. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header + // from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Unique identifier for the request. If provided, the returned request ID + // will include this value. Otherwise, a random request ID will be + // generated by the service. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The field to sort by. You can specify only one sort order. The default + // order for TIMECREATED is descending. The default order for DISPLAYNAME + // is ascending. + SortBy ListVaultsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). + SortOrder ListVaultsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListVaultsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListVaultsRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListVaultsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ListVaultsResponse wrapper for the ListVaults operation +type ListVaultsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []VaultSummary instances + Items []VaultSummary `presentIn:"body"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then there are additional items still to get. Include this value as the `page` parameter for the + // subsequent GET request. For information about pagination, see + // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#List_Pagination). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListVaultsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListVaultsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListVaultsSortByEnum Enum with underlying type: string +type ListVaultsSortByEnum string + +// Set of constants representing the allowable values for ListVaultsSortBy +const ( + ListVaultsSortByTimecreated ListVaultsSortByEnum = "TIMECREATED" + ListVaultsSortByDisplayname ListVaultsSortByEnum = "DISPLAYNAME" +) + +var mappingListVaultsSortBy = map[string]ListVaultsSortByEnum{ + "TIMECREATED": ListVaultsSortByTimecreated, + "DISPLAYNAME": ListVaultsSortByDisplayname, +} + +// GetListVaultsSortByEnumValues Enumerates the set of values for ListVaultsSortBy +func GetListVaultsSortByEnumValues() []ListVaultsSortByEnum { + values := make([]ListVaultsSortByEnum, 0) + for _, v := range mappingListVaultsSortBy { + values = append(values, v) + } + return values +} + +// ListVaultsSortOrderEnum Enum with underlying type: string +type ListVaultsSortOrderEnum string + +// Set of constants representing the allowable values for ListVaultsSortOrder +const ( + ListVaultsSortOrderAsc ListVaultsSortOrderEnum = "ASC" + ListVaultsSortOrderDesc ListVaultsSortOrderEnum = "DESC" +) + +var mappingListVaultsSortOrder = map[string]ListVaultsSortOrderEnum{ + "ASC": ListVaultsSortOrderAsc, + "DESC": ListVaultsSortOrderDesc, +} + +// GetListVaultsSortOrderEnumValues Enumerates the set of values for ListVaultsSortOrder +func GetListVaultsSortOrderEnumValues() []ListVaultsSortOrderEnum { + values := make([]ListVaultsSortOrderEnum, 0) + for _, v := range mappingListVaultsSortOrder { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/schedule_vault_deletion_details.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/schedule_vault_deletion_details.go new file mode 100644 index 000000000..6076bbfb3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/schedule_vault_deletion_details.go @@ -0,0 +1,26 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Key Management Service API +// +// API for managing and performing operations with keys and vaults. +// + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// ScheduleVaultDeletionDetails Details for scheduling Vault deletion +type ScheduleVaultDeletionDetails struct { + + // An optional property to indicate the deletion time of the Vault. + // The time format should comply with RFC-3339 standards. This time must be between 7 to 30 days from the time + // when the request is received. If the property is missing, it will be set to 30 days from request time by default. + TimeOfDeletion *common.SDKTime `mandatory:"false" json:"timeOfDeletion"` +} + +func (m ScheduleVaultDeletionDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/schedule_vault_deletion_request_response.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/schedule_vault_deletion_request_response.go new file mode 100644 index 000000000..e63be35ff --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/schedule_vault_deletion_request_response.go @@ -0,0 +1,83 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// ScheduleVaultDeletionRequest wrapper for the ScheduleVaultDeletion operation +type ScheduleVaultDeletionRequest struct { + + // The OCID of the vault. + VaultId *string `mandatory:"true" contributesTo:"path" name:"vaultId"` + + // ScheduleVaultDeletionDetails + ScheduleVaultDeletionDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a + // resource, set the `if-match` parameter to the value of the etag from a + // previous GET or POST response for that resource. The resource will be + // updated or deleted only if the etag you provide matches the resource's + // current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. If provided, the returned request ID + // will include this value. Otherwise, a random request ID will be + // generated by the service. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case + // of a timeout or server error without risk of executing that same action + // again. Retry tokens expire after 24 hours, but can be invalidated + // before then due to conflicting operations (e.g., if a resource has been + // deleted and purged from the system, then a retry of the original + // creation request may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ScheduleVaultDeletionRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ScheduleVaultDeletionRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ScheduleVaultDeletionRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ScheduleVaultDeletionResponse wrapper for the ScheduleVaultDeletion operation +type ScheduleVaultDeletionResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Vault instance + Vault `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ScheduleVaultDeletionResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ScheduleVaultDeletionResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/update_key_details.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/update_key_details.go new file mode 100644 index 000000000..1e9ffcea0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/update_key_details.go @@ -0,0 +1,25 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Key Management Service API +// +// API for managing and performing operations with keys and vaults. +// + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// UpdateKeyDetails The representation of UpdateKeyDetails +type UpdateKeyDetails struct { + + // A user-friendly name for the key. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` +} + +func (m UpdateKeyDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/update_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/update_key_request_response.go new file mode 100644 index 000000000..1caedad78 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/update_key_request_response.go @@ -0,0 +1,75 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// UpdateKeyRequest wrapper for the UpdateKey operation +type UpdateKeyRequest struct { + + // The OCID of the key. + KeyId *string `mandatory:"true" contributesTo:"path" name:"keyId"` + + // UpdateKeyDetails + UpdateKeyDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a + // resource, set the `if-match` parameter to the value of the etag from a + // previous GET or POST response for that resource. The resource will be + // updated or deleted only if the etag you provide matches the resource's + // current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. If provided, the returned request ID + // will include this value. Otherwise, a random request ID will be + // generated by the service. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateKeyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateKeyRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateKeyRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// UpdateKeyResponse wrapper for the UpdateKey operation +type UpdateKeyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Key instance + Key `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateKeyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateKeyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/update_vault_details.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/update_vault_details.go new file mode 100644 index 000000000..642f721f7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/update_vault_details.go @@ -0,0 +1,25 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Key Management Service API +// +// API for managing and performing operations with keys and vaults. +// + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// UpdateVaultDetails The representation of UpdateVaultDetails +type UpdateVaultDetails struct { + + // A user-friendly name for the vault. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` +} + +func (m UpdateVaultDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/update_vault_request_response.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/update_vault_request_response.go new file mode 100644 index 000000000..d5c21f814 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/update_vault_request_response.go @@ -0,0 +1,75 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// UpdateVaultRequest wrapper for the UpdateVault operation +type UpdateVaultRequest struct { + + // The OCID of the vault. + VaultId *string `mandatory:"true" contributesTo:"path" name:"vaultId"` + + // UpdateVaultDetails + UpdateVaultDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a + // resource, set the `if-match` parameter to the value of the etag from a + // previous GET or POST response for that resource. The resource will be + // updated or deleted only if the etag you provide matches the resource's + // current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. If provided, the returned request ID + // will include this value. Otherwise, a random request ID will be + // generated by the service. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateVaultRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateVaultRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateVaultRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// UpdateVaultResponse wrapper for the UpdateVault operation +type UpdateVaultResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Vault instance + Vault `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateVaultResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateVaultResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/vault.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/vault.go new file mode 100644 index 000000000..2eb9bf629 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/vault.go @@ -0,0 +1,115 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Key Management Service API +// +// API for managing and performing operations with keys and vaults. +// + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// Vault The representation of Vault +type Vault struct { + + // The OCID of the compartment that contains this vault. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The service endpoint to perform cryptographic operations against. Cryptographic operations include 'Encrypt,' 'Decrypt,' and 'GenerateDataEncryptionKey' operations. + CryptoEndpoint *string `mandatory:"true" json:"cryptoEndpoint"` + + // A user-friendly name for the vault. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID of the vault. + Id *string `mandatory:"true" json:"id"` + + // The vault's current state. + // Example: `DELETED` + LifecycleState VaultLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The service endpoint to perform management operations against. Management operations include 'Create,' 'Update,' 'List,' 'Get,' and 'Delete' operations. + ManagementEndpoint *string `mandatory:"true" json:"managementEndpoint"` + + // The date and time this vault was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // Example: `2018-04-03T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The type of vault. Each type of vault stores the key with different degrees of isolation and has different options and pricing. + VaultType VaultVaultTypeEnum `mandatory:"true" json:"vaultType"` + + // Usage of predefined tag keys. These predefined keys are scoped to namespaces. + // Example: `{"foo-namespace": {"bar-key": "foo-value"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Simple key-value pair that is applied without any predefined name, type, or scope. + // Exists for cross-compatibility only. + // Example: `{"bar-key": "value"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // An optional property for the deletion time of the Vault expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // Example: `2018-04-03T21:10:29.600Z` + TimeOfDeletion *common.SDKTime `mandatory:"false" json:"timeOfDeletion"` +} + +func (m Vault) String() string { + return common.PointerString(m) +} + +// VaultLifecycleStateEnum Enum with underlying type: string +type VaultLifecycleStateEnum string + +// Set of constants representing the allowable values for VaultLifecycleState +const ( + VaultLifecycleStateCreating VaultLifecycleStateEnum = "CREATING" + VaultLifecycleStateActive VaultLifecycleStateEnum = "ACTIVE" + VaultLifecycleStateDeleting VaultLifecycleStateEnum = "DELETING" + VaultLifecycleStateDeleted VaultLifecycleStateEnum = "DELETED" + VaultLifecycleStatePendingDeletion VaultLifecycleStateEnum = "PENDING_DELETION" + VaultLifecycleStateSchedulingDeletion VaultLifecycleStateEnum = "SCHEDULING_DELETION" + VaultLifecycleStateCancellingDeletion VaultLifecycleStateEnum = "CANCELLING_DELETION" +) + +var mappingVaultLifecycleState = map[string]VaultLifecycleStateEnum{ + "CREATING": VaultLifecycleStateCreating, + "ACTIVE": VaultLifecycleStateActive, + "DELETING": VaultLifecycleStateDeleting, + "DELETED": VaultLifecycleStateDeleted, + "PENDING_DELETION": VaultLifecycleStatePendingDeletion, + "SCHEDULING_DELETION": VaultLifecycleStateSchedulingDeletion, + "CANCELLING_DELETION": VaultLifecycleStateCancellingDeletion, +} + +// GetVaultLifecycleStateEnumValues Enumerates the set of values for VaultLifecycleState +func GetVaultLifecycleStateEnumValues() []VaultLifecycleStateEnum { + values := make([]VaultLifecycleStateEnum, 0) + for _, v := range mappingVaultLifecycleState { + values = append(values, v) + } + return values +} + +// VaultVaultTypeEnum Enum with underlying type: string +type VaultVaultTypeEnum string + +// Set of constants representing the allowable values for VaultVaultType +const ( + VaultVaultTypePrivate VaultVaultTypeEnum = "VIRTUAL_PRIVATE" +) + +var mappingVaultVaultType = map[string]VaultVaultTypeEnum{ + "VIRTUAL_PRIVATE": VaultVaultTypePrivate, +} + +// GetVaultVaultTypeEnumValues Enumerates the set of values for VaultVaultType +func GetVaultVaultTypeEnumValues() []VaultVaultTypeEnum { + values := make([]VaultVaultTypeEnum, 0) + for _, v := range mappingVaultVaultType { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/keymanagement/vault_summary.go b/vendor/github.com/oracle/oci-go-sdk/keymanagement/vault_summary.go new file mode 100644 index 000000000..bd23d1428 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/keymanagement/vault_summary.go @@ -0,0 +1,111 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Key Management Service API +// +// API for managing and performing operations with keys and vaults. +// + +package keymanagement + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// VaultSummary The representation of VaultSummary +type VaultSummary struct { + + // The OCID of the compartment that contains this vault. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The service endpoint to perform cryptographic operations against. Cryptographic operations include 'Encrypt,' 'Decrypt,' and 'GenerateDataEncryptionKey' operations. + CryptoEndpoint *string `mandatory:"true" json:"cryptoEndpoint"` + + // A user-friendly name for a vault. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID of a vault. + Id *string `mandatory:"true" json:"id"` + + // A vault's current state. + // Example: `ACTIVE` + LifecycleState VaultSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The service endpoint to perform management operations against. Management operations include 'Create,' 'Update,' 'List,' 'Get,' and 'Delete' operations. + ManagementEndpoint *string `mandatory:"true" json:"managementEndpoint"` + + // The date and time a vault was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // Example: `2018-04-03T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The type of vault. Each type of vault stores keys with different degrees of isolation and has different options and pricing. + VaultType VaultSummaryVaultTypeEnum `mandatory:"true" json:"vaultType"` + + // Usage of predefined tag keys. These predefined keys are scoped to namespaces. + // Example: `{"foo-namespace": {"bar-key": "foo-value"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Simple key-value pair that is applied without any predefined name, type, or scope. + // Exists for cross-compatibility only. + // Example: `{"bar-key": "value"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m VaultSummary) String() string { + return common.PointerString(m) +} + +// VaultSummaryLifecycleStateEnum Enum with underlying type: string +type VaultSummaryLifecycleStateEnum string + +// Set of constants representing the allowable values for VaultSummaryLifecycleState +const ( + VaultSummaryLifecycleStateCreating VaultSummaryLifecycleStateEnum = "CREATING" + VaultSummaryLifecycleStateActive VaultSummaryLifecycleStateEnum = "ACTIVE" + VaultSummaryLifecycleStateDeleting VaultSummaryLifecycleStateEnum = "DELETING" + VaultSummaryLifecycleStateDeleted VaultSummaryLifecycleStateEnum = "DELETED" + VaultSummaryLifecycleStatePendingDeletion VaultSummaryLifecycleStateEnum = "PENDING_DELETION" + VaultSummaryLifecycleStateSchedulingDeletion VaultSummaryLifecycleStateEnum = "SCHEDULING_DELETION" + VaultSummaryLifecycleStateCancellingDeletion VaultSummaryLifecycleStateEnum = "CANCELLING_DELETION" +) + +var mappingVaultSummaryLifecycleState = map[string]VaultSummaryLifecycleStateEnum{ + "CREATING": VaultSummaryLifecycleStateCreating, + "ACTIVE": VaultSummaryLifecycleStateActive, + "DELETING": VaultSummaryLifecycleStateDeleting, + "DELETED": VaultSummaryLifecycleStateDeleted, + "PENDING_DELETION": VaultSummaryLifecycleStatePendingDeletion, + "SCHEDULING_DELETION": VaultSummaryLifecycleStateSchedulingDeletion, + "CANCELLING_DELETION": VaultSummaryLifecycleStateCancellingDeletion, +} + +// GetVaultSummaryLifecycleStateEnumValues Enumerates the set of values for VaultSummaryLifecycleState +func GetVaultSummaryLifecycleStateEnumValues() []VaultSummaryLifecycleStateEnum { + values := make([]VaultSummaryLifecycleStateEnum, 0) + for _, v := range mappingVaultSummaryLifecycleState { + values = append(values, v) + } + return values +} + +// VaultSummaryVaultTypeEnum Enum with underlying type: string +type VaultSummaryVaultTypeEnum string + +// Set of constants representing the allowable values for VaultSummaryVaultType +const ( + VaultSummaryVaultTypePrivate VaultSummaryVaultTypeEnum = "VIRTUAL_PRIVATE" +) + +var mappingVaultSummaryVaultType = map[string]VaultSummaryVaultTypeEnum{ + "VIRTUAL_PRIVATE": VaultSummaryVaultTypePrivate, +} + +// GetVaultSummaryVaultTypeEnumValues Enumerates the set of values for VaultSummaryVaultType +func GetVaultSummaryVaultTypeEnumValues() []VaultSummaryVaultTypeEnum { + values := make([]VaultSummaryVaultTypeEnum, 0) + for _, v := range mappingVaultSummaryVaultType { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/connection_configuration.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/connection_configuration.go index ab6bb2d21..90df83dbc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/connection_configuration.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/connection_configuration.go @@ -20,7 +20,7 @@ type ConnectionConfiguration struct { // receive operation does not reset the timer for send operations. // For more information, see Connection Configuration (https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Reference/connectionreuse.htm#ConnectionConfiguration). // Example: `1200` - IdleTimeout *int `mandatory:"true" json:"idleTimeout"` + IdleTimeout *int64 `mandatory:"true" json:"idleTimeout"` } func (m ConnectionConfiguration) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_load_balancer_details.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_load_balancer_details.go index c96321ea2..d49a02f03 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_load_balancer_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/create_load_balancer_details.go @@ -36,6 +36,16 @@ type CreateLoadBalancerDetails struct { Certificates map[string]CertificateDetails `mandatory:"false" json:"certificates"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + Hostnames map[string]HostnameDetails `mandatory:"false" json:"hostnames"` // Whether the load balancer has a VCN-local (private) IP address. diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_load_balancer_healths_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_load_balancer_healths_request_response.go index b816939fb..ca9f60dbc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_load_balancer_healths_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_load_balancer_healths_request_response.go @@ -20,7 +20,7 @@ type ListLoadBalancerHealthsRequest struct { // The maximum number of items to return in a paginated "List" call. // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + Limit *int64 `mandatory:"false" contributesTo:"query" name:"limit"` // The value of the `opc-next-page` response header from the previous "List" call. // Example: `3` diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_load_balancers_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_load_balancers_request_response.go index ed89da39a..34203c618 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_load_balancers_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_load_balancers_request_response.go @@ -20,7 +20,7 @@ type ListLoadBalancersRequest struct { // The maximum number of items to return in a paginated "List" call. // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + Limit *int64 `mandatory:"false" contributesTo:"query" name:"limit"` // The value of the `opc-next-page` response header from the previous "List" call. // Example: `3` diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_policies_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_policies_request_response.go index 482cfd8e9..df21c0601 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_policies_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_policies_request_response.go @@ -20,7 +20,7 @@ type ListPoliciesRequest struct { // The maximum number of items to return in a paginated "List" call. // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + Limit *int64 `mandatory:"false" contributesTo:"query" name:"limit"` // The value of the `opc-next-page` response header from the previous "List" call. // Example: `3` diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_protocols_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_protocols_request_response.go index 01d46c111..7e95ed450 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_protocols_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_protocols_request_response.go @@ -20,7 +20,7 @@ type ListProtocolsRequest struct { // The maximum number of items to return in a paginated "List" call. // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + Limit *int64 `mandatory:"false" contributesTo:"query" name:"limit"` // The value of the `opc-next-page` response header from the previous "List" call. // Example: `3` diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_shapes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_shapes_request_response.go index 326ba2808..d405f7b0b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_shapes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_shapes_request_response.go @@ -20,7 +20,7 @@ type ListShapesRequest struct { // The maximum number of items to return in a paginated "List" call. // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + Limit *int64 `mandatory:"false" contributesTo:"query" name:"limit"` // The value of the `opc-next-page` response header from the previous "List" call. // Example: `3` diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_work_requests_request_response.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_work_requests_request_response.go index 8fbe738f4..d10ed29a0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_work_requests_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/list_work_requests_request_response.go @@ -20,7 +20,7 @@ type ListWorkRequestsRequest struct { // The maximum number of items to return in a paginated "List" call. // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + Limit *int64 `mandatory:"false" contributesTo:"query" name:"limit"` // The value of the `opc-next-page` response header from the previous "List" call. // Example: `3` diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/load_balancer.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/load_balancer.go index 3d138dbe7..3d013aabe 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/load_balancer.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/load_balancer.go @@ -49,6 +49,16 @@ type LoadBalancer struct { Certificates map[string]Certificate `mandatory:"false" json:"certificates"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + Hostnames map[string]Hostname `mandatory:"false" json:"hostnames"` // An array of IP addresses. diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/loadbalancer_client.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/loadbalancer_client.go index c7fcd931d..f3f784f2b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/loadbalancer_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/loadbalancer_client.go @@ -65,8 +65,16 @@ func (client LoadBalancerClient) CreateBackend(ctx context.Context, request Crea if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createBackend, policy) if err != nil { + if ociResponse != nil { + response = CreateBackendResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateBackendResponse); ok { @@ -104,8 +112,16 @@ func (client LoadBalancerClient) CreateBackendSet(ctx context.Context, request C if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createBackendSet, policy) if err != nil { + if ociResponse != nil { + response = CreateBackendSetResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateBackendSetResponse); ok { @@ -143,8 +159,16 @@ func (client LoadBalancerClient) CreateCertificate(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createCertificate, policy) if err != nil { + if ociResponse != nil { + response = CreateCertificateResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateCertificateResponse); ok { @@ -183,8 +207,16 @@ func (client LoadBalancerClient) CreateHostname(ctx context.Context, request Cre if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createHostname, policy) if err != nil { + if ociResponse != nil { + response = CreateHostnameResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateHostnameResponse); ok { @@ -222,8 +254,16 @@ func (client LoadBalancerClient) CreateListener(ctx context.Context, request Cre if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createListener, policy) if err != nil { + if ociResponse != nil { + response = CreateListenerResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateListenerResponse); ok { @@ -281,8 +321,16 @@ func (client LoadBalancerClient) CreateLoadBalancer(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createLoadBalancer, policy) if err != nil { + if ociResponse != nil { + response = CreateLoadBalancerResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateLoadBalancerResponse); ok { @@ -321,8 +369,16 @@ func (client LoadBalancerClient) CreatePathRouteSet(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createPathRouteSet, policy) if err != nil { + if ociResponse != nil { + response = CreatePathRouteSetResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreatePathRouteSetResponse); ok { @@ -362,6 +418,9 @@ func (client LoadBalancerClient) DeleteBackend(ctx context.Context, request Dele } ociResponse, err = common.Retry(ctx, request, client.deleteBackend, policy) if err != nil { + if ociResponse != nil { + response = DeleteBackendResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteBackendResponse); ok { @@ -402,6 +461,9 @@ func (client LoadBalancerClient) DeleteBackendSet(ctx context.Context, request D } ociResponse, err = common.Retry(ctx, request, client.deleteBackendSet, policy) if err != nil { + if ociResponse != nil { + response = DeleteBackendSetResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteBackendSetResponse); ok { @@ -441,6 +503,9 @@ func (client LoadBalancerClient) DeleteCertificate(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.deleteCertificate, policy) if err != nil { + if ociResponse != nil { + response = DeleteCertificateResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteCertificateResponse); ok { @@ -480,6 +545,9 @@ func (client LoadBalancerClient) DeleteHostname(ctx context.Context, request Del } ociResponse, err = common.Retry(ctx, request, client.deleteHostname, policy) if err != nil { + if ociResponse != nil { + response = DeleteHostnameResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteHostnameResponse); ok { @@ -519,6 +587,9 @@ func (client LoadBalancerClient) DeleteListener(ctx context.Context, request Del } ociResponse, err = common.Retry(ctx, request, client.deleteListener, policy) if err != nil { + if ociResponse != nil { + response = DeleteListenerResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteListenerResponse); ok { @@ -558,6 +629,9 @@ func (client LoadBalancerClient) DeleteLoadBalancer(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.deleteLoadBalancer, policy) if err != nil { + if ociResponse != nil { + response = DeleteLoadBalancerResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteLoadBalancerResponse); ok { @@ -599,6 +673,9 @@ func (client LoadBalancerClient) DeletePathRouteSet(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.deletePathRouteSet, policy) if err != nil { + if ociResponse != nil { + response = DeletePathRouteSetResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeletePathRouteSetResponse); ok { @@ -638,6 +715,9 @@ func (client LoadBalancerClient) GetBackend(ctx context.Context, request GetBack } ociResponse, err = common.Retry(ctx, request, client.getBackend, policy) if err != nil { + if ociResponse != nil { + response = GetBackendResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetBackendResponse); ok { @@ -677,6 +757,9 @@ func (client LoadBalancerClient) GetBackendHealth(ctx context.Context, request G } ociResponse, err = common.Retry(ctx, request, client.getBackendHealth, policy) if err != nil { + if ociResponse != nil { + response = GetBackendHealthResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetBackendHealthResponse); ok { @@ -716,6 +799,9 @@ func (client LoadBalancerClient) GetBackendSet(ctx context.Context, request GetB } ociResponse, err = common.Retry(ctx, request, client.getBackendSet, policy) if err != nil { + if ociResponse != nil { + response = GetBackendSetResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetBackendSetResponse); ok { @@ -755,6 +841,9 @@ func (client LoadBalancerClient) GetBackendSetHealth(ctx context.Context, reques } ociResponse, err = common.Retry(ctx, request, client.getBackendSetHealth, policy) if err != nil { + if ociResponse != nil { + response = GetBackendSetHealthResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetBackendSetHealthResponse); ok { @@ -794,6 +883,9 @@ func (client LoadBalancerClient) GetHealthChecker(ctx context.Context, request G } ociResponse, err = common.Retry(ctx, request, client.getHealthChecker, policy) if err != nil { + if ociResponse != nil { + response = GetHealthCheckerResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetHealthCheckerResponse); ok { @@ -833,6 +925,9 @@ func (client LoadBalancerClient) GetHostname(ctx context.Context, request GetHos } ociResponse, err = common.Retry(ctx, request, client.getHostname, policy) if err != nil { + if ociResponse != nil { + response = GetHostnameResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetHostnameResponse); ok { @@ -872,6 +967,9 @@ func (client LoadBalancerClient) GetLoadBalancer(ctx context.Context, request Ge } ociResponse, err = common.Retry(ctx, request, client.getLoadBalancer, policy) if err != nil { + if ociResponse != nil { + response = GetLoadBalancerResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetLoadBalancerResponse); ok { @@ -911,6 +1009,9 @@ func (client LoadBalancerClient) GetLoadBalancerHealth(ctx context.Context, requ } ociResponse, err = common.Retry(ctx, request, client.getLoadBalancerHealth, policy) if err != nil { + if ociResponse != nil { + response = GetLoadBalancerHealthResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetLoadBalancerHealthResponse); ok { @@ -950,6 +1051,9 @@ func (client LoadBalancerClient) GetPathRouteSet(ctx context.Context, request Ge } ociResponse, err = common.Retry(ctx, request, client.getPathRouteSet, policy) if err != nil { + if ociResponse != nil { + response = GetPathRouteSetResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetPathRouteSetResponse); ok { @@ -989,6 +1093,9 @@ func (client LoadBalancerClient) GetWorkRequest(ctx context.Context, request Get } ociResponse, err = common.Retry(ctx, request, client.getWorkRequest, policy) if err != nil { + if ociResponse != nil { + response = GetWorkRequestResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetWorkRequestResponse); ok { @@ -1028,6 +1135,9 @@ func (client LoadBalancerClient) ListBackendSets(ctx context.Context, request Li } ociResponse, err = common.Retry(ctx, request, client.listBackendSets, policy) if err != nil { + if ociResponse != nil { + response = ListBackendSetsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListBackendSetsResponse); ok { @@ -1067,6 +1177,9 @@ func (client LoadBalancerClient) ListBackends(ctx context.Context, request ListB } ociResponse, err = common.Retry(ctx, request, client.listBackends, policy) if err != nil { + if ociResponse != nil { + response = ListBackendsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListBackendsResponse); ok { @@ -1106,6 +1219,9 @@ func (client LoadBalancerClient) ListCertificates(ctx context.Context, request L } ociResponse, err = common.Retry(ctx, request, client.listCertificates, policy) if err != nil { + if ociResponse != nil { + response = ListCertificatesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListCertificatesResponse); ok { @@ -1145,6 +1261,9 @@ func (client LoadBalancerClient) ListHostnames(ctx context.Context, request List } ociResponse, err = common.Retry(ctx, request, client.listHostnames, policy) if err != nil { + if ociResponse != nil { + response = ListHostnamesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListHostnamesResponse); ok { @@ -1184,6 +1303,9 @@ func (client LoadBalancerClient) ListLoadBalancerHealths(ctx context.Context, re } ociResponse, err = common.Retry(ctx, request, client.listLoadBalancerHealths, policy) if err != nil { + if ociResponse != nil { + response = ListLoadBalancerHealthsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListLoadBalancerHealthsResponse); ok { @@ -1223,6 +1345,9 @@ func (client LoadBalancerClient) ListLoadBalancers(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.listLoadBalancers, policy) if err != nil { + if ociResponse != nil { + response = ListLoadBalancersResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListLoadBalancersResponse); ok { @@ -1262,6 +1387,9 @@ func (client LoadBalancerClient) ListPathRouteSets(ctx context.Context, request } ociResponse, err = common.Retry(ctx, request, client.listPathRouteSets, policy) if err != nil { + if ociResponse != nil { + response = ListPathRouteSetsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListPathRouteSetsResponse); ok { @@ -1301,6 +1429,9 @@ func (client LoadBalancerClient) ListPolicies(ctx context.Context, request ListP } ociResponse, err = common.Retry(ctx, request, client.listPolicies, policy) if err != nil { + if ociResponse != nil { + response = ListPoliciesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListPoliciesResponse); ok { @@ -1340,6 +1471,9 @@ func (client LoadBalancerClient) ListProtocols(ctx context.Context, request List } ociResponse, err = common.Retry(ctx, request, client.listProtocols, policy) if err != nil { + if ociResponse != nil { + response = ListProtocolsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListProtocolsResponse); ok { @@ -1379,6 +1513,9 @@ func (client LoadBalancerClient) ListShapes(ctx context.Context, request ListSha } ociResponse, err = common.Retry(ctx, request, client.listShapes, policy) if err != nil { + if ociResponse != nil { + response = ListShapesResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListShapesResponse); ok { @@ -1418,6 +1555,9 @@ func (client LoadBalancerClient) ListWorkRequests(ctx context.Context, request L } ociResponse, err = common.Retry(ctx, request, client.listWorkRequests, policy) if err != nil { + if ociResponse != nil { + response = ListWorkRequestsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListWorkRequestsResponse); ok { @@ -1455,8 +1595,16 @@ func (client LoadBalancerClient) UpdateBackend(ctx context.Context, request Upda if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.updateBackend, policy) if err != nil { + if ociResponse != nil { + response = UpdateBackendResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateBackendResponse); ok { @@ -1494,8 +1642,16 @@ func (client LoadBalancerClient) UpdateBackendSet(ctx context.Context, request U if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.updateBackendSet, policy) if err != nil { + if ociResponse != nil { + response = UpdateBackendSetResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateBackendSetResponse); ok { @@ -1533,8 +1689,16 @@ func (client LoadBalancerClient) UpdateHealthChecker(ctx context.Context, reques if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.updateHealthChecker, policy) if err != nil { + if ociResponse != nil { + response = UpdateHealthCheckerResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateHealthCheckerResponse); ok { @@ -1575,6 +1739,9 @@ func (client LoadBalancerClient) UpdateHostname(ctx context.Context, request Upd } ociResponse, err = common.Retry(ctx, request, client.updateHostname, policy) if err != nil { + if ociResponse != nil { + response = UpdateHostnameResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateHostnameResponse); ok { @@ -1612,8 +1779,16 @@ func (client LoadBalancerClient) UpdateListener(ctx context.Context, request Upd if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.updateListener, policy) if err != nil { + if ociResponse != nil { + response = UpdateListenerResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateListenerResponse); ok { @@ -1651,8 +1826,16 @@ func (client LoadBalancerClient) UpdateLoadBalancer(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.updateLoadBalancer, policy) if err != nil { + if ociResponse != nil { + response = UpdateLoadBalancerResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateLoadBalancerResponse); ok { @@ -1694,8 +1877,16 @@ func (client LoadBalancerClient) UpdatePathRouteSet(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.updatePathRouteSet, policy) if err != nil { + if ociResponse != nil { + response = UpdatePathRouteSetResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdatePathRouteSetResponse); ok { diff --git a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_load_balancer_details.go b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_load_balancer_details.go index 7ab1175a1..3864e3dac 100644 --- a/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_load_balancer_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/loadbalancer/update_load_balancer_details.go @@ -15,10 +15,20 @@ import ( // UpdateLoadBalancerDetails Configuration details to update a load balancer. type UpdateLoadBalancerDetails struct { + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + // The user-friendly display name for the load balancer. It does not have to be unique, and it is changeable. // Avoid entering confidential information. // Example: `example_load_balancer` - DisplayName *string `mandatory:"true" json:"displayName"` + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` } func (m UpdateLoadBalancerDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/bucket.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/bucket.go index 2fc78c1ea..e7cedccc9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/bucket.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/bucket.go @@ -3,7 +3,7 @@ // Object Storage Service API // -// Common set of Object and Archive Storage APIs for managing buckets and objects. +// The Object and Archive Storage APIs for managing buckets and objects. // package objectstorage @@ -64,6 +64,12 @@ type Bucket struct { // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // The OCID of a KMS key id used to call KMS to generate data key, decrypt the encrypted data key + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` + + // The entity tag for the live object lifecycle policy on the bucket. + ObjectLifecyclePolicyEtag *string `mandatory:"false" json:"objectLifecyclePolicyEtag"` } func (m Bucket) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/bucket_summary.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/bucket_summary.go index bee2aa055..c7a5bde58 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/bucket_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/bucket_summary.go @@ -3,7 +3,7 @@ // Object Storage Service API // -// Common set of Object and Archive Storage APIs for managing buckets and objects. +// The Object and Archive Storage APIs for managing buckets and objects. // package objectstorage diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/cancel_work_request_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/cancel_work_request_request_response.go new file mode 100644 index 000000000..35e616dab --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/cancel_work_request_request_response.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package objectstorage + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// CancelWorkRequestRequest wrapper for the CancelWorkRequest operation +type CancelWorkRequestRequest struct { + + // The ID of the asynchronous request. + WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CancelWorkRequestRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CancelWorkRequestRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CancelWorkRequestRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// CancelWorkRequestResponse wrapper for the CancelWorkRequest operation +type CancelWorkRequestResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, + // provide this request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` +} + +func (response CancelWorkRequestResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CancelWorkRequestResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/commit_multipart_upload_details.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/commit_multipart_upload_details.go index 0d09fa852..d9869cdd8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/commit_multipart_upload_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/commit_multipart_upload_details.go @@ -3,7 +3,7 @@ // Object Storage Service API // -// Common set of Object and Archive Storage APIs for managing buckets and objects. +// The Object and Archive Storage APIs for managing buckets and objects. // package objectstorage diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/commit_multipart_upload_part_details.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/commit_multipart_upload_part_details.go index b23c10a0d..26910a81e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/commit_multipart_upload_part_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/commit_multipart_upload_part_details.go @@ -3,7 +3,7 @@ // Object Storage Service API // -// Common set of Object and Archive Storage APIs for managing buckets and objects. +// The Object and Archive Storage APIs for managing buckets and objects. // package objectstorage diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/commit_multipart_upload_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/commit_multipart_upload_request_response.go index f4851abde..fa73b0f79 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/commit_multipart_upload_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/commit_multipart_upload_request_response.go @@ -32,7 +32,7 @@ type CommitMultipartUploadRequest struct { // For uploading a part, this is the entity tag of the target part. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - // The entity tag to avoid matching. The only valid value is ‘*’, which indicates that the request should fail if the object already exists. + // The entity tag to avoid matching. The only valid value is '*', which indicates that the request should fail if the object already exists. // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag of the target part. IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` @@ -74,8 +74,7 @@ type CommitMultipartUploadResponse struct { // Base-64 representation of the multipart object hash. // The multipart object hash is calculated by taking the MD5 hashes of the parts passed to this call, // concatenating the binary representation of those hashes in order of their part numbers, - // and then calculating the MD5 hash of the concatenated values. The multipart object hash is followed - // by a hyphen and the total number of parts (for example, '-6'). + // and then calculating the MD5 hash of the concatenated values. OpcMultipartMd5 *string `presentIn:"header" name:"opc-multipart-md5"` // The entity tag for the object. diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/copy_object_details.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/copy_object_details.go new file mode 100644 index 000000000..5de6ae368 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/copy_object_details.go @@ -0,0 +1,53 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Object Storage Service API +// +// The Object and Archive Storage APIs for managing buckets and objects. +// + +package objectstorage + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// CopyObjectDetails To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +type CopyObjectDetails struct { + + // The name of the object to be copied + SourceObjectName *string `mandatory:"true" json:"sourceObjectName"` + + // The destination region object will be copied to. Please specify name of the region, for example "us-ashburn-1". + DestinationRegion *string `mandatory:"true" json:"destinationRegion"` + + // The destination namespace object will be copied to. + DestinationNamespace *string `mandatory:"true" json:"destinationNamespace"` + + // The destination bucket object will be copied to. + DestinationBucket *string `mandatory:"true" json:"destinationBucket"` + + // The destination name for the copy object. + DestinationObjectName *string `mandatory:"true" json:"destinationObjectName"` + + // The entity tag to match the target object. + SourceObjectIfMatchETag *string `mandatory:"false" json:"sourceObjectIfMatchETag"` + + // The entity tag to match the target object. + DestinationObjectIfMatchETag *string `mandatory:"false" json:"destinationObjectIfMatchETag"` + + // The entity tag to not match the target object. + DestinationObjectIfNoneMatchETag *string `mandatory:"false" json:"destinationObjectIfNoneMatchETag"` + + // Arbitrary string keys and values for the user-defined metadata for the object. Keys must be in + // "opc-meta-*" format. Avoid entering confidential information. If user enter value in this field, the value + // will become the object metadata for destination Object. If no value pass in, the destination object will have + // the exact object metadata as source object. + DestinationObjectMetadata map[string]string `mandatory:"false" json:"destinationObjectMetadata"` +} + +func (m CopyObjectDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/copy_object_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/copy_object_request_response.go new file mode 100644 index 000000000..087a82058 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/copy_object_request_response.go @@ -0,0 +1,70 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package objectstorage + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// CopyObjectRequest wrapper for the CopyObject operation +type CopyObjectRequest struct { + + // The top-level namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The name of the bucket. Avoid entering confidential information. + // Example: `my-new-bucket1` + BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` + + // The source and destination for object to be copied. + CopyObjectDetails `contributesTo:"body"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CopyObjectRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CopyObjectRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CopyObjectRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// CopyObjectResponse wrapper for the CopyObject operation +type CopyObjectResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the asynchronous request. If you need to contact Oracle about a + // particular request, provide this request ID. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` +} + +func (response CopyObjectResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CopyObjectResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_bucket_details.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_bucket_details.go index 755d7da27..b5f507f7a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_bucket_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_bucket_details.go @@ -3,7 +3,7 @@ // Object Storage Service API // -// Common set of Object and Archive Storage APIs for managing buckets and objects. +// The Object and Archive Storage APIs for managing buckets and objects. // package objectstorage @@ -50,6 +50,9 @@ type CreateBucketDetails struct { // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // The OCID of a KMS key id used to call KMS to generate data key, decrypt the encrypted data key + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` } func (m CreateBucketDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_multipart_upload_details.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_multipart_upload_details.go index 4e451a153..6cfd8fdfe 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_multipart_upload_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_multipart_upload_details.go @@ -3,7 +3,7 @@ // Object Storage Service API // -// Common set of Object and Archive Storage APIs for managing buckets and objects. +// The Object and Archive Storage APIs for managing buckets and objects. // package objectstorage diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_multipart_upload_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_multipart_upload_request_response.go index 09022258f..933ddb7a0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_multipart_upload_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_multipart_upload_request_response.go @@ -25,7 +25,7 @@ type CreateMultipartUploadRequest struct { // For uploading a part, this is the entity tag of the target part. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - // The entity tag to avoid matching. The only valid value is ‘*’, which indicates that the request should fail if the object already exists. + // The entity tag to avoid matching. The only valid value is '*', which indicates that the request should fail if the object already exists. // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag of the target part. IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_preauthenticated_request_details.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_preauthenticated_request_details.go index b5f796ddc..5a6da5e05 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_preauthenticated_request_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/create_preauthenticated_request_details.go @@ -3,7 +3,7 @@ // Object Storage Service API // -// Common set of Object and Archive Storage APIs for managing buckets and objects. +// The Object and Archive Storage APIs for managing buckets and objects. // package objectstorage diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/delete_object_lifecycle_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/delete_object_lifecycle_policy_request_response.go new file mode 100644 index 000000000..1ab90e387 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/delete_object_lifecycle_policy_request_response.go @@ -0,0 +1,68 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package objectstorage + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// DeleteObjectLifecyclePolicyRequest wrapper for the DeleteObjectLifecyclePolicy operation +type DeleteObjectLifecyclePolicyRequest struct { + + // The top-level namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The name of the bucket. Avoid entering confidential information. + // Example: `my-new-bucket1` + BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. + // For uploading a part, this is the entity tag of the target part. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteObjectLifecyclePolicyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteObjectLifecyclePolicyRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteObjectLifecyclePolicyRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// DeleteObjectLifecyclePolicyResponse wrapper for the DeleteObjectLifecyclePolicy operation +type DeleteObjectLifecyclePolicyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, + // provide this request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` +} + +func (response DeleteObjectLifecyclePolicyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteObjectLifecyclePolicyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_bucket_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_bucket_request_response.go index 1525adc61..9424ece10 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_bucket_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_bucket_request_response.go @@ -22,7 +22,7 @@ type GetBucketRequest struct { // For uploading a part, this is the entity tag of the target part. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - // The entity tag to avoid matching. The only valid value is ‘*’, which indicates that the request should fail if the object already exists. + // The entity tag to avoid matching. The only valid value is '*', which indicates that the request should fail if the object already exists. // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag of the target part. IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_object_lifecycle_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_object_lifecycle_policy_request_response.go new file mode 100644 index 000000000..7345b258f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_object_lifecycle_policy_request_response.go @@ -0,0 +1,70 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package objectstorage + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// GetObjectLifecyclePolicyRequest wrapper for the GetObjectLifecyclePolicy operation +type GetObjectLifecyclePolicyRequest struct { + + // The top-level namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The name of the bucket. Avoid entering confidential information. + // Example: `my-new-bucket1` + BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetObjectLifecyclePolicyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetObjectLifecyclePolicyRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetObjectLifecyclePolicyRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// GetObjectLifecyclePolicyResponse wrapper for the GetObjectLifecyclePolicy operation +type GetObjectLifecyclePolicyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ObjectLifecyclePolicy instance + ObjectLifecyclePolicy `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, + // provide this request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` + + // The entity tag for the object lifecycle policy. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response GetObjectLifecyclePolicyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetObjectLifecyclePolicyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_object_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_object_request_response.go index 5510197ce..34926181e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_object_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_object_request_response.go @@ -27,7 +27,7 @@ type GetObjectRequest struct { // For uploading a part, this is the entity tag of the target part. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - // The entity tag to avoid matching. The only valid value is ‘*’, which indicates that the request should fail if the object already exists. + // The entity tag to avoid matching. The only valid value is '*', which indicates that the request should fail if the object already exists. // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag of the target part. IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` @@ -80,7 +80,7 @@ type GetObjectResponse struct { OpcMeta map[string]string `presentIn:"header-collection" prefix:"opc-meta-"` // The object size in bytes. - ContentLength *int `presentIn:"header" name:"content-length"` + ContentLength *int64 `presentIn:"header" name:"content-length"` // Content-Range header for range requests, per RFC 7233 (https://tools.ietf.org/rfc/rfc7233), section 4.2. ContentRange *string `presentIn:"header" name:"content-range"` diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_work_request_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_work_request_request_response.go new file mode 100644 index 000000000..cb31b26c3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/get_work_request_request_response.go @@ -0,0 +1,65 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package objectstorage + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// GetWorkRequestRequest wrapper for the GetWorkRequest operation +type GetWorkRequestRequest struct { + + // The ID of the asynchronous request. + WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetWorkRequestRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetWorkRequestRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetWorkRequestRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// GetWorkRequestResponse wrapper for the GetWorkRequest operation +type GetWorkRequestResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The WorkRequest instance + WorkRequest `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` + + // some decimal number representing the number of seconds the client should wait before polling this endpoint again + RetryAfter *float32 `presentIn:"header" name:"retry-after"` +} + +func (response GetWorkRequestResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetWorkRequestResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/head_bucket_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/head_bucket_request_response.go index f12383727..9b6967255 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/head_bucket_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/head_bucket_request_response.go @@ -22,7 +22,7 @@ type HeadBucketRequest struct { // For uploading a part, this is the entity tag of the target part. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - // The entity tag to avoid matching. The only valid value is ‘*’, which indicates that the request should fail if the object already exists. + // The entity tag to avoid matching. The only valid value is '*', which indicates that the request should fail if the object already exists. // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag of the target part. IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/head_object_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/head_object_request_response.go index 1f63e0e85..f05539a42 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/head_object_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/head_object_request_response.go @@ -26,7 +26,7 @@ type HeadObjectRequest struct { // For uploading a part, this is the entity tag of the target part. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - // The entity tag to avoid matching. The only valid value is ‘*’, which indicates that the request should fail if the object already exists. + // The entity tag to avoid matching. The only valid value is '*', which indicates that the request should fail if the object already exists. // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag of the target part. IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` @@ -72,7 +72,7 @@ type HeadObjectResponse struct { OpcMeta map[string]string `presentIn:"header-collection" prefix:"opc-meta-"` // The object size in bytes. - ContentLength *int `presentIn:"header" name:"content-length"` + ContentLength *int64 `presentIn:"header" name:"content-length"` // Content-MD5 header, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.15. // Unavailable for objects uploaded using multipart upload. diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_objects.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_objects.go index 8bc96caa2..60c350f2c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_objects.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_objects.go @@ -3,7 +3,7 @@ // Object Storage Service API // -// Common set of Object and Archive Storage APIs for managing buckets and objects. +// The Object and Archive Storage APIs for managing buckets and objects. // package objectstorage diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_work_request_errors_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_work_request_errors_request_response.go new file mode 100644 index 000000000..84c5a5df3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_work_request_errors_request_response.go @@ -0,0 +1,73 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package objectstorage + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// ListWorkRequestErrorsRequest wrapper for the ListWorkRequestErrors operation +type ListWorkRequestErrorsRequest struct { + + // The ID of the asynchronous request. + WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` + + // The page at which to start retrieving results. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListWorkRequestErrorsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListWorkRequestErrorsRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListWorkRequestErrorsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ListWorkRequestErrorsResponse wrapper for the ListWorkRequestErrors operation +type ListWorkRequestErrorsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []WorkRequestError instances + Items []WorkRequestError `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging.n + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` +} + +func (response ListWorkRequestErrorsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListWorkRequestErrorsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_work_request_logs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_work_request_logs_request_response.go new file mode 100644 index 000000000..3531bb8d3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_work_request_logs_request_response.go @@ -0,0 +1,73 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package objectstorage + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// ListWorkRequestLogsRequest wrapper for the ListWorkRequestLogs operation +type ListWorkRequestLogsRequest struct { + + // The ID of the asynchronous request. + WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` + + // The page at which to start retrieving results. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListWorkRequestLogsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListWorkRequestLogsRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListWorkRequestLogsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ListWorkRequestLogsResponse wrapper for the ListWorkRequestLogs operation +type ListWorkRequestLogsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []WorkRequestLogEntry instances + Items []WorkRequestLogEntry `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging.n + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListWorkRequestLogsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListWorkRequestLogsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_work_requests_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_work_requests_request_response.go new file mode 100644 index 000000000..94bb2968d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/list_work_requests_request_response.go @@ -0,0 +1,73 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package objectstorage + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// ListWorkRequestsRequest wrapper for the ListWorkRequests operation +type ListWorkRequestsRequest struct { + + // The ID of the compartment in which to list buckets. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // The page at which to start retrieving results. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListWorkRequestsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListWorkRequestsRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListWorkRequestsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ListWorkRequestsResponse wrapper for the ListWorkRequests operation +type ListWorkRequestsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []WorkRequestSummary instances + Items []WorkRequestSummary `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` +} + +func (response ListWorkRequestsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListWorkRequestsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/multipart_upload.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/multipart_upload.go index 30a6b6cea..0088dffdc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/multipart_upload.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/multipart_upload.go @@ -3,7 +3,7 @@ // Object Storage Service API // -// Common set of Object and Archive Storage APIs for managing buckets and objects. +// The Object and Archive Storage APIs for managing buckets and objects. // package objectstorage diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/multipart_upload_part_summary.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/multipart_upload_part_summary.go index be1e9a5e4..3d53ef664 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/multipart_upload_part_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/multipart_upload_part_summary.go @@ -3,7 +3,7 @@ // Object Storage Service API // -// Common set of Object and Archive Storage APIs for managing buckets and objects. +// The Object and Archive Storage APIs for managing buckets and objects. // package objectstorage @@ -25,7 +25,7 @@ type MultipartUploadPartSummary struct { Md5 *string `mandatory:"true" json:"md5"` // The size of the part in bytes. - Size *int `mandatory:"true" json:"size"` + Size *int64 `mandatory:"true" json:"size"` // The part number for this part. PartNumber *int `mandatory:"true" json:"partNumber"` diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/namespace_metadata.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/namespace_metadata.go index 7863b211f..262b37e6f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/namespace_metadata.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/namespace_metadata.go @@ -3,7 +3,7 @@ // Object Storage Service API // -// Common set of Object and Archive Storage APIs for managing buckets and objects. +// The Object and Archive Storage APIs for managing buckets and objects. // package objectstorage @@ -12,7 +12,7 @@ import ( "github.com/oracle/oci-go-sdk/common" ) -// NamespaceMetadata A NamespaceMetadta is a map for storing namespace and defaultS3CompartmentId, defaultSwiftCompartmentId. +// NamespaceMetadata A NamespaceMetadata is a map for storing namespace and defaultS3CompartmentId, defaultSwiftCompartmentId. type NamespaceMetadata struct { // The namespace to which the metadata belongs. diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/object_lifecycle_policy.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/object_lifecycle_policy.go new file mode 100644 index 000000000..c14d1e044 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/object_lifecycle_policy.go @@ -0,0 +1,30 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Object Storage Service API +// +// The Object and Archive Storage APIs for managing buckets and objects. +// + +package objectstorage + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// ObjectLifecyclePolicy The collection of lifecycle policy rules that together form the object lifecycle policy of a given bucket. +type ObjectLifecyclePolicy struct { + + // The date and time the object lifecycle policy was created, as described in + // RFC 3339 (https://tools.ietf.org/rfc/rfc3339), section 14.29. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The live lifecycle policy on the bucket. + // For an example of this value, see the + // PutObjectLifecyclePolicy API documentation (https://docs.us-phoenix-1.oraclecloud.com/iaas/api/#/en/objectstorage/20160918/ObjectLifecyclePolicy/PutObjectLifecyclePolicy). + Items []ObjectLifecycleRule `mandatory:"false" json:"items"` +} + +func (m ObjectLifecyclePolicy) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/object_lifecycle_rule.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/object_lifecycle_rule.go new file mode 100644 index 000000000..3e0ed1486 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/object_lifecycle_rule.go @@ -0,0 +1,69 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Object Storage Service API +// +// The Object and Archive Storage APIs for managing buckets and objects. +// + +package objectstorage + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// ObjectLifecycleRule To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). +type ObjectLifecycleRule struct { + + // The name of the lifecycle rule to be applied. + Name *string `mandatory:"true" json:"name"` + + // The action of the object lifecycle policy rule. Rules using the action 'ARCHIVE' move objects into the + // Archival Storage tier (https://docs.us-phoenix-1.oraclecloud.com/Content/Archive/Concepts/archivestorageoverview.htm). Rules using the action + // 'DELETE' permanently delete objects from buckets. 'ARCHIVE' and 'DELETE' are the only two supported + // actions at this time. + Action *string `mandatory:"true" json:"action"` + + // Specifies the age of objects to apply the rule to. The timeAmount is interpreted in units defined by the + // timeUnit parameter, and is calculated in relation to each object's Last-Modified time. + TimeAmount *int64 `mandatory:"true" json:"timeAmount"` + + // The unit that should be used to interpret timeAmount. Days are defined as starting and ending at midnight UTC. + // Years are defined as 365.2425 days long and likewise round up to the next midnight UTC. + TimeUnit ObjectLifecycleRuleTimeUnitEnum `mandatory:"true" json:"timeUnit"` + + // A boolean that determines whether this rule is currently enabled. + IsEnabled *bool `mandatory:"true" json:"isEnabled"` + + // A filter limiting object names that the rule will apply to. + ObjectNameFilter *ObjectNameFilter `mandatory:"false" json:"objectNameFilter"` +} + +func (m ObjectLifecycleRule) String() string { + return common.PointerString(m) +} + +// ObjectLifecycleRuleTimeUnitEnum Enum with underlying type: string +type ObjectLifecycleRuleTimeUnitEnum string + +// Set of constants representing the allowable values for ObjectLifecycleRuleTimeUnit +const ( + ObjectLifecycleRuleTimeUnitDays ObjectLifecycleRuleTimeUnitEnum = "DAYS" + ObjectLifecycleRuleTimeUnitYears ObjectLifecycleRuleTimeUnitEnum = "YEARS" +) + +var mappingObjectLifecycleRuleTimeUnit = map[string]ObjectLifecycleRuleTimeUnitEnum{ + "DAYS": ObjectLifecycleRuleTimeUnitDays, + "YEARS": ObjectLifecycleRuleTimeUnitYears, +} + +// GetObjectLifecycleRuleTimeUnitEnumValues Enumerates the set of values for ObjectLifecycleRuleTimeUnit +func GetObjectLifecycleRuleTimeUnitEnumValues() []ObjectLifecycleRuleTimeUnitEnum { + values := make([]ObjectLifecycleRuleTimeUnitEnum, 0) + for _, v := range mappingObjectLifecycleRuleTimeUnit { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/object_name_filter.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/object_name_filter.go new file mode 100644 index 000000000..76f6c6cf5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/object_name_filter.go @@ -0,0 +1,25 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Object Storage Service API +// +// The Object and Archive Storage APIs for managing buckets and objects. +// + +package objectstorage + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// ObjectNameFilter A filter that compares object names to a set of object name prefixes to determine if a rule applies to a +// given object. +type ObjectNameFilter struct { + + // An array of object name prefixes that the rule will apply to. An empty array means to include all objects. + InclusionPrefixes []string `mandatory:"false" json:"inclusionPrefixes"` +} + +func (m ObjectNameFilter) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/object_summary.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/object_summary.go index 318aa0c60..d9fddb432 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/object_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/object_summary.go @@ -3,7 +3,7 @@ // Object Storage Service API // -// Common set of Object and Archive Storage APIs for managing buckets and objects. +// The Object and Archive Storage APIs for managing buckets and objects. // package objectstorage @@ -22,7 +22,7 @@ type ObjectSummary struct { Name *string `mandatory:"true" json:"name"` // Size of the object in bytes. - Size *int `mandatory:"false" json:"size"` + Size *int64 `mandatory:"false" json:"size"` // Base64-encoded MD5 hash of the object data. Md5 *string `mandatory:"false" json:"md5"` diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/objectstorage_client.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/objectstorage_client.go index 5c07820ca..7462f26ef 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/objectstorage_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/objectstorage_client.go @@ -3,7 +3,7 @@ // Object Storage Service API // -// Common set of Object and Archive Storage APIs for managing buckets and objects. +// The Object and Archive Storage APIs for managing buckets and objects. // package objectstorage @@ -66,6 +66,9 @@ func (client ObjectStorageClient) AbortMultipartUpload(ctx context.Context, requ } ociResponse, err = common.Retry(ctx, request, client.abortMultipartUpload, policy) if err != nil { + if ociResponse != nil { + response = AbortMultipartUploadResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(AbortMultipartUploadResponse); ok { @@ -96,6 +99,48 @@ func (client ObjectStorageClient) abortMultipartUpload(ctx context.Context, requ return response, err } +// CancelWorkRequest Cancel a work request. +func (client ObjectStorageClient) CancelWorkRequest(ctx context.Context, request CancelWorkRequestRequest) (response CancelWorkRequestResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.cancelWorkRequest, policy) + if err != nil { + if ociResponse != nil { + response = CancelWorkRequestResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(CancelWorkRequestResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CancelWorkRequestResponse") + } + return +} + +// cancelWorkRequest implements the OCIOperation interface (enables retrying operations) +func (client ObjectStorageClient) cancelWorkRequest(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/workRequests/{workRequestId}") + if err != nil { + return nil, err + } + + var response CancelWorkRequestResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // CommitMultipartUpload Commits a multipart upload, which involves checking part numbers and ETags of the parts, to create an aggregate object. func (client ObjectStorageClient) CommitMultipartUpload(ctx context.Context, request CommitMultipartUploadRequest) (response CommitMultipartUploadResponse, err error) { var ociResponse common.OCIResponse @@ -105,6 +150,9 @@ func (client ObjectStorageClient) CommitMultipartUpload(ctx context.Context, req } ociResponse, err = common.Retry(ctx, request, client.commitMultipartUpload, policy) if err != nil { + if ociResponse != nil { + response = CommitMultipartUploadResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CommitMultipartUploadResponse); ok { @@ -135,6 +183,48 @@ func (client ObjectStorageClient) commitMultipartUpload(ctx context.Context, req return response, err } +// CopyObject Create a request for copy object within or cross region +func (client ObjectStorageClient) CopyObject(ctx context.Context, request CopyObjectRequest) (response CopyObjectResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.copyObject, policy) + if err != nil { + if ociResponse != nil { + response = CopyObjectResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(CopyObjectResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CopyObjectResponse") + } + return +} + +// copyObject implements the OCIOperation interface (enables retrying operations) +func (client ObjectStorageClient) copyObject(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPost, "/n/{namespaceName}/b/{bucketName}/actions/copyObject") + if err != nil { + return nil, err + } + + var response CopyObjectResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // CreateBucket Creates a bucket in the given namespace with a bucket name and optional user-defined metadata. func (client ObjectStorageClient) CreateBucket(ctx context.Context, request CreateBucketRequest) (response CreateBucketResponse, err error) { var ociResponse common.OCIResponse @@ -144,6 +234,9 @@ func (client ObjectStorageClient) CreateBucket(ctx context.Context, request Crea } ociResponse, err = common.Retry(ctx, request, client.createBucket, policy) if err != nil { + if ociResponse != nil { + response = CreateBucketResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateBucketResponse); ok { @@ -183,6 +276,9 @@ func (client ObjectStorageClient) CreateMultipartUpload(ctx context.Context, req } ociResponse, err = common.Retry(ctx, request, client.createMultipartUpload, policy) if err != nil { + if ociResponse != nil { + response = CreateMultipartUploadResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreateMultipartUploadResponse); ok { @@ -222,6 +318,9 @@ func (client ObjectStorageClient) CreatePreauthenticatedRequest(ctx context.Cont } ociResponse, err = common.Retry(ctx, request, client.createPreauthenticatedRequest, policy) if err != nil { + if ociResponse != nil { + response = CreatePreauthenticatedRequestResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(CreatePreauthenticatedRequestResponse); ok { @@ -261,6 +360,9 @@ func (client ObjectStorageClient) DeleteBucket(ctx context.Context, request Dele } ociResponse, err = common.Retry(ctx, request, client.deleteBucket, policy) if err != nil { + if ociResponse != nil { + response = DeleteBucketResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteBucketResponse); ok { @@ -300,6 +402,9 @@ func (client ObjectStorageClient) DeleteObject(ctx context.Context, request Dele } ociResponse, err = common.Retry(ctx, request, client.deleteObject, policy) if err != nil { + if ociResponse != nil { + response = DeleteObjectResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeleteObjectResponse); ok { @@ -330,6 +435,48 @@ func (client ObjectStorageClient) deleteObject(ctx context.Context, request comm return response, err } +// DeleteObjectLifecyclePolicy Deletes the object lifecycle policy for the bucket. +func (client ObjectStorageClient) DeleteObjectLifecyclePolicy(ctx context.Context, request DeleteObjectLifecyclePolicyRequest) (response DeleteObjectLifecyclePolicyResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteObjectLifecyclePolicy, policy) + if err != nil { + if ociResponse != nil { + response = DeleteObjectLifecyclePolicyResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(DeleteObjectLifecyclePolicyResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteObjectLifecyclePolicyResponse") + } + return +} + +// deleteObjectLifecyclePolicy implements the OCIOperation interface (enables retrying operations) +func (client ObjectStorageClient) deleteObjectLifecyclePolicy(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/n/{namespaceName}/b/{bucketName}/l") + if err != nil { + return nil, err + } + + var response DeleteObjectLifecyclePolicyResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // DeletePreauthenticatedRequest Deletes the pre-authenticated request for the bucket. func (client ObjectStorageClient) DeletePreauthenticatedRequest(ctx context.Context, request DeletePreauthenticatedRequestRequest) (response DeletePreauthenticatedRequestResponse, err error) { var ociResponse common.OCIResponse @@ -339,6 +486,9 @@ func (client ObjectStorageClient) DeletePreauthenticatedRequest(ctx context.Cont } ociResponse, err = common.Retry(ctx, request, client.deletePreauthenticatedRequest, policy) if err != nil { + if ociResponse != nil { + response = DeletePreauthenticatedRequestResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(DeletePreauthenticatedRequestResponse); ok { @@ -378,6 +528,9 @@ func (client ObjectStorageClient) GetBucket(ctx context.Context, request GetBuck } ociResponse, err = common.Retry(ctx, request, client.getBucket, policy) if err != nil { + if ociResponse != nil { + response = GetBucketResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetBucketResponse); ok { @@ -408,8 +561,7 @@ func (client ObjectStorageClient) getBucket(ctx context.Context, request common. return response, err } -// GetNamespace Namespaces are unique. Namespaces are either the tenancy name or a random string automatically generated during -// account creation. You cannot edit a namespace. +// GetNamespace Gets the name of the namespace for the user making the request. func (client ObjectStorageClient) GetNamespace(ctx context.Context, request GetNamespaceRequest) (response GetNamespaceResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -418,6 +570,9 @@ func (client ObjectStorageClient) GetNamespace(ctx context.Context, request GetN } ociResponse, err = common.Retry(ctx, request, client.getNamespace, policy) if err != nil { + if ociResponse != nil { + response = GetNamespaceResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetNamespaceResponse); ok { @@ -460,6 +615,9 @@ func (client ObjectStorageClient) GetNamespaceMetadata(ctx context.Context, requ } ociResponse, err = common.Retry(ctx, request, client.getNamespaceMetadata, policy) if err != nil { + if ociResponse != nil { + response = GetNamespaceMetadataResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetNamespaceMetadataResponse); ok { @@ -499,6 +657,9 @@ func (client ObjectStorageClient) GetObject(ctx context.Context, request GetObje } ociResponse, err = common.Retry(ctx, request, client.getObject, policy) if err != nil { + if ociResponse != nil { + response = GetObjectResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetObjectResponse); ok { @@ -528,6 +689,48 @@ func (client ObjectStorageClient) getObject(ctx context.Context, request common. return response, err } +// GetObjectLifecyclePolicy Gets the object lifecycle policy for the bucket. +func (client ObjectStorageClient) GetObjectLifecyclePolicy(ctx context.Context, request GetObjectLifecyclePolicyRequest) (response GetObjectLifecyclePolicyResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getObjectLifecyclePolicy, policy) + if err != nil { + if ociResponse != nil { + response = GetObjectLifecyclePolicyResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(GetObjectLifecyclePolicyResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetObjectLifecyclePolicyResponse") + } + return +} + +// getObjectLifecyclePolicy implements the OCIOperation interface (enables retrying operations) +func (client ObjectStorageClient) getObjectLifecyclePolicy(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/n/{namespaceName}/b/{bucketName}/l") + if err != nil { + return nil, err + } + + var response GetObjectLifecyclePolicyResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // GetPreauthenticatedRequest Gets the pre-authenticated request for the bucket. func (client ObjectStorageClient) GetPreauthenticatedRequest(ctx context.Context, request GetPreauthenticatedRequestRequest) (response GetPreauthenticatedRequestResponse, err error) { var ociResponse common.OCIResponse @@ -537,6 +740,9 @@ func (client ObjectStorageClient) GetPreauthenticatedRequest(ctx context.Context } ociResponse, err = common.Retry(ctx, request, client.getPreauthenticatedRequest, policy) if err != nil { + if ociResponse != nil { + response = GetPreauthenticatedRequestResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(GetPreauthenticatedRequestResponse); ok { @@ -567,6 +773,48 @@ func (client ObjectStorageClient) getPreauthenticatedRequest(ctx context.Context return response, err } +// GetWorkRequest Gets the status of the work request with the given ID. +func (client ObjectStorageClient) GetWorkRequest(ctx context.Context, request GetWorkRequestRequest) (response GetWorkRequestResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getWorkRequest, policy) + if err != nil { + if ociResponse != nil { + response = GetWorkRequestResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(GetWorkRequestResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetWorkRequestResponse") + } + return +} + +// getWorkRequest implements the OCIOperation interface (enables retrying operations) +func (client ObjectStorageClient) getWorkRequest(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests/{workRequestId}") + if err != nil { + return nil, err + } + + var response GetWorkRequestResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // HeadBucket Efficiently checks to see if a bucket exists and gets the current ETag for the bucket. func (client ObjectStorageClient) HeadBucket(ctx context.Context, request HeadBucketRequest) (response HeadBucketResponse, err error) { var ociResponse common.OCIResponse @@ -576,6 +824,9 @@ func (client ObjectStorageClient) HeadBucket(ctx context.Context, request HeadBu } ociResponse, err = common.Retry(ctx, request, client.headBucket, policy) if err != nil { + if ociResponse != nil { + response = HeadBucketResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(HeadBucketResponse); ok { @@ -615,6 +866,9 @@ func (client ObjectStorageClient) HeadObject(ctx context.Context, request HeadOb } ociResponse, err = common.Retry(ctx, request, client.headObject, policy) if err != nil { + if ociResponse != nil { + response = HeadObjectResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(HeadObjectResponse); ok { @@ -658,6 +912,9 @@ func (client ObjectStorageClient) ListBuckets(ctx context.Context, request ListB } ociResponse, err = common.Retry(ctx, request, client.listBuckets, policy) if err != nil { + if ociResponse != nil { + response = ListBucketsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListBucketsResponse); ok { @@ -697,6 +954,9 @@ func (client ObjectStorageClient) ListMultipartUploadParts(ctx context.Context, } ociResponse, err = common.Retry(ctx, request, client.listMultipartUploadParts, policy) if err != nil { + if ociResponse != nil { + response = ListMultipartUploadPartsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListMultipartUploadPartsResponse); ok { @@ -736,6 +996,9 @@ func (client ObjectStorageClient) ListMultipartUploads(ctx context.Context, requ } ociResponse, err = common.Retry(ctx, request, client.listMultipartUploads, policy) if err != nil { + if ociResponse != nil { + response = ListMultipartUploadsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListMultipartUploadsResponse); ok { @@ -778,6 +1041,9 @@ func (client ObjectStorageClient) ListObjects(ctx context.Context, request ListO } ociResponse, err = common.Retry(ctx, request, client.listObjects, policy) if err != nil { + if ociResponse != nil { + response = ListObjectsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListObjectsResponse); ok { @@ -817,6 +1083,9 @@ func (client ObjectStorageClient) ListPreauthenticatedRequests(ctx context.Conte } ociResponse, err = common.Retry(ctx, request, client.listPreauthenticatedRequests, policy) if err != nil { + if ociResponse != nil { + response = ListPreauthenticatedRequestsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(ListPreauthenticatedRequestsResponse); ok { @@ -847,6 +1116,132 @@ func (client ObjectStorageClient) listPreauthenticatedRequests(ctx context.Conte return response, err } +// ListWorkRequestErrors Lists the errors of the work request with the given ID. +func (client ObjectStorageClient) ListWorkRequestErrors(ctx context.Context, request ListWorkRequestErrorsRequest) (response ListWorkRequestErrorsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listWorkRequestErrors, policy) + if err != nil { + if ociResponse != nil { + response = ListWorkRequestErrorsResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(ListWorkRequestErrorsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListWorkRequestErrorsResponse") + } + return +} + +// listWorkRequestErrors implements the OCIOperation interface (enables retrying operations) +func (client ObjectStorageClient) listWorkRequestErrors(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests/{workRequestId}/errors") + if err != nil { + return nil, err + } + + var response ListWorkRequestErrorsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListWorkRequestLogs Lists the logs of the work request with the given ID. +func (client ObjectStorageClient) ListWorkRequestLogs(ctx context.Context, request ListWorkRequestLogsRequest) (response ListWorkRequestLogsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listWorkRequestLogs, policy) + if err != nil { + if ociResponse != nil { + response = ListWorkRequestLogsResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(ListWorkRequestLogsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListWorkRequestLogsResponse") + } + return +} + +// listWorkRequestLogs implements the OCIOperation interface (enables retrying operations) +func (client ObjectStorageClient) listWorkRequestLogs(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests/{workRequestId}/logs") + if err != nil { + return nil, err + } + + var response ListWorkRequestLogsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListWorkRequests Lists the work requests in a compartment. +func (client ObjectStorageClient) ListWorkRequests(ctx context.Context, request ListWorkRequestsRequest) (response ListWorkRequestsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listWorkRequests, policy) + if err != nil { + if ociResponse != nil { + response = ListWorkRequestsResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(ListWorkRequestsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListWorkRequestsResponse") + } + return +} + +// listWorkRequests implements the OCIOperation interface (enables retrying operations) +func (client ObjectStorageClient) listWorkRequests(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests") + if err != nil { + return nil, err + } + + var response ListWorkRequestsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // PutObject Creates a new object or overwrites an existing one. func (client ObjectStorageClient) PutObject(ctx context.Context, request PutObjectRequest) (response PutObjectResponse, err error) { client.Signer = common.RequestSignerExcludeBody(*client.config) @@ -857,6 +1252,9 @@ func (client ObjectStorageClient) PutObject(ctx context.Context, request PutObje } ociResponse, err = common.Retry(ctx, request, client.putObject, policy) if err != nil { + if ociResponse != nil { + response = PutObjectResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(PutObjectResponse); ok { @@ -887,6 +1285,48 @@ func (client ObjectStorageClient) putObject(ctx context.Context, request common. return response, err } +// PutObjectLifecyclePolicy Creates or replaces the object lifecycle policy for the bucket. +func (client ObjectStorageClient) PutObjectLifecyclePolicy(ctx context.Context, request PutObjectLifecyclePolicyRequest) (response PutObjectLifecyclePolicyResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.putObjectLifecyclePolicy, policy) + if err != nil { + if ociResponse != nil { + response = PutObjectLifecyclePolicyResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(PutObjectLifecyclePolicyResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into PutObjectLifecyclePolicyResponse") + } + return +} + +// putObjectLifecyclePolicy implements the OCIOperation interface (enables retrying operations) +func (client ObjectStorageClient) putObjectLifecyclePolicy(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPut, "/n/{namespaceName}/b/{bucketName}/l") + if err != nil { + return nil, err + } + + var response PutObjectLifecyclePolicyResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // RenameObject Rename an object from source key to target key in the given namespace. func (client ObjectStorageClient) RenameObject(ctx context.Context, request RenameObjectRequest) (response RenameObjectResponse, err error) { var ociResponse common.OCIResponse @@ -896,6 +1336,9 @@ func (client ObjectStorageClient) RenameObject(ctx context.Context, request Rena } ociResponse, err = common.Retry(ctx, request, client.renameObject, policy) if err != nil { + if ociResponse != nil { + response = RenameObjectResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(RenameObjectResponse); ok { @@ -926,8 +1369,8 @@ func (client ObjectStorageClient) renameObject(ctx context.Context, request comm return response, err } -// RestoreObjects Restore one or more objects specified by objectName parameter. -// By default object will be restored for 24 hours.Duration can be configured using hours parameter. +// RestoreObjects Restore one or more objects specified by the objectName parameter. +// By default objects will be restored for 24 hours. Duration can be configured using the hours parameter. func (client ObjectStorageClient) RestoreObjects(ctx context.Context, request RestoreObjectsRequest) (response RestoreObjectsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -936,6 +1379,9 @@ func (client ObjectStorageClient) RestoreObjects(ctx context.Context, request Re } ociResponse, err = common.Retry(ctx, request, client.restoreObjects, policy) if err != nil { + if ociResponse != nil { + response = RestoreObjectsResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(RestoreObjectsResponse); ok { @@ -975,6 +1421,9 @@ func (client ObjectStorageClient) UpdateBucket(ctx context.Context, request Upda } ociResponse, err = common.Retry(ctx, request, client.updateBucket, policy) if err != nil { + if ociResponse != nil { + response = UpdateBucketResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateBucketResponse); ok { @@ -1017,6 +1466,9 @@ func (client ObjectStorageClient) UpdateNamespaceMetadata(ctx context.Context, r } ociResponse, err = common.Retry(ctx, request, client.updateNamespaceMetadata, policy) if err != nil { + if ociResponse != nil { + response = UpdateNamespaceMetadataResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UpdateNamespaceMetadataResponse); ok { @@ -1057,6 +1509,9 @@ func (client ObjectStorageClient) UploadPart(ctx context.Context, request Upload } ociResponse, err = common.Retry(ctx, request, client.uploadPart, policy) if err != nil { + if ociResponse != nil { + response = UploadPartResponse{RawResponse: ociResponse.HTTPResponse()} + } return } if convertedResponse, ok := ociResponse.(UploadPartResponse); ok { diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/preauthenticated_request.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/preauthenticated_request.go index fdf12fd9b..73eacc6c7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/preauthenticated_request.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/preauthenticated_request.go @@ -3,7 +3,7 @@ // Object Storage Service API // -// Common set of Object and Archive Storage APIs for managing buckets and objects. +// The Object and Archive Storage APIs for managing buckets and objects. // package objectstorage diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/preauthenticated_request_summary.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/preauthenticated_request_summary.go index 04b5440ad..06ef41db1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/preauthenticated_request_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/preauthenticated_request_summary.go @@ -3,7 +3,7 @@ // Object Storage Service API // -// Common set of Object and Archive Storage APIs for managing buckets and objects. +// The Object and Archive Storage APIs for managing buckets and objects. // package objectstorage diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/put_object_lifecycle_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/put_object_lifecycle_policy_details.go new file mode 100644 index 000000000..9c3a6d0c9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/put_object_lifecycle_policy_details.go @@ -0,0 +1,24 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Object Storage Service API +// +// The Object and Archive Storage APIs for managing buckets and objects. +// + +package objectstorage + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// PutObjectLifecyclePolicyDetails Creates a new object lifecycle policy for a bucket. +type PutObjectLifecyclePolicyDetails struct { + + // The bucket's set of lifecycle policy rules. + Items []ObjectLifecycleRule `mandatory:"false" json:"items"` +} + +func (m PutObjectLifecyclePolicyDetails) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/put_object_lifecycle_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/put_object_lifecycle_policy_request_response.go new file mode 100644 index 000000000..7f90fa23a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/put_object_lifecycle_policy_request_response.go @@ -0,0 +1,81 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package objectstorage + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// PutObjectLifecyclePolicyRequest wrapper for the PutObjectLifecyclePolicy operation +type PutObjectLifecyclePolicyRequest struct { + + // The top-level namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The name of the bucket. Avoid entering confidential information. + // Example: `my-new-bucket1` + BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` + + // The lifecycle policy to apply to the bucket. + PutObjectLifecyclePolicyDetails `contributesTo:"body"` + + // The client request ID for tracing. + OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` + + // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. + // For uploading a part, this is the entity tag of the target part. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The entity tag to avoid matching. The only valid value is '*', which indicates that the request should fail if the object already exists. + // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag of the target part. + IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request PutObjectLifecyclePolicyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request PutObjectLifecyclePolicyRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request PutObjectLifecyclePolicyRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// PutObjectLifecyclePolicyResponse wrapper for the PutObjectLifecyclePolicy operation +type PutObjectLifecyclePolicyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ObjectLifecyclePolicy instance + ObjectLifecyclePolicy `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, + // provide this request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. + OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` + + // The entity tag for the object lifecycle policy. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response PutObjectLifecyclePolicyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response PutObjectLifecyclePolicyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/put_object_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/put_object_request_response.go index f112573cc..452498eb2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/put_object_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/put_object_request_response.go @@ -24,7 +24,7 @@ type PutObjectRequest struct { ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` // The content length of the body. - ContentLength *int `mandatory:"true" contributesTo:"header" name:"Content-Length"` + ContentLength *int64 `mandatory:"true" contributesTo:"header" name:"Content-Length"` // The object to upload to the object store. PutObjectBody io.ReadCloser `mandatory:"true" contributesTo:"body" encoding:"binary"` @@ -33,7 +33,7 @@ type PutObjectRequest struct { // For uploading a part, this is the entity tag of the target part. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - // The entity tag to avoid matching. The only valid value is ‘*’, which indicates that the request should fail if the object already exists. + // The entity tag to avoid matching. The only valid value is '*', which indicates that the request should fail if the object already exists. // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag of the target part. IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/rename_object_details.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/rename_object_details.go index 99cce0816..ac89bbfc1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/rename_object_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/rename_object_details.go @@ -3,7 +3,7 @@ // Object Storage Service API // -// Common set of Object and Archive Storage APIs for managing buckets and objects. +// The Object and Archive Storage APIs for managing buckets and objects. // package objectstorage diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/restore_objects_details.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/restore_objects_details.go index b7b41e704..21481a598 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/restore_objects_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/restore_objects_details.go @@ -3,7 +3,7 @@ // Object Storage Service API // -// Common set of Object and Archive Storage APIs for managing buckets and objects. +// The Object and Archive Storage APIs for managing buckets and objects. // package objectstorage @@ -15,11 +15,11 @@ import ( // RestoreObjectsDetails The representation of RestoreObjectsDetails type RestoreObjectsDetails struct { - // A object which was in an archived state and need to be restored. + // An object which is in archive-tier storage and needs to be restored. ObjectName *string `mandatory:"true" json:"objectName"` // The number of hours for which this object will be restored. - // By default object will be restored for 24 hours.It can be configured using hours parameter. + // By default objects will be restored for 24 hours. Duration can be configured using the hours parameter. Hours *int `mandatory:"false" json:"hours"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/update_bucket_details.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/update_bucket_details.go index 1f778b7ba..e50226f5f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/update_bucket_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/update_bucket_details.go @@ -3,7 +3,7 @@ // Object Storage Service API // -// Common set of Object and Archive Storage APIs for managing buckets and objects. +// The Object and Archive Storage APIs for managing buckets and objects. // package objectstorage @@ -45,6 +45,12 @@ type UpdateBucketDetails struct { // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}} DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A KMS key OCID that will be associated with the given bucket. If it is empty the Update operation will + // actually remove the KMS key, if there is one, from the given bucket. Please note, the old kms key should + // still be enbaled in KMS otherwise all the objects in the bucket encrypted with the old KMS key will no + // longer accessible. + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` } func (m UpdateBucketDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/update_namespace_metadata_details.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/update_namespace_metadata_details.go index 967d993cc..57bfe824f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/update_namespace_metadata_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/update_namespace_metadata_details.go @@ -3,7 +3,7 @@ // Object Storage Service API // -// Common set of Object and Archive Storage APIs for managing buckets and objects. +// The Object and Archive Storage APIs for managing buckets and objects. // package objectstorage diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/upload_part_request_response.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/upload_part_request_response.go index da83c4cca..7a959eec0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/objectstorage/upload_part_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/upload_part_request_response.go @@ -30,7 +30,7 @@ type UploadPartRequest struct { UploadPartNum *int `mandatory:"true" contributesTo:"query" name:"uploadPartNum"` // The content length of the body. - ContentLength *int `mandatory:"true" contributesTo:"header" name:"Content-Length"` + ContentLength *int64 `mandatory:"true" contributesTo:"header" name:"Content-Length"` // The part being uploaded to the Object Storage Service. UploadPartBody io.ReadCloser `mandatory:"true" contributesTo:"body" encoding:"binary"` @@ -42,7 +42,7 @@ type UploadPartRequest struct { // For uploading a part, this is the entity tag of the target part. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - // The entity tag to avoid matching. The only valid value is ‘*’, which indicates that the request should fail if the object already exists. + // The entity tag to avoid matching. The only valid value is '*', which indicates that the request should fail if the object already exists. // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag of the target part. IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/work_request.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/work_request.go new file mode 100644 index 000000000..a40289542 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/work_request.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Object Storage Service API +// +// The Object and Archive Storage APIs for managing buckets and objects. +// + +package objectstorage + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// WorkRequest A description of workRequest status +type WorkRequest struct { + + // type of the work request + OperationType WorkRequestOperationTypeEnum `mandatory:"false" json:"operationType,omitempty"` + + // status of current work request. + Status WorkRequestStatusEnum `mandatory:"false" json:"status,omitempty"` + + // The id of the work request. + Id *string `mandatory:"false" json:"id"` + + // The ocid of the compartment that contains the work request. Work requests should be scoped to + // the same compartment as the resource the work request affects. If the work request affects multiple resources, + // and those resources are not in the same compartment, it is up to the service team to pick the primary + // resource whose compartment should be used + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + Resources []WorkRequestResource `mandatory:"false" json:"resources"` + + // Percentage of the request completed. + PercentComplete *float32 `mandatory:"false" json:"percentComplete"` + + // The date and time the request was created, as described in + // RFC 3339 (https://tools.ietf.org/rfc/rfc3339), section 14.29. + TimeAccepted *common.SDKTime `mandatory:"false" json:"timeAccepted"` + + // The date and time the request was started, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339), + // section 14.29. + TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` + + // The date and time the object was finished, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339). + TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` +} + +func (m WorkRequest) String() string { + return common.PointerString(m) +} + +// WorkRequestOperationTypeEnum Enum with underlying type: string +type WorkRequestOperationTypeEnum string + +// Set of constants representing the allowable values for WorkRequestOperationType +const ( + WorkRequestOperationTypeObject WorkRequestOperationTypeEnum = "COPY_OBJECT" +) + +var mappingWorkRequestOperationType = map[string]WorkRequestOperationTypeEnum{ + "COPY_OBJECT": WorkRequestOperationTypeObject, +} + +// GetWorkRequestOperationTypeEnumValues Enumerates the set of values for WorkRequestOperationType +func GetWorkRequestOperationTypeEnumValues() []WorkRequestOperationTypeEnum { + values := make([]WorkRequestOperationTypeEnum, 0) + for _, v := range mappingWorkRequestOperationType { + values = append(values, v) + } + return values +} + +// WorkRequestStatusEnum Enum with underlying type: string +type WorkRequestStatusEnum string + +// Set of constants representing the allowable values for WorkRequestStatus +const ( + WorkRequestStatusAccepted WorkRequestStatusEnum = "ACCEPTED" + WorkRequestStatusInProgress WorkRequestStatusEnum = "IN_PROGRESS" + WorkRequestStatusFailed WorkRequestStatusEnum = "FAILED" + WorkRequestStatusCompleted WorkRequestStatusEnum = "COMPLETED" + WorkRequestStatusCanceling WorkRequestStatusEnum = "CANCELING" + WorkRequestStatusCanceled WorkRequestStatusEnum = "CANCELED" +) + +var mappingWorkRequestStatus = map[string]WorkRequestStatusEnum{ + "ACCEPTED": WorkRequestStatusAccepted, + "IN_PROGRESS": WorkRequestStatusInProgress, + "FAILED": WorkRequestStatusFailed, + "COMPLETED": WorkRequestStatusCompleted, + "CANCELING": WorkRequestStatusCanceling, + "CANCELED": WorkRequestStatusCanceled, +} + +// GetWorkRequestStatusEnumValues Enumerates the set of values for WorkRequestStatus +func GetWorkRequestStatusEnumValues() []WorkRequestStatusEnum { + values := make([]WorkRequestStatusEnum, 0) + for _, v := range mappingWorkRequestStatus { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/work_request_error.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/work_request_error.go new file mode 100644 index 000000000..573c4e413 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/work_request_error.go @@ -0,0 +1,31 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Object Storage Service API +// +// The Object and Archive Storage APIs for managing buckets and objects. +// + +package objectstorage + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// WorkRequestError The representation of WorkRequestError +type WorkRequestError struct { + + // A machine-usable code for the error that occured. Error codes are listed on + // (https://docs.us-phoenix-1.oraclecloud.com/Content/API/References/apierrors.htm) + Code *string `mandatory:"false" json:"code"` + + // A human readable description of the issue encountered. + Message *string `mandatory:"false" json:"message"` + + // The time the error happened + Timestamp *common.SDKTime `mandatory:"false" json:"timestamp"` +} + +func (m WorkRequestError) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/work_request_log_entry.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/work_request_log_entry.go new file mode 100644 index 000000000..f64167aca --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/work_request_log_entry.go @@ -0,0 +1,27 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Object Storage Service API +// +// The Object and Archive Storage APIs for managing buckets and objects. +// + +package objectstorage + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// WorkRequestLogEntry The representation of WorkRequestLogEntry +type WorkRequestLogEntry struct { + + // Human-readable log message. + Message *string `mandatory:"false" json:"message"` + + // The time the log message was written. An RFC3339 formatted datetime string + Timestamp *common.SDKTime `mandatory:"false" json:"timestamp"` +} + +func (m WorkRequestLogEntry) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/work_request_resource.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/work_request_resource.go new file mode 100644 index 000000000..e31b55c3c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/work_request_resource.go @@ -0,0 +1,69 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Object Storage Service API +// +// The Object and Archive Storage APIs for managing buckets and objects. +// + +package objectstorage + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// WorkRequestResource The representation of WorkRequestResource +type WorkRequestResource struct { + + // The status that a work request can present + ActionType WorkRequestResourceActionTypeEnum `mandatory:"false" json:"actionType,omitempty"` + + // The resource type the work request is affects. + EntityType *string `mandatory:"false" json:"entityType"` + + // The identifier of the resource the work request affects. + Identifier *string `mandatory:"false" json:"identifier"` + + // The URI path that the user can do a GET on to access the resource metadata + EntityUri *string `mandatory:"false" json:"entityUri"` + + // The metadata of the resource. + Metadata map[string]string `mandatory:"false" json:"metadata"` +} + +func (m WorkRequestResource) String() string { + return common.PointerString(m) +} + +// WorkRequestResourceActionTypeEnum Enum with underlying type: string +type WorkRequestResourceActionTypeEnum string + +// Set of constants representing the allowable values for WorkRequestResourceActionType +const ( + WorkRequestResourceActionTypeCreated WorkRequestResourceActionTypeEnum = "CREATED" + WorkRequestResourceActionTypeUpdated WorkRequestResourceActionTypeEnum = "UPDATED" + WorkRequestResourceActionTypeDeleted WorkRequestResourceActionTypeEnum = "DELETED" + WorkRequestResourceActionTypeRelated WorkRequestResourceActionTypeEnum = "RELATED" + WorkRequestResourceActionTypeInProgress WorkRequestResourceActionTypeEnum = "IN_PROGRESS" + WorkRequestResourceActionTypeRead WorkRequestResourceActionTypeEnum = "READ" + WorkRequestResourceActionTypeWritten WorkRequestResourceActionTypeEnum = "WRITTEN" +) + +var mappingWorkRequestResourceActionType = map[string]WorkRequestResourceActionTypeEnum{ + "CREATED": WorkRequestResourceActionTypeCreated, + "UPDATED": WorkRequestResourceActionTypeUpdated, + "DELETED": WorkRequestResourceActionTypeDeleted, + "RELATED": WorkRequestResourceActionTypeRelated, + "IN_PROGRESS": WorkRequestResourceActionTypeInProgress, + "READ": WorkRequestResourceActionTypeRead, + "WRITTEN": WorkRequestResourceActionTypeWritten, +} + +// GetWorkRequestResourceActionTypeEnumValues Enumerates the set of values for WorkRequestResourceActionType +func GetWorkRequestResourceActionTypeEnumValues() []WorkRequestResourceActionTypeEnum { + values := make([]WorkRequestResourceActionTypeEnum, 0) + for _, v := range mappingWorkRequestResourceActionType { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/work_request_resource_metadata_key.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/work_request_resource_metadata_key.go new file mode 100644 index 000000000..ddd74bbe0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/work_request_resource_metadata_key.go @@ -0,0 +1,21 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Object Storage Service API +// +// The Object and Archive Storage APIs for managing buckets and objects. +// + +package objectstorage + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// WorkRequestResourceMetadataKey The keys of WorkRequestResource metadata. +type WorkRequestResourceMetadataKey struct { +} + +func (m WorkRequestResourceMetadataKey) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/objectstorage/work_request_summary.go b/vendor/github.com/oracle/oci-go-sdk/objectstorage/work_request_summary.go new file mode 100644 index 000000000..7cd43ddee --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/objectstorage/work_request_summary.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Object Storage Service API +// +// The Object and Archive Storage APIs for managing buckets and objects. +// + +package objectstorage + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// WorkRequestSummary A summary of workRequest status +type WorkRequestSummary struct { + + // type of the work request + OperationType WorkRequestSummaryOperationTypeEnum `mandatory:"false" json:"operationType,omitempty"` + + // status of current work request. + Status WorkRequestSummaryStatusEnum `mandatory:"false" json:"status,omitempty"` + + // The id of the work request. + Id *string `mandatory:"false" json:"id"` + + // The ocid of the compartment that contains the work request. Work requests should be scoped to + // the same compartment as the resource the work request affects. If the work request affects multiple resources, + // and those resources are not in the same compartment, it is up to the service team to pick the primary + // resource whose compartment should be used + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + Resources []WorkRequestResource `mandatory:"false" json:"resources"` + + // Percentage of the request completed. + PercentComplete *float32 `mandatory:"false" json:"percentComplete"` + + // The date and time the request was created, as described in + // RFC 3339 (https://tools.ietf.org/rfc/rfc3339), section 14.29. + TimeAccepted *common.SDKTime `mandatory:"false" json:"timeAccepted"` + + // The date and time the request was started, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339), + // section 14.29. + TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` + + // The date and time the object was finished, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339). + TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` +} + +func (m WorkRequestSummary) String() string { + return common.PointerString(m) +} + +// WorkRequestSummaryOperationTypeEnum Enum with underlying type: string +type WorkRequestSummaryOperationTypeEnum string + +// Set of constants representing the allowable values for WorkRequestSummaryOperationType +const ( + WorkRequestSummaryOperationTypeObject WorkRequestSummaryOperationTypeEnum = "COPY_OBJECT" +) + +var mappingWorkRequestSummaryOperationType = map[string]WorkRequestSummaryOperationTypeEnum{ + "COPY_OBJECT": WorkRequestSummaryOperationTypeObject, +} + +// GetWorkRequestSummaryOperationTypeEnumValues Enumerates the set of values for WorkRequestSummaryOperationType +func GetWorkRequestSummaryOperationTypeEnumValues() []WorkRequestSummaryOperationTypeEnum { + values := make([]WorkRequestSummaryOperationTypeEnum, 0) + for _, v := range mappingWorkRequestSummaryOperationType { + values = append(values, v) + } + return values +} + +// WorkRequestSummaryStatusEnum Enum with underlying type: string +type WorkRequestSummaryStatusEnum string + +// Set of constants representing the allowable values for WorkRequestSummaryStatus +const ( + WorkRequestSummaryStatusAccepted WorkRequestSummaryStatusEnum = "ACCEPTED" + WorkRequestSummaryStatusInProgress WorkRequestSummaryStatusEnum = "IN_PROGRESS" + WorkRequestSummaryStatusFailed WorkRequestSummaryStatusEnum = "FAILED" + WorkRequestSummaryStatusCompleted WorkRequestSummaryStatusEnum = "COMPLETED" + WorkRequestSummaryStatusCanceling WorkRequestSummaryStatusEnum = "CANCELING" + WorkRequestSummaryStatusCanceled WorkRequestSummaryStatusEnum = "CANCELED" +) + +var mappingWorkRequestSummaryStatus = map[string]WorkRequestSummaryStatusEnum{ + "ACCEPTED": WorkRequestSummaryStatusAccepted, + "IN_PROGRESS": WorkRequestSummaryStatusInProgress, + "FAILED": WorkRequestSummaryStatusFailed, + "COMPLETED": WorkRequestSummaryStatusCompleted, + "CANCELING": WorkRequestSummaryStatusCanceling, + "CANCELED": WorkRequestSummaryStatusCanceled, +} + +// GetWorkRequestSummaryStatusEnumValues Enumerates the set of values for WorkRequestSummaryStatus +func GetWorkRequestSummaryStatusEnumValues() []WorkRequestSummaryStatusEnum { + values := make([]WorkRequestSummaryStatusEnum, 0) + for _, v := range mappingWorkRequestSummaryStatus { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/oci.go b/vendor/github.com/oracle/oci-go-sdk/oci.go index 396634535..e989762e1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/oci.go +++ b/vendor/github.com/oracle/oci-go-sdk/oci.go @@ -143,6 +143,36 @@ The signer also allows more granular control on the headers used for signing. Fo // Execute the request c.Do(request) +You can combine a custom signer with the exposed clients in the SDK. +This allows you to add custom signed headers to the request. Following is an example: + + //Create a provider of cryptographic keys + provider := common.DefaultConfigProvider() + + //Create a client for the service you interested in + c, _ := identity.NewIdentityClientWithConfigurationProvider(provider) + + //Define a custom header to be signed, and add it to the list of default headers + customHeader := "opc-my-token" + allHeaders := append(common.DefaultGenericHeaders(), customHeader) + + //Overwrite the signer in your client to sign the new slice of headers + c.Signer = common.RequestSigner(provider, allHeaders, common.DefaultBodyHeaders()) + + //Set the value of the header. This can be done with an Interceptor + c.Interceptor = func(request *http.Request) error { + request.Header.Add(customHeader, "customvalue") + return nil + } + + //Execute your operation as before + c.ListGroups(..) + +Bear in mind that some services have a white list of headers that it expects to be signed. +Therefore, adding an arbitrary header can result in authentications errors. +To see a runnable example, see https://github.com/oracle/oci-go-sdk/blob/master/example/example_identity_test.go + + For more information on the signing algorithm refer to: https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/signingrequests.htm Polymorphic json requests and responses diff --git a/vendor/github.com/oracle/oci-go-sdk/resourcesearch/free_text_search_details.go b/vendor/github.com/oracle/oci-go-sdk/resourcesearch/free_text_search_details.go new file mode 100644 index 000000000..ee7cf3699 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/resourcesearch/free_text_search_details.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Search Service API +// +// Search for resources in your cloud network. +// + +package resourcesearch + +import ( + "encoding/json" + "github.com/oracle/oci-go-sdk/common" +) + +// FreeTextSearchDetails A request containing arbitrary text that must be present in the resource. +type FreeTextSearchDetails struct { + + // The text to search for. + Text *string `mandatory:"true" json:"text"` + + // The type of matching context returned in the response. If you specify `HIGHLIGHTS`, then the service will highlight fragments in its response. (See ResourceSummary.searchContext and SearchContext for more information.) The default setting is `NONE`. + MatchingContextType SearchDetailsMatchingContextTypeEnum `mandatory:"false" json:"matchingContextType,omitempty"` +} + +//GetMatchingContextType returns MatchingContextType +func (m FreeTextSearchDetails) GetMatchingContextType() SearchDetailsMatchingContextTypeEnum { + return m.MatchingContextType +} + +func (m FreeTextSearchDetails) String() string { + return common.PointerString(m) +} + +// MarshalJSON marshals to json representation +func (m FreeTextSearchDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeFreeTextSearchDetails FreeTextSearchDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeFreeTextSearchDetails + }{ + "FreeText", + (MarshalTypeFreeTextSearchDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/resourcesearch/get_resource_type_request_response.go b/vendor/github.com/oracle/oci-go-sdk/resourcesearch/get_resource_type_request_response.go new file mode 100644 index 000000000..b720c3b23 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/resourcesearch/get_resource_type_request_response.go @@ -0,0 +1,61 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package resourcesearch + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// GetResourceTypeRequest wrapper for the GetResourceType operation +type GetResourceTypeRequest struct { + + // The name of the resource type. + Name *string `mandatory:"true" contributesTo:"path" name:"name"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular + // request, please provide the complete request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetResourceTypeRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetResourceTypeRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetResourceTypeRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// GetResourceTypeResponse wrapper for the GetResourceType operation +type GetResourceTypeResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ResourceType instance + ResourceType `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetResourceTypeResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetResourceTypeResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/resourcesearch/list_resource_types_request_response.go b/vendor/github.com/oracle/oci-go-sdk/resourcesearch/list_resource_types_request_response.go new file mode 100644 index 000000000..5116dde82 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/resourcesearch/list_resource_types_request_response.go @@ -0,0 +1,67 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package resourcesearch + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// ListResourceTypesRequest wrapper for the ListResourceTypes operation +type ListResourceTypesRequest struct { + + // The maximum number of items to return. The value must be between 1 and 1000. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The page at which to start retrieving results. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular + // request, please provide the complete request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListResourceTypesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListResourceTypesRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListResourceTypesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ListResourceTypesResponse wrapper for the ListResourceTypes operation +type ListResourceTypesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []ResourceType instances + Items []ResourceType `presentIn:"body"` + + // Pagination token + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListResourceTypesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListResourceTypesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/resourcesearch/queryable_field_description.go b/vendor/github.com/oracle/oci-go-sdk/resourcesearch/queryable_field_description.go new file mode 100644 index 000000000..817164ceb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/resourcesearch/queryable_field_description.go @@ -0,0 +1,69 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Search Service API +// +// Search for resources in your cloud network. +// + +package resourcesearch + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// QueryableFieldDescription An individual field that can be used as part of a query filter. +type QueryableFieldDescription struct { + + // The type of the field, which dictates what semantics and query constraints you can use when searching or querying. + FieldType QueryableFieldDescriptionFieldTypeEnum `mandatory:"true" json:"fieldType"` + + // The name of the field to use when constructing the query. Field names are present for all types except `OBJECT`. + FieldName *string `mandatory:"true" json:"fieldName"` + + // Indicates this field is actually an array of the specified field type. + IsArray *bool `mandatory:"false" json:"isArray"` + + // If the field type is `OBJECT`, then this property will provide all the individual properties on the object that can + // be queried. + ObjectProperties []QueryableFieldDescription `mandatory:"false" json:"objectProperties"` +} + +func (m QueryableFieldDescription) String() string { + return common.PointerString(m) +} + +// QueryableFieldDescriptionFieldTypeEnum Enum with underlying type: string +type QueryableFieldDescriptionFieldTypeEnum string + +// Set of constants representing the allowable values for QueryableFieldDescriptionFieldType +const ( + QueryableFieldDescriptionFieldTypeIdentifier QueryableFieldDescriptionFieldTypeEnum = "IDENTIFIER" + QueryableFieldDescriptionFieldTypeString QueryableFieldDescriptionFieldTypeEnum = "STRING" + QueryableFieldDescriptionFieldTypeInteger QueryableFieldDescriptionFieldTypeEnum = "INTEGER" + QueryableFieldDescriptionFieldTypeRational QueryableFieldDescriptionFieldTypeEnum = "RATIONAL" + QueryableFieldDescriptionFieldTypeBoolean QueryableFieldDescriptionFieldTypeEnum = "BOOLEAN" + QueryableFieldDescriptionFieldTypeDatetime QueryableFieldDescriptionFieldTypeEnum = "DATETIME" + QueryableFieldDescriptionFieldTypeIp QueryableFieldDescriptionFieldTypeEnum = "IP" + QueryableFieldDescriptionFieldTypeObject QueryableFieldDescriptionFieldTypeEnum = "OBJECT" +) + +var mappingQueryableFieldDescriptionFieldType = map[string]QueryableFieldDescriptionFieldTypeEnum{ + "IDENTIFIER": QueryableFieldDescriptionFieldTypeIdentifier, + "STRING": QueryableFieldDescriptionFieldTypeString, + "INTEGER": QueryableFieldDescriptionFieldTypeInteger, + "RATIONAL": QueryableFieldDescriptionFieldTypeRational, + "BOOLEAN": QueryableFieldDescriptionFieldTypeBoolean, + "DATETIME": QueryableFieldDescriptionFieldTypeDatetime, + "IP": QueryableFieldDescriptionFieldTypeIp, + "OBJECT": QueryableFieldDescriptionFieldTypeObject, +} + +// GetQueryableFieldDescriptionFieldTypeEnumValues Enumerates the set of values for QueryableFieldDescriptionFieldType +func GetQueryableFieldDescriptionFieldTypeEnumValues() []QueryableFieldDescriptionFieldTypeEnum { + values := make([]QueryableFieldDescriptionFieldTypeEnum, 0) + for _, v := range mappingQueryableFieldDescriptionFieldType { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/resourcesearch/resource_summary.go b/vendor/github.com/oracle/oci-go-sdk/resourcesearch/resource_summary.go new file mode 100644 index 000000000..1c4ef0da8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/resourcesearch/resource_summary.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Search Service API +// +// Search for resources in your cloud network. +// + +package resourcesearch + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// ResourceSummary A resource that exists in the user's cloud network. +type ResourceSummary struct { + + // The resource type name. + ResourceType *string `mandatory:"true" json:"resourceType"` + + // The unique identifier for this particular resource, usually an OCID. + Identifier *string `mandatory:"true" json:"identifier"` + + // The OCID of the compartment that contains this resource. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The time this resource was created. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The display name (or name) of this resource, if one exists. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The availability domain this resource is located in, if applicable. + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // The lifecycle state of this resource, if applicable. + LifecycleState *string `mandatory:"false" json:"lifecycleState"` + + // The freeform tags associated with this resource, if any. + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The defined tags associated with this resource, if any. + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Contains search context, such as highlighting, for found resources. + SearchContext *SearchContext `mandatory:"false" json:"searchContext"` +} + +func (m ResourceSummary) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/resourcesearch/resource_summary_collection.go b/vendor/github.com/oracle/oci-go-sdk/resourcesearch/resource_summary_collection.go new file mode 100644 index 000000000..414dc3954 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/resourcesearch/resource_summary_collection.go @@ -0,0 +1,24 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Search Service API +// +// Search for resources in your cloud network. +// + +package resourcesearch + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// ResourceSummaryCollection Summary representation of resources that matched the search criteria. +type ResourceSummaryCollection struct { + + // A list of resources. + Items []ResourceSummary `mandatory:"false" json:"items"` +} + +func (m ResourceSummaryCollection) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/resourcesearch/resource_type.go b/vendor/github.com/oracle/oci-go-sdk/resourcesearch/resource_type.go new file mode 100644 index 000000000..f1d91988a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/resourcesearch/resource_type.go @@ -0,0 +1,27 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Search Service API +// +// Search for resources in your cloud network. +// + +package resourcesearch + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// ResourceType Defines a type of resource that you can find with a search or query. +type ResourceType struct { + + // The unique name of the resource type, which matches the value returned as part of the ResourceSummary object. + Name *string `mandatory:"true" json:"name"` + + // List of all the fields and their value type that are indexed for querying. + Fields []QueryableFieldDescription `mandatory:"true" json:"fields"` +} + +func (m ResourceType) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/resourcesearch/resourcesearch_client.go b/vendor/github.com/oracle/oci-go-sdk/resourcesearch/resourcesearch_client.go new file mode 100644 index 000000000..70c963d27 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/resourcesearch/resourcesearch_client.go @@ -0,0 +1,187 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Search Service API +// +// Search for resources in your cloud network. +// + +package resourcesearch + +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +//ResourceSearchClient a client for ResourceSearch +type ResourceSearchClient struct { + common.BaseClient + config *common.ConfigurationProvider +} + +// NewResourceSearchClientWithConfigurationProvider Creates a new default ResourceSearch client with the given configuration provider. +// the configuration provider will be used for the default signer as well as reading the region +func NewResourceSearchClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client ResourceSearchClient, err error) { + baseClient, err := common.NewClientWithConfig(configProvider) + if err != nil { + return + } + + client = ResourceSearchClient{BaseClient: baseClient} + client.BasePath = "20180409" + err = client.setConfigurationProvider(configProvider) + return +} + +// SetRegion overrides the region of this client. +func (client *ResourceSearchClient) SetRegion(region string) { + client.Host = fmt.Sprintf(common.DefaultHostURLTemplate, "query", region) +} + +// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid +func (client *ResourceSearchClient) setConfigurationProvider(configProvider common.ConfigurationProvider) error { + if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { + return err + } + + // Error has been checked already + region, _ := configProvider.Region() + client.SetRegion(region) + client.config = &configProvider + return nil +} + +// ConfigurationProvider the ConfigurationProvider used in this client, or null if none set +func (client *ResourceSearchClient) ConfigurationProvider() *common.ConfigurationProvider { + return client.config +} + +// GetResourceType Gets detailed information about a resource type by using the resource type name. +func (client ResourceSearchClient) GetResourceType(ctx context.Context, request GetResourceTypeRequest) (response GetResourceTypeResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getResourceType, policy) + if err != nil { + if ociResponse != nil { + response = GetResourceTypeResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(GetResourceTypeResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetResourceTypeResponse") + } + return +} + +// getResourceType implements the OCIOperation interface (enables retrying operations) +func (client ResourceSearchClient) getResourceType(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/resourceTypes/{name}") + if err != nil { + return nil, err + } + + var response GetResourceTypeResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListResourceTypes Lists all resource types that you can search or query for. +func (client ResourceSearchClient) ListResourceTypes(ctx context.Context, request ListResourceTypesRequest) (response ListResourceTypesResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listResourceTypes, policy) + if err != nil { + if ociResponse != nil { + response = ListResourceTypesResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(ListResourceTypesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListResourceTypesResponse") + } + return +} + +// listResourceTypes implements the OCIOperation interface (enables retrying operations) +func (client ResourceSearchClient) listResourceTypes(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodGet, "/resourceTypes") + if err != nil { + return nil, err + } + + var response ListResourceTypesResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// SearchResources Queries any and all compartments in the tenancy to find resources that match the specified criteria. +// Results include resources that you have permission to view and can span different resource types. +// You can also sort results based on a specified resource attribute. +func (client ResourceSearchClient) SearchResources(ctx context.Context, request SearchResourcesRequest) (response SearchResourcesResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.searchResources, policy) + if err != nil { + if ociResponse != nil { + response = SearchResourcesResponse{RawResponse: ociResponse.HTTPResponse()} + } + return + } + if convertedResponse, ok := ociResponse.(SearchResourcesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into SearchResourcesResponse") + } + return +} + +// searchResources implements the OCIOperation interface (enables retrying operations) +func (client ResourceSearchClient) searchResources(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) { + httpRequest, err := request.HTTPRequest(http.MethodPost, "/resources") + if err != nil { + return nil, err + } + + var response SearchResourcesResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} diff --git a/vendor/github.com/oracle/oci-go-sdk/resourcesearch/search_context.go b/vendor/github.com/oracle/oci-go-sdk/resourcesearch/search_context.go new file mode 100644 index 000000000..5c6b4a7e0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/resourcesearch/search_context.go @@ -0,0 +1,26 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Search Service API +// +// Search for resources in your cloud network. +// + +package resourcesearch + +import ( + "github.com/oracle/oci-go-sdk/common" +) + +// SearchContext Contains search context, such as highlighting, for found resources. +type SearchContext struct { + + // Describes what in each field matched the search criteria by showing highlighted values, but only for free text searches or for structured + // queries that use a MATCHING clause. The list of strings represents fragments of values that matched the query conditions. Highlighted + // values are wrapped with .. tags. All values are HTML-encoded (except tags). + Highlights map[string][]string `mandatory:"false" json:"highlights"` +} + +func (m SearchContext) String() string { + return common.PointerString(m) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/resourcesearch/search_details.go b/vendor/github.com/oracle/oci-go-sdk/resourcesearch/search_details.go new file mode 100644 index 000000000..c1906c8c3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/resourcesearch/search_details.go @@ -0,0 +1,98 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Search Service API +// +// Search for resources in your cloud network. +// + +package resourcesearch + +import ( + "encoding/json" + "github.com/oracle/oci-go-sdk/common" +) + +// SearchDetails A base request type containing common criteria for searching for resources. +type SearchDetails interface { + + // The type of matching context returned in the response. If you specify `HIGHLIGHTS`, then the service will highlight fragments in its response. (See ResourceSummary.searchContext and SearchContext for more information.) The default setting is `NONE`. + GetMatchingContextType() SearchDetailsMatchingContextTypeEnum +} + +type searchdetails struct { + JsonData []byte + MatchingContextType SearchDetailsMatchingContextTypeEnum `mandatory:"false" json:"matchingContextType,omitempty"` + Type string `json:"type"` +} + +// UnmarshalJSON unmarshals json +func (m *searchdetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalersearchdetails searchdetails + s := struct { + Model Unmarshalersearchdetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.MatchingContextType = s.Model.MatchingContextType + m.Type = s.Model.Type + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *searchdetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.Type { + case "Structured": + mm := StructuredSearchDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "FreeText": + mm := FreeTextSearchDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + return *m, nil + } +} + +//GetMatchingContextType returns MatchingContextType +func (m searchdetails) GetMatchingContextType() SearchDetailsMatchingContextTypeEnum { + return m.MatchingContextType +} + +func (m searchdetails) String() string { + return common.PointerString(m) +} + +// SearchDetailsMatchingContextTypeEnum Enum with underlying type: string +type SearchDetailsMatchingContextTypeEnum string + +// Set of constants representing the allowable values for SearchDetailsMatchingContextType +const ( + SearchDetailsMatchingContextTypeNone SearchDetailsMatchingContextTypeEnum = "NONE" + SearchDetailsMatchingContextTypeHighlights SearchDetailsMatchingContextTypeEnum = "HIGHLIGHTS" +) + +var mappingSearchDetailsMatchingContextType = map[string]SearchDetailsMatchingContextTypeEnum{ + "NONE": SearchDetailsMatchingContextTypeNone, + "HIGHLIGHTS": SearchDetailsMatchingContextTypeHighlights, +} + +// GetSearchDetailsMatchingContextTypeEnumValues Enumerates the set of values for SearchDetailsMatchingContextType +func GetSearchDetailsMatchingContextTypeEnumValues() []SearchDetailsMatchingContextTypeEnum { + values := make([]SearchDetailsMatchingContextTypeEnum, 0) + for _, v := range mappingSearchDetailsMatchingContextType { + values = append(values, v) + } + return values +} diff --git a/vendor/github.com/oracle/oci-go-sdk/resourcesearch/search_resources_request_response.go b/vendor/github.com/oracle/oci-go-sdk/resourcesearch/search_resources_request_response.go new file mode 100644 index 000000000..1c3109dc3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/resourcesearch/search_resources_request_response.go @@ -0,0 +1,70 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +package resourcesearch + +import ( + "github.com/oracle/oci-go-sdk/common" + "net/http" +) + +// SearchResourcesRequest wrapper for the SearchResources operation +type SearchResourcesRequest struct { + + // Request parameters that describe query criteria. + SearchDetails `contributesTo:"body"` + + // The maximum number of items to return. The value must be between 1 and 1000. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The page at which to start retrieving results. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular + // request, please provide the complete request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request SearchResourcesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request SearchResourcesRequest) HTTPRequest(method, path string) (http.Request, error) { + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request SearchResourcesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// SearchResourcesResponse wrapper for the SearchResources operation +type SearchResourcesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of ResourceSummaryCollection instances + ResourceSummaryCollection `presentIn:"body"` + + // Pagination token + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response SearchResourcesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response SearchResourcesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/resourcesearch/structured_search_details.go b/vendor/github.com/oracle/oci-go-sdk/resourcesearch/structured_search_details.go new file mode 100644 index 000000000..56ea07477 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/resourcesearch/structured_search_details.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. +// Code generated. DO NOT EDIT. + +// Search Service API +// +// Search for resources in your cloud network. +// + +package resourcesearch + +import ( + "encoding/json" + "github.com/oracle/oci-go-sdk/common" +) + +// StructuredSearchDetails A request containing search filters using the structured search query language. +type StructuredSearchDetails struct { + + // The structured query describing which resources to search for. + Query *string `mandatory:"true" json:"query"` + + // The type of matching context returned in the response. If you specify `HIGHLIGHTS`, then the service will highlight fragments in its response. (See ResourceSummary.searchContext and SearchContext for more information.) The default setting is `NONE`. + MatchingContextType SearchDetailsMatchingContextTypeEnum `mandatory:"false" json:"matchingContextType,omitempty"` +} + +//GetMatchingContextType returns MatchingContextType +func (m StructuredSearchDetails) GetMatchingContextType() SearchDetailsMatchingContextTypeEnum { + return m.MatchingContextType +} + +func (m StructuredSearchDetails) String() string { + return common.PointerString(m) +} + +// MarshalJSON marshals to json representation +func (m StructuredSearchDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeStructuredSearchDetails StructuredSearchDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeStructuredSearchDetails + }{ + "Structured", + (MarshalTypeStructuredSearchDetails)(m), + } + + return json.Marshal(&s) +}