Fix vendor
This commit is contained in:
parent
34b86c0228
commit
30b0229fb4
|
@ -0,0 +1 @@
|
|||
Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates.
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
||||
|
||||
package auth
|
||||
|
||||
import "github.com/oracle/oci-go-sdk/common"
|
||||
|
|
3
vendor/github.com/oracle/oci-go-sdk/common/auth/resouce_principal_key_provider.go
generated
vendored
3
vendor/github.com/oracle/oci-go-sdk/common/auth/resouce_principal_key_provider.go
generated
vendored
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
||||
|
||||
package auth
|
||||
|
||||
import (
|
||||
|
|
|
@ -70,6 +70,7 @@ const (
|
|||
defaultTimeout = 60 * time.Second
|
||||
defaultConfigFileName = "config"
|
||||
defaultConfigDirName = ".oci"
|
||||
configFilePathEnvVarName = "OCI_CONFIG_FILE"
|
||||
secondaryConfigDirName = ".oraclebmc"
|
||||
maxBodyLenForDebug = 1024 * 1000
|
||||
)
|
||||
|
@ -196,9 +197,11 @@ func getHomeFolder() string {
|
|||
// will look for configurations in 3 places: file in $HOME/.oci/config, HOME/.obmcs/config and
|
||||
// variables names starting with the string TF_VAR. If the same configuration is found in multiple
|
||||
// places the provider will prefer the first one.
|
||||
// If the config file is not placed in the default location, the environment variable
|
||||
// OCI_CONFIG_FILE can provide the config file location.
|
||||
func DefaultConfigProvider() ConfigurationProvider {
|
||||
defaultConfigFile := getDefaultConfigFilePath()
|
||||
homeFolder := getHomeFolder()
|
||||
defaultConfigFile := path.Join(homeFolder, defaultConfigDirName, defaultConfigFileName)
|
||||
secondaryConfigFile := path.Join(homeFolder, secondaryConfigDirName, defaultConfigFileName)
|
||||
|
||||
defaultFileProvider, _ := ConfigurationProviderFromFile(defaultConfigFile, "")
|
||||
|
@ -210,6 +213,26 @@ func DefaultConfigProvider() ConfigurationProvider {
|
|||
return provider
|
||||
}
|
||||
|
||||
func getDefaultConfigFilePath() string {
|
||||
homeFolder := getHomeFolder()
|
||||
defaultConfigFile := path.Join(homeFolder, defaultConfigDirName, defaultConfigFileName)
|
||||
if _, err := os.Stat(defaultConfigFile); err == nil {
|
||||
return defaultConfigFile
|
||||
}
|
||||
Debugf("The %s does not exist, will check env var %s for file path.", defaultConfigFile, configFilePathEnvVarName)
|
||||
// Read configuration file path from OCI_CONFIG_FILE env var
|
||||
fallbackConfigFile, existed := os.LookupEnv(configFilePathEnvVarName)
|
||||
if !existed {
|
||||
Debugf("The env var %s does not exist...", configFilePathEnvVarName)
|
||||
return defaultConfigFile
|
||||
}
|
||||
if _, err := os.Stat(fallbackConfigFile); os.IsNotExist(err) {
|
||||
Debugf("The specified cfg file path in the env var %s does not exist: %s", configFilePathEnvVarName, fallbackConfigFile)
|
||||
return defaultConfigFile
|
||||
}
|
||||
return fallbackConfigFile
|
||||
}
|
||||
|
||||
// CustomProfileConfigProvider returns the config provider of given profile. The custom profile config provider
|
||||
// will look for configurations in 2 places: file in $HOME/.oci/config, and variables names starting with the
|
||||
// string TF_VAR. If the same configuration is found in multiple places the provider will prefer the first one.
|
||||
|
|
|
@ -4,18 +4,26 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"os"
|
||||
"path"
|
||||
"regexp"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
//Region type for regions
|
||||
type Region string
|
||||
|
||||
const (
|
||||
instanceMetadataRegionInfoURLV2 = "http://169.254.169.254/opc/v2/instance/regionInfo"
|
||||
|
||||
//RegionSEA region SEA
|
||||
RegionSEA Region = "sea"
|
||||
//RegionCAToronto1 region for toronto
|
||||
//RegionCAToronto1 region for Toronto
|
||||
RegionCAToronto1 Region = "ca-toronto-1"
|
||||
//RegionCAMontreal1 region for Montreal
|
||||
RegionCAMontreal1 Region = "ca-montreal-1"
|
||||
|
@ -23,18 +31,26 @@ const (
|
|||
RegionPHX Region = "us-phoenix-1"
|
||||
//RegionIAD region IAD
|
||||
RegionIAD Region = "us-ashburn-1"
|
||||
//RegionSJC1 region SJC
|
||||
RegionSJC1 Region = "us-sanjose-1"
|
||||
//RegionFRA region FRA
|
||||
RegionFRA Region = "eu-frankfurt-1"
|
||||
//RegionLHR region LHR
|
||||
RegionLHR Region = "uk-london-1"
|
||||
//RegionAPTokyo1 region for tokyo
|
||||
//RegionAPTokyo1 region for Tokyo
|
||||
RegionAPTokyo1 Region = "ap-tokyo-1"
|
||||
//RegionAPOsaka1 region for Osaka
|
||||
RegionAPOsaka1 Region = "ap-osaka-1"
|
||||
//RegionAPSeoul1 region for seoul
|
||||
//RegionAPChiyoda1 region for Chiyoda
|
||||
RegionAPChiyoda1 Region = "ap-chiyoda-1"
|
||||
//RegionAPSeoul1 region for Seoul
|
||||
RegionAPSeoul1 Region = "ap-seoul-1"
|
||||
//RegionAPMumbai1 region for mumbai
|
||||
//RegionAPChuncheon1 region for Chuncheon
|
||||
RegionAPChuncheon1 Region = "ap-chuncheon-1"
|
||||
//RegionAPMumbai1 region for Mumbai
|
||||
RegionAPMumbai1 Region = "ap-mumbai-1"
|
||||
//RegionAPHyderabad1 region for Hyderabad
|
||||
RegionAPHyderabad1 Region = "ap-hyderabad-1"
|
||||
//RegionAPMelbourne1 region for Melbourne
|
||||
RegionAPMelbourne1 Region = "ap-melbourne-1"
|
||||
//RegionAPSydney1 region for Sydney
|
||||
|
@ -47,26 +63,69 @@ const (
|
|||
RegionEUAmsterdam1 Region = "eu-amsterdam-1"
|
||||
//RegionSASaopaulo1 region for Sao Paulo
|
||||
RegionSASaopaulo1 Region = "sa-saopaulo-1"
|
||||
//RegionUSLangley1 region for langley
|
||||
|
||||
//RegionUSLangley1 region for Langley
|
||||
RegionUSLangley1 Region = "us-langley-1"
|
||||
//RegionUSLuke1 region for luke
|
||||
//RegionUSLuke1 region for Luke
|
||||
RegionUSLuke1 Region = "us-luke-1"
|
||||
|
||||
//RegionUSGovAshburn1 region for langley
|
||||
//RegionUSGovAshburn1 gov region Ashburn
|
||||
RegionUSGovAshburn1 Region = "us-gov-ashburn-1"
|
||||
//RegionUSGovChicago1 region for luke
|
||||
//RegionUSGovChicago1 gov region Chicago
|
||||
RegionUSGovChicago1 Region = "us-gov-chicago-1"
|
||||
//RegionUSGovPhoenix1 region for luke
|
||||
//RegionUSGovPhoenix1 region for Phoenix
|
||||
RegionUSGovPhoenix1 Region = "us-gov-phoenix-1"
|
||||
//RegionUKGovLondon1 gov region London
|
||||
RegionUKGovLondon1 Region = "uk-gov-london-1"
|
||||
//RegionUKGovCardiff1 gov region Cardiff
|
||||
RegionUKGovCardiff1 Region = "uk-gov-cardiff-1"
|
||||
|
||||
// Region Metadata Configuration File
|
||||
regionMetadataCfgDirName = ".oci"
|
||||
regionMetadataCfgFileName = "regions-config.json"
|
||||
|
||||
// Region Metadata Environment Variable
|
||||
regionMetadataEnvVarName = "OCI_REGION_METADATA"
|
||||
|
||||
// Region Metadata
|
||||
regionIdentifierPropertyName = "regionIdentifier" // e.g. "ap-sydney-1"
|
||||
realmKeyPropertyName = "realmKey" // e.g. "oc1"
|
||||
realmDomainComponentPropertyName = "realmDomainComponent" // e.g. "oraclecloud.com"
|
||||
regionKeyPropertyName = "regionKey" // e.g. "SYD"
|
||||
)
|
||||
|
||||
var shortNameRegion = map[string]Region{
|
||||
"sea": RegionSEA,
|
||||
"phx": RegionPHX,
|
||||
"iad": RegionIAD,
|
||||
"fra": RegionFRA,
|
||||
"lhr": RegionLHR,
|
||||
"ams": RegionEUAmsterdam1,
|
||||
"zrh": RegionEUZurich1,
|
||||
"mel": RegionAPMelbourne1,
|
||||
"bom": RegionAPMumbai1,
|
||||
"hyd": RegionAPHyderabad1,
|
||||
"icn": RegionAPSeoul1,
|
||||
"yny": RegionAPChuncheon1,
|
||||
"nrt": RegionAPTokyo1,
|
||||
"kix": RegionAPOsaka1,
|
||||
"nja": RegionAPChiyoda1,
|
||||
"syd": RegionAPSydney1,
|
||||
"yul": RegionCAMontreal1,
|
||||
"yyz": RegionCAToronto1,
|
||||
"sjc": RegionSJC1,
|
||||
"gru": RegionSASaopaulo1,
|
||||
"jed": RegionMEJeddah1,
|
||||
"ltn": RegionUKGovLondon1,
|
||||
"brs": RegionUKGovCardiff1,
|
||||
}
|
||||
|
||||
var realm = map[string]string{
|
||||
"oc1": "oraclecloud.com",
|
||||
"oc2": "oraclegovcloud.com",
|
||||
"oc3": "oraclegovcloud.com",
|
||||
"oc4": "oraclegovcloud.uk",
|
||||
"oc8": "oraclecloud8.com",
|
||||
}
|
||||
|
||||
var regionRealm = map[Region]string{
|
||||
|
@ -76,11 +135,14 @@ var regionRealm = map[Region]string{
|
|||
RegionLHR: "oc1",
|
||||
RegionCAToronto1: "oc1",
|
||||
RegionCAMontreal1: "oc1",
|
||||
RegionSJC1: "oc1",
|
||||
RegionAPTokyo1: "oc1",
|
||||
RegionAPOsaka1: "oc1",
|
||||
RegionAPSeoul1: "oc1",
|
||||
RegionAPChuncheon1: "oc1",
|
||||
RegionAPSydney1: "oc1",
|
||||
RegionAPMumbai1: "oc1",
|
||||
RegionAPHyderabad1: "oc1",
|
||||
RegionAPMelbourne1: "oc1",
|
||||
RegionMEJeddah1: "oc1",
|
||||
RegionEUZurich1: "oc1",
|
||||
|
@ -92,15 +154,24 @@ var regionRealm = map[Region]string{
|
|||
RegionUSGovAshburn1: "oc3",
|
||||
RegionUSGovChicago1: "oc3",
|
||||
RegionUSGovPhoenix1: "oc3",
|
||||
RegionUKGovCardiff1: "oc4",
|
||||
RegionUKGovLondon1: "oc4",
|
||||
|
||||
RegionAPChiyoda1: "oc8",
|
||||
}
|
||||
|
||||
// External region metadata info flag, used to control adding these metadata region info only once.
|
||||
var readCfgFile, readEnvVar, visitIMDS bool = true, true, false
|
||||
|
||||
// getRegionInfoFromInstanceMetadataService gets the region information
|
||||
var getRegionInfoFromInstanceMetadataService = getRegionInfoFromInstanceMetadataServiceProd
|
||||
|
||||
// Endpoint returns a endpoint for a service
|
||||
func (region Region) Endpoint(service string) string {
|
||||
return fmt.Sprintf("%s.%s.%s", service, region, region.secondLevelDomain())
|
||||
}
|
||||
|
||||
// EndpointForTemplate returns a endpoint for a service based on template
|
||||
// EndpointForTemplate returns a endpoint for a service based on template, only unknown region name can fall back to "oc1", but not short code region name.
|
||||
func (region Region) EndpointForTemplate(service string, serviceEndpointTemplate string) string {
|
||||
if serviceEndpointTemplate == "" {
|
||||
return region.Endpoint(service)
|
||||
|
@ -131,57 +202,22 @@ func (region Region) secondLevelDomain() string {
|
|||
|
||||
//StringToRegion convert a string to Region type
|
||||
func StringToRegion(stringRegion string) (r Region) {
|
||||
switch strings.ToLower(stringRegion) {
|
||||
case "sea":
|
||||
r = RegionSEA
|
||||
case "yyz", "ca-toronto-1":
|
||||
r = RegionCAToronto1
|
||||
case "yul", "ca-montreal-1":
|
||||
r = RegionCAMontreal1
|
||||
case "phx", "us-phoenix-1":
|
||||
r = RegionPHX
|
||||
case "iad", "us-ashburn-1":
|
||||
r = RegionIAD
|
||||
case "fra", "eu-frankfurt-1":
|
||||
r = RegionFRA
|
||||
case "lhr", "uk-london-1":
|
||||
r = RegionLHR
|
||||
case "nrt", "ap-tokyo-1":
|
||||
r = RegionAPTokyo1
|
||||
case "kix", "ap-osaka-1":
|
||||
r = RegionAPOsaka1
|
||||
case "icn", "ap-seoul-1":
|
||||
r = RegionAPSeoul1
|
||||
case "bom", "ap-mumbai-1":
|
||||
r = RegionAPMumbai1
|
||||
case "mel", "ap-melbourne-1":
|
||||
r = RegionAPMelbourne1
|
||||
case "syd", "ap-sydney-1":
|
||||
r = RegionAPSydney1
|
||||
case "jed", "me-jeddah-1":
|
||||
r = RegionMEJeddah1
|
||||
case "zrh", "eu-zurich-1":
|
||||
r = RegionEUZurich1
|
||||
case "ams", "eu-amsterdam-1":
|
||||
r = RegionEUAmsterdam1
|
||||
case "gru", "sa-saopaulo-1":
|
||||
r = RegionSASaopaulo1
|
||||
case "us-langley-1":
|
||||
r = RegionUSLangley1
|
||||
case "us-luke-1":
|
||||
r = RegionUSLuke1
|
||||
case "us-gov-ashburn-1":
|
||||
r = RegionUSGovAshburn1
|
||||
case "us-gov-chicago-1":
|
||||
r = RegionUSGovChicago1
|
||||
case "us-gov-phoenix-1":
|
||||
r = RegionUSGovPhoenix1
|
||||
case "ltn", "uk-gov-london-1":
|
||||
r = RegionUKGovLondon1
|
||||
default:
|
||||
r = Region(stringRegion)
|
||||
Debugf("region named: %s, is not recognized", stringRegion)
|
||||
regionStr := strings.ToLower(stringRegion)
|
||||
// check if short region name provided
|
||||
if region, ok := shortNameRegion[regionStr]; ok {
|
||||
r = region
|
||||
return
|
||||
}
|
||||
// check if normal region name provided
|
||||
potentialRegion := Region(regionStr)
|
||||
if _, ok := regionRealm[potentialRegion]; ok {
|
||||
r = potentialRegion
|
||||
return
|
||||
}
|
||||
|
||||
Debugf("region named: %s, is not recognized from hard-coded region list, will check Region metadata info", stringRegion)
|
||||
r = checkAndAddRegionMetadata(stringRegion)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -195,3 +231,220 @@ func canStringBeRegion(stringRegion string) (region string, err error) {
|
|||
}
|
||||
return stringRegion, nil
|
||||
}
|
||||
|
||||
// check region info from original map
|
||||
func checkAndAddRegionMetadata(region string) Region {
|
||||
switch {
|
||||
case setRegionMetadataFromCfgFile(®ion):
|
||||
case setRegionMetadataFromEnvVar(®ion):
|
||||
case setRegionFromInstanceMetadataService(®ion):
|
||||
default:
|
||||
//err := fmt.Errorf("failed to get region metadata information.")
|
||||
return Region(region)
|
||||
}
|
||||
return Region(region)
|
||||
}
|
||||
|
||||
// EnableInstanceMetadataServiceLookup provides the interface to lookup IMDS region info
|
||||
func EnableInstanceMetadataServiceLookup() {
|
||||
Debugf("Set visitIMDS 'true' to enable IMDS Lookup.")
|
||||
visitIMDS = true
|
||||
}
|
||||
|
||||
// setRegionMetadataFromEnvVar checks if region metadata env variable is provided, once it's there, parse and added it
|
||||
// to region map, and it can make sure the env var can only be visited once.
|
||||
// Once successfully find the expected region(region name or short code), return true, region name will be stored in
|
||||
// the input pointer.
|
||||
func setRegionMetadataFromEnvVar(region *string) bool {
|
||||
if readEnvVar == false {
|
||||
Debugf("metadata region env variable had already been checked, no need to check again.")
|
||||
return false //no need to check it again.
|
||||
}
|
||||
// Mark readEnvVar Flag as false since it has already been visited.
|
||||
readEnvVar = false
|
||||
// check from env variable
|
||||
if jsonStr, existed := os.LookupEnv(regionMetadataEnvVarName); existed {
|
||||
Debugf("Raw content of region metadata env var:", jsonStr)
|
||||
var regionSchema map[string]string
|
||||
if err := json.Unmarshal([]byte(jsonStr), ®ionSchema); err != nil {
|
||||
Debugf("Can't unmarshal env var, the error info is", err)
|
||||
return false
|
||||
}
|
||||
// check if the specified region is in the env var.
|
||||
if checkSchemaItems(regionSchema) {
|
||||
// set mapping table
|
||||
addRegionSchema(regionSchema)
|
||||
if regionSchema[regionKeyPropertyName] == *region ||
|
||||
regionSchema[regionIdentifierPropertyName] == *region {
|
||||
*region = regionSchema[regionIdentifierPropertyName]
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
Debugf("The Region Metadata Schema wasn't set in env variable - OCI_REGION_METADATA.")
|
||||
return false
|
||||
}
|
||||
|
||||
// setRegionMetadataFromCfgFile checks if region metadata config file is provided, once it's there, parse and add all
|
||||
// the valid regions to region map, the configuration file can only be visited once.
|
||||
// Once successfully find the expected region(region name or short code), return true, region name will be stored in
|
||||
// the input pointer.
|
||||
func setRegionMetadataFromCfgFile(region *string) bool {
|
||||
if readCfgFile == false {
|
||||
Debugf("metadata region config file had already been checked, no need to check again.")
|
||||
return false //no need to check it again.
|
||||
}
|
||||
// Mark readCfgFile Flag as false since it has already been visited.
|
||||
readCfgFile = false
|
||||
homeFolder := getHomeFolder()
|
||||
configFile := path.Join(homeFolder, regionMetadataCfgDirName, regionMetadataCfgFileName)
|
||||
if jsonArr, ok := readAndParseConfigFile(&configFile); ok {
|
||||
added := false
|
||||
for _, jsonItem := range jsonArr {
|
||||
if checkSchemaItems(jsonItem) {
|
||||
addRegionSchema(jsonItem)
|
||||
if jsonItem[regionKeyPropertyName] == *region ||
|
||||
jsonItem[regionIdentifierPropertyName] == *region {
|
||||
*region = jsonItem[regionIdentifierPropertyName]
|
||||
added = true
|
||||
}
|
||||
}
|
||||
}
|
||||
return added
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func readAndParseConfigFile(configFileName *string) (fileContent []map[string]string, ok bool) {
|
||||
|
||||
if content, err := ioutil.ReadFile(*configFileName); err == nil {
|
||||
Debugf("Raw content of region metadata config file content:", string(content[:]))
|
||||
if err := json.Unmarshal(content, &fileContent); err != nil {
|
||||
Debugf("Can't unmarshal config file, the error info is", err)
|
||||
return
|
||||
}
|
||||
ok = true
|
||||
return
|
||||
}
|
||||
Debugf("No Region Metadata Config File provided.")
|
||||
return
|
||||
|
||||
}
|
||||
|
||||
// check map regionRealm's region name, if it's already there, no need to add it.
|
||||
func addRegionSchema(regionSchema map[string]string) {
|
||||
r := Region(strings.ToLower(regionSchema[regionIdentifierPropertyName]))
|
||||
if _, ok := regionRealm[r]; !ok {
|
||||
// set mapping table
|
||||
shortNameRegion[regionSchema[regionKeyPropertyName]] = r
|
||||
realm[regionSchema[realmKeyPropertyName]] = regionSchema[realmDomainComponentPropertyName]
|
||||
regionRealm[r] = regionSchema[realmKeyPropertyName]
|
||||
return
|
||||
}
|
||||
Debugf("Region {} has already been added, no need to add again.", regionSchema[regionIdentifierPropertyName])
|
||||
}
|
||||
|
||||
// check region schema content if all the required contents are provided
|
||||
func checkSchemaItems(regionSchema map[string]string) bool {
|
||||
if checkSchemaItem(regionSchema, regionIdentifierPropertyName) &&
|
||||
checkSchemaItem(regionSchema, realmKeyPropertyName) &&
|
||||
checkSchemaItem(regionSchema, realmDomainComponentPropertyName) &&
|
||||
checkSchemaItem(regionSchema, regionKeyPropertyName) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// check region schema item is valid, if so, convert it to lower case.
|
||||
func checkSchemaItem(regionSchema map[string]string, key string) bool {
|
||||
if val, ok := regionSchema[key]; ok {
|
||||
if val != "" {
|
||||
regionSchema[key] = strings.ToLower(val)
|
||||
return true
|
||||
}
|
||||
Debugf("Region metadata schema {} is provided,but content is empty.", key)
|
||||
return false
|
||||
}
|
||||
Debugf("Region metadata schema {} is not provided, please update the content", key)
|
||||
return false
|
||||
}
|
||||
|
||||
// setRegionFromInstanceMetadataService checks if region metadata can be provided from InstanceMetadataService.
|
||||
// Once successfully find the expected region(region name or short code), return true, region name will be stored in
|
||||
// the input pointer.
|
||||
// setRegionFromInstanceMetadataService will only be checked on the instance, by default it will not be enabled unless
|
||||
// user explicitly enable it.
|
||||
func setRegionFromInstanceMetadataService(region *string) bool {
|
||||
// example of content:
|
||||
// {
|
||||
// "realmKey" : "oc1",
|
||||
// "realmDomainComponent" : "oraclecloud.com",
|
||||
// "regionKey" : "YUL",
|
||||
// "regionIdentifier" : "ca-montreal-1"
|
||||
// }
|
||||
// Mark visitIMDS Flag as false since it has already been visited.
|
||||
if visitIMDS == false {
|
||||
Debugf("check from IMDS is disabled or IMDS had already been successfully visited, no need to check again.")
|
||||
return false
|
||||
}
|
||||
content, err := getRegionInfoFromInstanceMetadataService()
|
||||
if err != nil {
|
||||
Debugf("Failed to get instance metadata. Error: %v", err)
|
||||
return false
|
||||
}
|
||||
|
||||
// Mark visitIMDS Flag as false since we have already successfully get the region info from IMDS.
|
||||
visitIMDS = false
|
||||
|
||||
var regionInfo map[string]string
|
||||
err = json.Unmarshal(content, ®ionInfo)
|
||||
if err != nil {
|
||||
Debugf("Failed to unmarshal the response content: %v \nError: %v", string(content), err)
|
||||
return false
|
||||
}
|
||||
|
||||
if checkSchemaItems(regionInfo) {
|
||||
addRegionSchema(regionInfo)
|
||||
if regionInfo[regionKeyPropertyName] == *region ||
|
||||
regionInfo[regionIdentifierPropertyName] == *region {
|
||||
*region = regionInfo[regionIdentifierPropertyName]
|
||||
}
|
||||
} else {
|
||||
Debugf("Region information is not valid.")
|
||||
return false
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
// getRegionInfoFromInstanceMetadataServiceProd calls instance metadata service and get the region information
|
||||
func getRegionInfoFromInstanceMetadataServiceProd() ([]byte, error) {
|
||||
request, err := http.NewRequest(http.MethodGet, instanceMetadataRegionInfoURLV2, nil)
|
||||
request.Header.Add("Authorization", "Bearer Oracle")
|
||||
|
||||
client := &http.Client{
|
||||
Timeout: time.Second * 10,
|
||||
}
|
||||
resp, err := client.Do(request)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("Failed to call instance metadata service. Error: %v", err)
|
||||
}
|
||||
|
||||
statusCode := resp.StatusCode
|
||||
|
||||
defer resp.Body.Close()
|
||||
|
||||
content, err := ioutil.ReadAll(resp.Body)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("Failed to get region information from response body. Error: %v", err)
|
||||
}
|
||||
|
||||
if statusCode != http.StatusOK {
|
||||
err = fmt.Errorf("HTTP Get failed: URL: %s, Status: %s, Message: %s",
|
||||
instanceMetadataRegionInfoURLV2, resp.Status, string(content))
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return content, nil
|
||||
}
|
||||
|
|
|
@ -241,8 +241,8 @@ func ConfigurationProviderFromFileWithProfile(configFilePath, profile, privateKe
|
|||
}
|
||||
|
||||
type configFileInfo struct {
|
||||
UserOcid, Fingerprint, KeyFilePath, TenancyOcid, Region, Passphrase string
|
||||
PresentConfiguration byte
|
||||
UserOcid, Fingerprint, KeyFilePath, TenancyOcid, Region, Passphrase, SecurityTokenFilePath string
|
||||
PresentConfiguration byte
|
||||
}
|
||||
|
||||
const (
|
||||
|
@ -252,6 +252,7 @@ const (
|
|||
hasRegion
|
||||
hasKeyFile
|
||||
hasPassphrase
|
||||
hasSecurityTokenFile
|
||||
none
|
||||
)
|
||||
|
||||
|
@ -310,6 +311,9 @@ func parseConfigAtLine(start int, content []string) (info *configFileInfo, err e
|
|||
case "region":
|
||||
configurationPresent = configurationPresent | hasRegion
|
||||
info.Region = value
|
||||
case "security_token_file":
|
||||
configurationPresent = configurationPresent | hasSecurityTokenFile
|
||||
info.SecurityTokenFilePath = value
|
||||
}
|
||||
}
|
||||
info.PresentConfiguration = configurationPresent
|
||||
|
@ -387,7 +391,13 @@ func (p fileConfigurationProvider) UserOCID() (value string, err error) {
|
|||
return
|
||||
}
|
||||
|
||||
value, err = presentOrError(info.UserOcid, hasUser, info.PresentConfiguration, "user")
|
||||
if value, err = presentOrError(info.UserOcid, hasUser, info.PresentConfiguration, "user"); err != nil {
|
||||
// need to check if securityTokenPath is provided, if security token is provided, userOCID can be "".
|
||||
if _, stErr := presentOrError(info.SecurityTokenFilePath, hasSecurityTokenFile, info.PresentConfiguration,
|
||||
"securityTokenPath"); stErr == nil {
|
||||
err = nil
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -407,8 +417,14 @@ func (p fileConfigurationProvider) KeyID() (keyID string, err error) {
|
|||
err = fmt.Errorf("can not read tenancy configuration due to: %s", err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
return fmt.Sprintf("%s/%s/%s", info.TenancyOcid, info.UserOcid, info.Fingerprint), nil
|
||||
if info.PresentConfiguration&hasUser == hasUser {
|
||||
return fmt.Sprintf("%s/%s/%s", info.TenancyOcid, info.UserOcid, info.Fingerprint), nil
|
||||
}
|
||||
if filePath, err := presentOrError(info.SecurityTokenFilePath, hasSecurityTokenFile, info.PresentConfiguration, "securityTokenFilePath"); err == nil {
|
||||
return getSecurityToken(filePath)
|
||||
}
|
||||
err = fmt.Errorf("can not read SecurityTokenFilePath from configuration file due to: %s", err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
func (p fileConfigurationProvider) PrivateRSAKey() (key *rsa.PrivateKey, err error) {
|
||||
|
@ -449,12 +465,27 @@ func (p fileConfigurationProvider) Region() (value string, err error) {
|
|||
|
||||
value, err = presentOrError(info.Region, hasRegion, info.PresentConfiguration, "region")
|
||||
if err != nil {
|
||||
return
|
||||
val, error := getRegionFromEnvVar()
|
||||
if error != nil {
|
||||
err = fmt.Errorf("region configuration is missing from file, nor for OCI_REGION env var")
|
||||
return
|
||||
}
|
||||
value = val
|
||||
}
|
||||
|
||||
return canStringBeRegion(value)
|
||||
}
|
||||
|
||||
func getSecurityToken(filePath string) (string, error) {
|
||||
expandedPath := expandPath(filePath)
|
||||
tokenFileContent, err := ioutil.ReadFile(expandedPath)
|
||||
if err != nil {
|
||||
err = fmt.Errorf("can not read PrivateKey from configuration file due to: %s", err.Error())
|
||||
return "", err
|
||||
}
|
||||
return fmt.Sprintf("ST$%s", tokenFileContent), nil
|
||||
}
|
||||
|
||||
// A configuration provider that look for information in multiple configuration providers
|
||||
type composingConfigurationProvider struct {
|
||||
Providers []ConfigurationProvider
|
||||
|
@ -512,7 +543,10 @@ func (c composingConfigurationProvider) Region() (string, error) {
|
|||
return val, nil
|
||||
}
|
||||
}
|
||||
return "", fmt.Errorf("did not find a proper configuration for region")
|
||||
if val, err := getRegionFromEnvVar(); err == nil {
|
||||
return val, nil
|
||||
}
|
||||
return "", fmt.Errorf("did not find a proper configuration for region, nor for OCI_REGION env var")
|
||||
}
|
||||
|
||||
func (c composingConfigurationProvider) KeyID() (string, error) {
|
||||
|
@ -534,3 +568,11 @@ func (c composingConfigurationProvider) PrivateRSAKey() (*rsa.PrivateKey, error)
|
|||
}
|
||||
return nil, fmt.Errorf("did not find a proper configuration for private key")
|
||||
}
|
||||
|
||||
func getRegionFromEnvVar() (string, error) {
|
||||
regionEnvVar := "OCI_REGION"
|
||||
if region, existed := os.LookupEnv(regionEnvVar); existed {
|
||||
return region, nil
|
||||
}
|
||||
return "", fmt.Errorf("did not find OCI_REGION env var")
|
||||
}
|
||||
|
|
|
@ -230,7 +230,7 @@ func PrivateKeyFromBytesWithPassword(pemData, password []byte) (key *rsa.Private
|
|||
}
|
||||
}
|
||||
|
||||
key, e = x509.ParsePKCS1PrivateKey(decrypted)
|
||||
key, e = parsePKCSPrivateKey(decrypted)
|
||||
|
||||
} else {
|
||||
e = fmt.Errorf("PEM data was not found in buffer")
|
||||
|
@ -239,6 +239,22 @@ func PrivateKeyFromBytesWithPassword(pemData, password []byte) (key *rsa.Private
|
|||
return
|
||||
}
|
||||
|
||||
// ParsePrivateKey using PKCS1 or PKCS8
|
||||
func parsePKCSPrivateKey(decryptedKey []byte) (*rsa.PrivateKey, error) {
|
||||
if key, err := x509.ParsePKCS1PrivateKey(decryptedKey); err == nil {
|
||||
return key, nil
|
||||
}
|
||||
if key, err := x509.ParsePKCS8PrivateKey(decryptedKey); err == nil {
|
||||
switch key := key.(type) {
|
||||
case *rsa.PrivateKey:
|
||||
return key, nil
|
||||
default:
|
||||
return nil, fmt.Errorf("unsupportesd private key type in PKCS8 wrapping")
|
||||
}
|
||||
}
|
||||
return nil, fmt.Errorf("failed to parse private key")
|
||||
}
|
||||
|
||||
func generateRandUUID() (string, error) {
|
||||
b := make([]byte, 16)
|
||||
_, err := rand.Read(b)
|
||||
|
|
|
@ -449,10 +449,19 @@ func addToHeader(request *http.Request, value reflect.Value, field reflect.Struc
|
|||
return
|
||||
}
|
||||
|
||||
request.Header.Add(headerName, headerValue)
|
||||
if isUniqueHeaderRequired(headerName) {
|
||||
request.Header.Set(headerName, headerValue)
|
||||
} else {
|
||||
request.Header.Add(headerName, headerValue)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// Check if the header is required to be unique
|
||||
func isUniqueHeaderRequired(headerName string) bool {
|
||||
return strings.EqualFold(headerName, requestHeaderContentType)
|
||||
}
|
||||
|
||||
// Header collection is a map of string to string that gets rendered as individual headers with a given prefix
|
||||
func addToHeaderCollection(request *http.Request, value reflect.Value, field reflect.StructField) (e error) {
|
||||
Debugln("Marshaling to header-collection from field:", field.Name)
|
||||
|
|
|
@ -5,11 +5,13 @@ package common
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"os"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
)
|
||||
|
||||
//sdkLogger an interface for logging in the SDK
|
||||
|
@ -45,6 +47,7 @@ type defaultSDKLogger struct {
|
|||
//defaultLogger is the defaultLogger in the SDK
|
||||
var defaultLogger sdkLogger
|
||||
var loggerLock sync.Mutex
|
||||
var file *os.File
|
||||
|
||||
//initializes the SDK defaultLogger as a defaultLogger
|
||||
func init() {
|
||||
|
@ -81,6 +84,7 @@ func newSDKLogger() (defaultSDKLogger, error) {
|
|||
if !isLogEnabled {
|
||||
logger.currentLoggingLevel = noLogging
|
||||
} else {
|
||||
logOutputModeConfig(logger)
|
||||
|
||||
switch strings.ToLower(configured) {
|
||||
case "null":
|
||||
|
@ -124,6 +128,54 @@ func (l defaultSDKLogger) getLoggerForLevel(logLevel int) *log.Logger {
|
|||
}
|
||||
}
|
||||
|
||||
// Set SDK Log output mode
|
||||
// Output mode is switched based on environment variable "OCI_GO_SDK_LOG_OUPUT_MODE"
|
||||
// "file" outputs log to a specific file
|
||||
// "combine" outputs log to both stderr and specific file
|
||||
// other unsupported value ouputs log to stderr
|
||||
// output file can be set via environment variable "OCI_GO_SDK_LOG_FILE"
|
||||
// if this environment variable is not set, a default log file will be created under project root path
|
||||
func logOutputModeConfig(logger defaultSDKLogger) {
|
||||
logMode, isLogOutputModeEnabled := os.LookupEnv("OCI_GO_SDK_LOG_OUTPUT_MODE")
|
||||
if !isLogOutputModeEnabled {
|
||||
return
|
||||
}
|
||||
fileName, isLogFileNameProvided := os.LookupEnv("OCI_GO_SDK_LOG_FILE")
|
||||
if !isLogFileNameProvided {
|
||||
fileName = fmt.Sprintf("logging_%v%s", time.Now().Unix(), ".log")
|
||||
}
|
||||
|
||||
switch strings.ToLower(logMode) {
|
||||
case "file", "f":
|
||||
file = openLogOutputFile(logger, fileName)
|
||||
logger.infoLogger.SetOutput(file)
|
||||
logger.debugLogger.SetOutput(file)
|
||||
logger.verboseLogger.SetOutput(file)
|
||||
break
|
||||
case "combine", "c":
|
||||
file = openLogOutputFile(logger, fileName)
|
||||
wrt := io.MultiWriter(os.Stderr, file)
|
||||
|
||||
logger.infoLogger.SetOutput(wrt)
|
||||
logger.debugLogger.SetOutput(wrt)
|
||||
logger.verboseLogger.SetOutput(wrt)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
func openLogOutputFile(logger defaultSDKLogger, fileName string) *os.File {
|
||||
file, err := os.OpenFile(fileName, os.O_WRONLY|os.O_CREATE|os.O_APPEND, 0644)
|
||||
if err != nil {
|
||||
logger.verboseLogger.Fatal(err)
|
||||
}
|
||||
return file
|
||||
}
|
||||
|
||||
//CloseLogFile close the logging file and return error
|
||||
func CloseLogFile() error {
|
||||
return file.Close()
|
||||
}
|
||||
|
||||
//LogLevel returns the current debug level
|
||||
func (l defaultSDKLogger) LogLevel() int {
|
||||
return l.currentLoggingLevel
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
||||
|
||||
package common
|
||||
|
||||
import (
|
||||
|
|
|
@ -11,8 +11,8 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
major = "18"
|
||||
minor = "0"
|
||||
major = "24"
|
||||
minor = "3"
|
||||
patch = "0"
|
||||
tag = ""
|
||||
)
|
||||
|
|
|
@ -32,7 +32,7 @@ type AppCatalogListing struct {
|
|||
// Name of the listing.
|
||||
DisplayName *string `mandatory:"false" json:"displayName"`
|
||||
|
||||
// Date and time the listing was published, in RFC3339 format.
|
||||
// Date and time the listing was published, in RFC3339 (https://tools.ietf.org/html/rfc3339) format.
|
||||
// Example: `2018-03-20T12:32:53.532Z`
|
||||
TimePublished *common.SDKTime `mandatory:"false" json:"timePublished"`
|
||||
|
||||
|
|
2
vendor/github.com/oracle/oci-go-sdk/core/app_catalog_listing_resource_version.go
generated
vendored
2
vendor/github.com/oracle/oci-go-sdk/core/app_catalog_listing_resource_version.go
generated
vendored
|
@ -23,7 +23,7 @@ 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.
|
||||
// Date and time the listing resource version was published, in RFC3339 (https://tools.ietf.org/html/rfc3339) format.
|
||||
// Example: `2018-03-20T12:32:53.532Z`
|
||||
TimePublished *common.SDKTime `mandatory:"false" json:"timePublished"`
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ type AppCatalogListingResourceVersionAgreements struct {
|
|||
// EULA link
|
||||
EulaLink *string `mandatory:"false" json:"eulaLink"`
|
||||
|
||||
// Date and time the agreements were retrieved, in RFC3339 format.
|
||||
// Date and time the agreements were retrieved, in RFC3339 (https://tools.ietf.org/html/rfc3339) format.
|
||||
// Example: `2018-03-20T12:32:53.532Z`
|
||||
TimeRetrieved *common.SDKTime `mandatory:"false" json:"timeRetrieved"`
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ 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.
|
||||
// Date and time the listing resource version was published, in RFC3339 (https://tools.ietf.org/html/rfc3339) format.
|
||||
// Example: `2018-03-20T12:32:53.532Z`
|
||||
TimePublished *common.SDKTime `mandatory:"false" json:"timePublished"`
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ type AppCatalogSubscription struct {
|
|||
// The compartmentID of the subscription.
|
||||
CompartmentId *string `mandatory:"false" json:"compartmentId"`
|
||||
|
||||
// Date and time at which the subscription was created, in RFC3339 format.
|
||||
// Date and time at which the subscription was created, in RFC3339 (https://tools.ietf.org/html/rfc3339) format.
|
||||
// Example: `2018-03-20T12:32:53.532Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ type AppCatalogSubscriptionSummary struct {
|
|||
// The compartmentID of the subscription.
|
||||
CompartmentId *string `mandatory:"false" json:"compartmentId"`
|
||||
|
||||
// Date and time at which the subscription was created, in RFC3339 format.
|
||||
// Date and time at which the subscription was created, in RFC3339 (https://tools.ietf.org/html/rfc3339) format.
|
||||
// Example: `2018-03-20T12:32:53.532Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
|
||||
}
|
||||
|
|
51
vendor/github.com/oracle/oci-go-sdk/core/boolean_image_capability_schema_descriptor.go
generated
vendored
Normal file
51
vendor/github.com/oracle/oci-go-sdk/core/boolean_image_capability_schema_descriptor.go
generated
vendored
Normal file
|
@ -0,0 +1,51 @@
|
|||
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
||||
// Code generated. DO NOT EDIT.
|
||||
|
||||
// Core Services API
|
||||
//
|
||||
// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm),
|
||||
// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and
|
||||
// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API
|
||||
// to manage resources such as virtual cloud networks (VCNs), compute instances, and
|
||||
// block storage volumes.
|
||||
//
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"github.com/oracle/oci-go-sdk/common"
|
||||
)
|
||||
|
||||
// BooleanImageCapabilitySchemaDescriptor Boolean type ImageCapabilitySchemaDescriptor
|
||||
type BooleanImageCapabilitySchemaDescriptor struct {
|
||||
|
||||
// the default value
|
||||
DefaultValue *bool `mandatory:"false" json:"defaultValue"`
|
||||
|
||||
Source ImageCapabilitySchemaDescriptorSourceEnum `mandatory:"true" json:"source"`
|
||||
}
|
||||
|
||||
//GetSource returns Source
|
||||
func (m BooleanImageCapabilitySchemaDescriptor) GetSource() ImageCapabilitySchemaDescriptorSourceEnum {
|
||||
return m.Source
|
||||
}
|
||||
|
||||
func (m BooleanImageCapabilitySchemaDescriptor) String() string {
|
||||
return common.PointerString(m)
|
||||
}
|
||||
|
||||
// MarshalJSON marshals to json representation
|
||||
func (m BooleanImageCapabilitySchemaDescriptor) MarshalJSON() (buff []byte, e error) {
|
||||
type MarshalTypeBooleanImageCapabilitySchemaDescriptor BooleanImageCapabilitySchemaDescriptor
|
||||
s := struct {
|
||||
DiscriminatorParam string `json:"descriptorType"`
|
||||
MarshalTypeBooleanImageCapabilitySchemaDescriptor
|
||||
}{
|
||||
"boolean",
|
||||
(MarshalTypeBooleanImageCapabilitySchemaDescriptor)(m),
|
||||
}
|
||||
|
||||
return json.Marshal(&s)
|
||||
}
|
|
@ -44,7 +44,8 @@ type BootVolume struct {
|
|||
// This field is deprecated. Please use sizeInGBs.
|
||||
SizeInMBs *int64 `mandatory:"true" json:"sizeInMBs"`
|
||||
|
||||
// The date and time the boot volume was created. Format defined by RFC3339.
|
||||
// The date and time the boot volume was created. Format defined
|
||||
// by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
|
||||
|
||||
// Defined tags for this resource. Each key is predefined and scoped to a
|
||||
|
@ -91,6 +92,12 @@ type BootVolume struct {
|
|||
|
||||
// The OCID of the Key Management master encryption key assigned to the boot volume.
|
||||
KmsKeyId *string `mandatory:"false" json:"kmsKeyId"`
|
||||
|
||||
// Specifies whether the auto-tune performance is enabled for this boot volume.
|
||||
IsAutoTuneEnabled *bool `mandatory:"false" json:"isAutoTuneEnabled"`
|
||||
|
||||
// The number of Volume Performance Units per GB that this boot volume is effectively tuned to when it's idle.
|
||||
AutoTunedVpusPerGB *int64 `mandatory:"false" json:"autoTunedVpusPerGB"`
|
||||
}
|
||||
|
||||
func (m BootVolume) String() string {
|
||||
|
@ -111,6 +118,8 @@ func (m *BootVolume) UnmarshalJSON(data []byte) (e error) {
|
|||
SourceDetails bootvolumesourcedetails `json:"sourceDetails"`
|
||||
VolumeGroupId *string `json:"volumeGroupId"`
|
||||
KmsKeyId *string `json:"kmsKeyId"`
|
||||
IsAutoTuneEnabled *bool `json:"isAutoTuneEnabled"`
|
||||
AutoTunedVpusPerGB *int64 `json:"autoTunedVpusPerGB"`
|
||||
AvailabilityDomain *string `json:"availabilityDomain"`
|
||||
CompartmentId *string `json:"compartmentId"`
|
||||
Id *string `json:"id"`
|
||||
|
@ -154,6 +163,10 @@ func (m *BootVolume) UnmarshalJSON(data []byte) (e error) {
|
|||
|
||||
m.KmsKeyId = model.KmsKeyId
|
||||
|
||||
m.IsAutoTuneEnabled = model.IsAutoTuneEnabled
|
||||
|
||||
m.AutoTunedVpusPerGB = model.AutoTunedVpusPerGB
|
||||
|
||||
m.AvailabilityDomain = model.AvailabilityDomain
|
||||
|
||||
m.CompartmentId = model.CompartmentId
|
||||
|
@ -165,6 +178,7 @@ func (m *BootVolume) UnmarshalJSON(data []byte) (e error) {
|
|||
m.SizeInMBs = model.SizeInMBs
|
||||
|
||||
m.TimeCreated = model.TimeCreated
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ type BootVolumeAttachment struct {
|
|||
// The current state of the boot volume attachment.
|
||||
LifecycleState BootVolumeAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
|
||||
|
||||
// The date and time the boot volume was created, in the format defined by RFC3339.
|
||||
// The date and time the boot volume was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ type BootVolumeBackup struct {
|
|||
LifecycleState BootVolumeBackupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
|
||||
|
||||
// The date and time the boot volume backup was created. This is the time the actual point-in-time image
|
||||
// of the volume data was taken. Format defined by RFC3339.
|
||||
// of the volume data was taken. Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
|
||||
|
||||
// The OCID of the boot volume.
|
||||
|
@ -58,7 +58,7 @@ type BootVolumeBackup struct {
|
|||
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
|
||||
|
||||
// The date and time the volume backup will expire and be automatically deleted.
|
||||
// Format defined by RFC3339. This parameter will always be present for backups that
|
||||
// Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). This parameter will always be present for backups that
|
||||
// were created automatically by a scheduled-backup policy. For manually created backups,
|
||||
// it will be absent, signifying that there is no expiration time and the backup will
|
||||
// last forever until manually deleted.
|
||||
|
@ -87,7 +87,7 @@ type BootVolumeBackup struct {
|
|||
// Specifies whether the backup was created manually, or via scheduled backup policy.
|
||||
SourceType BootVolumeBackupSourceTypeEnum `mandatory:"false" json:"sourceType,omitempty"`
|
||||
|
||||
// The date and time the request to create the boot volume backup was received. Format defined by RFC3339.
|
||||
// The date and time the request to create the boot volume backup was received. Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
TimeRequestReceived *common.SDKTime `mandatory:"false" json:"timeRequestReceived"`
|
||||
|
||||
// The type of a volume backup.
|
||||
|
|
30
vendor/github.com/oracle/oci-go-sdk/core/change_compute_image_capability_schema_compartment_details.go
generated
vendored
Normal file
30
vendor/github.com/oracle/oci-go-sdk/core/change_compute_image_capability_schema_compartment_details.go
generated
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
||||
// Code generated. DO NOT EDIT.
|
||||
|
||||
// Core Services API
|
||||
//
|
||||
// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm),
|
||||
// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and
|
||||
// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API
|
||||
// to manage resources such as virtual cloud networks (VCNs), compute instances, and
|
||||
// block storage volumes.
|
||||
//
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"github.com/oracle/oci-go-sdk/common"
|
||||
)
|
||||
|
||||
// ChangeComputeImageCapabilitySchemaCompartmentDetails The configuration details for the move operation.
|
||||
type ChangeComputeImageCapabilitySchemaCompartmentDetails struct {
|
||||
|
||||
// The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to
|
||||
// move the instance configuration to.
|
||||
CompartmentId *string `mandatory:"true" json:"compartmentId"`
|
||||
}
|
||||
|
||||
func (m ChangeComputeImageCapabilitySchemaCompartmentDetails) String() string {
|
||||
return common.PointerString(m)
|
||||
}
|
74
vendor/github.com/oracle/oci-go-sdk/core/change_compute_image_capability_schema_compartment_request_response.go
generated
vendored
Normal file
74
vendor/github.com/oracle/oci-go-sdk/core/change_compute_image_capability_schema_compartment_request_response.go
generated
vendored
Normal file
|
@ -0,0 +1,74 @@
|
|||
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
||||
// Code generated. DO NOT EDIT.
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"github.com/oracle/oci-go-sdk/common"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// ChangeComputeImageCapabilitySchemaCompartmentRequest wrapper for the ChangeComputeImageCapabilitySchemaCompartment operation
|
||||
type ChangeComputeImageCapabilitySchemaCompartmentRequest struct {
|
||||
|
||||
// The id of the compute image capability schema or the image ocid
|
||||
ComputeImageCapabilitySchemaId *string `mandatory:"true" contributesTo:"path" name:"computeImageCapabilitySchemaId"`
|
||||
|
||||
// Compute Image Capability Schema change compartment details
|
||||
ChangeComputeImageCapabilitySchemaCompartmentDetails `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 you need to contact Oracle about a particular request, please provide the request ID.
|
||||
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 (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"`
|
||||
|
||||
// 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 ChangeComputeImageCapabilitySchemaCompartmentRequest) String() string {
|
||||
return common.PointerString(request)
|
||||
}
|
||||
|
||||
// HTTPRequest implements the OCIRequest interface
|
||||
func (request ChangeComputeImageCapabilitySchemaCompartmentRequest) 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 ChangeComputeImageCapabilitySchemaCompartmentRequest) RetryPolicy() *common.RetryPolicy {
|
||||
return request.RequestMetadata.RetryPolicy
|
||||
}
|
||||
|
||||
// ChangeComputeImageCapabilitySchemaCompartmentResponse wrapper for the ChangeComputeImageCapabilitySchemaCompartment operation
|
||||
type ChangeComputeImageCapabilitySchemaCompartmentResponse 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 ChangeComputeImageCapabilitySchemaCompartmentResponse) String() string {
|
||||
return common.PointerString(response)
|
||||
}
|
||||
|
||||
// HTTPResponse implements the OCIResponse interface
|
||||
func (response ChangeComputeImageCapabilitySchemaCompartmentResponse) HTTPResponse() *http.Response {
|
||||
return response.RawResponse
|
||||
}
|
29
vendor/github.com/oracle/oci-go-sdk/core/change_vlan_compartment_details.go
generated
vendored
Normal file
29
vendor/github.com/oracle/oci-go-sdk/core/change_vlan_compartment_details.go
generated
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
||||
// Code generated. DO NOT EDIT.
|
||||
|
||||
// Core Services API
|
||||
//
|
||||
// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm),
|
||||
// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and
|
||||
// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API
|
||||
// to manage resources such as virtual cloud networks (VCNs), compute instances, and
|
||||
// block storage volumes.
|
||||
//
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"github.com/oracle/oci-go-sdk/common"
|
||||
)
|
||||
|
||||
// ChangeVlanCompartmentDetails The configuration details for the move operation.
|
||||
type ChangeVlanCompartmentDetails struct {
|
||||
|
||||
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment to move the VLAN to.
|
||||
CompartmentId *string `mandatory:"true" json:"compartmentId"`
|
||||
}
|
||||
|
||||
func (m ChangeVlanCompartmentDetails) String() string {
|
||||
return common.PointerString(m)
|
||||
}
|
78
vendor/github.com/oracle/oci-go-sdk/core/change_vlan_compartment_request_response.go
generated
vendored
Normal file
78
vendor/github.com/oracle/oci-go-sdk/core/change_vlan_compartment_request_response.go
generated
vendored
Normal file
|
@ -0,0 +1,78 @@
|
|||
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
||||
// Code generated. DO NOT EDIT.
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"github.com/oracle/oci-go-sdk/common"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// ChangeVlanCompartmentRequest wrapper for the ChangeVlanCompartment operation
|
||||
type ChangeVlanCompartmentRequest struct {
|
||||
|
||||
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VLAN.
|
||||
VlanId *string `mandatory:"true" contributesTo:"path" name:"vlanId"`
|
||||
|
||||
// Request to change the compartment of a given VLAN.
|
||||
ChangeVlanCompartmentDetails `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 you need to contact Oracle about a particular request, please provide the request ID.
|
||||
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 (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"`
|
||||
|
||||
// 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 ChangeVlanCompartmentRequest) String() string {
|
||||
return common.PointerString(request)
|
||||
}
|
||||
|
||||
// HTTPRequest implements the OCIRequest interface
|
||||
func (request ChangeVlanCompartmentRequest) 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 ChangeVlanCompartmentRequest) RetryPolicy() *common.RetryPolicy {
|
||||
return request.RequestMetadata.RetryPolicy
|
||||
}
|
||||
|
||||
// ChangeVlanCompartmentResponse wrapper for the ChangeVlanCompartment operation
|
||||
type ChangeVlanCompartmentResponse 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"`
|
||||
|
||||
// The OCID of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest)
|
||||
// with this ID to track the status of the request.
|
||||
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
|
||||
}
|
||||
|
||||
func (response ChangeVlanCompartmentResponse) String() string {
|
||||
return common.PointerString(response)
|
||||
}
|
||||
|
||||
// HTTPResponse implements the OCIResponse interface
|
||||
func (response ChangeVlanCompartmentResponse) HTTPResponse() *http.Response {
|
||||
return response.RawResponse
|
||||
}
|
|
@ -31,11 +31,11 @@ type ClusterNetwork struct {
|
|||
// The current state of the cluster network.
|
||||
LifecycleState ClusterNetworkLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
|
||||
|
||||
// The date and time the resource was created, in the format defined by RFC3339.
|
||||
// The date and time the resource was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
|
||||
|
||||
// The date and time the resource was updated, in the format defined by RFC3339.
|
||||
// The date and time the resource was updated, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
|
||||
|
||||
|
|
|
@ -30,11 +30,11 @@ type ClusterNetworkSummary struct {
|
|||
// The current state of the cluster network.
|
||||
LifecycleState ClusterNetworkSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
|
||||
|
||||
// The date and time the resource was created, in the format defined by RFC3339.
|
||||
// The date and time the resource was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
|
||||
|
||||
// The date and time the resource was updated, in the format defined by RFC3339.
|
||||
// The date and time the resource was updated, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
|
||||
|
||||
|
|
53
vendor/github.com/oracle/oci-go-sdk/core/compute_global_image_capability_schema.go
generated
vendored
Normal file
53
vendor/github.com/oracle/oci-go-sdk/core/compute_global_image_capability_schema.go
generated
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
||||
// Code generated. DO NOT EDIT.
|
||||
|
||||
// Core Services API
|
||||
//
|
||||
// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm),
|
||||
// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and
|
||||
// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API
|
||||
// to manage resources such as virtual cloud networks (VCNs), compute instances, and
|
||||
// block storage volumes.
|
||||
//
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"github.com/oracle/oci-go-sdk/common"
|
||||
)
|
||||
|
||||
// ComputeGlobalImageCapabilitySchema Compute Global Image Capability Schema is a container for a set of compute global image capability schema versions
|
||||
type ComputeGlobalImageCapabilitySchema struct {
|
||||
|
||||
// The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute global image capability schema
|
||||
Id *string `mandatory:"true" json:"id"`
|
||||
|
||||
// A user-friendly name for the compute global image capability schema
|
||||
DisplayName *string `mandatory:"true" json:"displayName"`
|
||||
|
||||
// The date and time the compute global image capability schema was created, in the format defined by
|
||||
// RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
|
||||
|
||||
// The OCID of the compartment that contains the resource.
|
||||
CompartmentId *string `mandatory:"false" json:"compartmentId"`
|
||||
|
||||
// The name of the global capabilities version resource that is considered the current version.
|
||||
CurrentVersionName *string `mandatory:"false" json:"currentVersionName"`
|
||||
|
||||
// Defined tags for this resource. Each key is predefined and scoped to a
|
||||
// namespace. For more information, see Resource Tags (https://docs.cloud.oracle.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.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
|
||||
// Example: `{"Department": "Finance"}`
|
||||
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
|
||||
}
|
||||
|
||||
func (m ComputeGlobalImageCapabilitySchema) String() string {
|
||||
return common.PointerString(m)
|
||||
}
|
53
vendor/github.com/oracle/oci-go-sdk/core/compute_global_image_capability_schema_summary.go
generated
vendored
Normal file
53
vendor/github.com/oracle/oci-go-sdk/core/compute_global_image_capability_schema_summary.go
generated
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
||||
// Code generated. DO NOT EDIT.
|
||||
|
||||
// Core Services API
|
||||
//
|
||||
// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm),
|
||||
// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and
|
||||
// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API
|
||||
// to manage resources such as virtual cloud networks (VCNs), compute instances, and
|
||||
// block storage volumes.
|
||||
//
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"github.com/oracle/oci-go-sdk/common"
|
||||
)
|
||||
|
||||
// ComputeGlobalImageCapabilitySchemaSummary Summary information for a compute global image capability schema
|
||||
type ComputeGlobalImageCapabilitySchemaSummary struct {
|
||||
|
||||
// The compute global image capability schema OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
||||
Id *string `mandatory:"true" json:"id"`
|
||||
|
||||
// A user-friendly name for the compute global image capability schema.
|
||||
DisplayName *string `mandatory:"true" json:"displayName"`
|
||||
|
||||
// The date and time the compute global image capability schema was created, in the format defined by
|
||||
// RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
|
||||
|
||||
// The OCID of the compartment containing the compute global image capability schema
|
||||
CompartmentId *string `mandatory:"false" json:"compartmentId"`
|
||||
|
||||
// The name of the global capabilities version resource that is considered the current version.
|
||||
CurrentVersionName *string `mandatory:"false" json:"currentVersionName"`
|
||||
|
||||
// Defined tags for this resource. Each key is predefined and scoped to a
|
||||
// namespace. For more information, see Resource Tags (https://docs.cloud.oracle.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.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
|
||||
// Example: `{"Department": "Finance"}`
|
||||
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
|
||||
}
|
||||
|
||||
func (m ComputeGlobalImageCapabilitySchemaSummary) String() string {
|
||||
return common.PointerString(m)
|
||||
}
|
83
vendor/github.com/oracle/oci-go-sdk/core/compute_global_image_capability_schema_version.go
generated
vendored
Normal file
83
vendor/github.com/oracle/oci-go-sdk/core/compute_global_image_capability_schema_version.go
generated
vendored
Normal file
|
@ -0,0 +1,83 @@
|
|||
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
||||
// Code generated. DO NOT EDIT.
|
||||
|
||||
// Core Services API
|
||||
//
|
||||
// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm),
|
||||
// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and
|
||||
// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API
|
||||
// to manage resources such as virtual cloud networks (VCNs), compute instances, and
|
||||
// block storage volumes.
|
||||
//
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"github.com/oracle/oci-go-sdk/common"
|
||||
)
|
||||
|
||||
// ComputeGlobalImageCapabilitySchemaVersion Compute Global Image Capability Schema Version is a set of all possible capabilities for a collection of images.
|
||||
type ComputeGlobalImageCapabilitySchemaVersion struct {
|
||||
|
||||
// The name of the compute global image capability schema version
|
||||
Name *string `mandatory:"true" json:"name"`
|
||||
|
||||
// The ocid of the compute global image capability schema
|
||||
ComputeGlobalImageCapabilitySchemaId *string `mandatory:"true" json:"computeGlobalImageCapabilitySchemaId"`
|
||||
|
||||
// A user-friendly name for the compute global image capability schema
|
||||
DisplayName *string `mandatory:"true" json:"displayName"`
|
||||
|
||||
// The map of each capability name to its ImageCapabilityDescriptor.
|
||||
SchemaData map[string]ImageCapabilitySchemaDescriptor `mandatory:"true" json:"schemaData"`
|
||||
|
||||
// The date and time the compute global image capability schema version was created, in the format defined by
|
||||
// RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
|
||||
}
|
||||
|
||||
func (m ComputeGlobalImageCapabilitySchemaVersion) String() string {
|
||||
return common.PointerString(m)
|
||||
}
|
||||
|
||||
// UnmarshalJSON unmarshals from json
|
||||
func (m *ComputeGlobalImageCapabilitySchemaVersion) UnmarshalJSON(data []byte) (e error) {
|
||||
model := struct {
|
||||
Name *string `json:"name"`
|
||||
ComputeGlobalImageCapabilitySchemaId *string `json:"computeGlobalImageCapabilitySchemaId"`
|
||||
DisplayName *string `json:"displayName"`
|
||||
SchemaData map[string]imagecapabilityschemadescriptor `json:"schemaData"`
|
||||
TimeCreated *common.SDKTime `json:"timeCreated"`
|
||||
}{}
|
||||
|
||||
e = json.Unmarshal(data, &model)
|
||||
if e != nil {
|
||||
return
|
||||
}
|
||||
var nn interface{}
|
||||
m.Name = model.Name
|
||||
|
||||
m.ComputeGlobalImageCapabilitySchemaId = model.ComputeGlobalImageCapabilitySchemaId
|
||||
|
||||
m.DisplayName = model.DisplayName
|
||||
|
||||
m.SchemaData = make(map[string]ImageCapabilitySchemaDescriptor)
|
||||
for k, v := range model.SchemaData {
|
||||
nn, e = v.UnmarshalPolymorphicJSON(v.JsonData)
|
||||
if e != nil {
|
||||
return e
|
||||
}
|
||||
if nn != nil {
|
||||
m.SchemaData[k] = nn.(ImageCapabilitySchemaDescriptor)
|
||||
} else {
|
||||
m.SchemaData[k] = nil
|
||||
}
|
||||
}
|
||||
|
||||
m.TimeCreated = model.TimeCreated
|
||||
|
||||
return
|
||||
}
|
39
vendor/github.com/oracle/oci-go-sdk/core/compute_global_image_capability_schema_version_summary.go
generated
vendored
Normal file
39
vendor/github.com/oracle/oci-go-sdk/core/compute_global_image_capability_schema_version_summary.go
generated
vendored
Normal file
|
@ -0,0 +1,39 @@
|
|||
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
||||
// Code generated. DO NOT EDIT.
|
||||
|
||||
// Core Services API
|
||||
//
|
||||
// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm),
|
||||
// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and
|
||||
// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API
|
||||
// to manage resources such as virtual cloud networks (VCNs), compute instances, and
|
||||
// block storage volumes.
|
||||
//
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"github.com/oracle/oci-go-sdk/common"
|
||||
)
|
||||
|
||||
// ComputeGlobalImageCapabilitySchemaVersionSummary Summary information for a compute global image capability schema
|
||||
type ComputeGlobalImageCapabilitySchemaVersionSummary struct {
|
||||
|
||||
// The compute global image capability schema version name
|
||||
Name *string `mandatory:"true" json:"name"`
|
||||
|
||||
// The OCID of the compute global image capability schema
|
||||
ComputeGlobalImageCapabilitySchemaId *string `mandatory:"true" json:"computeGlobalImageCapabilitySchemaId"`
|
||||
|
||||
// The date and time the compute global image capability schema version was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
|
||||
|
||||
// The display name of the version
|
||||
DisplayName *string `mandatory:"false" json:"displayName"`
|
||||
}
|
||||
|
||||
func (m ComputeGlobalImageCapabilitySchemaVersionSummary) String() string {
|
||||
return common.PointerString(m)
|
||||
}
|
118
vendor/github.com/oracle/oci-go-sdk/core/compute_image_capability_schema.go
generated
vendored
Normal file
118
vendor/github.com/oracle/oci-go-sdk/core/compute_image_capability_schema.go
generated
vendored
Normal file
|
@ -0,0 +1,118 @@
|
|||
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
||||
// Code generated. DO NOT EDIT.
|
||||
|
||||
// Core Services API
|
||||
//
|
||||
// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm),
|
||||
// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and
|
||||
// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API
|
||||
// to manage resources such as virtual cloud networks (VCNs), compute instances, and
|
||||
// block storage volumes.
|
||||
//
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"github.com/oracle/oci-go-sdk/common"
|
||||
)
|
||||
|
||||
// ComputeImageCapabilitySchema Compute Image Capability Schema is a set of capabilities that filter the compute global capability schema
|
||||
// version for an image.
|
||||
type ComputeImageCapabilitySchema struct {
|
||||
|
||||
// The id of the compute global image capability schema version
|
||||
Id *string `mandatory:"true" json:"id"`
|
||||
|
||||
// The ocid of the compute global image capability schema
|
||||
ComputeGlobalImageCapabilitySchemaId *string `mandatory:"true" json:"computeGlobalImageCapabilitySchemaId"`
|
||||
|
||||
// The name of the compute global image capability schema version
|
||||
ComputeGlobalImageCapabilitySchemaVersionName *string `mandatory:"true" json:"computeGlobalImageCapabilitySchemaVersionName"`
|
||||
|
||||
// The OCID of the image associated with this compute image capability schema
|
||||
ImageId *string `mandatory:"true" json:"imageId"`
|
||||
|
||||
// A user-friendly name for the compute global image capability schema
|
||||
DisplayName *string `mandatory:"true" json:"displayName"`
|
||||
|
||||
// The map of each capability name to its ImageCapabilityDescriptor.
|
||||
SchemaData map[string]ImageCapabilitySchemaDescriptor `mandatory:"true" json:"schemaData"`
|
||||
|
||||
// The date and time the compute image capability schema was created, in the format defined by
|
||||
// RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
|
||||
|
||||
// The OCID of the compartment that contains the resource.
|
||||
CompartmentId *string `mandatory:"false" json:"compartmentId"`
|
||||
|
||||
// Defined tags for this resource. Each key is predefined and scoped to a
|
||||
// namespace. For more information, see Resource Tags (https://docs.cloud.oracle.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.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
|
||||
// Example: `{"Department": "Finance"}`
|
||||
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
|
||||
}
|
||||
|
||||
func (m ComputeImageCapabilitySchema) String() string {
|
||||
return common.PointerString(m)
|
||||
}
|
||||
|
||||
// UnmarshalJSON unmarshals from json
|
||||
func (m *ComputeImageCapabilitySchema) UnmarshalJSON(data []byte) (e error) {
|
||||
model := struct {
|
||||
CompartmentId *string `json:"compartmentId"`
|
||||
DefinedTags map[string]map[string]interface{} `json:"definedTags"`
|
||||
FreeformTags map[string]string `json:"freeformTags"`
|
||||
Id *string `json:"id"`
|
||||
ComputeGlobalImageCapabilitySchemaId *string `json:"computeGlobalImageCapabilitySchemaId"`
|
||||
ComputeGlobalImageCapabilitySchemaVersionName *string `json:"computeGlobalImageCapabilitySchemaVersionName"`
|
||||
ImageId *string `json:"imageId"`
|
||||
DisplayName *string `json:"displayName"`
|
||||
SchemaData map[string]imagecapabilityschemadescriptor `json:"schemaData"`
|
||||
TimeCreated *common.SDKTime `json:"timeCreated"`
|
||||
}{}
|
||||
|
||||
e = json.Unmarshal(data, &model)
|
||||
if e != nil {
|
||||
return
|
||||
}
|
||||
var nn interface{}
|
||||
m.CompartmentId = model.CompartmentId
|
||||
|
||||
m.DefinedTags = model.DefinedTags
|
||||
|
||||
m.FreeformTags = model.FreeformTags
|
||||
|
||||
m.Id = model.Id
|
||||
|
||||
m.ComputeGlobalImageCapabilitySchemaId = model.ComputeGlobalImageCapabilitySchemaId
|
||||
|
||||
m.ComputeGlobalImageCapabilitySchemaVersionName = model.ComputeGlobalImageCapabilitySchemaVersionName
|
||||
|
||||
m.ImageId = model.ImageId
|
||||
|
||||
m.DisplayName = model.DisplayName
|
||||
|
||||
m.SchemaData = make(map[string]ImageCapabilitySchemaDescriptor)
|
||||
for k, v := range model.SchemaData {
|
||||
nn, e = v.UnmarshalPolymorphicJSON(v.JsonData)
|
||||
if e != nil {
|
||||
return e
|
||||
}
|
||||
if nn != nil {
|
||||
m.SchemaData[k] = nn.(ImageCapabilitySchemaDescriptor)
|
||||
} else {
|
||||
m.SchemaData[k] = nil
|
||||
}
|
||||
}
|
||||
|
||||
m.TimeCreated = model.TimeCreated
|
||||
|
||||
return
|
||||
}
|
55
vendor/github.com/oracle/oci-go-sdk/core/compute_image_capability_schema_summary.go
generated
vendored
Normal file
55
vendor/github.com/oracle/oci-go-sdk/core/compute_image_capability_schema_summary.go
generated
vendored
Normal file
|
@ -0,0 +1,55 @@
|
|||
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
||||
// Code generated. DO NOT EDIT.
|
||||
|
||||
// Core Services API
|
||||
//
|
||||
// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm),
|
||||
// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and
|
||||
// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API
|
||||
// to manage resources such as virtual cloud networks (VCNs), compute instances, and
|
||||
// block storage volumes.
|
||||
//
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"github.com/oracle/oci-go-sdk/common"
|
||||
)
|
||||
|
||||
// ComputeImageCapabilitySchemaSummary Summary information for a compute image capability schema
|
||||
type ComputeImageCapabilitySchemaSummary struct {
|
||||
|
||||
// The compute image capability schema OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
||||
Id *string `mandatory:"true" json:"id"`
|
||||
|
||||
// The name of the compute global image capability schema version
|
||||
ComputeGlobalImageCapabilitySchemaVersionName *string `mandatory:"true" json:"computeGlobalImageCapabilitySchemaVersionName"`
|
||||
|
||||
// The OCID of the image associated with this compute image capability schema
|
||||
ImageId *string `mandatory:"true" json:"imageId"`
|
||||
|
||||
// A user-friendly name for the compute image capability schema.
|
||||
DisplayName *string `mandatory:"true" json:"displayName"`
|
||||
|
||||
// The date and time the compute image capability schema was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
|
||||
|
||||
// The OCID of the compartment containing the compute global image capability schema
|
||||
CompartmentId *string `mandatory:"false" json:"compartmentId"`
|
||||
|
||||
// Defined tags for this resource. Each key is predefined and scoped to a
|
||||
// namespace. For more information, see Resource Tags (https://docs.cloud.oracle.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.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
|
||||
// Example: `{"Department": "Finance"}`
|
||||
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
|
||||
}
|
||||
|
||||
func (m ComputeImageCapabilitySchemaSummary) String() string {
|
||||
return common.PointerString(m)
|
||||
}
|
|
@ -40,7 +40,7 @@ type ConsoleHistory struct {
|
|||
// The current state of the console history.
|
||||
LifecycleState ConsoleHistoryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
|
||||
|
||||
// The date and time the history was created, in the format defined by RFC3339.
|
||||
// The date and time the history was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
|
||||
|
||||
|
|
|
@ -350,6 +350,60 @@ func (client ComputeClient) captureConsoleHistory(ctx context.Context, request c
|
|||
return response, err
|
||||
}
|
||||
|
||||
// ChangeComputeImageCapabilitySchemaCompartment Moves a compute image capability schema into a different compartment within the same tenancy.
|
||||
// For information about moving resources between compartments, see
|
||||
// Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
|
||||
func (client ComputeClient) ChangeComputeImageCapabilitySchemaCompartment(ctx context.Context, request ChangeComputeImageCapabilitySchemaCompartmentRequest) (response ChangeComputeImageCapabilitySchemaCompartmentResponse, 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.changeComputeImageCapabilitySchemaCompartment, policy)
|
||||
if err != nil {
|
||||
if ociResponse != nil {
|
||||
if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil {
|
||||
opcRequestId := httpResponse.Header.Get("opc-request-id")
|
||||
response = ChangeComputeImageCapabilitySchemaCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId}
|
||||
} else {
|
||||
response = ChangeComputeImageCapabilitySchemaCompartmentResponse{}
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
if convertedResponse, ok := ociResponse.(ChangeComputeImageCapabilitySchemaCompartmentResponse); ok {
|
||||
response = convertedResponse
|
||||
} else {
|
||||
err = fmt.Errorf("failed to convert OCIResponse into ChangeComputeImageCapabilitySchemaCompartmentResponse")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// changeComputeImageCapabilitySchemaCompartment implements the OCIOperation interface (enables retrying operations)
|
||||
func (client ComputeClient) changeComputeImageCapabilitySchemaCompartment(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) {
|
||||
httpRequest, err := request.HTTPRequest(http.MethodPost, "/computeImageCapabilitySchemas/{computeImageCapabilitySchemaId}/actions/changeCompartment")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var response ChangeComputeImageCapabilitySchemaCompartmentResponse
|
||||
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
|
||||
}
|
||||
|
||||
// ChangeDedicatedVmHostCompartment Moves a dedicated virtual machine host from one compartment to another.
|
||||
func (client ComputeClient) ChangeDedicatedVmHostCompartment(ctx context.Context, request ChangeDedicatedVmHostCompartmentRequest) (response ChangeDedicatedVmHostCompartmentResponse, err error) {
|
||||
var ociResponse common.OCIResponse
|
||||
|
@ -564,6 +618,58 @@ func (client ComputeClient) createAppCatalogSubscription(ctx context.Context, re
|
|||
return response, err
|
||||
}
|
||||
|
||||
// CreateComputeImageCapabilitySchema Creates compute image capability schema.
|
||||
func (client ComputeClient) CreateComputeImageCapabilitySchema(ctx context.Context, request CreateComputeImageCapabilitySchemaRequest) (response CreateComputeImageCapabilitySchemaResponse, 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.createComputeImageCapabilitySchema, policy)
|
||||
if err != nil {
|
||||
if ociResponse != nil {
|
||||
if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil {
|
||||
opcRequestId := httpResponse.Header.Get("opc-request-id")
|
||||
response = CreateComputeImageCapabilitySchemaResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId}
|
||||
} else {
|
||||
response = CreateComputeImageCapabilitySchemaResponse{}
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
if convertedResponse, ok := ociResponse.(CreateComputeImageCapabilitySchemaResponse); ok {
|
||||
response = convertedResponse
|
||||
} else {
|
||||
err = fmt.Errorf("failed to convert OCIResponse into CreateComputeImageCapabilitySchemaResponse")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// createComputeImageCapabilitySchema implements the OCIOperation interface (enables retrying operations)
|
||||
func (client ComputeClient) createComputeImageCapabilitySchema(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) {
|
||||
httpRequest, err := request.HTTPRequest(http.MethodPost, "/computeImageCapabilitySchemas")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var response CreateComputeImageCapabilitySchemaResponse
|
||||
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
|
||||
}
|
||||
|
||||
// CreateDedicatedVmHost Creates a new dedicated virtual machine host in the specified compartment and the specified availability domain.
|
||||
// Dedicated virtual machine hosts enable you to run your Compute virtual machine (VM) instances on dedicated servers
|
||||
// that are a single tenant and not shared with other customers.
|
||||
|
@ -789,6 +895,53 @@ func (client ComputeClient) deleteAppCatalogSubscription(ctx context.Context, re
|
|||
return response, err
|
||||
}
|
||||
|
||||
// DeleteComputeImageCapabilitySchema Deletes the specified Compute Image Capability Schema
|
||||
func (client ComputeClient) DeleteComputeImageCapabilitySchema(ctx context.Context, request DeleteComputeImageCapabilitySchemaRequest) (response DeleteComputeImageCapabilitySchemaResponse, err error) {
|
||||
var ociResponse common.OCIResponse
|
||||
policy := common.NoRetryPolicy()
|
||||
if request.RetryPolicy() != nil {
|
||||
policy = *request.RetryPolicy()
|
||||
}
|
||||
ociResponse, err = common.Retry(ctx, request, client.deleteComputeImageCapabilitySchema, policy)
|
||||
if err != nil {
|
||||
if ociResponse != nil {
|
||||
if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil {
|
||||
opcRequestId := httpResponse.Header.Get("opc-request-id")
|
||||
response = DeleteComputeImageCapabilitySchemaResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId}
|
||||
} else {
|
||||
response = DeleteComputeImageCapabilitySchemaResponse{}
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
if convertedResponse, ok := ociResponse.(DeleteComputeImageCapabilitySchemaResponse); ok {
|
||||
response = convertedResponse
|
||||
} else {
|
||||
err = fmt.Errorf("failed to convert OCIResponse into DeleteComputeImageCapabilitySchemaResponse")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// deleteComputeImageCapabilitySchema implements the OCIOperation interface (enables retrying operations)
|
||||
func (client ComputeClient) deleteComputeImageCapabilitySchema(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) {
|
||||
httpRequest, err := request.HTTPRequest(http.MethodDelete, "/computeImageCapabilitySchemas/{computeImageCapabilitySchemaId}")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var response DeleteComputeImageCapabilitySchemaResponse
|
||||
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
|
||||
|
@ -1378,6 +1531,147 @@ func (client ComputeClient) getBootVolumeAttachment(ctx context.Context, request
|
|||
return response, err
|
||||
}
|
||||
|
||||
// GetComputeGlobalImageCapabilitySchema Gets the specified Compute Global Image Capability Schema
|
||||
func (client ComputeClient) GetComputeGlobalImageCapabilitySchema(ctx context.Context, request GetComputeGlobalImageCapabilitySchemaRequest) (response GetComputeGlobalImageCapabilitySchemaResponse, err error) {
|
||||
var ociResponse common.OCIResponse
|
||||
policy := common.NoRetryPolicy()
|
||||
if request.RetryPolicy() != nil {
|
||||
policy = *request.RetryPolicy()
|
||||
}
|
||||
ociResponse, err = common.Retry(ctx, request, client.getComputeGlobalImageCapabilitySchema, policy)
|
||||
if err != nil {
|
||||
if ociResponse != nil {
|
||||
if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil {
|
||||
opcRequestId := httpResponse.Header.Get("opc-request-id")
|
||||
response = GetComputeGlobalImageCapabilitySchemaResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId}
|
||||
} else {
|
||||
response = GetComputeGlobalImageCapabilitySchemaResponse{}
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
if convertedResponse, ok := ociResponse.(GetComputeGlobalImageCapabilitySchemaResponse); ok {
|
||||
response = convertedResponse
|
||||
} else {
|
||||
err = fmt.Errorf("failed to convert OCIResponse into GetComputeGlobalImageCapabilitySchemaResponse")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// getComputeGlobalImageCapabilitySchema implements the OCIOperation interface (enables retrying operations)
|
||||
func (client ComputeClient) getComputeGlobalImageCapabilitySchema(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) {
|
||||
httpRequest, err := request.HTTPRequest(http.MethodGet, "/computeGlobalImageCapabilitySchemas/{computeGlobalImageCapabilitySchemaId}")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var response GetComputeGlobalImageCapabilitySchemaResponse
|
||||
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
|
||||
}
|
||||
|
||||
// GetComputeGlobalImageCapabilitySchemaVersion Gets the specified Compute Global Image Capability Schema Version
|
||||
func (client ComputeClient) GetComputeGlobalImageCapabilitySchemaVersion(ctx context.Context, request GetComputeGlobalImageCapabilitySchemaVersionRequest) (response GetComputeGlobalImageCapabilitySchemaVersionResponse, err error) {
|
||||
var ociResponse common.OCIResponse
|
||||
policy := common.NoRetryPolicy()
|
||||
if request.RetryPolicy() != nil {
|
||||
policy = *request.RetryPolicy()
|
||||
}
|
||||
ociResponse, err = common.Retry(ctx, request, client.getComputeGlobalImageCapabilitySchemaVersion, policy)
|
||||
if err != nil {
|
||||
if ociResponse != nil {
|
||||
if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil {
|
||||
opcRequestId := httpResponse.Header.Get("opc-request-id")
|
||||
response = GetComputeGlobalImageCapabilitySchemaVersionResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId}
|
||||
} else {
|
||||
response = GetComputeGlobalImageCapabilitySchemaVersionResponse{}
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
if convertedResponse, ok := ociResponse.(GetComputeGlobalImageCapabilitySchemaVersionResponse); ok {
|
||||
response = convertedResponse
|
||||
} else {
|
||||
err = fmt.Errorf("failed to convert OCIResponse into GetComputeGlobalImageCapabilitySchemaVersionResponse")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// getComputeGlobalImageCapabilitySchemaVersion implements the OCIOperation interface (enables retrying operations)
|
||||
func (client ComputeClient) getComputeGlobalImageCapabilitySchemaVersion(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) {
|
||||
httpRequest, err := request.HTTPRequest(http.MethodGet, "/computeGlobalImageCapabilitySchemas/{computeGlobalImageCapabilitySchemaId}/versions/{computeGlobalImageCapabilitySchemaVersionName}")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var response GetComputeGlobalImageCapabilitySchemaVersionResponse
|
||||
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
|
||||
}
|
||||
|
||||
// GetComputeImageCapabilitySchema Gets the specified Compute Image Capability Schema
|
||||
func (client ComputeClient) GetComputeImageCapabilitySchema(ctx context.Context, request GetComputeImageCapabilitySchemaRequest) (response GetComputeImageCapabilitySchemaResponse, err error) {
|
||||
var ociResponse common.OCIResponse
|
||||
policy := common.NoRetryPolicy()
|
||||
if request.RetryPolicy() != nil {
|
||||
policy = *request.RetryPolicy()
|
||||
}
|
||||
ociResponse, err = common.Retry(ctx, request, client.getComputeImageCapabilitySchema, policy)
|
||||
if err != nil {
|
||||
if ociResponse != nil {
|
||||
if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil {
|
||||
opcRequestId := httpResponse.Header.Get("opc-request-id")
|
||||
response = GetComputeImageCapabilitySchemaResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId}
|
||||
} else {
|
||||
response = GetComputeImageCapabilitySchemaResponse{}
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
if convertedResponse, ok := ociResponse.(GetComputeImageCapabilitySchemaResponse); ok {
|
||||
response = convertedResponse
|
||||
} else {
|
||||
err = fmt.Errorf("failed to convert OCIResponse into GetComputeImageCapabilitySchemaResponse")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// getComputeImageCapabilitySchema implements the OCIOperation interface (enables retrying operations)
|
||||
func (client ComputeClient) getComputeImageCapabilitySchema(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) {
|
||||
httpRequest, err := request.HTTPRequest(http.MethodGet, "/computeImageCapabilitySchemas/{computeImageCapabilitySchemaId}")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var response GetComputeImageCapabilitySchemaResponse
|
||||
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
|
||||
}
|
||||
|
||||
// GetConsoleHistory Shows the metadata for the specified console history.
|
||||
// See CaptureConsoleHistory
|
||||
// for details about using the console history operations.
|
||||
|
@ -1940,6 +2234,13 @@ func (client ComputeClient) instanceAction(ctx context.Context, request common.O
|
|||
// GetVnic with the VNIC ID.
|
||||
// You can later add secondary VNICs to an instance. For more information, see
|
||||
// Virtual Network Interface Cards (VNICs) (https://docs.cloud.oracle.com/Content/Network/Tasks/managingVNICs.htm).
|
||||
// To launch an instance from a Marketplace image listing, you must provide the image ID of the
|
||||
// listing resource version that you want, but you also must subscribe to the listing before you try
|
||||
// to launch the instance. To subscribe to the listing, use the GetAppCatalogListingAgreements
|
||||
// operation to get the signature for the terms of use agreement for the desired listing resource version.
|
||||
// Then, call CreateAppCatalogSubscription
|
||||
// with the signature. To get the image ID for the LaunchInstance operation, call
|
||||
// GetAppCatalogListingResourceVersion.
|
||||
func (client ComputeClient) LaunchInstance(ctx context.Context, request LaunchInstanceRequest) (response LaunchInstanceResponse, err error) {
|
||||
var ociResponse common.OCIResponse
|
||||
policy := common.NoRetryPolicy()
|
||||
|
@ -2180,6 +2481,147 @@ func (client ComputeClient) listBootVolumeAttachments(ctx context.Context, reque
|
|||
return response, err
|
||||
}
|
||||
|
||||
// ListComputeGlobalImageCapabilitySchemaVersions Lists Compute Global Image Capability Schema versions in the specified compartment.
|
||||
func (client ComputeClient) ListComputeGlobalImageCapabilitySchemaVersions(ctx context.Context, request ListComputeGlobalImageCapabilitySchemaVersionsRequest) (response ListComputeGlobalImageCapabilitySchemaVersionsResponse, err error) {
|
||||
var ociResponse common.OCIResponse
|
||||
policy := common.NoRetryPolicy()
|
||||
if request.RetryPolicy() != nil {
|
||||
policy = *request.RetryPolicy()
|
||||
}
|
||||
ociResponse, err = common.Retry(ctx, request, client.listComputeGlobalImageCapabilitySchemaVersions, policy)
|
||||
if err != nil {
|
||||
if ociResponse != nil {
|
||||
if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil {
|
||||
opcRequestId := httpResponse.Header.Get("opc-request-id")
|
||||
response = ListComputeGlobalImageCapabilitySchemaVersionsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId}
|
||||
} else {
|
||||
response = ListComputeGlobalImageCapabilitySchemaVersionsResponse{}
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
if convertedResponse, ok := ociResponse.(ListComputeGlobalImageCapabilitySchemaVersionsResponse); ok {
|
||||
response = convertedResponse
|
||||
} else {
|
||||
err = fmt.Errorf("failed to convert OCIResponse into ListComputeGlobalImageCapabilitySchemaVersionsResponse")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// listComputeGlobalImageCapabilitySchemaVersions implements the OCIOperation interface (enables retrying operations)
|
||||
func (client ComputeClient) listComputeGlobalImageCapabilitySchemaVersions(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) {
|
||||
httpRequest, err := request.HTTPRequest(http.MethodGet, "/computeGlobalImageCapabilitySchemas/{computeGlobalImageCapabilitySchemaId}/versions")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var response ListComputeGlobalImageCapabilitySchemaVersionsResponse
|
||||
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
|
||||
}
|
||||
|
||||
// ListComputeGlobalImageCapabilitySchemas Lists Compute Global Image Capability Schema in the specified compartment.
|
||||
func (client ComputeClient) ListComputeGlobalImageCapabilitySchemas(ctx context.Context, request ListComputeGlobalImageCapabilitySchemasRequest) (response ListComputeGlobalImageCapabilitySchemasResponse, err error) {
|
||||
var ociResponse common.OCIResponse
|
||||
policy := common.NoRetryPolicy()
|
||||
if request.RetryPolicy() != nil {
|
||||
policy = *request.RetryPolicy()
|
||||
}
|
||||
ociResponse, err = common.Retry(ctx, request, client.listComputeGlobalImageCapabilitySchemas, policy)
|
||||
if err != nil {
|
||||
if ociResponse != nil {
|
||||
if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil {
|
||||
opcRequestId := httpResponse.Header.Get("opc-request-id")
|
||||
response = ListComputeGlobalImageCapabilitySchemasResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId}
|
||||
} else {
|
||||
response = ListComputeGlobalImageCapabilitySchemasResponse{}
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
if convertedResponse, ok := ociResponse.(ListComputeGlobalImageCapabilitySchemasResponse); ok {
|
||||
response = convertedResponse
|
||||
} else {
|
||||
err = fmt.Errorf("failed to convert OCIResponse into ListComputeGlobalImageCapabilitySchemasResponse")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// listComputeGlobalImageCapabilitySchemas implements the OCIOperation interface (enables retrying operations)
|
||||
func (client ComputeClient) listComputeGlobalImageCapabilitySchemas(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) {
|
||||
httpRequest, err := request.HTTPRequest(http.MethodGet, "/computeGlobalImageCapabilitySchemas")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var response ListComputeGlobalImageCapabilitySchemasResponse
|
||||
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
|
||||
}
|
||||
|
||||
// ListComputeImageCapabilitySchemas Lists Compute Image Capability Schema in the specified compartment. You can also query by a specific imageId.
|
||||
func (client ComputeClient) ListComputeImageCapabilitySchemas(ctx context.Context, request ListComputeImageCapabilitySchemasRequest) (response ListComputeImageCapabilitySchemasResponse, err error) {
|
||||
var ociResponse common.OCIResponse
|
||||
policy := common.NoRetryPolicy()
|
||||
if request.RetryPolicy() != nil {
|
||||
policy = *request.RetryPolicy()
|
||||
}
|
||||
ociResponse, err = common.Retry(ctx, request, client.listComputeImageCapabilitySchemas, policy)
|
||||
if err != nil {
|
||||
if ociResponse != nil {
|
||||
if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil {
|
||||
opcRequestId := httpResponse.Header.Get("opc-request-id")
|
||||
response = ListComputeImageCapabilitySchemasResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId}
|
||||
} else {
|
||||
response = ListComputeImageCapabilitySchemasResponse{}
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
if convertedResponse, ok := ociResponse.(ListComputeImageCapabilitySchemasResponse); ok {
|
||||
response = convertedResponse
|
||||
} else {
|
||||
err = fmt.Errorf("failed to convert OCIResponse into ListComputeImageCapabilitySchemasResponse")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// listComputeImageCapabilitySchemas implements the OCIOperation interface (enables retrying operations)
|
||||
func (client ComputeClient) listComputeImageCapabilitySchemas(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) {
|
||||
httpRequest, err := request.HTTPRequest(http.MethodGet, "/computeImageCapabilitySchemas")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var response ListComputeImageCapabilitySchemasResponse
|
||||
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
|
||||
}
|
||||
|
||||
// ListConsoleHistories Lists the console history metadata for the specified compartment or instance.
|
||||
func (client ComputeClient) ListConsoleHistories(ctx context.Context, request ListConsoleHistoriesRequest) (response ListConsoleHistoriesResponse, err error) {
|
||||
var ociResponse common.OCIResponse
|
||||
|
@ -2418,7 +2860,7 @@ func (client ComputeClient) listDedicatedVmHosts(ctx context.Context, request co
|
|||
return response, err
|
||||
}
|
||||
|
||||
// ListImageShapeCompatibilityEntries Lists the shape compatibilities for the image.
|
||||
// ListImageShapeCompatibilityEntries Lists the compatible shapes for the specified image.
|
||||
func (client ComputeClient) ListImageShapeCompatibilityEntries(ctx context.Context, request ListImageShapeCompatibilityEntriesRequest) (response ListImageShapeCompatibilityEntriesResponse, err error) {
|
||||
var ociResponse common.OCIResponse
|
||||
policy := common.NoRetryPolicy()
|
||||
|
@ -2923,6 +3365,53 @@ func (client ComputeClient) terminateInstance(ctx context.Context, request commo
|
|||
return response, err
|
||||
}
|
||||
|
||||
// UpdateComputeImageCapabilitySchema Updates the specified Compute Image Capability Schema
|
||||
func (client ComputeClient) UpdateComputeImageCapabilitySchema(ctx context.Context, request UpdateComputeImageCapabilitySchemaRequest) (response UpdateComputeImageCapabilitySchemaResponse, err error) {
|
||||
var ociResponse common.OCIResponse
|
||||
policy := common.NoRetryPolicy()
|
||||
if request.RetryPolicy() != nil {
|
||||
policy = *request.RetryPolicy()
|
||||
}
|
||||
ociResponse, err = common.Retry(ctx, request, client.updateComputeImageCapabilitySchema, policy)
|
||||
if err != nil {
|
||||
if ociResponse != nil {
|
||||
if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil {
|
||||
opcRequestId := httpResponse.Header.Get("opc-request-id")
|
||||
response = UpdateComputeImageCapabilitySchemaResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId}
|
||||
} else {
|
||||
response = UpdateComputeImageCapabilitySchemaResponse{}
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
if convertedResponse, ok := ociResponse.(UpdateComputeImageCapabilitySchemaResponse); ok {
|
||||
response = convertedResponse
|
||||
} else {
|
||||
err = fmt.Errorf("failed to convert OCIResponse into UpdateComputeImageCapabilitySchemaResponse")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// updateComputeImageCapabilitySchema implements the OCIOperation interface (enables retrying operations)
|
||||
func (client ComputeClient) updateComputeImageCapabilitySchema(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) {
|
||||
httpRequest, err := request.HTTPRequest(http.MethodPut, "/computeImageCapabilitySchemas/{computeImageCapabilitySchemaId}")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var response UpdateComputeImageCapabilitySchemaResponse
|
||||
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
|
||||
}
|
||||
|
||||
// UpdateConsoleHistory Updates the specified console history metadata.
|
||||
func (client ComputeClient) UpdateConsoleHistory(ctx context.Context, request UpdateConsoleHistoryRequest) (response UpdateConsoleHistoryResponse, err error) {
|
||||
var ociResponse common.OCIResponse
|
||||
|
|
|
@ -1304,6 +1304,11 @@ func (client ComputeManagementClient) terminateClusterNetwork(ctx context.Contex
|
|||
}
|
||||
|
||||
// TerminateInstancePool Terminate the specified instance pool.
|
||||
// **Warning:** When you delete an instance pool, the resources that were created by the pool are permanently
|
||||
// deleted, including associated instances, attached boot volumes, and block volumes.
|
||||
// If an autoscaling configuration applies to the instance pool, the autoscaling configuration will be deleted
|
||||
// asynchronously after the pool is deleted. You can also manually delete the autoscaling configuration using
|
||||
// the `DeleteAutoScalingConfiguration` operation in the Autoscaling API.
|
||||
func (client ComputeManagementClient) TerminateInstancePool(ctx context.Context, request TerminateInstancePoolRequest) (response TerminateInstancePoolResponse, err error) {
|
||||
var ociResponse common.OCIResponse
|
||||
policy := common.NoRetryPolicy()
|
||||
|
|
|
@ -1244,6 +1244,60 @@ func (client VirtualNetworkClient) changeVirtualCircuitCompartment(ctx context.C
|
|||
return response, err
|
||||
}
|
||||
|
||||
// ChangeVlanCompartment Moves a VLAN into a different compartment within the same tenancy.
|
||||
// For information about moving resources between compartments, see
|
||||
// Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
|
||||
func (client VirtualNetworkClient) ChangeVlanCompartment(ctx context.Context, request ChangeVlanCompartmentRequest) (response ChangeVlanCompartmentResponse, 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.changeVlanCompartment, policy)
|
||||
if err != nil {
|
||||
if ociResponse != nil {
|
||||
if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil {
|
||||
opcRequestId := httpResponse.Header.Get("opc-request-id")
|
||||
response = ChangeVlanCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId}
|
||||
} else {
|
||||
response = ChangeVlanCompartmentResponse{}
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
if convertedResponse, ok := ociResponse.(ChangeVlanCompartmentResponse); ok {
|
||||
response = convertedResponse
|
||||
} else {
|
||||
err = fmt.Errorf("failed to convert OCIResponse into ChangeVlanCompartmentResponse")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// changeVlanCompartment implements the OCIOperation interface (enables retrying operations)
|
||||
func (client VirtualNetworkClient) changeVlanCompartment(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) {
|
||||
httpRequest, err := request.HTTPRequest(http.MethodPost, "/vlans/{vlanId}/actions/changeCompartment")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var response ChangeVlanCompartmentResponse
|
||||
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
|
||||
}
|
||||
|
||||
// ConnectLocalPeeringGateways Connects this local peering gateway (LPG) to another one in the same region.
|
||||
// This operation must be called by the VCN administrator who is designated as
|
||||
// the *requestor* in the peering relationship. The *acceptor* must implement
|
||||
|
@ -2655,6 +2709,58 @@ func (client VirtualNetworkClient) createVirtualCircuit(ctx context.Context, req
|
|||
return response, err
|
||||
}
|
||||
|
||||
// CreateVlan Creates a VLAN in the specified VCN and the specified compartment.
|
||||
func (client VirtualNetworkClient) CreateVlan(ctx context.Context, request CreateVlanRequest) (response CreateVlanResponse, 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.createVlan, policy)
|
||||
if err != nil {
|
||||
if ociResponse != nil {
|
||||
if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil {
|
||||
opcRequestId := httpResponse.Header.Get("opc-request-id")
|
||||
response = CreateVlanResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId}
|
||||
} else {
|
||||
response = CreateVlanResponse{}
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
if convertedResponse, ok := ociResponse.(CreateVlanResponse); ok {
|
||||
response = convertedResponse
|
||||
} else {
|
||||
err = fmt.Errorf("failed to convert OCIResponse into CreateVlanResponse")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// createVlan implements the OCIOperation interface (enables retrying operations)
|
||||
func (client VirtualNetworkClient) createVlan(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) {
|
||||
httpRequest, err := request.HTTPRequest(http.MethodPost, "/vlans")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var response CreateVlanResponse
|
||||
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
|
||||
}
|
||||
|
||||
// DeleteCpe Deletes the specified CPE object. The CPE must not be connected to a DRG. This is an asynchronous
|
||||
// operation. The CPE's `lifecycleState` will change to TERMINATING temporarily until the CPE is completely
|
||||
// removed.
|
||||
|
@ -3710,6 +3816,53 @@ func (client VirtualNetworkClient) deleteVirtualCircuit(ctx context.Context, req
|
|||
return response, err
|
||||
}
|
||||
|
||||
// DeleteVlan Deletes the specified VLAN, but only if there are no VNICs in the VLAN.
|
||||
func (client VirtualNetworkClient) DeleteVlan(ctx context.Context, request DeleteVlanRequest) (response DeleteVlanResponse, err error) {
|
||||
var ociResponse common.OCIResponse
|
||||
policy := common.NoRetryPolicy()
|
||||
if request.RetryPolicy() != nil {
|
||||
policy = *request.RetryPolicy()
|
||||
}
|
||||
ociResponse, err = common.Retry(ctx, request, client.deleteVlan, policy)
|
||||
if err != nil {
|
||||
if ociResponse != nil {
|
||||
if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil {
|
||||
opcRequestId := httpResponse.Header.Get("opc-request-id")
|
||||
response = DeleteVlanResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId}
|
||||
} else {
|
||||
response = DeleteVlanResponse{}
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
if convertedResponse, ok := ociResponse.(DeleteVlanResponse); ok {
|
||||
response = convertedResponse
|
||||
} else {
|
||||
err = fmt.Errorf("failed to convert OCIResponse into DeleteVlanResponse")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// deleteVlan implements the OCIOperation interface (enables retrying operations)
|
||||
func (client VirtualNetworkClient) deleteVlan(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) {
|
||||
httpRequest, err := request.HTTPRequest(http.MethodDelete, "/vlans/{vlanId}")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var response DeleteVlanResponse
|
||||
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
|
||||
}
|
||||
|
||||
// DetachServiceId Removes the specified Service from the list of enabled
|
||||
// `Service` objects for the specified gateway. You do not need to remove any route
|
||||
// rules that specify this `Service` object's `cidrBlock` as the destination CIDR. However, consider
|
||||
|
@ -4999,7 +5152,7 @@ func (client VirtualNetworkClient) getPrivateIp(ctx context.Context, request com
|
|||
|
||||
// GetPublicIp Gets the specified public IP. You must specify the object's OCID.
|
||||
// Alternatively, you can get the object by using GetPublicIpByIpAddress
|
||||
// with the public IP address (for example, 129.146.2.1).
|
||||
// with the public IP address (for example, 203.0.113.2).
|
||||
// Or you can use GetPublicIpByPrivateIpId
|
||||
// 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
|
||||
|
@ -5051,7 +5204,7 @@ func (client VirtualNetworkClient) getPublicIp(ctx context.Context, request comm
|
|||
return response, err
|
||||
}
|
||||
|
||||
// GetPublicIpByIpAddress Gets the public IP based on the public IP address (for example, 129.146.2.1).
|
||||
// GetPublicIpByIpAddress Gets the public IP based on the public IP address (for example, 203.0.113.2).
|
||||
// **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 `assignedEntityId` = OCID of the target private IP.
|
||||
|
@ -5644,6 +5797,53 @@ func (client VirtualNetworkClient) getVirtualCircuit(ctx context.Context, reques
|
|||
return response, err
|
||||
}
|
||||
|
||||
// GetVlan Gets the specified VLAN's information.
|
||||
func (client VirtualNetworkClient) GetVlan(ctx context.Context, request GetVlanRequest) (response GetVlanResponse, err error) {
|
||||
var ociResponse common.OCIResponse
|
||||
policy := common.NoRetryPolicy()
|
||||
if request.RetryPolicy() != nil {
|
||||
policy = *request.RetryPolicy()
|
||||
}
|
||||
ociResponse, err = common.Retry(ctx, request, client.getVlan, policy)
|
||||
if err != nil {
|
||||
if ociResponse != nil {
|
||||
if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil {
|
||||
opcRequestId := httpResponse.Header.Get("opc-request-id")
|
||||
response = GetVlanResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId}
|
||||
} else {
|
||||
response = GetVlanResponse{}
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
if convertedResponse, ok := ociResponse.(GetVlanResponse); ok {
|
||||
response = convertedResponse
|
||||
} else {
|
||||
err = fmt.Errorf("failed to convert OCIResponse into GetVlanResponse")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// getVlan implements the OCIOperation interface (enables retrying operations)
|
||||
func (client VirtualNetworkClient) getVlan(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) {
|
||||
httpRequest, err := request.HTTPRequest(http.MethodGet, "/vlans/{vlanId}")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var response GetVlanResponse
|
||||
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
|
||||
}
|
||||
|
||||
// GetVnic Gets the information for the specified virtual network interface card (VNIC).
|
||||
// You can get the VNIC OCID from the
|
||||
// ListVnicAttachments
|
||||
|
@ -6038,6 +6238,7 @@ func (client VirtualNetworkClient) listCrossconnectPortSpeedShapes(ctx context.C
|
|||
}
|
||||
|
||||
// ListDhcpOptions Lists the sets of DHCP options in the specified VCN and specified compartment.
|
||||
// If the VCN ID is not provided, then the list includes the sets of DHCP options from all VCNs in the specified compartment.
|
||||
// The response includes the default set of options that automatically comes with each VCN,
|
||||
// plus any other sets you've created.
|
||||
func (client VirtualNetworkClient) ListDhcpOptions(ctx context.Context, request ListDhcpOptionsRequest) (response ListDhcpOptionsResponse, err error) {
|
||||
|
@ -6377,6 +6578,7 @@ func (client VirtualNetworkClient) listIPSecConnections(ctx context.Context, req
|
|||
}
|
||||
|
||||
// ListInternetGateways Lists the internet gateways in the specified VCN and the specified compartment.
|
||||
// If the VCN ID is not provided, then the list includes the internet gateways from all VCNs in the specified compartment.
|
||||
func (client VirtualNetworkClient) ListInternetGateways(ctx context.Context, request ListInternetGatewaysRequest) (response ListInternetGatewaysResponse, err error) {
|
||||
var ociResponse common.OCIResponse
|
||||
policy := common.NoRetryPolicy()
|
||||
|
@ -6476,8 +6678,8 @@ func (client VirtualNetworkClient) listIpv6s(ctx context.Context, request common
|
|||
return response, err
|
||||
}
|
||||
|
||||
// ListLocalPeeringGateways Lists the local peering gateways (LPGs) for the specified VCN and compartment
|
||||
// (the LPG's compartment).
|
||||
// ListLocalPeeringGateways Lists the local peering gateways (LPGs) for the specified VCN and specified compartment.
|
||||
// If the VCN ID is not provided, then the list includes the LPGs from all VCNs in the specified compartment.
|
||||
func (client VirtualNetworkClient) ListLocalPeeringGateways(ctx context.Context, request ListLocalPeeringGatewaysRequest) (response ListLocalPeeringGatewaysResponse, err error) {
|
||||
var ociResponse common.OCIResponse
|
||||
policy := common.NoRetryPolicy()
|
||||
|
@ -6724,6 +6926,8 @@ func (client VirtualNetworkClient) listNetworkSecurityGroups(ctx context.Context
|
|||
// requires the OCID.
|
||||
// If you're listing all the private IPs associated with a given subnet
|
||||
// or VNIC, the response includes both primary and secondary private IPs.
|
||||
// If you are an Oracle Cloud VMware Solution customer and have VLANs
|
||||
// in your VCN, you can filter the list by VLAN OCID. See Vlan.
|
||||
func (client VirtualNetworkClient) ListPrivateIps(ctx context.Context, request ListPrivateIpsRequest) (response ListPrivateIpsResponse, err error) {
|
||||
var ociResponse common.OCIResponse
|
||||
policy := common.NoRetryPolicy()
|
||||
|
@ -6880,9 +7084,10 @@ func (client VirtualNetworkClient) listRemotePeeringConnections(ctx context.Cont
|
|||
return response, err
|
||||
}
|
||||
|
||||
// ListRouteTables Lists the route tables in the specified VCN and specified compartment. The response
|
||||
// includes the default route table that automatically comes with each VCN, plus any route tables
|
||||
// you've created.
|
||||
// ListRouteTables Lists the route tables in the specified VCN and specified compartment.
|
||||
// If the VCN ID is not provided, then the list includes the route tables from all VCNs in the specified compartment.
|
||||
// The response includes the default route table that automatically comes with
|
||||
// each VCN in the specified compartment, plus any route tables you've created.
|
||||
func (client VirtualNetworkClient) ListRouteTables(ctx context.Context, request ListRouteTablesRequest) (response ListRouteTablesResponse, err error) {
|
||||
var ociResponse common.OCIResponse
|
||||
policy := common.NoRetryPolicy()
|
||||
|
@ -6930,6 +7135,7 @@ func (client VirtualNetworkClient) listRouteTables(ctx context.Context, request
|
|||
}
|
||||
|
||||
// ListSecurityLists Lists the security lists in the specified VCN and compartment.
|
||||
// If the VCN ID is not provided, then the list includes the security lists from all VCNs in the specified compartment.
|
||||
func (client VirtualNetworkClient) ListSecurityLists(ctx context.Context, request ListSecurityListsRequest) (response ListSecurityListsResponse, err error) {
|
||||
var ociResponse common.OCIResponse
|
||||
policy := common.NoRetryPolicy()
|
||||
|
@ -7073,6 +7279,7 @@ func (client VirtualNetworkClient) listServices(ctx context.Context, request com
|
|||
}
|
||||
|
||||
// ListSubnets Lists the subnets in the specified VCN and the specified compartment.
|
||||
// If the VCN ID is not provided, then the list includes the subnets from all VCNs in the specified compartment.
|
||||
func (client VirtualNetworkClient) ListSubnets(ctx context.Context, request ListSubnetsRequest) (response ListSubnetsResponse, err error) {
|
||||
var ociResponse common.OCIResponse
|
||||
policy := common.NoRetryPolicy()
|
||||
|
@ -7308,6 +7515,53 @@ func (client VirtualNetworkClient) listVirtualCircuits(ctx context.Context, requ
|
|||
return response, err
|
||||
}
|
||||
|
||||
// ListVlans Lists the VLANs in the specified VCN and the specified compartment.
|
||||
func (client VirtualNetworkClient) ListVlans(ctx context.Context, request ListVlansRequest) (response ListVlansResponse, err error) {
|
||||
var ociResponse common.OCIResponse
|
||||
policy := common.NoRetryPolicy()
|
||||
if request.RetryPolicy() != nil {
|
||||
policy = *request.RetryPolicy()
|
||||
}
|
||||
ociResponse, err = common.Retry(ctx, request, client.listVlans, policy)
|
||||
if err != nil {
|
||||
if ociResponse != nil {
|
||||
if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil {
|
||||
opcRequestId := httpResponse.Header.Get("opc-request-id")
|
||||
response = ListVlansResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId}
|
||||
} else {
|
||||
response = ListVlansResponse{}
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
if convertedResponse, ok := ociResponse.(ListVlansResponse); ok {
|
||||
response = convertedResponse
|
||||
} else {
|
||||
err = fmt.Errorf("failed to convert OCIResponse into ListVlansResponse")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// listVlans implements the OCIOperation interface (enables retrying operations)
|
||||
func (client VirtualNetworkClient) listVlans(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) {
|
||||
httpRequest, err := request.HTTPRequest(http.MethodGet, "/vlans")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var response ListVlansResponse
|
||||
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
|
||||
}
|
||||
|
||||
// RemoveNetworkSecurityGroupSecurityRules Removes one or more security rules from the specified network security group.
|
||||
func (client VirtualNetworkClient) RemoveNetworkSecurityGroupSecurityRules(ctx context.Context, request RemoveNetworkSecurityGroupSecurityRulesRequest) (response RemoveNetworkSecurityGroupSecurityRulesResponse, err error) {
|
||||
var ociResponse common.OCIResponse
|
||||
|
@ -8636,6 +8890,55 @@ func (client VirtualNetworkClient) updateVirtualCircuit(ctx context.Context, req
|
|||
return response, err
|
||||
}
|
||||
|
||||
// UpdateVlan Updates the specified VLAN. This could result in changes to all
|
||||
// the VNICs in the VLAN, which can take time. During that transition
|
||||
// period, the VLAN will be in the UPDATING state.
|
||||
func (client VirtualNetworkClient) UpdateVlan(ctx context.Context, request UpdateVlanRequest) (response UpdateVlanResponse, err error) {
|
||||
var ociResponse common.OCIResponse
|
||||
policy := common.NoRetryPolicy()
|
||||
if request.RetryPolicy() != nil {
|
||||
policy = *request.RetryPolicy()
|
||||
}
|
||||
ociResponse, err = common.Retry(ctx, request, client.updateVlan, policy)
|
||||
if err != nil {
|
||||
if ociResponse != nil {
|
||||
if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil {
|
||||
opcRequestId := httpResponse.Header.Get("opc-request-id")
|
||||
response = UpdateVlanResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId}
|
||||
} else {
|
||||
response = UpdateVlanResponse{}
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
if convertedResponse, ok := ociResponse.(UpdateVlanResponse); ok {
|
||||
response = convertedResponse
|
||||
} else {
|
||||
err = fmt.Errorf("failed to convert OCIResponse into UpdateVlanResponse")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// updateVlan implements the OCIOperation interface (enables retrying operations)
|
||||
func (client VirtualNetworkClient) updateVlan(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) {
|
||||
httpRequest, err := request.HTTPRequest(http.MethodPut, "/vlans/{vlanId}")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var response UpdateVlanResponse
|
||||
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
|
||||
}
|
||||
|
||||
// UpdateVnic Updates the specified VNIC.
|
||||
func (client VirtualNetworkClient) UpdateVnic(ctx context.Context, request UpdateVnicRequest) (response UpdateVnicResponse, err error) {
|
||||
var ociResponse common.OCIResponse
|
||||
|
|
|
@ -66,7 +66,7 @@ type Cpe struct {
|
|||
// * GetTunnelCpeDeviceConfig
|
||||
CpeDeviceShapeId *string `mandatory:"false" json:"cpeDeviceShapeId"`
|
||||
|
||||
// The date and time the CPE was created, in the format defined by RFC3339.
|
||||
// The date and time the CPE was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
|
||||
}
|
||||
|
|
2
vendor/github.com/oracle/oci-go-sdk/core/create_app_catalog_subscription_details.go
generated
vendored
2
vendor/github.com/oracle/oci-go-sdk/core/create_app_catalog_subscription_details.go
generated
vendored
|
@ -32,7 +32,7 @@ type CreateAppCatalogSubscriptionDetails struct {
|
|||
// Oracle TOU link
|
||||
OracleTermsOfUseLink *string `mandatory:"true" json:"oracleTermsOfUseLink"`
|
||||
|
||||
// Date and time the agreements were retrieved, in RFC3339 format.
|
||||
// Date and time the agreements were retrieved, in RFC3339 (https://tools.ietf.org/html/rfc3339) format.
|
||||
// Example: `2018-03-20T12:32:53.532Z`
|
||||
TimeRetrieved *common.SDKTime `mandatory:"true" json:"timeRetrieved"`
|
||||
|
||||
|
|
|
@ -64,6 +64,9 @@ type CreateBootVolumeDetails struct {
|
|||
// * `10`: Represents Balanced option.
|
||||
// * `20`: Represents Higher Performance option.
|
||||
VpusPerGB *int64 `mandatory:"false" json:"vpusPerGB"`
|
||||
|
||||
// Specifies whether the auto-tune performance is enabled for this boot volume.
|
||||
IsAutoTuneEnabled *bool `mandatory:"false" json:"isAutoTuneEnabled"`
|
||||
}
|
||||
|
||||
func (m CreateBootVolumeDetails) String() string {
|
||||
|
@ -80,6 +83,7 @@ func (m *CreateBootVolumeDetails) UnmarshalJSON(data []byte) (e error) {
|
|||
KmsKeyId *string `json:"kmsKeyId"`
|
||||
SizeInGBs *int64 `json:"sizeInGBs"`
|
||||
VpusPerGB *int64 `json:"vpusPerGB"`
|
||||
IsAutoTuneEnabled *bool `json:"isAutoTuneEnabled"`
|
||||
AvailabilityDomain *string `json:"availabilityDomain"`
|
||||
CompartmentId *string `json:"compartmentId"`
|
||||
SourceDetails bootvolumesourcedetails `json:"sourceDetails"`
|
||||
|
@ -104,6 +108,8 @@ func (m *CreateBootVolumeDetails) UnmarshalJSON(data []byte) (e error) {
|
|||
|
||||
m.VpusPerGB = model.VpusPerGB
|
||||
|
||||
m.IsAutoTuneEnabled = model.IsAutoTuneEnabled
|
||||
|
||||
m.AvailabilityDomain = model.AvailabilityDomain
|
||||
|
||||
m.CompartmentId = model.CompartmentId
|
||||
|
@ -117,5 +123,6 @@ func (m *CreateBootVolumeDetails) UnmarshalJSON(data []byte) (e error) {
|
|||
} else {
|
||||
m.SourceDetails = nil
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
|
97
vendor/github.com/oracle/oci-go-sdk/core/create_compute_image_capability_schema_details.go
generated
vendored
Normal file
97
vendor/github.com/oracle/oci-go-sdk/core/create_compute_image_capability_schema_details.go
generated
vendored
Normal file
|
@ -0,0 +1,97 @@
|
|||
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
||||
// Code generated. DO NOT EDIT.
|
||||
|
||||
// Core Services API
|
||||
//
|
||||
// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm),
|
||||
// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and
|
||||
// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API
|
||||
// to manage resources such as virtual cloud networks (VCNs), compute instances, and
|
||||
// block storage volumes.
|
||||
//
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"github.com/oracle/oci-go-sdk/common"
|
||||
)
|
||||
|
||||
// CreateComputeImageCapabilitySchemaDetails Create Image Capability Schema for an image.
|
||||
type CreateComputeImageCapabilitySchemaDetails struct {
|
||||
|
||||
// The OCID of the compartment that contains the resource.
|
||||
CompartmentId *string `mandatory:"true" json:"compartmentId"`
|
||||
|
||||
// The name of the compute global image capability schema version
|
||||
ComputeGlobalImageCapabilitySchemaVersionName *string `mandatory:"true" json:"computeGlobalImageCapabilitySchemaVersionName"`
|
||||
|
||||
// The ocid of the image
|
||||
ImageId *string `mandatory:"true" json:"imageId"`
|
||||
|
||||
// The map of each capability name to its ImageCapabilitySchemaDescriptor.
|
||||
SchemaData map[string]ImageCapabilitySchemaDescriptor `mandatory:"true" json:"schemaData"`
|
||||
|
||||
// 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.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
|
||||
// Example: `{"Department": "Finance"}`
|
||||
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
|
||||
|
||||
// A user-friendly name for the compute image capability schema
|
||||
DisplayName *string `mandatory:"false" json:"displayName"`
|
||||
|
||||
// Defined tags for this resource. Each key is predefined and scoped to a
|
||||
// namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
|
||||
// Example: `{"Operations": {"CostCenter": "42"}}`
|
||||
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
|
||||
}
|
||||
|
||||
func (m CreateComputeImageCapabilitySchemaDetails) String() string {
|
||||
return common.PointerString(m)
|
||||
}
|
||||
|
||||
// UnmarshalJSON unmarshals from json
|
||||
func (m *CreateComputeImageCapabilitySchemaDetails) UnmarshalJSON(data []byte) (e error) {
|
||||
model := struct {
|
||||
FreeformTags map[string]string `json:"freeformTags"`
|
||||
DisplayName *string `json:"displayName"`
|
||||
DefinedTags map[string]map[string]interface{} `json:"definedTags"`
|
||||
CompartmentId *string `json:"compartmentId"`
|
||||
ComputeGlobalImageCapabilitySchemaVersionName *string `json:"computeGlobalImageCapabilitySchemaVersionName"`
|
||||
ImageId *string `json:"imageId"`
|
||||
SchemaData map[string]imagecapabilityschemadescriptor `json:"schemaData"`
|
||||
}{}
|
||||
|
||||
e = json.Unmarshal(data, &model)
|
||||
if e != nil {
|
||||
return
|
||||
}
|
||||
var nn interface{}
|
||||
m.FreeformTags = model.FreeformTags
|
||||
|
||||
m.DisplayName = model.DisplayName
|
||||
|
||||
m.DefinedTags = model.DefinedTags
|
||||
|
||||
m.CompartmentId = model.CompartmentId
|
||||
|
||||
m.ComputeGlobalImageCapabilitySchemaVersionName = model.ComputeGlobalImageCapabilitySchemaVersionName
|
||||
|
||||
m.ImageId = model.ImageId
|
||||
|
||||
m.SchemaData = make(map[string]ImageCapabilitySchemaDescriptor)
|
||||
for k, v := range model.SchemaData {
|
||||
nn, e = v.UnmarshalPolymorphicJSON(v.JsonData)
|
||||
if e != nil {
|
||||
return e
|
||||
}
|
||||
if nn != nil {
|
||||
m.SchemaData[k] = nn.(ImageCapabilitySchemaDescriptor)
|
||||
} else {
|
||||
m.SchemaData[k] = nil
|
||||
}
|
||||
}
|
||||
|
||||
return
|
||||
}
|
72
vendor/github.com/oracle/oci-go-sdk/core/create_compute_image_capability_schema_request_response.go
generated
vendored
Normal file
72
vendor/github.com/oracle/oci-go-sdk/core/create_compute_image_capability_schema_request_response.go
generated
vendored
Normal file
|
@ -0,0 +1,72 @@
|
|||
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
||||
// Code generated. DO NOT EDIT.
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"github.com/oracle/oci-go-sdk/common"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// CreateComputeImageCapabilitySchemaRequest wrapper for the CreateComputeImageCapabilitySchema operation
|
||||
type CreateComputeImageCapabilitySchemaRequest struct {
|
||||
|
||||
// Compute Image Capability Schema creation details
|
||||
CreateComputeImageCapabilitySchemaDetails `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 CreateComputeImageCapabilitySchemaRequest) String() string {
|
||||
return common.PointerString(request)
|
||||
}
|
||||
|
||||
// HTTPRequest implements the OCIRequest interface
|
||||
func (request CreateComputeImageCapabilitySchemaRequest) 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 CreateComputeImageCapabilitySchemaRequest) RetryPolicy() *common.RetryPolicy {
|
||||
return request.RequestMetadata.RetryPolicy
|
||||
}
|
||||
|
||||
// CreateComputeImageCapabilitySchemaResponse wrapper for the CreateComputeImageCapabilitySchema operation
|
||||
type CreateComputeImageCapabilitySchemaResponse struct {
|
||||
|
||||
// The underlying http response
|
||||
RawResponse *http.Response
|
||||
|
||||
// The ComputeImageCapabilitySchema instance
|
||||
ComputeImageCapabilitySchema `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 CreateComputeImageCapabilitySchemaResponse) String() string {
|
||||
return common.PointerString(response)
|
||||
}
|
||||
|
||||
// HTTPResponse implements the OCIResponse interface
|
||||
func (response CreateComputeImageCapabilitySchemaResponse) HTTPResponse() *http.Response {
|
||||
return response.RawResponse
|
||||
}
|
|
@ -24,7 +24,7 @@ type CreateCpeDetails struct {
|
|||
CompartmentId *string `mandatory:"true" json:"compartmentId"`
|
||||
|
||||
// The public IP address of the on-premises router.
|
||||
// Example: `143.19.23.16`
|
||||
// Example: `203.0.113.2`
|
||||
IpAddress *string `mandatory:"true" json:"ipAddress"`
|
||||
|
||||
// Defined tags for this resource. Each key is predefined and scoped to a
|
||||
|
|
|
@ -86,5 +86,6 @@ func (m *CreateDhcpDetails) UnmarshalJSON(data []byte) (e error) {
|
|||
}
|
||||
|
||||
m.VcnId = model.VcnId
|
||||
|
||||
return
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@ type CreateImageDetails struct {
|
|||
// Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are:
|
||||
// * `NATIVE` - VM instances launch with paravirtualized 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.
|
||||
// * `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"`
|
||||
}
|
||||
|
@ -96,6 +96,7 @@ func (m *CreateImageDetails) UnmarshalJSON(data []byte) (e error) {
|
|||
m.LaunchMode = model.LaunchMode
|
||||
|
||||
m.CompartmentId = model.CompartmentId
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
|
1
vendor/github.com/oracle/oci-go-sdk/core/create_instance_configuration_details.go
generated
vendored
1
vendor/github.com/oracle/oci-go-sdk/core/create_instance_configuration_details.go
generated
vendored
|
@ -112,5 +112,6 @@ func (m *CreateInstanceConfigurationDetails) UnmarshalJSON(data []byte) (e error
|
|||
} else {
|
||||
m.InstanceDetails = nil
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
|
1
vendor/github.com/oracle/oci-go-sdk/core/create_ip_sec_connection_tunnel_details.go
generated
vendored
1
vendor/github.com/oracle/oci-go-sdk/core/create_ip_sec_connection_tunnel_details.go
generated
vendored
|
@ -34,7 +34,6 @@ type CreateIpSecConnectionTunnelDetails struct {
|
|||
// spaces are allowed. If you don't provide a value,
|
||||
// Oracle generates a value for you. You can specify your own shared secret later if
|
||||
// you like with UpdateIPSecConnectionTunnelSharedSecret.
|
||||
// Example: `EXAMPLEToUis6j1cp8GdVQxcmdfMO0yXMLilZTbYCMDGu4V8o`
|
||||
SharedSecret *string `mandatory:"false" json:"sharedSecret"`
|
||||
|
||||
// Information for establishing a BGP session for the IPSec tunnel. Required if the tunnel uses
|
||||
|
|
|
@ -42,7 +42,7 @@ type CreateIpv6Details struct {
|
|||
// the subnet's CIDR. If you don't specify a value, Oracle automatically
|
||||
// assigns an IPv6 address from the subnet. The subnet is the one that
|
||||
// contains the VNIC you specify in `vnicId`.
|
||||
// Example: `2001:0db8:0123:1111:abcd:ef01:2345:6789`
|
||||
// Example: `2001:DB8::`
|
||||
IpAddress *string `mandatory:"false" json:"ipAddress"`
|
||||
|
||||
// Whether the IPv6 can be used for internet communication. Allowed by default for an IPv6 in
|
||||
|
|
|
@ -20,10 +20,6 @@ import (
|
|||
// CreatePrivateIpDetails The representation of CreatePrivateIpDetails
|
||||
type CreatePrivateIpDetails struct {
|
||||
|
||||
// The OCID of the VNIC to assign the private IP to. The VNIC and private IP
|
||||
// must be in the same subnet.
|
||||
VnicId *string `mandatory:"true" json:"vnicId"`
|
||||
|
||||
// Defined tags for this resource. Each key is predefined and scoped to a
|
||||
// namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
|
||||
// Example: `{"Operations": {"CostCenter": "42"}}`
|
||||
|
@ -54,6 +50,15 @@ type CreatePrivateIpDetails struct {
|
|||
// assigns a private IP address from the subnet.
|
||||
// Example: `10.0.3.3`
|
||||
IpAddress *string `mandatory:"false" json:"ipAddress"`
|
||||
|
||||
// The OCID of the VNIC to assign the private IP to. The VNIC and private IP
|
||||
// must be in the same subnet.
|
||||
VnicId *string `mandatory:"false" json:"vnicId"`
|
||||
|
||||
// Use this attribute only with the Oracle Cloud VMware Solution.
|
||||
// The OCID of the VLAN from which the private IP is to be drawn. The IP address,
|
||||
// *if supplied*, must be valid for the given VLAN. See Vlan.
|
||||
VlanId *string `mandatory:"false" json:"vlanId"`
|
||||
}
|
||||
|
||||
func (m CreatePrivateIpDetails) String() string {
|
||||
|
|
|
@ -20,8 +20,10 @@ import (
|
|||
// CreateSubnetDetails The representation of CreateSubnetDetails
|
||||
type CreateSubnetDetails struct {
|
||||
|
||||
// The CIDR IP address range of the subnet.
|
||||
// Example: `172.16.1.0/24`
|
||||
// The CIDR IP address range of the subnet. The CIDR must maintain the following rules -
|
||||
// a. The CIDR block is valid and correctly formatted.
|
||||
// b. The new range is within one of the parent VCN ranges.
|
||||
// Example: `10.0.1.0/24`
|
||||
CidrBlock *string `mandatory:"true" json:"cidrBlock"`
|
||||
|
||||
// The OCID of the compartment to contain the subnet.
|
||||
|
|
|
@ -21,7 +21,7 @@ import (
|
|||
type CreateVcnDetails struct {
|
||||
|
||||
// The CIDR IP address block of the VCN.
|
||||
// Example: `172.16.0.0/16`
|
||||
// Example: `10.0.0.0/16`
|
||||
CidrBlock *string `mandatory:"true" json:"cidrBlock"`
|
||||
|
||||
// The OCID of the compartment to contain the VCN.
|
||||
|
|
|
@ -0,0 +1,69 @@
|
|||
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
||||
// Code generated. DO NOT EDIT.
|
||||
|
||||
// Core Services API
|
||||
//
|
||||
// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm),
|
||||
// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and
|
||||
// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API
|
||||
// to manage resources such as virtual cloud networks (VCNs), compute instances, and
|
||||
// block storage volumes.
|
||||
//
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"github.com/oracle/oci-go-sdk/common"
|
||||
)
|
||||
|
||||
// CreateVlanDetails The representation of CreateVlanDetails
|
||||
type CreateVlanDetails struct {
|
||||
|
||||
// The availability domain of the VLAN.
|
||||
// Example: `Uocm:PHX-AD-1`
|
||||
AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"`
|
||||
|
||||
// The range of IPv4 addresses that will be used for layer 3 communication with
|
||||
// hosts outside the VLAN. The CIDR must maintain the following rules -
|
||||
// a. The CIDR block is valid and correctly formatted.
|
||||
// Example: `192.0.2.0/24`
|
||||
CidrBlock *string `mandatory:"true" json:"cidrBlock"`
|
||||
|
||||
// The OCID of the compartment to contain the VLAN.
|
||||
CompartmentId *string `mandatory:"true" json:"compartmentId"`
|
||||
|
||||
// The OCID of the VCN to contain the VLAN.
|
||||
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.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
|
||||
// Example: `{"Operations": {"CostCenter": "42"}}`
|
||||
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
|
||||
|
||||
// A descriptive 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.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
|
||||
// Example: `{"Department": "Finance"}`
|
||||
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
|
||||
|
||||
// A list of the OCIDs of the network security groups (NSGs) to add all VNICs in the VLAN to. For more
|
||||
// information about NSGs, see
|
||||
// NetworkSecurityGroup.
|
||||
NsgIds []string `mandatory:"false" json:"nsgIds"`
|
||||
|
||||
// The OCID of the route table the VLAN will use. If you don't provide a value,
|
||||
// the VLAN uses the VCN's default route table.
|
||||
RouteTableId *string `mandatory:"false" json:"routeTableId"`
|
||||
|
||||
// The IEEE 802.1Q VLAN tag for this VLAN. The value must be unique across all
|
||||
// VLANs in the VCN. If you don't provide a value, Oracle assigns one.
|
||||
// You cannot change the value later. VLAN tag 0 is reserved for use by Oracle.
|
||||
VlanTag *int `mandatory:"false" json:"vlanTag"`
|
||||
}
|
||||
|
||||
func (m CreateVlanDetails) String() string {
|
||||
return common.PointerString(m)
|
||||
}
|
72
vendor/github.com/oracle/oci-go-sdk/core/create_vlan_request_response.go
generated
vendored
Normal file
72
vendor/github.com/oracle/oci-go-sdk/core/create_vlan_request_response.go
generated
vendored
Normal file
|
@ -0,0 +1,72 @@
|
|||
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
||||
// Code generated. DO NOT EDIT.
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"github.com/oracle/oci-go-sdk/common"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// CreateVlanRequest wrapper for the CreateVlan operation
|
||||
type CreateVlanRequest struct {
|
||||
|
||||
// Details for creating a VLAN
|
||||
CreateVlanDetails `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 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 CreateVlanRequest) String() string {
|
||||
return common.PointerString(request)
|
||||
}
|
||||
|
||||
// HTTPRequest implements the OCIRequest interface
|
||||
func (request CreateVlanRequest) 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 CreateVlanRequest) RetryPolicy() *common.RetryPolicy {
|
||||
return request.RequestMetadata.RetryPolicy
|
||||
}
|
||||
|
||||
// CreateVlanResponse wrapper for the CreateVlan operation
|
||||
type CreateVlanResponse struct {
|
||||
|
||||
// The underlying http response
|
||||
RawResponse *http.Response
|
||||
|
||||
// The Vlan instance
|
||||
Vlan `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 CreateVlanResponse) String() string {
|
||||
return common.PointerString(response)
|
||||
}
|
||||
|
||||
// HTTPResponse implements the OCIResponse interface
|
||||
func (response CreateVlanResponse) HTTPResponse() *http.Response {
|
||||
return response.RawResponse
|
||||
}
|
|
@ -23,12 +23,6 @@ import (
|
|||
// Virtual Network Interface Cards (VNICs) (https://docs.cloud.oracle.com/Content/Network/Tasks/managingVNICs.htm).
|
||||
type CreateVnicDetails struct {
|
||||
|
||||
// The OCID of the subnet to create the VNIC in. When launching an instance,
|
||||
// use this `subnetId` instead of the deprecated `subnetId` in
|
||||
// LaunchInstanceDetails.
|
||||
// At least one of them is required; if you provide both, the values must match.
|
||||
SubnetId *string `mandatory:"true" json:"subnetId"`
|
||||
|
||||
// Whether the VNIC should be assigned a public IP address. Defaults to whether
|
||||
// the subnet is public or private. If not set and the VNIC is being created
|
||||
// in a private subnet (that is, where `prohibitPublicIpOnVnic` = true in the
|
||||
|
@ -46,6 +40,8 @@ type CreateVnicDetails struct {
|
|||
// about the public IP limits, see
|
||||
// Public IP Addresses (https://docs.cloud.oracle.com/Content/Network/Tasks/managingpublicIPs.htm).
|
||||
// Example: `false`
|
||||
// If you specify a `vlanId`, the `assignPublicIp` is required to be set to false. See
|
||||
// Vlan.
|
||||
AssignPublicIp *bool `mandatory:"false" json:"assignPublicIp"`
|
||||
|
||||
// Defined tags for this resource. Each key is predefined and scoped to a
|
||||
|
@ -79,11 +75,17 @@ type CreateVnicDetails struct {
|
|||
// LaunchInstanceDetails.
|
||||
// If you provide both, the values must match.
|
||||
// Example: `bminstance-1`
|
||||
// If you specify a `vlanId`, the `hostnameLabel` cannot be specified. vnics on a Vlan
|
||||
// can not be assigned a hostname See Vlan.
|
||||
HostnameLabel *string `mandatory:"false" json:"hostnameLabel"`
|
||||
|
||||
// A list of the OCIDs of the network security groups (NSGs) to add the VNIC to. For more
|
||||
// information about NSGs, see
|
||||
// NetworkSecurityGroup.
|
||||
// If a `vlanId` is specified, the `nsgIds` cannot be specified. The `vlanId`
|
||||
// indicates that the VNIC will belong to a VLAN instead of a subnet. With VLANs,
|
||||
// all VNICs in the VLAN belong to the NSGs that are associated with the VLAN.
|
||||
// See Vlan.
|
||||
NsgIds []string `mandatory:"false" json:"nsgIds"`
|
||||
|
||||
// A private IP address of your choice to assign to the VNIC. Must be an
|
||||
|
@ -94,6 +96,9 @@ type CreateVnicDetails struct {
|
|||
// PrivateIp object returned by
|
||||
// ListPrivateIps and
|
||||
// GetPrivateIp.
|
||||
//
|
||||
// If you specify a `vlanId`, the `privateIp` cannot be specified.
|
||||
// See Vlan.
|
||||
// Example: `10.0.3.3`
|
||||
PrivateIp *string `mandatory:"false" json:"privateIp"`
|
||||
|
||||
|
@ -101,8 +106,28 @@ type CreateVnicDetails struct {
|
|||
// Defaults to `false`, which means the check is performed. For information
|
||||
// about why you would skip the source/destination check, see
|
||||
// Using a Private IP as a Route Target (https://docs.cloud.oracle.com/Content/Network/Tasks/managingroutetables.htm#privateip).
|
||||
//
|
||||
// If you specify a `vlanId`, the `skipSourceDestCheck` cannot be specified because the
|
||||
// source/destination check is always disabled for VNICs in a VLAN. See
|
||||
// Vlan.
|
||||
// Example: `true`
|
||||
SkipSourceDestCheck *bool `mandatory:"false" json:"skipSourceDestCheck"`
|
||||
|
||||
// The OCID of the subnet to create the VNIC in. When launching an instance,
|
||||
// use this `subnetId` instead of the deprecated `subnetId` in
|
||||
// LaunchInstanceDetails.
|
||||
// At least one of them is required; if you provide both, the values must match.
|
||||
// If you are an Oracle Cloud VMware Solution customer and creating a secondary
|
||||
// VNIC in a VLAN instead of a subnet, provide a `vlanId` instead of a `subnetId`.
|
||||
// If you provide both a `vlanId` and `subnetId`, the request fails.
|
||||
SubnetId *string `mandatory:"false" json:"subnetId"`
|
||||
|
||||
// Provide this attribute only if you are an Oracle Cloud VMware Solution
|
||||
// customer and creating a secondary VNIC in a VLAN. The value is the OCID of the VLAN.
|
||||
// See Vlan.
|
||||
// Provide a `vlanId` instead of a `subnetId`. If you provide both a
|
||||
// `vlanId` and `subnetId`, the request fails.
|
||||
VlanId *string `mandatory:"false" json:"vlanId"`
|
||||
}
|
||||
|
||||
func (m CreateVnicDetails) String() string {
|
||||
|
|
3
vendor/github.com/oracle/oci-go-sdk/core/create_volume_backup_policy_details.go
generated
vendored
3
vendor/github.com/oracle/oci-go-sdk/core/create_volume_backup_policy_details.go
generated
vendored
|
@ -30,7 +30,8 @@ type CreateVolumeBackupPolicyDetails struct {
|
|||
// Avoid entering confidential information.
|
||||
DisplayName *string `mandatory:"false" json:"displayName"`
|
||||
|
||||
// The paired destination region (pre-defined by oracle) for scheduled cross region backup calls. Example: `us-ashburn-1`
|
||||
// The paired destination region for copying scheduled backups to. Example: `us-ashburn-1`.
|
||||
// See Region Pairs (https://docs.cloud.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm#RegionPairs) for details about paired regions.
|
||||
DestinationRegion *string `mandatory:"false" json:"destinationRegion"`
|
||||
|
||||
// The collection of schedules for the volume backup policy. See
|
||||
|
|
|
@ -75,6 +75,9 @@ type CreateVolumeDetails struct {
|
|||
// This field is deprecated. Use the sourceDetails field instead to specify the
|
||||
// backup for the volume.
|
||||
VolumeBackupId *string `mandatory:"false" json:"volumeBackupId"`
|
||||
|
||||
// Specifies whether the auto-tune performance is enabled for this volume.
|
||||
IsAutoTuneEnabled *bool `mandatory:"false" json:"isAutoTuneEnabled"`
|
||||
}
|
||||
|
||||
func (m CreateVolumeDetails) String() string {
|
||||
|
@ -94,6 +97,7 @@ func (m *CreateVolumeDetails) UnmarshalJSON(data []byte) (e error) {
|
|||
SizeInMBs *int64 `json:"sizeInMBs"`
|
||||
SourceDetails volumesourcedetails `json:"sourceDetails"`
|
||||
VolumeBackupId *string `json:"volumeBackupId"`
|
||||
IsAutoTuneEnabled *bool `json:"isAutoTuneEnabled"`
|
||||
AvailabilityDomain *string `json:"availabilityDomain"`
|
||||
CompartmentId *string `json:"compartmentId"`
|
||||
}{}
|
||||
|
@ -131,8 +135,11 @@ func (m *CreateVolumeDetails) UnmarshalJSON(data []byte) (e error) {
|
|||
|
||||
m.VolumeBackupId = model.VolumeBackupId
|
||||
|
||||
m.IsAutoTuneEnabled = model.IsAutoTuneEnabled
|
||||
|
||||
m.AvailabilityDomain = model.AvailabilityDomain
|
||||
|
||||
m.CompartmentId = model.CompartmentId
|
||||
|
||||
return
|
||||
}
|
||||
|
|
|
@ -84,5 +84,6 @@ func (m *CreateVolumeGroupDetails) UnmarshalJSON(data []byte) (e error) {
|
|||
} else {
|
||||
m.SourceDetails = nil
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
|
|
@ -74,7 +74,7 @@ type CrossConnect struct {
|
|||
// uses.
|
||||
CustomerReferenceName *string `mandatory:"false" json:"customerReferenceName"`
|
||||
|
||||
// The date and time the cross-connect was created, in the format defined by RFC3339.
|
||||
// The date and time the cross-connect was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
|
||||
}
|
||||
|
|
|
@ -59,7 +59,7 @@ type CrossConnectGroup struct {
|
|||
// group uses.
|
||||
CustomerReferenceName *string `mandatory:"false" json:"customerReferenceName"`
|
||||
|
||||
// The date and time the cross-connect group was created, in the format defined by RFC3339.
|
||||
// The date and time the cross-connect group was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ type DedicatedVmHost struct {
|
|||
// The current state of the dedicated VM host.
|
||||
LifecycleState DedicatedVmHostLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
|
||||
|
||||
// The date and time the dedicated VM host was created, in the format defined by RFC3339.
|
||||
// The date and time the dedicated VM host was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ type DedicatedVmHostInstanceSummary struct {
|
|||
// The shape of the VM instance.
|
||||
Shape *string `mandatory:"true" json:"shape"`
|
||||
|
||||
// The date and time the virtual machine instance was created, in the format defined by RFC3339.
|
||||
// The date and time the virtual machine instance was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ type DedicatedVmHostSummary struct {
|
|||
// The current state of the dedicated VM host.
|
||||
LifecycleState DedicatedVmHostSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
|
||||
|
||||
// The date and time the dedicated VM host was created, in the format defined by RFC3339.
|
||||
// The date and time the dedicated VM host was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
|
||||
|
||||
|
|
64
vendor/github.com/oracle/oci-go-sdk/core/delete_compute_image_capability_schema_request_response.go
generated
vendored
Normal file
64
vendor/github.com/oracle/oci-go-sdk/core/delete_compute_image_capability_schema_request_response.go
generated
vendored
Normal file
|
@ -0,0 +1,64 @@
|
|||
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
||||
// Code generated. DO NOT EDIT.
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"github.com/oracle/oci-go-sdk/common"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// DeleteComputeImageCapabilitySchemaRequest wrapper for the DeleteComputeImageCapabilitySchema operation
|
||||
type DeleteComputeImageCapabilitySchemaRequest struct {
|
||||
|
||||
// The id of the compute image capability schema or the image ocid
|
||||
ComputeImageCapabilitySchemaId *string `mandatory:"true" contributesTo:"path" name:"computeImageCapabilitySchemaId"`
|
||||
|
||||
// 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 DeleteComputeImageCapabilitySchemaRequest) String() string {
|
||||
return common.PointerString(request)
|
||||
}
|
||||
|
||||
// HTTPRequest implements the OCIRequest interface
|
||||
func (request DeleteComputeImageCapabilitySchemaRequest) 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 DeleteComputeImageCapabilitySchemaRequest) RetryPolicy() *common.RetryPolicy {
|
||||
return request.RequestMetadata.RetryPolicy
|
||||
}
|
||||
|
||||
// DeleteComputeImageCapabilitySchemaResponse wrapper for the DeleteComputeImageCapabilitySchema operation
|
||||
type DeleteComputeImageCapabilitySchemaResponse 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 DeleteComputeImageCapabilitySchemaResponse) String() string {
|
||||
return common.PointerString(response)
|
||||
}
|
||||
|
||||
// HTTPResponse implements the OCIResponse interface
|
||||
func (response DeleteComputeImageCapabilitySchemaResponse) HTTPResponse() *http.Response {
|
||||
return response.RawResponse
|
||||
}
|
64
vendor/github.com/oracle/oci-go-sdk/core/delete_vlan_request_response.go
generated
vendored
Normal file
64
vendor/github.com/oracle/oci-go-sdk/core/delete_vlan_request_response.go
generated
vendored
Normal file
|
@ -0,0 +1,64 @@
|
|||
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
||||
// Code generated. DO NOT EDIT.
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"github.com/oracle/oci-go-sdk/common"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// DeleteVlanRequest wrapper for the DeleteVlan operation
|
||||
type DeleteVlanRequest struct {
|
||||
|
||||
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VLAN.
|
||||
VlanId *string `mandatory:"true" contributesTo:"path" name:"vlanId"`
|
||||
|
||||
// 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 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 DeleteVlanRequest) String() string {
|
||||
return common.PointerString(request)
|
||||
}
|
||||
|
||||
// HTTPRequest implements the OCIRequest interface
|
||||
func (request DeleteVlanRequest) 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 DeleteVlanRequest) RetryPolicy() *common.RetryPolicy {
|
||||
return request.RequestMetadata.RetryPolicy
|
||||
}
|
||||
|
||||
// DeleteVlanResponse wrapper for the DeleteVlan operation
|
||||
type DeleteVlanResponse 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 DeleteVlanResponse) String() string {
|
||||
return common.PointerString(response)
|
||||
}
|
||||
|
||||
// HTTPResponse implements the OCIResponse interface
|
||||
func (response DeleteVlanResponse) HTTPResponse() *http.Response {
|
||||
return response.RawResponse
|
||||
}
|
|
@ -45,7 +45,7 @@ type DhcpOptions struct {
|
|||
// The collection of individual DHCP options.
|
||||
Options []DhcpOption `mandatory:"true" json:"options"`
|
||||
|
||||
// Date and time the set of DHCP options was created, in the format defined by RFC3339.
|
||||
// Date and time the set of DHCP options was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
|
||||
|
||||
|
@ -118,6 +118,7 @@ func (m *DhcpOptions) UnmarshalJSON(data []byte) (e error) {
|
|||
m.TimeCreated = model.TimeCreated
|
||||
|
||||
m.VcnId = model.VcnId
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ type Drg struct {
|
|||
// Example: `{"Department": "Finance"}`
|
||||
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
|
||||
|
||||
// The date and time the DRG was created, in the format defined by RFC3339.
|
||||
// The date and time the DRG was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ type DrgAttachment struct {
|
|||
// * Transit Routing: Private Access to Oracle Services (https://docs.cloud.oracle.com/Content/Network/Tasks/transitroutingoracleservices.htm)
|
||||
RouteTableId *string `mandatory:"false" json:"routeTableId"`
|
||||
|
||||
// The date and time the DRG attachment was created, in the format defined by RFC3339.
|
||||
// The date and time the DRG attachment was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ type EmulatedVolumeAttachment struct {
|
|||
// The OCID of the instance the volume is attached to.
|
||||
InstanceId *string `mandatory:"true" json:"instanceId"`
|
||||
|
||||
// The date and time the volume was created, in the format defined by RFC3339.
|
||||
// The date and time the volume was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
|
||||
|
||||
|
|
54
vendor/github.com/oracle/oci-go-sdk/core/enum_integer_image_capability_descriptor.go
generated
vendored
Normal file
54
vendor/github.com/oracle/oci-go-sdk/core/enum_integer_image_capability_descriptor.go
generated
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
||||
// Code generated. DO NOT EDIT.
|
||||
|
||||
// Core Services API
|
||||
//
|
||||
// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm),
|
||||
// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and
|
||||
// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API
|
||||
// to manage resources such as virtual cloud networks (VCNs), compute instances, and
|
||||
// block storage volumes.
|
||||
//
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"github.com/oracle/oci-go-sdk/common"
|
||||
)
|
||||
|
||||
// EnumIntegerImageCapabilityDescriptor Enum Integer type CapabilityDescriptor
|
||||
type EnumIntegerImageCapabilityDescriptor struct {
|
||||
|
||||
// the list of values for the enum
|
||||
Values []int `mandatory:"true" json:"values"`
|
||||
|
||||
// the default value
|
||||
DefaultValue *int `mandatory:"false" json:"defaultValue"`
|
||||
|
||||
Source ImageCapabilitySchemaDescriptorSourceEnum `mandatory:"true" json:"source"`
|
||||
}
|
||||
|
||||
//GetSource returns Source
|
||||
func (m EnumIntegerImageCapabilityDescriptor) GetSource() ImageCapabilitySchemaDescriptorSourceEnum {
|
||||
return m.Source
|
||||
}
|
||||
|
||||
func (m EnumIntegerImageCapabilityDescriptor) String() string {
|
||||
return common.PointerString(m)
|
||||
}
|
||||
|
||||
// MarshalJSON marshals to json representation
|
||||
func (m EnumIntegerImageCapabilityDescriptor) MarshalJSON() (buff []byte, e error) {
|
||||
type MarshalTypeEnumIntegerImageCapabilityDescriptor EnumIntegerImageCapabilityDescriptor
|
||||
s := struct {
|
||||
DiscriminatorParam string `json:"descriptorType"`
|
||||
MarshalTypeEnumIntegerImageCapabilityDescriptor
|
||||
}{
|
||||
"enuminteger",
|
||||
(MarshalTypeEnumIntegerImageCapabilityDescriptor)(m),
|
||||
}
|
||||
|
||||
return json.Marshal(&s)
|
||||
}
|
54
vendor/github.com/oracle/oci-go-sdk/core/enum_string_image_capability_schema_descriptor.go
generated
vendored
Normal file
54
vendor/github.com/oracle/oci-go-sdk/core/enum_string_image_capability_schema_descriptor.go
generated
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
||||
// Code generated. DO NOT EDIT.
|
||||
|
||||
// Core Services API
|
||||
//
|
||||
// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm),
|
||||
// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and
|
||||
// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API
|
||||
// to manage resources such as virtual cloud networks (VCNs), compute instances, and
|
||||
// block storage volumes.
|
||||
//
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"github.com/oracle/oci-go-sdk/common"
|
||||
)
|
||||
|
||||
// EnumStringImageCapabilitySchemaDescriptor Enum String type of ImageCapabilitySchemaDescriptor
|
||||
type EnumStringImageCapabilitySchemaDescriptor struct {
|
||||
|
||||
// the list of values for the enum
|
||||
Values []string `mandatory:"true" json:"values"`
|
||||
|
||||
// the default value
|
||||
DefaultValue *string `mandatory:"false" json:"defaultValue"`
|
||||
|
||||
Source ImageCapabilitySchemaDescriptorSourceEnum `mandatory:"true" json:"source"`
|
||||
}
|
||||
|
||||
//GetSource returns Source
|
||||
func (m EnumStringImageCapabilitySchemaDescriptor) GetSource() ImageCapabilitySchemaDescriptorSourceEnum {
|
||||
return m.Source
|
||||
}
|
||||
|
||||
func (m EnumStringImageCapabilitySchemaDescriptor) String() string {
|
||||
return common.PointerString(m)
|
||||
}
|
||||
|
||||
// MarshalJSON marshals to json representation
|
||||
func (m EnumStringImageCapabilitySchemaDescriptor) MarshalJSON() (buff []byte, e error) {
|
||||
type MarshalTypeEnumStringImageCapabilitySchemaDescriptor EnumStringImageCapabilitySchemaDescriptor
|
||||
s := struct {
|
||||
DiscriminatorParam string `json:"descriptorType"`
|
||||
MarshalTypeEnumStringImageCapabilitySchemaDescriptor
|
||||
}{
|
||||
"enumstring",
|
||||
(MarshalTypeEnumStringImageCapabilitySchemaDescriptor)(m),
|
||||
}
|
||||
|
||||
return json.Marshal(&s)
|
||||
}
|
65
vendor/github.com/oracle/oci-go-sdk/core/get_compute_global_image_capability_schema_request_response.go
generated
vendored
Normal file
65
vendor/github.com/oracle/oci-go-sdk/core/get_compute_global_image_capability_schema_request_response.go
generated
vendored
Normal file
|
@ -0,0 +1,65 @@
|
|||
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
||||
// Code generated. DO NOT EDIT.
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"github.com/oracle/oci-go-sdk/common"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// GetComputeGlobalImageCapabilitySchemaRequest wrapper for the GetComputeGlobalImageCapabilitySchema operation
|
||||
type GetComputeGlobalImageCapabilitySchemaRequest struct {
|
||||
|
||||
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compute global image capability schema
|
||||
ComputeGlobalImageCapabilitySchemaId *string `mandatory:"true" contributesTo:"path" name:"computeGlobalImageCapabilitySchemaId"`
|
||||
|
||||
// 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 GetComputeGlobalImageCapabilitySchemaRequest) String() string {
|
||||
return common.PointerString(request)
|
||||
}
|
||||
|
||||
// HTTPRequest implements the OCIRequest interface
|
||||
func (request GetComputeGlobalImageCapabilitySchemaRequest) 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 GetComputeGlobalImageCapabilitySchemaRequest) RetryPolicy() *common.RetryPolicy {
|
||||
return request.RequestMetadata.RetryPolicy
|
||||
}
|
||||
|
||||
// GetComputeGlobalImageCapabilitySchemaResponse wrapper for the GetComputeGlobalImageCapabilitySchema operation
|
||||
type GetComputeGlobalImageCapabilitySchemaResponse struct {
|
||||
|
||||
// The underlying http response
|
||||
RawResponse *http.Response
|
||||
|
||||
// The ComputeGlobalImageCapabilitySchema instance
|
||||
ComputeGlobalImageCapabilitySchema `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 GetComputeGlobalImageCapabilitySchemaResponse) String() string {
|
||||
return common.PointerString(response)
|
||||
}
|
||||
|
||||
// HTTPResponse implements the OCIResponse interface
|
||||
func (response GetComputeGlobalImageCapabilitySchemaResponse) HTTPResponse() *http.Response {
|
||||
return response.RawResponse
|
||||
}
|
68
vendor/github.com/oracle/oci-go-sdk/core/get_compute_global_image_capability_schema_version_request_response.go
generated
vendored
Normal file
68
vendor/github.com/oracle/oci-go-sdk/core/get_compute_global_image_capability_schema_version_request_response.go
generated
vendored
Normal file
|
@ -0,0 +1,68 @@
|
|||
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
||||
// Code generated. DO NOT EDIT.
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"github.com/oracle/oci-go-sdk/common"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// GetComputeGlobalImageCapabilitySchemaVersionRequest wrapper for the GetComputeGlobalImageCapabilitySchemaVersion operation
|
||||
type GetComputeGlobalImageCapabilitySchemaVersionRequest struct {
|
||||
|
||||
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compute global image capability schema
|
||||
ComputeGlobalImageCapabilitySchemaId *string `mandatory:"true" contributesTo:"path" name:"computeGlobalImageCapabilitySchemaId"`
|
||||
|
||||
// The name of the compute global image capability schema version
|
||||
ComputeGlobalImageCapabilitySchemaVersionName *string `mandatory:"true" contributesTo:"path" name:"computeGlobalImageCapabilitySchemaVersionName"`
|
||||
|
||||
// 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 GetComputeGlobalImageCapabilitySchemaVersionRequest) String() string {
|
||||
return common.PointerString(request)
|
||||
}
|
||||
|
||||
// HTTPRequest implements the OCIRequest interface
|
||||
func (request GetComputeGlobalImageCapabilitySchemaVersionRequest) 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 GetComputeGlobalImageCapabilitySchemaVersionRequest) RetryPolicy() *common.RetryPolicy {
|
||||
return request.RequestMetadata.RetryPolicy
|
||||
}
|
||||
|
||||
// GetComputeGlobalImageCapabilitySchemaVersionResponse wrapper for the GetComputeGlobalImageCapabilitySchemaVersion operation
|
||||
type GetComputeGlobalImageCapabilitySchemaVersionResponse struct {
|
||||
|
||||
// The underlying http response
|
||||
RawResponse *http.Response
|
||||
|
||||
// The ComputeGlobalImageCapabilitySchemaVersion instance
|
||||
ComputeGlobalImageCapabilitySchemaVersion `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 GetComputeGlobalImageCapabilitySchemaVersionResponse) String() string {
|
||||
return common.PointerString(response)
|
||||
}
|
||||
|
||||
// HTTPResponse implements the OCIResponse interface
|
||||
func (response GetComputeGlobalImageCapabilitySchemaVersionResponse) HTTPResponse() *http.Response {
|
||||
return response.RawResponse
|
||||
}
|
68
vendor/github.com/oracle/oci-go-sdk/core/get_compute_image_capability_schema_request_response.go
generated
vendored
Normal file
68
vendor/github.com/oracle/oci-go-sdk/core/get_compute_image_capability_schema_request_response.go
generated
vendored
Normal file
|
@ -0,0 +1,68 @@
|
|||
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
||||
// Code generated. DO NOT EDIT.
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"github.com/oracle/oci-go-sdk/common"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// GetComputeImageCapabilitySchemaRequest wrapper for the GetComputeImageCapabilitySchema operation
|
||||
type GetComputeImageCapabilitySchemaRequest struct {
|
||||
|
||||
// The id of the compute image capability schema or the image ocid
|
||||
ComputeImageCapabilitySchemaId *string `mandatory:"true" contributesTo:"path" name:"computeImageCapabilitySchemaId"`
|
||||
|
||||
// Merge the image capability schema with the global image capability schema
|
||||
IsMergeEnabled *bool `mandatory:"false" contributesTo:"query" name:"isMergeEnabled"`
|
||||
|
||||
// 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 GetComputeImageCapabilitySchemaRequest) String() string {
|
||||
return common.PointerString(request)
|
||||
}
|
||||
|
||||
// HTTPRequest implements the OCIRequest interface
|
||||
func (request GetComputeImageCapabilitySchemaRequest) 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 GetComputeImageCapabilitySchemaRequest) RetryPolicy() *common.RetryPolicy {
|
||||
return request.RequestMetadata.RetryPolicy
|
||||
}
|
||||
|
||||
// GetComputeImageCapabilitySchemaResponse wrapper for the GetComputeImageCapabilitySchema operation
|
||||
type GetComputeImageCapabilitySchemaResponse struct {
|
||||
|
||||
// The underlying http response
|
||||
RawResponse *http.Response
|
||||
|
||||
// The ComputeImageCapabilitySchema instance
|
||||
ComputeImageCapabilitySchema `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 GetComputeImageCapabilitySchemaResponse) String() string {
|
||||
return common.PointerString(response)
|
||||
}
|
||||
|
||||
// HTTPResponse implements the OCIResponse interface
|
||||
func (response GetComputeImageCapabilitySchemaResponse) HTTPResponse() *http.Response {
|
||||
return response.RawResponse
|
||||
}
|
2
vendor/github.com/oracle/oci-go-sdk/core/get_public_ip_by_ip_address_details.go
generated
vendored
2
vendor/github.com/oracle/oci-go-sdk/core/get_public_ip_by_ip_address_details.go
generated
vendored
|
@ -21,7 +21,7 @@ import (
|
|||
type GetPublicIpByIpAddressDetails struct {
|
||||
|
||||
// The public IP address.
|
||||
// Example: 129.146.2.1
|
||||
// Example: 203.0.113.2
|
||||
IpAddress *string `mandatory:"true" json:"ipAddress"`
|
||||
}
|
||||
|
||||
|
|
65
vendor/github.com/oracle/oci-go-sdk/core/get_vlan_request_response.go
generated
vendored
Normal file
65
vendor/github.com/oracle/oci-go-sdk/core/get_vlan_request_response.go
generated
vendored
Normal file
|
@ -0,0 +1,65 @@
|
|||
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
||||
// Code generated. DO NOT EDIT.
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"github.com/oracle/oci-go-sdk/common"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// GetVlanRequest wrapper for the GetVlan operation
|
||||
type GetVlanRequest struct {
|
||||
|
||||
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VLAN.
|
||||
VlanId *string `mandatory:"true" contributesTo:"path" name:"vlanId"`
|
||||
|
||||
// Unique 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 GetVlanRequest) String() string {
|
||||
return common.PointerString(request)
|
||||
}
|
||||
|
||||
// HTTPRequest implements the OCIRequest interface
|
||||
func (request GetVlanRequest) 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 GetVlanRequest) RetryPolicy() *common.RetryPolicy {
|
||||
return request.RequestMetadata.RetryPolicy
|
||||
}
|
||||
|
||||
// GetVlanResponse wrapper for the GetVlan operation
|
||||
type GetVlanResponse struct {
|
||||
|
||||
// The underlying http response
|
||||
RawResponse *http.Response
|
||||
|
||||
// The Vlan instance
|
||||
Vlan `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 GetVlanResponse) String() string {
|
||||
return common.PointerString(response)
|
||||
}
|
||||
|
||||
// HTTPResponse implements the OCIResponse interface
|
||||
func (response GetVlanResponse) HTTPResponse() *http.Response {
|
||||
return response.RawResponse
|
||||
}
|
|
@ -34,7 +34,7 @@ type IScsiVolumeAttachment struct {
|
|||
// The OCID of the instance the volume is attached to.
|
||||
InstanceId *string `mandatory:"true" json:"instanceId"`
|
||||
|
||||
// The date and time the volume was created, in the format defined by RFC3339.
|
||||
// The date and time the volume was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
|
||||
|
||||
|
@ -45,11 +45,11 @@ type IScsiVolumeAttachment struct {
|
|||
// Example: `169.254.0.2`
|
||||
Ipv4 *string `mandatory:"true" json:"ipv4"`
|
||||
|
||||
// The target volume's iSCSI Qualified Name in the format defined by RFC 3720.
|
||||
// Example: `iqn.2015-12.us.oracle.com:456b0391-17b8-4122-bbf1-f85fc0bb97d9`
|
||||
// The target volume's iSCSI Qualified Name in the format defined by RFC 3720 (https://tools.ietf.org/html/rfc3720#page-32).
|
||||
// Example: `iqn.2015-12.us.oracle.com:<CHAP_username>`
|
||||
Iqn *string `mandatory:"true" json:"iqn"`
|
||||
|
||||
// The volume's iSCSI port.
|
||||
// The volume's iSCSI port, usually port 860 or 3260.
|
||||
// Example: `3260`
|
||||
Port *int `mandatory:"true" json:"port"`
|
||||
|
||||
|
@ -72,11 +72,10 @@ type IScsiVolumeAttachment struct {
|
|||
|
||||
// The Challenge-Handshake-Authentication-Protocol (CHAP) secret valid for the associated CHAP user name.
|
||||
// (Also called the "CHAP password".)
|
||||
// Example: `d6866c0d-298b-48ba-95af-309b4faux45e`
|
||||
ChapSecret *string `mandatory:"false" json:"chapSecret"`
|
||||
|
||||
// The volume's system-generated Challenge-Handshake-Authentication-Protocol (CHAP) user name.
|
||||
// Example: `ocid1.volume.oc1.phx.abyhqljrgvttnlx73nmrwfaux7kcvzfs3s66izvxf2h4lgvyndsdsnoiwr5q`
|
||||
// The volume's system-generated Challenge-Handshake-Authentication-Protocol (CHAP) user name. See RFC 1994 (https://tools.ietf.org/html/rfc1994) for more on CHAP.
|
||||
// Example: `ocid1.volume.oc1.phx.<unique_ID>`
|
||||
ChapUsername *string `mandatory:"false" json:"chapUsername"`
|
||||
|
||||
// The current state of the volume attachment.
|
||||
|
|
|
@ -47,7 +47,7 @@ type Image struct {
|
|||
// Example: `7.2`
|
||||
OperatingSystemVersion *string `mandatory:"true" json:"operatingSystemVersion"`
|
||||
|
||||
// The date and time the image was created, in the format defined by RFC3339.
|
||||
// The date and time the image was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
|
||||
|
||||
|
@ -73,7 +73,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.
|
||||
// * `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"`
|
||||
|
||||
|
|
105
vendor/github.com/oracle/oci-go-sdk/core/image_capability_schema_descriptor.go
generated
vendored
Normal file
105
vendor/github.com/oracle/oci-go-sdk/core/image_capability_schema_descriptor.go
generated
vendored
Normal file
|
@ -0,0 +1,105 @@
|
|||
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
||||
// Code generated. DO NOT EDIT.
|
||||
|
||||
// Core Services API
|
||||
//
|
||||
// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm),
|
||||
// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and
|
||||
// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API
|
||||
// to manage resources such as virtual cloud networks (VCNs), compute instances, and
|
||||
// block storage volumes.
|
||||
//
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"github.com/oracle/oci-go-sdk/common"
|
||||
)
|
||||
|
||||
// ImageCapabilitySchemaDescriptor Image Capability Schema Descriptor is a type of capability for an image.
|
||||
type ImageCapabilitySchemaDescriptor interface {
|
||||
GetSource() ImageCapabilitySchemaDescriptorSourceEnum
|
||||
}
|
||||
|
||||
type imagecapabilityschemadescriptor struct {
|
||||
JsonData []byte
|
||||
Source ImageCapabilitySchemaDescriptorSourceEnum `mandatory:"true" json:"source"`
|
||||
DescriptorType string `json:"descriptorType"`
|
||||
}
|
||||
|
||||
// UnmarshalJSON unmarshals json
|
||||
func (m *imagecapabilityschemadescriptor) UnmarshalJSON(data []byte) error {
|
||||
m.JsonData = data
|
||||
type Unmarshalerimagecapabilityschemadescriptor imagecapabilityschemadescriptor
|
||||
s := struct {
|
||||
Model Unmarshalerimagecapabilityschemadescriptor
|
||||
}{}
|
||||
err := json.Unmarshal(data, &s.Model)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
m.Source = s.Model.Source
|
||||
m.DescriptorType = s.Model.DescriptorType
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// UnmarshalPolymorphicJSON unmarshals polymorphic json
|
||||
func (m *imagecapabilityschemadescriptor) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) {
|
||||
|
||||
if data == nil || string(data) == "null" {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
var err error
|
||||
switch m.DescriptorType {
|
||||
case "enumstring":
|
||||
mm := EnumStringImageCapabilitySchemaDescriptor{}
|
||||
err = json.Unmarshal(data, &mm)
|
||||
return mm, err
|
||||
case "enuminteger":
|
||||
mm := EnumIntegerImageCapabilityDescriptor{}
|
||||
err = json.Unmarshal(data, &mm)
|
||||
return mm, err
|
||||
case "boolean":
|
||||
mm := BooleanImageCapabilitySchemaDescriptor{}
|
||||
err = json.Unmarshal(data, &mm)
|
||||
return mm, err
|
||||
default:
|
||||
return *m, nil
|
||||
}
|
||||
}
|
||||
|
||||
//GetSource returns Source
|
||||
func (m imagecapabilityschemadescriptor) GetSource() ImageCapabilitySchemaDescriptorSourceEnum {
|
||||
return m.Source
|
||||
}
|
||||
|
||||
func (m imagecapabilityschemadescriptor) String() string {
|
||||
return common.PointerString(m)
|
||||
}
|
||||
|
||||
// ImageCapabilitySchemaDescriptorSourceEnum Enum with underlying type: string
|
||||
type ImageCapabilitySchemaDescriptorSourceEnum string
|
||||
|
||||
// Set of constants representing the allowable values for ImageCapabilitySchemaDescriptorSourceEnum
|
||||
const (
|
||||
ImageCapabilitySchemaDescriptorSourceGlobal ImageCapabilitySchemaDescriptorSourceEnum = "GLOBAL"
|
||||
ImageCapabilitySchemaDescriptorSourceImage ImageCapabilitySchemaDescriptorSourceEnum = "IMAGE"
|
||||
)
|
||||
|
||||
var mappingImageCapabilitySchemaDescriptorSource = map[string]ImageCapabilitySchemaDescriptorSourceEnum{
|
||||
"GLOBAL": ImageCapabilitySchemaDescriptorSourceGlobal,
|
||||
"IMAGE": ImageCapabilitySchemaDescriptorSourceImage,
|
||||
}
|
||||
|
||||
// GetImageCapabilitySchemaDescriptorSourceEnumValues Enumerates the set of values for ImageCapabilitySchemaDescriptorSourceEnum
|
||||
func GetImageCapabilitySchemaDescriptorSourceEnumValues() []ImageCapabilitySchemaDescriptorSourceEnum {
|
||||
values := make([]ImageCapabilitySchemaDescriptorSourceEnum, 0)
|
||||
for _, v := range mappingImageCapabilitySchemaDescriptorSource {
|
||||
values = append(values, v)
|
||||
}
|
||||
return values
|
||||
}
|
|
@ -17,10 +17,10 @@ import (
|
|||
"github.com/oracle/oci-go-sdk/common"
|
||||
)
|
||||
|
||||
// ImageShapeCompatibilitySummary Summary information for an image shape compatibility entry.
|
||||
// ImageShapeCompatibilitySummary Summary information for a compatible image and shape.
|
||||
type ImageShapeCompatibilitySummary struct {
|
||||
|
||||
// The image OCID.
|
||||
// The image OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
||||
ImageId *string `mandatory:"true" json:"imageId"`
|
||||
|
||||
// The shape name.
|
||||
|
|
|
@ -53,7 +53,7 @@ type Instance struct {
|
|||
// ListShapes.
|
||||
Shape *string `mandatory:"true" json:"shape"`
|
||||
|
||||
// The date and time the instance was created, in the format defined by RFC3339.
|
||||
// The date and time the instance was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
|
||||
|
||||
|
@ -70,8 +70,10 @@ type Instance struct {
|
|||
// Example: `My bare metal instance`
|
||||
DisplayName *string `mandatory:"false" json:"displayName"`
|
||||
|
||||
// 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).
|
||||
// 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).
|
||||
ExtendedMetadata map[string]interface{} `mandatory:"false" json:"extendedMetadata"`
|
||||
|
||||
// The name of the fault domain the instance is running in.
|
||||
|
@ -80,8 +82,7 @@ type Instance struct {
|
|||
// 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.
|
||||
// If you do not specify the fault domain, the system selects one for you.
|
||||
// Example: `FAULT-DOMAIN-1`
|
||||
FaultDomain *string `mandatory:"false" json:"faultDomain"`
|
||||
|
||||
|
@ -116,12 +117,15 @@ 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.
|
||||
// * `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"`
|
||||
|
||||
// Options for tuning the compatibility and performance of VM shapes. The values that you specify override any default values.
|
||||
LaunchOptions *LaunchOptions `mandatory:"false" json:"launchOptions"`
|
||||
|
||||
AvailabilityConfig *InstanceAvailabilityConfig `mandatory:"false" json:"availabilityConfig"`
|
||||
|
||||
// Custom metadata that you provide.
|
||||
Metadata map[string]string `mandatory:"false" json:"metadata"`
|
||||
|
||||
|
@ -136,7 +140,7 @@ type Instance struct {
|
|||
|
||||
AgentConfig *InstanceAgentConfig `mandatory:"false" json:"agentConfig"`
|
||||
|
||||
// The date and time the instance is expected to be stopped / started, in the format defined by RFC3339.
|
||||
// The date and time the instance is expected to be stopped / started, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// After that time if instance hasn't been rebooted, Oracle will reboot the instance within 24 hours of the due time.
|
||||
// Regardless of how the instance was stopped, the flag will be reset to empty as soon as instance reaches Stopped state.
|
||||
// Example: `2018-05-25T21:10:29.600Z`
|
||||
|
@ -160,6 +164,7 @@ func (m *Instance) UnmarshalJSON(data []byte) (e error) {
|
|||
IpxeScript *string `json:"ipxeScript"`
|
||||
LaunchMode InstanceLaunchModeEnum `json:"launchMode"`
|
||||
LaunchOptions *LaunchOptions `json:"launchOptions"`
|
||||
AvailabilityConfig *InstanceAvailabilityConfig `json:"availabilityConfig"`
|
||||
Metadata map[string]string `json:"metadata"`
|
||||
ShapeConfig *InstanceShapeConfig `json:"shapeConfig"`
|
||||
SourceDetails instancesourcedetails `json:"sourceDetails"`
|
||||
|
@ -200,6 +205,8 @@ func (m *Instance) UnmarshalJSON(data []byte) (e error) {
|
|||
|
||||
m.LaunchOptions = model.LaunchOptions
|
||||
|
||||
m.AvailabilityConfig = model.AvailabilityConfig
|
||||
|
||||
m.Metadata = model.Metadata
|
||||
|
||||
m.ShapeConfig = model.ShapeConfig
|
||||
|
@ -233,6 +240,7 @@ func (m *Instance) UnmarshalJSON(data []byte) (e error) {
|
|||
m.Shape = model.Shape
|
||||
|
||||
m.TimeCreated = model.TimeCreated
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
@ -84,19 +84,21 @@ type InstanceActionActionEnum string
|
|||
|
||||
// Set of constants representing the allowable values for InstanceActionActionEnum
|
||||
const (
|
||||
InstanceActionActionStop InstanceActionActionEnum = "STOP"
|
||||
InstanceActionActionStart InstanceActionActionEnum = "START"
|
||||
InstanceActionActionSoftreset InstanceActionActionEnum = "SOFTRESET"
|
||||
InstanceActionActionReset InstanceActionActionEnum = "RESET"
|
||||
InstanceActionActionSoftstop InstanceActionActionEnum = "SOFTSTOP"
|
||||
InstanceActionActionStop InstanceActionActionEnum = "STOP"
|
||||
InstanceActionActionStart InstanceActionActionEnum = "START"
|
||||
InstanceActionActionSoftreset InstanceActionActionEnum = "SOFTRESET"
|
||||
InstanceActionActionReset InstanceActionActionEnum = "RESET"
|
||||
InstanceActionActionSoftstop InstanceActionActionEnum = "SOFTSTOP"
|
||||
InstanceActionActionSenddiagnosticinterrupt InstanceActionActionEnum = "SENDDIAGNOSTICINTERRUPT"
|
||||
)
|
||||
|
||||
var mappingInstanceActionAction = map[string]InstanceActionActionEnum{
|
||||
"STOP": InstanceActionActionStop,
|
||||
"START": InstanceActionActionStart,
|
||||
"SOFTRESET": InstanceActionActionSoftreset,
|
||||
"RESET": InstanceActionActionReset,
|
||||
"SOFTSTOP": InstanceActionActionSoftstop,
|
||||
"STOP": InstanceActionActionStop,
|
||||
"START": InstanceActionActionStart,
|
||||
"SOFTRESET": InstanceActionActionSoftreset,
|
||||
"RESET": InstanceActionActionReset,
|
||||
"SOFTSTOP": InstanceActionActionSoftstop,
|
||||
"SENDDIAGNOSTICINTERRUPT": InstanceActionActionSenddiagnosticinterrupt,
|
||||
}
|
||||
|
||||
// GetInstanceActionActionEnumValues Enumerates the set of values for InstanceActionActionEnum
|
||||
|
|
55
vendor/github.com/oracle/oci-go-sdk/core/instance_availability_config.go
generated
vendored
Normal file
55
vendor/github.com/oracle/oci-go-sdk/core/instance_availability_config.go
generated
vendored
Normal file
|
@ -0,0 +1,55 @@
|
|||
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
||||
// Code generated. DO NOT EDIT.
|
||||
|
||||
// Core Services API
|
||||
//
|
||||
// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm),
|
||||
// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and
|
||||
// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API
|
||||
// to manage resources such as virtual cloud networks (VCNs), compute instances, and
|
||||
// block storage volumes.
|
||||
//
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"github.com/oracle/oci-go-sdk/common"
|
||||
)
|
||||
|
||||
// InstanceAvailabilityConfig Options for customers to define the general policy of how compute service perform maintenance on VM instances.
|
||||
type InstanceAvailabilityConfig struct {
|
||||
|
||||
// Actions customers can specify that would be applied to their instances after scheduled or unexpected host maintenance.
|
||||
// * `RESTORE_INSTANCE` - This would be the default action if recoveryAction is not set. VM instances
|
||||
// will be restored to the power state it was in before maintenance.
|
||||
// * `STOP_INSTANCE` - This action allow customers to have their VM instances be stopped after maintenance.
|
||||
RecoveryAction InstanceAvailabilityConfigRecoveryActionEnum `mandatory:"false" json:"recoveryAction,omitempty"`
|
||||
}
|
||||
|
||||
func (m InstanceAvailabilityConfig) String() string {
|
||||
return common.PointerString(m)
|
||||
}
|
||||
|
||||
// InstanceAvailabilityConfigRecoveryActionEnum Enum with underlying type: string
|
||||
type InstanceAvailabilityConfigRecoveryActionEnum string
|
||||
|
||||
// Set of constants representing the allowable values for InstanceAvailabilityConfigRecoveryActionEnum
|
||||
const (
|
||||
InstanceAvailabilityConfigRecoveryActionRestoreInstance InstanceAvailabilityConfigRecoveryActionEnum = "RESTORE_INSTANCE"
|
||||
InstanceAvailabilityConfigRecoveryActionStopInstance InstanceAvailabilityConfigRecoveryActionEnum = "STOP_INSTANCE"
|
||||
)
|
||||
|
||||
var mappingInstanceAvailabilityConfigRecoveryAction = map[string]InstanceAvailabilityConfigRecoveryActionEnum{
|
||||
"RESTORE_INSTANCE": InstanceAvailabilityConfigRecoveryActionRestoreInstance,
|
||||
"STOP_INSTANCE": InstanceAvailabilityConfigRecoveryActionStopInstance,
|
||||
}
|
||||
|
||||
// GetInstanceAvailabilityConfigRecoveryActionEnumValues Enumerates the set of values for InstanceAvailabilityConfigRecoveryActionEnum
|
||||
func GetInstanceAvailabilityConfigRecoveryActionEnumValues() []InstanceAvailabilityConfigRecoveryActionEnum {
|
||||
values := make([]InstanceAvailabilityConfigRecoveryActionEnum, 0)
|
||||
for _, v := range mappingInstanceAvailabilityConfigRecoveryAction {
|
||||
values = append(values, v)
|
||||
}
|
||||
return values
|
||||
}
|
|
@ -30,7 +30,7 @@ type InstanceConfiguration struct {
|
|||
// The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance configuration.
|
||||
Id *string `mandatory:"true" json:"id"`
|
||||
|
||||
// The date and time the instance configuration was created, in the format defined by RFC3339.
|
||||
// The date and time the instance configuration was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
|
||||
|
||||
|
@ -103,5 +103,6 @@ func (m *InstanceConfiguration) UnmarshalJSON(data []byte) (e error) {
|
|||
m.Id = model.Id
|
||||
|
||||
m.TimeCreated = model.TimeCreated
|
||||
|
||||
return
|
||||
}
|
||||
|
|
23
vendor/github.com/oracle/oci-go-sdk/core/instance_configuration_attach_volume_details.go
generated
vendored
23
vendor/github.com/oracle/oci-go-sdk/core/instance_configuration_attach_volume_details.go
generated
vendored
|
@ -26,12 +26,23 @@ type InstanceConfigurationAttachVolumeDetails interface {
|
|||
|
||||
// Whether the attachment should be created in read-only mode.
|
||||
GetIsReadOnly() *bool
|
||||
|
||||
// The device name.
|
||||
GetDevice() *string
|
||||
|
||||
// Whether the attachment should be created in shareable mode. If an attachment
|
||||
// is created in shareable mode, then other instances can attach the same volume, provided
|
||||
// that they also create their attachments in shareable mode. Only certain volume types can
|
||||
// be attached in shareable mode. Defaults to false if not specified.
|
||||
GetIsShareable() *bool
|
||||
}
|
||||
|
||||
type instanceconfigurationattachvolumedetails struct {
|
||||
JsonData []byte
|
||||
DisplayName *string `mandatory:"false" json:"displayName"`
|
||||
IsReadOnly *bool `mandatory:"false" json:"isReadOnly"`
|
||||
Device *string `mandatory:"false" json:"device"`
|
||||
IsShareable *bool `mandatory:"false" json:"isShareable"`
|
||||
Type string `json:"type"`
|
||||
}
|
||||
|
||||
|
@ -48,6 +59,8 @@ func (m *instanceconfigurationattachvolumedetails) UnmarshalJSON(data []byte) er
|
|||
}
|
||||
m.DisplayName = s.Model.DisplayName
|
||||
m.IsReadOnly = s.Model.IsReadOnly
|
||||
m.Device = s.Model.Device
|
||||
m.IsShareable = s.Model.IsShareable
|
||||
m.Type = s.Model.Type
|
||||
|
||||
return err
|
||||
|
@ -85,6 +98,16 @@ func (m instanceconfigurationattachvolumedetails) GetIsReadOnly() *bool {
|
|||
return m.IsReadOnly
|
||||
}
|
||||
|
||||
//GetDevice returns Device
|
||||
func (m instanceconfigurationattachvolumedetails) GetDevice() *string {
|
||||
return m.Device
|
||||
}
|
||||
|
||||
//GetIsShareable returns IsShareable
|
||||
func (m instanceconfigurationattachvolumedetails) GetIsShareable() *bool {
|
||||
return m.IsShareable
|
||||
}
|
||||
|
||||
func (m instanceconfigurationattachvolumedetails) String() string {
|
||||
return common.PointerString(m)
|
||||
}
|
||||
|
|
55
vendor/github.com/oracle/oci-go-sdk/core/instance_configuration_availability_config.go
generated
vendored
Normal file
55
vendor/github.com/oracle/oci-go-sdk/core/instance_configuration_availability_config.go
generated
vendored
Normal file
|
@ -0,0 +1,55 @@
|
|||
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
||||
// Code generated. DO NOT EDIT.
|
||||
|
||||
// Core Services API
|
||||
//
|
||||
// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm),
|
||||
// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and
|
||||
// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API
|
||||
// to manage resources such as virtual cloud networks (VCNs), compute instances, and
|
||||
// block storage volumes.
|
||||
//
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"github.com/oracle/oci-go-sdk/common"
|
||||
)
|
||||
|
||||
// InstanceConfigurationAvailabilityConfig Options for customers to define the general policy of how compute service perform maintenance on VM instances.
|
||||
type InstanceConfigurationAvailabilityConfig struct {
|
||||
|
||||
// Actions customers can specify that would be applied to their instances after scheduled or unexpected host maintenance.
|
||||
// * `RESTORE_INSTANCE` - This would be the default action if recoveryAction is not set. VM instances
|
||||
// will be restored to the power state it was in before maintenance.
|
||||
// * `STOP_INSTANCE` - This action allow customers to have their VM instances be stopped after maintenance.
|
||||
RecoveryAction InstanceConfigurationAvailabilityConfigRecoveryActionEnum `mandatory:"false" json:"recoveryAction,omitempty"`
|
||||
}
|
||||
|
||||
func (m InstanceConfigurationAvailabilityConfig) String() string {
|
||||
return common.PointerString(m)
|
||||
}
|
||||
|
||||
// InstanceConfigurationAvailabilityConfigRecoveryActionEnum Enum with underlying type: string
|
||||
type InstanceConfigurationAvailabilityConfigRecoveryActionEnum string
|
||||
|
||||
// Set of constants representing the allowable values for InstanceConfigurationAvailabilityConfigRecoveryActionEnum
|
||||
const (
|
||||
InstanceConfigurationAvailabilityConfigRecoveryActionRestoreInstance InstanceConfigurationAvailabilityConfigRecoveryActionEnum = "RESTORE_INSTANCE"
|
||||
InstanceConfigurationAvailabilityConfigRecoveryActionStopInstance InstanceConfigurationAvailabilityConfigRecoveryActionEnum = "STOP_INSTANCE"
|
||||
)
|
||||
|
||||
var mappingInstanceConfigurationAvailabilityConfigRecoveryAction = map[string]InstanceConfigurationAvailabilityConfigRecoveryActionEnum{
|
||||
"RESTORE_INSTANCE": InstanceConfigurationAvailabilityConfigRecoveryActionRestoreInstance,
|
||||
"STOP_INSTANCE": InstanceConfigurationAvailabilityConfigRecoveryActionStopInstance,
|
||||
}
|
||||
|
||||
// GetInstanceConfigurationAvailabilityConfigRecoveryActionEnumValues Enumerates the set of values for InstanceConfigurationAvailabilityConfigRecoveryActionEnum
|
||||
func GetInstanceConfigurationAvailabilityConfigRecoveryActionEnumValues() []InstanceConfigurationAvailabilityConfigRecoveryActionEnum {
|
||||
values := make([]InstanceConfigurationAvailabilityConfigRecoveryActionEnum, 0)
|
||||
for _, v := range mappingInstanceConfigurationAvailabilityConfigRecoveryAction {
|
||||
values = append(values, v)
|
||||
}
|
||||
return values
|
||||
}
|
|
@ -58,5 +58,6 @@ func (m *InstanceConfigurationBlockVolumeDetails) UnmarshalJSON(data []byte) (e
|
|||
m.CreateDetails = model.CreateDetails
|
||||
|
||||
m.VolumeId = model.VolumeId
|
||||
|
||||
return
|
||||
}
|
||||
|
|
|
@ -119,5 +119,6 @@ func (m *InstanceConfigurationCreateVolumeDetails) UnmarshalJSON(data []byte) (e
|
|||
} else {
|
||||
m.SourceDetails = nil
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
|
|
@ -27,6 +27,15 @@ type InstanceConfigurationIscsiAttachVolumeDetails struct {
|
|||
// Whether the attachment should be created in read-only mode.
|
||||
IsReadOnly *bool `mandatory:"false" json:"isReadOnly"`
|
||||
|
||||
// The device name.
|
||||
Device *string `mandatory:"false" json:"device"`
|
||||
|
||||
// Whether the attachment should be created in shareable mode. If an attachment
|
||||
// is created in shareable mode, then other instances can attach the same volume, provided
|
||||
// that they also create their attachments in shareable mode. Only certain volume types can
|
||||
// be attached in shareable mode. Defaults to false if not specified.
|
||||
IsShareable *bool `mandatory:"false" json:"isShareable"`
|
||||
|
||||
// Whether to use CHAP authentication for the volume attachment. Defaults to false.
|
||||
UseChap *bool `mandatory:"false" json:"useChap"`
|
||||
}
|
||||
|
@ -41,6 +50,16 @@ func (m InstanceConfigurationIscsiAttachVolumeDetails) GetIsReadOnly() *bool {
|
|||
return m.IsReadOnly
|
||||
}
|
||||
|
||||
//GetDevice returns Device
|
||||
func (m InstanceConfigurationIscsiAttachVolumeDetails) GetDevice() *string {
|
||||
return m.Device
|
||||
}
|
||||
|
||||
//GetIsShareable returns IsShareable
|
||||
func (m InstanceConfigurationIscsiAttachVolumeDetails) GetIsShareable() *bool {
|
||||
return m.IsShareable
|
||||
}
|
||||
|
||||
func (m InstanceConfigurationIscsiAttachVolumeDetails) String() string {
|
||||
return common.PointerString(m)
|
||||
}
|
||||
|
|
|
@ -18,7 +18,9 @@ import (
|
|||
"github.com/oracle/oci-go-sdk/common"
|
||||
)
|
||||
|
||||
// InstanceConfigurationLaunchInstanceDetails See Instance launch details - LaunchInstanceDetails
|
||||
// InstanceConfigurationLaunchInstanceDetails Instance launch details for creating an instance from an instance configuration. Use the `sourceDetails`
|
||||
// parameter to specify whether a boot volume or an image should be used to launch a new instance.
|
||||
// See LaunchInstanceDetails for more information.
|
||||
type InstanceConfigurationLaunchInstanceDetails struct {
|
||||
|
||||
// The availability domain of the instance.
|
||||
|
@ -42,8 +44,12 @@ type InstanceConfigurationLaunchInstanceDetails struct {
|
|||
// Example: `My bare metal instance`
|
||||
DisplayName *string `mandatory:"false" json:"displayName"`
|
||||
|
||||
// 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).
|
||||
// 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).
|
||||
// The combined size of the `metadata` and `extendedMetadata` objects can be a maximum of
|
||||
// 32,000 bytes.
|
||||
ExtendedMetadata map[string]interface{} `mandatory:"false" json:"extendedMetadata"`
|
||||
|
||||
// Free-form tags for this resource. Each tag is a simple key-value pair with no
|
||||
|
@ -92,29 +98,21 @@ type InstanceConfigurationLaunchInstanceDetails struct {
|
|||
// Cloud-Init to run custom scripts or provide custom Cloud-Init configuration. For
|
||||
// information about how to take advantage of user data, see the
|
||||
// Cloud-Init Documentation (http://cloudinit.readthedocs.org/en/latest/topics/format.html).
|
||||
// **Note:** Cloud-Init does not pull this data from the `http://169.254.169.254/opc/v1/instance/metadata/`
|
||||
// path. When the instance launches and either of these keys are provided, the key values are formatted as
|
||||
// OpenStack metadata and copied to the following locations, which are recognized by Cloud-Init:
|
||||
// `http://169.254.169.254/openstack/latest/meta_data.json` - This JSON blob
|
||||
// contains, among other things, the SSH keys that you provided for
|
||||
// **"ssh_authorized_keys"**.
|
||||
// `http://169.254.169.254/openstack/latest/user_data` - Contains the
|
||||
// base64-decoded data that you provided for **"user_data"**.
|
||||
// **Metadata Example**
|
||||
// "metadata" : {
|
||||
// "quake_bot_level" : "Severe",
|
||||
// "ssh_authorized_keys" : "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCZ06fccNTQfq+xubFlJ5ZR3kt+uzspdH9tXL+lAejSM1NXM+CFZev7MIxfEjas06y80ZBZ7DUTQO0GxJPeD8NCOb1VorF8M4xuLwrmzRtkoZzU16umt4y1W0Q4ifdp3IiiU0U8/WxczSXcUVZOLqkz5dc6oMHdMVpkimietWzGZ4LBBsH/LjEVY7E0V+a0sNchlVDIZcm7ErReBLcdTGDq0uLBiuChyl6RUkX1PNhusquTGwK7zc8OBXkRuubn5UKXhI3Ul9Nyk4XESkVWIGNKmw8mSpoJSjR8P9ZjRmcZVo8S+x4KVPMZKQEor== ryan.smith@company.com
|
||||
// ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAzJSAtwEPoB3Jmr58IXrDGzLuDYkWAYg8AsLYlo6JZvKpjY1xednIcfEVQJm4T2DhVmdWhRrwQ8DmayVZvBkLt+zs2LdoAJEVimKwXcJFD/7wtH8Lnk17HiglbbbNXsemjDY0hea4JUE5CfvkIdZBITuMrfqSmA4n3VNoorXYdvtTMoGG8fxMub46RPtuxtqi9bG9Zqenordkg5FJt2mVNfQRqf83CWojcOkklUWq4CjyxaeLf5i9gv1fRoBo4QhiA8I6NCSppO8GnoV/6Ox6TNoh9BiifqGKC9VGYuC89RvUajRBTZSK2TK4DPfaT+2R+slPsFrwiT/oPEhhEK1S5Q== rsa-key-20160227",
|
||||
// "user_data" : "SWYgeW91IGNhbiBzZWUgdGhpcywgdGhlbiBpdCB3b3JrZWQgbWF5YmUuCg=="
|
||||
// "ssh_authorized_keys" : "ssh-rsa <your_public_SSH_key>== rsa-key-20160227",
|
||||
// "user_data" : "<your_public_SSH_key>=="
|
||||
// }
|
||||
// **Getting Metadata on the Instance**
|
||||
// To get information about your instance, connect to the instance using SSH and issue any of the
|
||||
// following GET requests:
|
||||
// curl http://169.254.169.254/opc/v1/instance/
|
||||
// curl http://169.254.169.254/opc/v1/instance/metadata/
|
||||
// curl http://169.254.169.254/opc/v1/instance/metadata/<any-key-name>
|
||||
// curl -H "Authorization: Bearer Oracle" http://169.254.169.254/opc/v2/instance/
|
||||
// curl -H "Authorization: Bearer Oracle" http://169.254.169.254/opc/v2/instance/metadata/
|
||||
// curl -H "Authorization: Bearer Oracle" http://169.254.169.254/opc/v2/instance/metadata/<any-key-name>
|
||||
// You'll get back a response that includes all the instance information; only the metadata information; or
|
||||
// the metadata information for the specified key name, respectively.
|
||||
// The combined size of the `metadata` and `extendedMetadata` objects can be a maximum of 32,000 bytes.
|
||||
Metadata map[string]string `mandatory:"false" json:"metadata"`
|
||||
|
||||
// The shape of an instance. The shape determines the number of CPUs, amount of memory,
|
||||
|
@ -133,8 +131,8 @@ type InstanceConfigurationLaunchInstanceDetails struct {
|
|||
// 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.
|
||||
// If you do not specify the fault domain, the system selects one for you.
|
||||
//
|
||||
// To get a list of fault domains, use the
|
||||
// ListFaultDomains operation in the
|
||||
// Identity and Access Management Service API.
|
||||
|
@ -142,15 +140,18 @@ type InstanceConfigurationLaunchInstanceDetails struct {
|
|||
FaultDomain *string `mandatory:"false" json:"faultDomain"`
|
||||
|
||||
// The OCID of dedicated VM host.
|
||||
// Dedicated VM hosts can be used when launching individual instances from an instance configuration. They
|
||||
// cannot be used to launch instance pools.
|
||||
DedicatedVmHostId *string `mandatory:"false" json:"dedicatedVmHostId"`
|
||||
|
||||
// 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.
|
||||
// * `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using VirtIO drivers.
|
||||
// * `CUSTOM` - VM instances launch with custom configuration settings specified in the `LaunchOptions` parameter.
|
||||
LaunchMode InstanceConfigurationLaunchInstanceDetailsLaunchModeEnum `mandatory:"false" json:"launchMode,omitempty"`
|
||||
|
||||
// Options for tuning the compatibility and performance of VM shapes. The values that you specify override any default values.
|
||||
LaunchOptions *InstanceConfigurationLaunchOptions `mandatory:"false" json:"launchOptions"`
|
||||
|
||||
AgentConfig *InstanceConfigurationLaunchInstanceAgentConfigDetails `mandatory:"false" json:"agentConfig"`
|
||||
|
@ -162,6 +163,8 @@ type InstanceConfigurationLaunchInstanceDetails struct {
|
|||
// * `LIVE_MIGRATE` - Run maintenance using a live migration.
|
||||
// * `REBOOT` - Run maintenance using a reboot.
|
||||
PreferredMaintenanceAction InstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionEnum `mandatory:"false" json:"preferredMaintenanceAction,omitempty"`
|
||||
|
||||
AvailabilityConfig *InstanceConfigurationAvailabilityConfig `mandatory:"false" json:"availabilityConfig"`
|
||||
}
|
||||
|
||||
func (m InstanceConfigurationLaunchInstanceDetails) String() string {
|
||||
|
@ -190,6 +193,7 @@ func (m *InstanceConfigurationLaunchInstanceDetails) UnmarshalJSON(data []byte)
|
|||
AgentConfig *InstanceConfigurationLaunchInstanceAgentConfigDetails `json:"agentConfig"`
|
||||
IsPvEncryptionInTransitEnabled *bool `json:"isPvEncryptionInTransitEnabled"`
|
||||
PreferredMaintenanceAction InstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionEnum `json:"preferredMaintenanceAction"`
|
||||
AvailabilityConfig *InstanceConfigurationAvailabilityConfig `json:"availabilityConfig"`
|
||||
}{}
|
||||
|
||||
e = json.Unmarshal(data, &model)
|
||||
|
@ -242,6 +246,9 @@ func (m *InstanceConfigurationLaunchInstanceDetails) UnmarshalJSON(data []byte)
|
|||
m.IsPvEncryptionInTransitEnabled = model.IsPvEncryptionInTransitEnabled
|
||||
|
||||
m.PreferredMaintenanceAction = model.PreferredMaintenanceAction
|
||||
|
||||
m.AvailabilityConfig = model.AvailabilityConfig
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
@ -17,12 +17,15 @@ import (
|
|||
"github.com/oracle/oci-go-sdk/common"
|
||||
)
|
||||
|
||||
// InstanceConfigurationLaunchInstanceShapeConfigDetails The shape configuration requested for the instance. If provided, the instance will be created
|
||||
// with the resources specified. In the case where some properties are missing or
|
||||
// the entire parameter is not provided, the instance will be created with the default
|
||||
// configuration values for the provided `shape`.
|
||||
// Each shape only supports certain configurable values. If the values provided are invalid for the
|
||||
// provided `shape`, an error will be returned.
|
||||
// InstanceConfigurationLaunchInstanceShapeConfigDetails The shape configuration requested for the instance.
|
||||
// If the parameter is provided, the instance is created
|
||||
// with the resources that you specify. If some properties are missing or
|
||||
// the entire parameter is not provided, the instance is created with the default
|
||||
// configuration values for the `shape` that you specify.
|
||||
// Each shape only supports certain configurable values. If the values that you provid are not valid for the
|
||||
// specified `shape`, an error is returned.
|
||||
// For more information about customizing the resources that are allocated to a flexible shapes, see
|
||||
// Flexible Shapes (https://docs.cloud.oracle.com/Content/Compute/References/computeshapes.htm#flexible).
|
||||
type InstanceConfigurationLaunchInstanceShapeConfigDetails struct {
|
||||
|
||||
// The total number of OCPUs available to the instance.
|
||||
|
|
28
vendor/github.com/oracle/oci-go-sdk/core/instance_configuration_launch_options.go
generated
vendored
28
vendor/github.com/oracle/oci-go-sdk/core/instance_configuration_launch_options.go
generated
vendored
|
@ -17,44 +17,46 @@ import (
|
|||
"github.com/oracle/oci-go-sdk/common"
|
||||
)
|
||||
|
||||
// InstanceConfigurationLaunchOptions Options for tuning compatibility and performance of VM shapes.
|
||||
// InstanceConfigurationLaunchOptions Options for tuning the compatibility and performance of VM shapes. The values that you specify override any
|
||||
// default values.
|
||||
type InstanceConfigurationLaunchOptions struct {
|
||||
|
||||
// Emulation type for volume.
|
||||
// * `ISCSI` - ISCSI attached block storage device. This is the default for Boot Volumes and Remote Block
|
||||
// Storage volumes on Oracle provided images.
|
||||
// Emulation type for the boot volume.
|
||||
// * `ISCSI` - ISCSI attached block storage device.
|
||||
// * `SCSI` - Emulated SCSI disk.
|
||||
// * `IDE` - Emulated IDE disk.
|
||||
// * `VFIO` - Direct attached Virtual Function storage. This is the default option for Local data
|
||||
// * `VFIO` - Direct attached Virtual Function storage. This is the default option for local data
|
||||
// volumes on Oracle provided images.
|
||||
// * `PARAVIRTUALIZED` - Paravirtualized disk.
|
||||
// * `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block
|
||||
// storage volumes on Oracle-provided images.
|
||||
BootVolumeType InstanceConfigurationLaunchOptionsBootVolumeTypeEnum `mandatory:"false" json:"bootVolumeType,omitempty"`
|
||||
|
||||
// Firmware used to boot VM. Select the option that matches your operating system.
|
||||
// * `BIOS` - Boot VM using BIOS style firmware. This is compatible with both 32 bit and 64 bit operating
|
||||
// systems that boot using MBR style bootloaders.
|
||||
// * `UEFI_64` - Boot VM using UEFI style firmware compatible with 64 bit operating systems. This is the
|
||||
// default for Oracle provided images.
|
||||
// default for Oracle-provided images.
|
||||
Firmware InstanceConfigurationLaunchOptionsFirmwareEnum `mandatory:"false" json:"firmware,omitempty"`
|
||||
|
||||
// Emulation type for the physical network interface card (NIC).
|
||||
// * `E1000` - Emulated Gigabit ethernet controller. Compatible with Linux e1000 network driver.
|
||||
// * `VFIO` - Direct attached Virtual Function network controller. This is the networking type
|
||||
// when you launch an instance using hardware-assisted (SR-IOV) networking.
|
||||
// * `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using virtio drivers.
|
||||
// * `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using VirtIO drivers.
|
||||
NetworkType InstanceConfigurationLaunchOptionsNetworkTypeEnum `mandatory:"false" json:"networkType,omitempty"`
|
||||
|
||||
// Emulation type for volume.
|
||||
// * `ISCSI` - ISCSI attached block storage device. This is the default for Boot Volumes and Remote Block
|
||||
// Storage volumes on Oracle provided images.
|
||||
// * `ISCSI` - ISCSI attached block storage device.
|
||||
// * `SCSI` - Emulated SCSI disk.
|
||||
// * `IDE` - Emulated IDE disk.
|
||||
// * `VFIO` - Direct attached Virtual Function storage. This is the default option for Local data
|
||||
// * `VFIO` - Direct attached Virtual Function storage. This is the default option for local data
|
||||
// volumes on Oracle provided images.
|
||||
// * `PARAVIRTUALIZED` - Paravirtualized disk.
|
||||
// * `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block
|
||||
// storage volumes on Oracle-provided images.
|
||||
RemoteDataVolumeType InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum `mandatory:"false" json:"remoteDataVolumeType,omitempty"`
|
||||
|
||||
// Whether to enable in-transit encryption for the boot volume's paravirtualized attachment. The default value is false.
|
||||
// Deprecated. Instead use `isPvEncryptionInTransitEnabled` in
|
||||
// InstanceConfigurationLaunchInstanceDetails.
|
||||
IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"`
|
||||
|
||||
// Whether to enable consistent volume naming feature. Defaults to false.
|
||||
|
|
|
@ -26,6 +26,18 @@ type InstanceConfigurationParavirtualizedAttachVolumeDetails struct {
|
|||
|
||||
// Whether the attachment should be created in read-only mode.
|
||||
IsReadOnly *bool `mandatory:"false" json:"isReadOnly"`
|
||||
|
||||
// The device name.
|
||||
Device *string `mandatory:"false" json:"device"`
|
||||
|
||||
// Whether the attachment should be created in shareable mode. If an attachment
|
||||
// is created in shareable mode, then other instances can attach the same volume, provided
|
||||
// that they also create their attachments in shareable mode. Only certain volume types can
|
||||
// be attached in shareable mode. Defaults to false if not specified.
|
||||
IsShareable *bool `mandatory:"false" json:"isShareable"`
|
||||
|
||||
// Whether to enable in-transit encryption for the data volume's paravirtualized attachment. The default value is false.
|
||||
IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"`
|
||||
}
|
||||
|
||||
//GetDisplayName returns DisplayName
|
||||
|
@ -38,6 +50,16 @@ func (m InstanceConfigurationParavirtualizedAttachVolumeDetails) GetIsReadOnly()
|
|||
return m.IsReadOnly
|
||||
}
|
||||
|
||||
//GetDevice returns Device
|
||||
func (m InstanceConfigurationParavirtualizedAttachVolumeDetails) GetDevice() *string {
|
||||
return m.Device
|
||||
}
|
||||
|
||||
//GetIsShareable returns IsShareable
|
||||
func (m InstanceConfigurationParavirtualizedAttachVolumeDetails) GetIsShareable() *bool {
|
||||
return m.IsShareable
|
||||
}
|
||||
|
||||
func (m InstanceConfigurationParavirtualizedAttachVolumeDetails) String() string {
|
||||
return common.PointerString(m)
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ type InstanceConfigurationSummary struct {
|
|||
// The OCID of the instance configuration.
|
||||
Id *string `mandatory:"true" json:"id"`
|
||||
|
||||
// The date and time the instance configuration was created, in the format defined by RFC3339.
|
||||
// The date and time the instance configuration was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ type InstancePool struct {
|
|||
// The number of instances that should be in the instance pool.
|
||||
Size *int `mandatory:"true" json:"size"`
|
||||
|
||||
// The date and time the instance pool was created, in the format defined by RFC3339.
|
||||
// The date and time the instance pool was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ type InstancePoolSummary struct {
|
|||
// The number of instances that should be in the instance pool.
|
||||
Size *int `mandatory:"true" json:"size"`
|
||||
|
||||
// The date and time the instance pool was created, in the format defined by RFC3339.
|
||||
// The date and time the instance pool was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
|
||||
|
||||
|
|
|
@ -24,34 +24,34 @@ type InstanceShapeConfig struct {
|
|||
// The total number of OCPUs available to the instance.
|
||||
Ocpus *float32 `mandatory:"false" json:"ocpus"`
|
||||
|
||||
// The total amount of memory, in gigabytes, available to the instance.
|
||||
// The total amount of memory available to the instance, in gigabytes.
|
||||
MemoryInGBs *float32 `mandatory:"false" json:"memoryInGBs"`
|
||||
|
||||
// A short description of the processors available to the instance.
|
||||
// A short description of the instance's processor (CPU).
|
||||
ProcessorDescription *string `mandatory:"false" json:"processorDescription"`
|
||||
|
||||
// The networking bandwidth, in gigabits per second, available to the instance.
|
||||
// The networking bandwidth available to the instance, in gigabits per second.
|
||||
NetworkingBandwidthInGbps *float32 `mandatory:"false" json:"networkingBandwidthInGbps"`
|
||||
|
||||
// The maximum number of VNIC attachments for the instance.
|
||||
MaxVnicAttachments *int `mandatory:"false" json:"maxVnicAttachments"`
|
||||
|
||||
// The number of GPUs available to this instance.
|
||||
// The number of GPUs available to the instance.
|
||||
Gpus *int `mandatory:"false" json:"gpus"`
|
||||
|
||||
// A short description of the GPUs available to this instance.
|
||||
// This field is `null` if `gpus` is `0`.
|
||||
// A short description of the instance's graphics processing unit (GPU).
|
||||
// If the instance does not have any GPUs, this field is `null`.
|
||||
GpuDescription *string `mandatory:"false" json:"gpuDescription"`
|
||||
|
||||
// The number of local disks available to the instance.
|
||||
LocalDisks *int `mandatory:"false" json:"localDisks"`
|
||||
|
||||
// The size of the local disks, aggregated, in gigabytes.
|
||||
// This field is `null` if `localDisks` is equal to `0`.
|
||||
// The aggregate size of all local disks, in gigabytes.
|
||||
// If the instance does not have any local disks, this field is `null`.
|
||||
LocalDisksTotalSizeInGBs *float32 `mandatory:"false" json:"localDisksTotalSizeInGBs"`
|
||||
|
||||
// A short description of the local disks available to this instance.
|
||||
// This field is `null` if `localDisks` is equal to `0`.
|
||||
// If the instance does not have any local disks, this field is `null`.
|
||||
LocalDiskDescription *string `mandatory:"false" json:"localDiskDescription"`
|
||||
}
|
||||
|
||||
|
|
|
@ -38,14 +38,14 @@ type InstanceSummary struct {
|
|||
// The current state of the instance pool instance.
|
||||
State *string `mandatory:"true" json:"state"`
|
||||
|
||||
// The date and time the instance pool instance was created, in the format defined by RFC3339.
|
||||
// The date and time the instance pool instance was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
|
||||
|
||||
// The user-friendly name. Does not have to be unique.
|
||||
DisplayName *string `mandatory:"false" json:"displayName"`
|
||||
|
||||
// The name of the Fault Domain the instance is running in.
|
||||
// The fault domain the instance is running in.
|
||||
FaultDomain *string `mandatory:"false" json:"faultDomain"`
|
||||
|
||||
// The shape of an instance. The shape determines the number of CPUs, amount of memory,
|
||||
|
|
|
@ -57,7 +57,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 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ type IpSecConnection struct {
|
|||
// for `cpeLocalIdentifier`.
|
||||
CpeLocalIdentifierType IpSecConnectionCpeLocalIdentifierTypeEnum `mandatory:"false" json:"cpeLocalIdentifierType,omitempty"`
|
||||
|
||||
// The date and time the IPSec connection was created, in the format defined by RFC3339.
|
||||
// The date and time the IPSec connection was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ type IpSecConnectionDeviceStatus struct {
|
|||
// The IPSec connection's Oracle ID (OCID).
|
||||
Id *string `mandatory:"true" json:"id"`
|
||||
|
||||
// The date and time the IPSec connection was created, in the format defined by RFC3339.
|
||||
// The date and time the IPSec connection was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
|
||||
// Example: `2016-08-25T21:10:29.600Z`
|
||||
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue