func GetActionTypeEnumStringValues() []string
GetActionTypeEnumStringValues Enumerates the set of values in String for ActionTypeEnum
func GetContainerCapabilityEnumStringValues() []string
GetContainerCapabilityEnumStringValues Enumerates the set of values in String for ContainerCapabilityEnum
func GetContainerEmptyDirVolumeBackingStoreEnumStringValues() []string
GetContainerEmptyDirVolumeBackingStoreEnumStringValues Enumerates the set of values in String for ContainerEmptyDirVolumeBackingStoreEnum
func GetContainerHealthCheckFailureActionEnumStringValues() []string
GetContainerHealthCheckFailureActionEnumStringValues Enumerates the set of values in String for ContainerHealthCheckFailureActionEnum
func GetContainerHealthCheckStatusEnumStringValues() []string
GetContainerHealthCheckStatusEnumStringValues Enumerates the set of values in String for ContainerHealthCheckStatusEnum
func GetContainerHealthCheckTypeEnumStringValues() []string
GetContainerHealthCheckTypeEnumStringValues Enumerates the set of values in String for ContainerHealthCheckTypeEnum
func GetContainerInstanceContainerRestartPolicyEnumStringValues() []string
GetContainerInstanceContainerRestartPolicyEnumStringValues Enumerates the set of values in String for ContainerInstanceContainerRestartPolicyEnum
func GetContainerInstanceLifecycleStateEnumStringValues() []string
GetContainerInstanceLifecycleStateEnumStringValues Enumerates the set of values in String for ContainerInstanceLifecycleStateEnum
func GetContainerLifecycleStateEnumStringValues() []string
GetContainerLifecycleStateEnumStringValues Enumerates the set of values in String for ContainerLifecycleStateEnum
func GetContainerVolumeTypeEnumStringValues() []string
GetContainerVolumeTypeEnumStringValues Enumerates the set of values in String for ContainerVolumeTypeEnum
func GetCreateImagePullSecretDetailsSecretTypeEnumStringValues() []string
GetCreateImagePullSecretDetailsSecretTypeEnumStringValues Enumerates the set of values in String for CreateImagePullSecretDetailsSecretTypeEnum
func GetImagePullSecretSecretTypeEnumStringValues() []string
GetImagePullSecretSecretTypeEnumStringValues Enumerates the set of values in String for ImagePullSecretSecretTypeEnum
func GetListContainerInstancesSortByEnumStringValues() []string
GetListContainerInstancesSortByEnumStringValues Enumerates the set of values in String for ListContainerInstancesSortByEnum
func GetListContainerInstancesSortOrderEnumStringValues() []string
GetListContainerInstancesSortOrderEnumStringValues Enumerates the set of values in String for ListContainerInstancesSortOrderEnum
func GetListContainersSortByEnumStringValues() []string
GetListContainersSortByEnumStringValues Enumerates the set of values in String for ListContainersSortByEnum
func GetListContainersSortOrderEnumStringValues() []string
GetListContainersSortOrderEnumStringValues Enumerates the set of values in String for ListContainersSortOrderEnum
func GetOperationStatusEnumStringValues() []string
GetOperationStatusEnumStringValues Enumerates the set of values in String for OperationStatusEnum
func GetOperationTypeEnumStringValues() []string
GetOperationTypeEnumStringValues Enumerates the set of values in String for OperationTypeEnum
func GetSortOrderEnumStringValues() []string
GetSortOrderEnumStringValues Enumerates the set of values in String for SortOrderEnum
ActionTypeEnum Enum with underlying type: string
type ActionTypeEnum string
Set of constants representing the allowable values for ActionTypeEnum
const ( ActionTypeCreated ActionTypeEnum = "CREATED" ActionTypeUpdated ActionTypeEnum = "UPDATED" ActionTypeDeleted ActionTypeEnum = "DELETED" ActionTypeInProgress ActionTypeEnum = "IN_PROGRESS" ActionTypeRelated ActionTypeEnum = "RELATED" ActionTypeFailed ActionTypeEnum = "FAILED" )
func GetActionTypeEnumValues() []ActionTypeEnum
GetActionTypeEnumValues Enumerates the set of values for ActionTypeEnum
func GetMappingActionTypeEnum(val string) (ActionTypeEnum, bool)
GetMappingActionTypeEnum performs case Insensitive comparison on enum value and return the desired enum
BasicImagePullSecret A BasicImagePullSecret is a ImagePullSecret which accepts username and password as credentials information.
type BasicImagePullSecret struct { // The registry endpoint of the container image. RegistryEndpoint *string `mandatory:"true" json:"registryEndpoint"` }
func (m BasicImagePullSecret) GetRegistryEndpoint() *string
GetRegistryEndpoint returns RegistryEndpoint
func (m BasicImagePullSecret) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m BasicImagePullSecret) String() string
func (m BasicImagePullSecret) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ChangeContainerInstanceCompartmentDetails The information to be updated.
type ChangeContainerInstanceCompartmentDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment // into which the resource should be moved. CompartmentId *string `mandatory:"true" json:"compartmentId"` }
func (m ChangeContainerInstanceCompartmentDetails) String() string
func (m ChangeContainerInstanceCompartmentDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ChangeContainerInstanceCompartmentRequest wrapper for the ChangeContainerInstanceCompartment operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/ChangeContainerInstanceCompartment.go.html to see an example of how to use ChangeContainerInstanceCompartmentRequest.
type ChangeContainerInstanceCompartmentRequest struct { // The system-generated unique identifier for the ContainerInstance. ContainerInstanceId *string `mandatory:"true" contributesTo:"path" name:"containerInstanceId"` // The information to be updated. ChangeContainerInstanceCompartmentDetails `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"` // The client request ID for tracing. 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 ChangeContainerInstanceCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ChangeContainerInstanceCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ChangeContainerInstanceCompartmentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ChangeContainerInstanceCompartmentRequest) String() string
func (request ChangeContainerInstanceCompartmentRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ChangeContainerInstanceCompartmentResponse wrapper for the ChangeContainerInstanceCompartment operation
type ChangeContainerInstanceCompartmentResponse struct { // The underlying http response RawResponse *http.Response // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ChangeContainerInstanceCompartmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ChangeContainerInstanceCompartmentResponse) String() string
Container A single container on a Container Instance. If this Container is DELETED, the record will remain visible for a short period of time before being permanently removed.
type Container struct { // Unique identifier that is immutable on creation Id *string `mandatory:"true" json:"id"` // Display name for the Container. Can be renamed. DisplayName *string `mandatory:"true" json:"displayName"` // Compartment Identifier CompartmentId *string `mandatory:"true" json:"compartmentId"` // Availability Domain where the Container's Instance is running. AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` // The current state of the Container. LifecycleState ContainerLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // The time the the Container was created. An RFC3339 formatted datetime string TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The identifier of the Container Instance on which this container is running. ContainerInstanceId *string `mandatory:"true" json:"containerInstanceId"` // The container image information. Currently only support public docker registry. Can be either image name, // e.g `containerImage`, image name with version, e.g `containerImage:v1` or complete docker image Url e.g // `docker.io/library/containerImage:latest`. // If no registry is provided, will default the registry to public docker hub `docker.io/library`. // The registry used for container image must be reachable over the Container Instance's VNIC. ImageUrl *string `mandatory:"true" json:"imageUrl"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. // Example: `{"bar-key": "value"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"foo-namespace": {"bar-key": "value"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` // Usage of system tag keys. These predefined keys are scoped to namespaces. // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` // Fault Domain where the Container's Instance is running. FaultDomain *string `mandatory:"false" json:"faultDomain"` // A message describing the current state in more detail. For example, can be used to provide // actionable information for a resource in Failed state. LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` // The exit code of the container process if it has stopped executing. ExitCode *int `mandatory:"false" json:"exitCode"` // Time at which the container last terminated. An RFC3339 formatted datetime string TimeTerminated *common.SDKTime `mandatory:"false" json:"timeTerminated"` // The time the Container was updated. An RFC3339 formatted datetime string TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` // This command will override the container's entrypoint process. // If not specified, the existing entrypoint process defined in the image will be used. Command []string `mandatory:"false" json:"command"` // A list of string arguments for a Container's entrypoint process. // Many containers use an entrypoint process pointing to a shell, // for example /bin/bash. For such containers, this argument list // can also be used to specify the main command in the container process. Arguments []string `mandatory:"false" json:"arguments"` // A list of additional configurable container capabilities AdditionalCapabilities []ContainerCapabilityEnum `mandatory:"false" json:"additionalCapabilities,omitempty"` // The working directory within the Container's filesystem for // the Container process. If this is not present, the default // working directory from the image will be used. WorkingDirectory *string `mandatory:"false" json:"workingDirectory"` // A map of additional environment variables to set in the environment of the container's // entrypoint process. These variables are in addition to any variables already defined // in the container's image. EnvironmentVariables map[string]string `mandatory:"false" json:"environmentVariables"` // List of the volume mounts. VolumeMounts []VolumeMount `mandatory:"false" json:"volumeMounts"` // List of container health checks HealthChecks []ContainerHealthCheck `mandatory:"false" json:"healthChecks"` // Determines if the Container will have access to the Container Instance Resource Principal. // This method utilizes resource principal version 2.2. Please refer to // https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdk_authentication_methods.htm#sdk_authentication_methods_resource_principal // for detailed explanation of how to leverage the exposed resource principal elements. IsResourcePrincipalDisabled *bool `mandatory:"false" json:"isResourcePrincipalDisabled"` ResourceConfig *ContainerResourceConfig `mandatory:"false" json:"resourceConfig"` // The number of container restart attempts. A restart may be attempted after a health check failure or a container exit, based on the restart policy. ContainerRestartAttemptCount *int `mandatory:"false" json:"containerRestartAttemptCount"` }
func (m Container) String() string
func (m *Container) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
func (m Container) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ContainerCapabilityEnum Enum with underlying type: string
type ContainerCapabilityEnum string
Set of constants representing the allowable values for ContainerCapabilityEnum
const ( ContainerCapabilityCapNetAdmin ContainerCapabilityEnum = "CAP_NET_ADMIN" ContainerCapabilityCapNetRaw ContainerCapabilityEnum = "CAP_NET_RAW" )
func GetContainerCapabilityEnumValues() []ContainerCapabilityEnum
GetContainerCapabilityEnumValues Enumerates the set of values for ContainerCapabilityEnum
func GetMappingContainerCapabilityEnum(val string) (ContainerCapabilityEnum, bool)
GetMappingContainerCapabilityEnum performs case Insensitive comparison on enum value and return the desired enum
ContainerCollection A list of matching Containers.
type ContainerCollection struct { // List of Containers. Items []ContainerSummary `mandatory:"true" json:"items"` }
func (m ContainerCollection) String() string
func (m ContainerCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ContainerCommandHealthCheck Container Health Check with command type.
type ContainerCommandHealthCheck struct { // The list of strings which will be concatenated to a single command for checking container's status. Command []string `mandatory:"true" json:"command"` // Health check name. Name *string `mandatory:"false" json:"name"` // The initial delay in seconds before start checking container health status. InitialDelayInSeconds *int `mandatory:"false" json:"initialDelayInSeconds"` // Number of seconds between two consecutive runs for checking container health. IntervalInSeconds *int `mandatory:"false" json:"intervalInSeconds"` // Number of consecutive failures at which we consider the check failed. FailureThreshold *int `mandatory:"false" json:"failureThreshold"` // Number of consecutive successes at which we consider the check succeeded again after it was in failure state. SuccessThreshold *int `mandatory:"false" json:"successThreshold"` // Length of waiting time in seconds before marking health check failed. TimeoutInSeconds *int `mandatory:"false" json:"timeoutInSeconds"` // A message describing the current status in more details. StatusDetails *string `mandatory:"false" json:"statusDetails"` // Status of container Status ContainerHealthCheckStatusEnum `mandatory:"false" json:"status,omitempty"` // The action will be triggered when the container health check fails. There are two types of action: KILL or NONE. The default // action is KILL. If failure action is KILL, the container will be subject to the container restart policy. FailureAction ContainerHealthCheckFailureActionEnum `mandatory:"false" json:"failureAction,omitempty"` }
func (m ContainerCommandHealthCheck) GetFailureAction() ContainerHealthCheckFailureActionEnum
GetFailureAction returns FailureAction
func (m ContainerCommandHealthCheck) GetFailureThreshold() *int
GetFailureThreshold returns FailureThreshold
func (m ContainerCommandHealthCheck) GetInitialDelayInSeconds() *int
GetInitialDelayInSeconds returns InitialDelayInSeconds
func (m ContainerCommandHealthCheck) GetIntervalInSeconds() *int
GetIntervalInSeconds returns IntervalInSeconds
func (m ContainerCommandHealthCheck) GetName() *string
GetName returns Name
func (m ContainerCommandHealthCheck) GetStatus() ContainerHealthCheckStatusEnum
GetStatus returns Status
func (m ContainerCommandHealthCheck) GetStatusDetails() *string
GetStatusDetails returns StatusDetails
func (m ContainerCommandHealthCheck) GetSuccessThreshold() *int
GetSuccessThreshold returns SuccessThreshold
func (m ContainerCommandHealthCheck) GetTimeoutInSeconds() *int
GetTimeoutInSeconds returns TimeoutInSeconds
func (m ContainerCommandHealthCheck) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m ContainerCommandHealthCheck) String() string
func (m ContainerCommandHealthCheck) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ContainerConfigFile The file that is mounted on a container instance through a volume mount.
type ContainerConfigFile struct { // The name of the file. The fileName should be unique across the volume. FileName *string `mandatory:"true" json:"fileName"` // The base64 encoded contents of the file. The contents are decoded to plain text before mounted as a file to a container inside container instance. Data []byte `mandatory:"true" json:"data"` // (Optional) Relative path for this file inside the volume mount directory. By default, the file is presented at the root of the volume mount path. Path *string `mandatory:"false" json:"path"` }
func (m ContainerConfigFile) String() string
func (m ContainerConfigFile) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ContainerConfigFileVolume The volume based on configuration files received during container creation.
type ContainerConfigFileVolume struct { // The name of the volume. This has be unique cross single ContainerInstance. Name *string `mandatory:"true" json:"name"` // Contains string key value pairs which can be mounted as individual files inside the container. The value needs to be base64 encoded. It is decoded to plain text before the mount. Configs []ContainerConfigFile `mandatory:"false" json:"configs"` }
func (m ContainerConfigFileVolume) GetName() *string
GetName returns Name
func (m ContainerConfigFileVolume) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m ContainerConfigFileVolume) String() string
func (m ContainerConfigFileVolume) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ContainerDnsConfig DNS settings for containers.
type ContainerDnsConfig struct { // Name server IP address Nameservers []string `mandatory:"false" json:"nameservers"` // Search list for host-name lookup. Searches []string `mandatory:"false" json:"searches"` // Options allows certain internal resolver variables to be modified. Options []string `mandatory:"false" json:"options"` }
func (m ContainerDnsConfig) String() string
func (m ContainerDnsConfig) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ContainerEmptyDirVolume The empty director of container
type ContainerEmptyDirVolume struct { // The name of the volume. This has be unique cross single ContainerInstance. Name *string `mandatory:"true" json:"name"` // Volume type that we are using for empty dir where it could be either File Storage or Memory BackingStore ContainerEmptyDirVolumeBackingStoreEnum `mandatory:"false" json:"backingStore,omitempty"` }
func (m ContainerEmptyDirVolume) GetName() *string
GetName returns Name
func (m ContainerEmptyDirVolume) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m ContainerEmptyDirVolume) String() string
func (m ContainerEmptyDirVolume) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ContainerEmptyDirVolumeBackingStoreEnum Enum with underlying type: string
type ContainerEmptyDirVolumeBackingStoreEnum string
Set of constants representing the allowable values for ContainerEmptyDirVolumeBackingStoreEnum
const ( ContainerEmptyDirVolumeBackingStoreEphemeralStorage ContainerEmptyDirVolumeBackingStoreEnum = "EPHEMERAL_STORAGE" ContainerEmptyDirVolumeBackingStoreMemory ContainerEmptyDirVolumeBackingStoreEnum = "MEMORY" )
func GetContainerEmptyDirVolumeBackingStoreEnumValues() []ContainerEmptyDirVolumeBackingStoreEnum
GetContainerEmptyDirVolumeBackingStoreEnumValues Enumerates the set of values for ContainerEmptyDirVolumeBackingStoreEnum
func GetMappingContainerEmptyDirVolumeBackingStoreEnum(val string) (ContainerEmptyDirVolumeBackingStoreEnum, bool)
GetMappingContainerEmptyDirVolumeBackingStoreEnum performs case Insensitive comparison on enum value and return the desired enum
ContainerHealthCheck Type of container health check which could be either HTTP, TCP or Command.
type ContainerHealthCheck interface { // Health check name. GetName() *string // The initial delay in seconds before start checking container health status. GetInitialDelayInSeconds() *int // Number of seconds between two consecutive runs for checking container health. GetIntervalInSeconds() *int // Number of consecutive failures at which we consider the check failed. GetFailureThreshold() *int // Number of consecutive successes at which we consider the check succeeded again after it was in failure state. GetSuccessThreshold() *int // Length of waiting time in seconds before marking health check failed. GetTimeoutInSeconds() *int // Status of container GetStatus() ContainerHealthCheckStatusEnum // A message describing the current status in more details. GetStatusDetails() *string // The action will be triggered when the container health check fails. There are two types of action: KILL or NONE. The default // action is KILL. If failure action is KILL, the container will be subject to the container restart policy. GetFailureAction() ContainerHealthCheckFailureActionEnum }
ContainerHealthCheckFailureActionEnum Enum with underlying type: string
type ContainerHealthCheckFailureActionEnum string
Set of constants representing the allowable values for ContainerHealthCheckFailureActionEnum
const ( ContainerHealthCheckFailureActionKill ContainerHealthCheckFailureActionEnum = "KILL" ContainerHealthCheckFailureActionNone ContainerHealthCheckFailureActionEnum = "NONE" )
func GetContainerHealthCheckFailureActionEnumValues() []ContainerHealthCheckFailureActionEnum
GetContainerHealthCheckFailureActionEnumValues Enumerates the set of values for ContainerHealthCheckFailureActionEnum
func GetMappingContainerHealthCheckFailureActionEnum(val string) (ContainerHealthCheckFailureActionEnum, bool)
GetMappingContainerHealthCheckFailureActionEnum performs case Insensitive comparison on enum value and return the desired enum
ContainerHealthCheckStatusEnum Enum with underlying type: string
type ContainerHealthCheckStatusEnum string
Set of constants representing the allowable values for ContainerHealthCheckStatusEnum
const ( ContainerHealthCheckStatusHealthy ContainerHealthCheckStatusEnum = "HEALTHY" ContainerHealthCheckStatusUnhealthy ContainerHealthCheckStatusEnum = "UNHEALTHY" ContainerHealthCheckStatusUnknown ContainerHealthCheckStatusEnum = "UNKNOWN" )
func GetContainerHealthCheckStatusEnumValues() []ContainerHealthCheckStatusEnum
GetContainerHealthCheckStatusEnumValues Enumerates the set of values for ContainerHealthCheckStatusEnum
func GetMappingContainerHealthCheckStatusEnum(val string) (ContainerHealthCheckStatusEnum, bool)
GetMappingContainerHealthCheckStatusEnum performs case Insensitive comparison on enum value and return the desired enum
ContainerHealthCheckTypeEnum Enum with underlying type: string
type ContainerHealthCheckTypeEnum string
Set of constants representing the allowable values for ContainerHealthCheckTypeEnum
const ( ContainerHealthCheckTypeHttp ContainerHealthCheckTypeEnum = "HTTP" ContainerHealthCheckTypeTcp ContainerHealthCheckTypeEnum = "TCP" ContainerHealthCheckTypeCommand ContainerHealthCheckTypeEnum = "COMMAND" )
func GetContainerHealthCheckTypeEnumValues() []ContainerHealthCheckTypeEnum
GetContainerHealthCheckTypeEnumValues Enumerates the set of values for ContainerHealthCheckTypeEnum
func GetMappingContainerHealthCheckTypeEnum(val string) (ContainerHealthCheckTypeEnum, bool)
GetMappingContainerHealthCheckTypeEnum performs case Insensitive comparison on enum value and return the desired enum
ContainerHttpHealthCheck Container Health Check HTTP type.
type ContainerHttpHealthCheck struct { // Container health check Http's path Path *string `mandatory:"true" json:"path"` // Container health check Http's port Port *int `mandatory:"true" json:"port"` // Health check name. Name *string `mandatory:"false" json:"name"` // The initial delay in seconds before start checking container health status. InitialDelayInSeconds *int `mandatory:"false" json:"initialDelayInSeconds"` // Number of seconds between two consecutive runs for checking container health. IntervalInSeconds *int `mandatory:"false" json:"intervalInSeconds"` // Number of consecutive failures at which we consider the check failed. FailureThreshold *int `mandatory:"false" json:"failureThreshold"` // Number of consecutive successes at which we consider the check succeeded again after it was in failure state. SuccessThreshold *int `mandatory:"false" json:"successThreshold"` // Length of waiting time in seconds before marking health check failed. TimeoutInSeconds *int `mandatory:"false" json:"timeoutInSeconds"` // A message describing the current status in more details. StatusDetails *string `mandatory:"false" json:"statusDetails"` // Container health check Http's headers. Headers []HealthCheckHttpHeader `mandatory:"false" json:"headers"` // Status of container Status ContainerHealthCheckStatusEnum `mandatory:"false" json:"status,omitempty"` // The action will be triggered when the container health check fails. There are two types of action: KILL or NONE. The default // action is KILL. If failure action is KILL, the container will be subject to the container restart policy. FailureAction ContainerHealthCheckFailureActionEnum `mandatory:"false" json:"failureAction,omitempty"` }
func (m ContainerHttpHealthCheck) GetFailureAction() ContainerHealthCheckFailureActionEnum
GetFailureAction returns FailureAction
func (m ContainerHttpHealthCheck) GetFailureThreshold() *int
GetFailureThreshold returns FailureThreshold
func (m ContainerHttpHealthCheck) GetInitialDelayInSeconds() *int
GetInitialDelayInSeconds returns InitialDelayInSeconds
func (m ContainerHttpHealthCheck) GetIntervalInSeconds() *int
GetIntervalInSeconds returns IntervalInSeconds
func (m ContainerHttpHealthCheck) GetName() *string
GetName returns Name
func (m ContainerHttpHealthCheck) GetStatus() ContainerHealthCheckStatusEnum
GetStatus returns Status
func (m ContainerHttpHealthCheck) GetStatusDetails() *string
GetStatusDetails returns StatusDetails
func (m ContainerHttpHealthCheck) GetSuccessThreshold() *int
GetSuccessThreshold returns SuccessThreshold
func (m ContainerHttpHealthCheck) GetTimeoutInSeconds() *int
GetTimeoutInSeconds returns TimeoutInSeconds
func (m ContainerHttpHealthCheck) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m ContainerHttpHealthCheck) String() string
func (m ContainerHttpHealthCheck) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ContainerInstance A ContainerInstance for hosting Containers. If this ContainerInstance is DELETED, the record will remain visible for a short period of time before being permanently removed.
type ContainerInstance struct { // Unique identifier that is immutable on creation Id *string `mandatory:"true" json:"id"` // Display name for the ContainerInstance. Can be renamed. DisplayName *string `mandatory:"true" json:"displayName"` // Compartment Identifier CompartmentId *string `mandatory:"true" json:"compartmentId"` // Availability Domain where the ContainerInstance is running. AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` // The current state of the ContainerInstance. LifecycleState ContainerInstanceLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // The Containers on this Instance Containers []ContainerInstanceContainer `mandatory:"true" json:"containers"` // The number of containers on this Instance ContainerCount *int `mandatory:"true" json:"containerCount"` // The time the the ContainerInstance was created. An RFC3339 formatted datetime string TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The shape of the Container Instance. The shape determines the resources available to the Container Instance. Shape *string `mandatory:"true" json:"shape"` ShapeConfig *ContainerInstanceShapeConfig `mandatory:"true" json:"shapeConfig"` // The virtual networks available to containers running on this Container Instance. Vnics []ContainerVnic `mandatory:"true" json:"vnics"` // The container restart policy is applied for all containers in container instance. ContainerRestartPolicy ContainerInstanceContainerRestartPolicyEnum `mandatory:"true" json:"containerRestartPolicy"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. // Example: `{"bar-key": "value"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"foo-namespace": {"bar-key": "value"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` // Usage of system tag keys. These predefined keys are scoped to namespaces. // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` // Fault Domain where the ContainerInstance is running. FaultDomain *string `mandatory:"false" json:"faultDomain"` // A message describing the current state in more detail. For example, can be used to provide // actionable information for a resource in Failed state. LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` // A Volume represents a directory with data that is accessible across multiple containers in a // ContainerInstance. Volumes []ContainerVolume `mandatory:"false" json:"volumes"` // The number of volumes that attached to this Instance VolumeCount *int `mandatory:"false" json:"volumeCount"` // The time the ContainerInstance was updated. An RFC3339 formatted datetime string TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` DnsConfig *ContainerDnsConfig `mandatory:"false" json:"dnsConfig"` // Duration in seconds processes within a Container have to gracefully terminate. This applies whenever a Container must be halted, such as when the Container Instance is deleted. Processes will first be sent a termination signal. After this timeout is reached, the processes will be sent a termination signal. GracefulShutdownTimeoutInSeconds *int64 `mandatory:"false" json:"gracefulShutdownTimeoutInSeconds"` // The image pull secrets for accessing private registry to pull images for containers ImagePullSecrets []ImagePullSecret `mandatory:"false" json:"imagePullSecrets"` }
func (m ContainerInstance) String() string
func (m *ContainerInstance) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
func (m ContainerInstance) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ContainerInstanceClient a client for ContainerInstance
type ContainerInstanceClient struct { common.BaseClient // contains filtered or unexported fields }
func NewContainerInstanceClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client ContainerInstanceClient, err error)
NewContainerInstanceClientWithConfigurationProvider Creates a new default ContainerInstance client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region
func NewContainerInstanceClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client ContainerInstanceClient, err error)
NewContainerInstanceClientWithOboToken Creates a new default ContainerInstance client with the given configuration provider. The obotoken will be added to default headers and signed; the configuration provider will be used for the signer
as well as reading the region
func (client ContainerInstanceClient) ChangeContainerInstanceCompartment(ctx context.Context, request ChangeContainerInstanceCompartmentRequest) (response ChangeContainerInstanceCompartmentResponse, err error)
ChangeContainerInstanceCompartment Moves a ContainerInstance resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/ChangeContainerInstanceCompartment.go.html to see an example of how to use ChangeContainerInstanceCompartment API. A default retry strategy applies to this operation ChangeContainerInstanceCompartment()
func (client *ContainerInstanceClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (client ContainerInstanceClient) CreateContainerInstance(ctx context.Context, request CreateContainerInstanceRequest) (response CreateContainerInstanceResponse, err error)
CreateContainerInstance Creates a new ContainerInstance.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/CreateContainerInstance.go.html to see an example of how to use CreateContainerInstance API. A default retry strategy applies to this operation CreateContainerInstance()
func (client ContainerInstanceClient) DeleteContainerInstance(ctx context.Context, request DeleteContainerInstanceRequest) (response DeleteContainerInstanceResponse, err error)
DeleteContainerInstance Deletes a ContainerInstance resource by identifier
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/DeleteContainerInstance.go.html to see an example of how to use DeleteContainerInstance API. A default retry strategy applies to this operation DeleteContainerInstance()
func (client ContainerInstanceClient) GetContainer(ctx context.Context, request GetContainerRequest) (response GetContainerResponse, err error)
GetContainer Get details about a single container by the container ID.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/GetContainer.go.html to see an example of how to use GetContainer API. A default retry strategy applies to this operation GetContainer()
func (client ContainerInstanceClient) GetContainerInstance(ctx context.Context, request GetContainerInstanceRequest) (response GetContainerInstanceResponse, err error)
GetContainerInstance Gets a ContainerInstance by identifier
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/GetContainerInstance.go.html to see an example of how to use GetContainerInstance API. A default retry strategy applies to this operation GetContainerInstance()
func (client ContainerInstanceClient) GetWorkRequest(ctx context.Context, request GetWorkRequestRequest) (response GetWorkRequestResponse, err error)
GetWorkRequest Gets the status of the work request with the given ID.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/GetWorkRequest.go.html to see an example of how to use GetWorkRequest API. A default retry strategy applies to this operation GetWorkRequest()
func (client ContainerInstanceClient) ListContainerInstanceShapes(ctx context.Context, request ListContainerInstanceShapesRequest) (response ListContainerInstanceShapesResponse, err error)
ListContainerInstanceShapes Get a list of shapes for creating Container Instances and their details.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/ListContainerInstanceShapes.go.html to see an example of how to use ListContainerInstanceShapes API. A default retry strategy applies to this operation ListContainerInstanceShapes()
func (client ContainerInstanceClient) ListContainerInstances(ctx context.Context, request ListContainerInstancesRequest) (response ListContainerInstancesResponse, err error)
ListContainerInstances Returns a list of ContainerInstances.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/ListContainerInstances.go.html to see an example of how to use ListContainerInstances API. A default retry strategy applies to this operation ListContainerInstances()
func (client ContainerInstanceClient) ListContainers(ctx context.Context, request ListContainersRequest) (response ListContainersResponse, err error)
ListContainers Return a list of Containers.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/ListContainers.go.html to see an example of how to use ListContainers API. A default retry strategy applies to this operation ListContainers()
func (client ContainerInstanceClient) ListWorkRequestErrors(ctx context.Context, request ListWorkRequestErrorsRequest) (response ListWorkRequestErrorsResponse, err error)
ListWorkRequestErrors Return a (paginated) list of errors for a given work request.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/ListWorkRequestErrors.go.html to see an example of how to use ListWorkRequestErrors API. A default retry strategy applies to this operation ListWorkRequestErrors()
func (client ContainerInstanceClient) ListWorkRequestLogs(ctx context.Context, request ListWorkRequestLogsRequest) (response ListWorkRequestLogsResponse, err error)
ListWorkRequestLogs Return a (paginated) list of logs for a given work request.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/ListWorkRequestLogs.go.html to see an example of how to use ListWorkRequestLogs API. A default retry strategy applies to this operation ListWorkRequestLogs()
func (client ContainerInstanceClient) ListWorkRequests(ctx context.Context, request ListWorkRequestsRequest) (response ListWorkRequestsResponse, err error)
ListWorkRequests Lists the work requests in a compartment.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/ListWorkRequests.go.html to see an example of how to use ListWorkRequests API. A default retry strategy applies to this operation ListWorkRequests()
func (client ContainerInstanceClient) RestartContainerInstance(ctx context.Context, request RestartContainerInstanceRequest) (response RestartContainerInstanceResponse, err error)
RestartContainerInstance Restarts a container instance. When provided, If-Match is checked against ETag values of the container instance.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/RestartContainerInstance.go.html to see an example of how to use RestartContainerInstance API. A default retry strategy applies to this operation RestartContainerInstance()
func (client ContainerInstanceClient) RetrieveLogs(ctx context.Context, request RetrieveLogsRequest) (response RetrieveLogsResponse, err error)
RetrieveLogs Retrieve recent log from a single container by the container ID up to 256KB.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/RetrieveLogs.go.html to see an example of how to use RetrieveLogs API. A default retry strategy applies to this operation RetrieveLogs()
func (client *ContainerInstanceClient) SetRegion(region string)
SetRegion overrides the region of this client.
func (client ContainerInstanceClient) StartContainerInstance(ctx context.Context, request StartContainerInstanceRequest) (response StartContainerInstanceResponse, err error)
StartContainerInstance Starts a container instance if it is "inactive". No effect otherwise. When provided, If-Match is checked against ETag values of the container instance.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/StartContainerInstance.go.html to see an example of how to use StartContainerInstance API. A default retry strategy applies to this operation StartContainerInstance()
func (client ContainerInstanceClient) StopContainerInstance(ctx context.Context, request StopContainerInstanceRequest) (response StopContainerInstanceResponse, err error)
StopContainerInstance Stops a container instance if it is "active". No effect otherwise. When provided, If-Match is checked against ETag values of the container instance.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/StopContainerInstance.go.html to see an example of how to use StopContainerInstance API. A default retry strategy applies to this operation StopContainerInstance()
func (client ContainerInstanceClient) UpdateContainer(ctx context.Context, request UpdateContainerRequest) (response UpdateContainerResponse, err error)
UpdateContainer Update a Container.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/UpdateContainer.go.html to see an example of how to use UpdateContainer API. A default retry strategy applies to this operation UpdateContainer()
func (client ContainerInstanceClient) UpdateContainerInstance(ctx context.Context, request UpdateContainerInstanceRequest) (response UpdateContainerInstanceResponse, err error)
UpdateContainerInstance Updates the ContainerInstance
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/UpdateContainerInstance.go.html to see an example of how to use UpdateContainerInstance API. A default retry strategy applies to this operation UpdateContainerInstance()
ContainerInstanceCollection Results of a containerInstance search. Contains boh ContainerInstanceSummary items and other information, such as metadata.
type ContainerInstanceCollection struct { // List of containerInstances. Items []ContainerInstanceSummary `mandatory:"true" json:"items"` }
func (m ContainerInstanceCollection) String() string
func (m ContainerInstanceCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ContainerInstanceContainer A container on a Container Instance.
type ContainerInstanceContainer struct { // The ID of the Container on this Instance. ContainerId *string `mandatory:"true" json:"containerId"` // Display name for the Container. DisplayName *string `mandatory:"false" json:"displayName"` }
func (m ContainerInstanceContainer) String() string
func (m ContainerInstanceContainer) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ContainerInstanceContainerRestartPolicyEnum Enum with underlying type: string
type ContainerInstanceContainerRestartPolicyEnum string
Set of constants representing the allowable values for ContainerInstanceContainerRestartPolicyEnum
const ( ContainerInstanceContainerRestartPolicyAlways ContainerInstanceContainerRestartPolicyEnum = "ALWAYS" ContainerInstanceContainerRestartPolicyNever ContainerInstanceContainerRestartPolicyEnum = "NEVER" ContainerInstanceContainerRestartPolicyOnFailure ContainerInstanceContainerRestartPolicyEnum = "ON_FAILURE" )
func GetContainerInstanceContainerRestartPolicyEnumValues() []ContainerInstanceContainerRestartPolicyEnum
GetContainerInstanceContainerRestartPolicyEnumValues Enumerates the set of values for ContainerInstanceContainerRestartPolicyEnum
func GetMappingContainerInstanceContainerRestartPolicyEnum(val string) (ContainerInstanceContainerRestartPolicyEnum, bool)
GetMappingContainerInstanceContainerRestartPolicyEnum performs case Insensitive comparison on enum value and return the desired enum
ContainerInstanceLifecycleStateEnum Enum with underlying type: string
type ContainerInstanceLifecycleStateEnum string
Set of constants representing the allowable values for ContainerInstanceLifecycleStateEnum
const ( ContainerInstanceLifecycleStateCreating ContainerInstanceLifecycleStateEnum = "CREATING" ContainerInstanceLifecycleStateUpdating ContainerInstanceLifecycleStateEnum = "UPDATING" ContainerInstanceLifecycleStateActive ContainerInstanceLifecycleStateEnum = "ACTIVE" ContainerInstanceLifecycleStateInactive ContainerInstanceLifecycleStateEnum = "INACTIVE" ContainerInstanceLifecycleStateDeleting ContainerInstanceLifecycleStateEnum = "DELETING" ContainerInstanceLifecycleStateDeleted ContainerInstanceLifecycleStateEnum = "DELETED" ContainerInstanceLifecycleStateFailed ContainerInstanceLifecycleStateEnum = "FAILED" )
func GetContainerInstanceLifecycleStateEnumValues() []ContainerInstanceLifecycleStateEnum
GetContainerInstanceLifecycleStateEnumValues Enumerates the set of values for ContainerInstanceLifecycleStateEnum
func GetMappingContainerInstanceLifecycleStateEnum(val string) (ContainerInstanceLifecycleStateEnum, bool)
GetMappingContainerInstanceLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
ContainerInstanceShapeCollection A collection of Container Instance Shapes.
type ContainerInstanceShapeCollection struct { // List of shapes. Items []ContainerInstanceShapeSummary `mandatory:"true" json:"items"` }
func (m ContainerInstanceShapeCollection) String() string
func (m ContainerInstanceShapeCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ContainerInstanceShapeConfig The shape configuration for a Container Instance. The shape configuration determines the resources allocated to the Instance and it's containers.
type ContainerInstanceShapeConfig struct { // The total number of OCPUs available to the instance. Ocpus *float32 `mandatory:"true" json:"ocpus"` // The total amount of memory available to the instance, in gigabytes. MemoryInGBs *float32 `mandatory:"true" json:"memoryInGBs"` // A short description of the instance's processor (CPU). ProcessorDescription *string `mandatory:"true" json:"processorDescription"` // The networking bandwidth available to the instance, in gigabits per second. NetworkingBandwidthInGbps *float32 `mandatory:"true" json:"networkingBandwidthInGbps"` }
func (m ContainerInstanceShapeConfig) String() string
func (m ContainerInstanceShapeConfig) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ContainerInstanceShapeSummary Details about a shape for a container Instance.
type ContainerInstanceShapeSummary struct { // The name identifying the shape. Name *string `mandatory:"true" json:"name"` // A short description of the Instance's processor (CPU). ProcessorDescription *string `mandatory:"true" json:"processorDescription"` OcpuOptions *ShapeOcpuOptions `mandatory:"false" json:"ocpuOptions"` MemoryOptions *ShapeMemoryOptions `mandatory:"false" json:"memoryOptions"` NetworkingBandwidthOptions *ShapeNetworkingBandwidthOptions `mandatory:"false" json:"networkingBandwidthOptions"` }
func (m ContainerInstanceShapeSummary) String() string
func (m ContainerInstanceShapeSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ContainerInstanceSummary A reduced set of details about a single ContainerInstance returned by list APIs.
type ContainerInstanceSummary struct { // Unique identifier that is immutable on creation Id *string `mandatory:"true" json:"id"` // Display name for the ContainerInstance. Can be renamed. DisplayName *string `mandatory:"true" json:"displayName"` // Compartment Identifier CompartmentId *string `mandatory:"true" json:"compartmentId"` // Availability Domain where the ContainerInstance is running. AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` // The current state of the ContainerInstance. LifecycleState ContainerInstanceLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // The time the the ContainerInstance was created. An RFC3339 formatted datetime string TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The shape of the Container Instance. The shape determines the resources available to the Container Instance. Shape *string `mandatory:"true" json:"shape"` ShapeConfig *ContainerInstanceShapeConfig `mandatory:"true" json:"shapeConfig"` // The number of containers on this Instance ContainerCount *int `mandatory:"true" json:"containerCount"` // Container Restart Policy ContainerRestartPolicy ContainerInstanceContainerRestartPolicyEnum `mandatory:"true" json:"containerRestartPolicy"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. // Example: `{"bar-key": "value"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"foo-namespace": {"bar-key": "value"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` // Usage of system tag keys. These predefined keys are scoped to namespaces. // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` // Fault Domain where the ContainerInstance is running. FaultDomain *string `mandatory:"false" json:"faultDomain"` // A message describing the current state in more detail. For example, can be used to provide // actionable information for a resource in Failed state. LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` // The time the ContainerInstance was updated. An RFC3339 formatted datetime string TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` // Duration in seconds processes within a Container have to gracefully terminate. This applies whenever a Container must be halted, such as when the Container Instance is deleted. Processes will first be sent a termination signal. After this timeout is reached, the processes will be sent a termination signal. GracefulShutdownTimeoutInSeconds *int64 `mandatory:"false" json:"gracefulShutdownTimeoutInSeconds"` // The number of volumes that attached to this Instance VolumeCount *int `mandatory:"false" json:"volumeCount"` }
func (m ContainerInstanceSummary) String() string
func (m ContainerInstanceSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ContainerLifecycleStateEnum Enum with underlying type: string
type ContainerLifecycleStateEnum string
Set of constants representing the allowable values for ContainerLifecycleStateEnum
const ( ContainerLifecycleStateCreating ContainerLifecycleStateEnum = "CREATING" ContainerLifecycleStateUpdating ContainerLifecycleStateEnum = "UPDATING" ContainerLifecycleStateActive ContainerLifecycleStateEnum = "ACTIVE" ContainerLifecycleStateInactive ContainerLifecycleStateEnum = "INACTIVE" ContainerLifecycleStateDeleting ContainerLifecycleStateEnum = "DELETING" ContainerLifecycleStateDeleted ContainerLifecycleStateEnum = "DELETED" ContainerLifecycleStateFailed ContainerLifecycleStateEnum = "FAILED" )
func GetContainerLifecycleStateEnumValues() []ContainerLifecycleStateEnum
GetContainerLifecycleStateEnumValues Enumerates the set of values for ContainerLifecycleStateEnum
func GetMappingContainerLifecycleStateEnum(val string) (ContainerLifecycleStateEnum, bool)
GetMappingContainerLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
ContainerResourceConfig The resource configuration for a Container. The resource configuration determines the guaranteed resources allocated to the container and the maximum allowed resources for a container.
type ContainerResourceConfig struct { // The maximum amount of CPU utilization which may be consumed by the Container's // process. If no value is provided, then the process may consume // all CPU resources on the Instance. // CPU usage is defined in terms of logical CPUs. This means that the // maximum possible value on an E3 ContainerInstance with 1 OCPU is 2.0. VcpusLimit *float32 `mandatory:"false" json:"vcpusLimit"` // The maximum amount of memory which may be consumed by the Container's // process. If no value is provided, then the process // may use all available memory on the Instance. MemoryLimitInGBs *float32 `mandatory:"false" json:"memoryLimitInGBs"` }
func (m ContainerResourceConfig) String() string
func (m ContainerResourceConfig) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ContainerSummary A reduced set of details about a single Container returned by list APIs.
type ContainerSummary struct { // Unique identifier that is immutable on creation Id *string `mandatory:"true" json:"id"` // Display name for the Container. Can be renamed. DisplayName *string `mandatory:"true" json:"displayName"` // Compartment Identifier CompartmentId *string `mandatory:"true" json:"compartmentId"` // Availability Domain where the Container's Instance is running. AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` // The current state of the Container. LifecycleState ContainerLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // The time the the Container was created. An RFC3339 formatted datetime string TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The identifier of the Container Instance on which this container is running. ContainerInstanceId *string `mandatory:"true" json:"containerInstanceId"` // The container image information. Currently only support public docker registry. Can be either image name, // e.g `containerImage`, image name with version, e.g `containerImage:v1` or complete docker image Url e.g // `docker.io/library/containerImage:latest`. // If no registry is provided, will default the registry to public docker hub `docker.io/library`. // The registry used for container image must be reachable over the Container Instance's VNIC. ImageUrl *string `mandatory:"true" json:"imageUrl"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. // Example: `{"bar-key": "value"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"foo-namespace": {"bar-key": "value"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` // Usage of system tag keys. These predefined keys are scoped to namespaces. // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` // Fault Domain where the Container's Instance is running. FaultDomain *string `mandatory:"false" json:"faultDomain"` // A message describing the current state in more detail. For example, can be used to provide // actionable information for a resource in Failed state. LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` // The time the Container was updated. An RFC3339 formatted datetime string TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` ResourceConfig *ContainerResourceConfig `mandatory:"false" json:"resourceConfig"` // Determines if the Container will have access to the Container Instance Resource Principal. // This method utilizes resource principal version 2.2. Please refer to // https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdk_authentication_methods.htm#sdk_authentication_methods_resource_principal // for detailed explanation of how to leverage the exposed resource principal elements. IsResourcePrincipalDisabled *bool `mandatory:"false" json:"isResourcePrincipalDisabled"` }
func (m ContainerSummary) String() string
func (m ContainerSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ContainerTcpHealthCheck Container Health Check with TCP type.
type ContainerTcpHealthCheck struct { // Container health check port. Port *int `mandatory:"true" json:"port"` // Health check name. Name *string `mandatory:"false" json:"name"` // The initial delay in seconds before start checking container health status. InitialDelayInSeconds *int `mandatory:"false" json:"initialDelayInSeconds"` // Number of seconds between two consecutive runs for checking container health. IntervalInSeconds *int `mandatory:"false" json:"intervalInSeconds"` // Number of consecutive failures at which we consider the check failed. FailureThreshold *int `mandatory:"false" json:"failureThreshold"` // Number of consecutive successes at which we consider the check succeeded again after it was in failure state. SuccessThreshold *int `mandatory:"false" json:"successThreshold"` // Length of waiting time in seconds before marking health check failed. TimeoutInSeconds *int `mandatory:"false" json:"timeoutInSeconds"` // A message describing the current status in more details. StatusDetails *string `mandatory:"false" json:"statusDetails"` // Status of container Status ContainerHealthCheckStatusEnum `mandatory:"false" json:"status,omitempty"` // The action will be triggered when the container health check fails. There are two types of action: KILL or NONE. The default // action is KILL. If failure action is KILL, the container will be subject to the container restart policy. FailureAction ContainerHealthCheckFailureActionEnum `mandatory:"false" json:"failureAction,omitempty"` }
func (m ContainerTcpHealthCheck) GetFailureAction() ContainerHealthCheckFailureActionEnum
GetFailureAction returns FailureAction
func (m ContainerTcpHealthCheck) GetFailureThreshold() *int
GetFailureThreshold returns FailureThreshold
func (m ContainerTcpHealthCheck) GetInitialDelayInSeconds() *int
GetInitialDelayInSeconds returns InitialDelayInSeconds
func (m ContainerTcpHealthCheck) GetIntervalInSeconds() *int
GetIntervalInSeconds returns IntervalInSeconds
func (m ContainerTcpHealthCheck) GetName() *string
GetName returns Name
func (m ContainerTcpHealthCheck) GetStatus() ContainerHealthCheckStatusEnum
GetStatus returns Status
func (m ContainerTcpHealthCheck) GetStatusDetails() *string
GetStatusDetails returns StatusDetails
func (m ContainerTcpHealthCheck) GetSuccessThreshold() *int
GetSuccessThreshold returns SuccessThreshold
func (m ContainerTcpHealthCheck) GetTimeoutInSeconds() *int
GetTimeoutInSeconds returns TimeoutInSeconds
func (m ContainerTcpHealthCheck) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m ContainerTcpHealthCheck) String() string
func (m ContainerTcpHealthCheck) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ContainerVnic An interface to a virtual network available to Containers on a Container Instance.
type ContainerVnic struct { // The ID of the Virtual Network Interface Card (VNIC) over which // Containers accessing this network can communicate with the // larger Virtual Client Network. VnicId *string `mandatory:"false" json:"vnicId"` }
func (m ContainerVnic) String() string
func (m ContainerVnic) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ContainerVolume A Volume represents a directory with data that is accessible across multiple containers in a ContainerInstance.
type ContainerVolume interface { // The name of the volume. This has be unique cross single ContainerInstance. GetName() *string }
ContainerVolumeTypeEnum Enum with underlying type: string
type ContainerVolumeTypeEnum string
Set of constants representing the allowable values for ContainerVolumeTypeEnum
const ( ContainerVolumeTypeEmptydir ContainerVolumeTypeEnum = "EMPTYDIR" ContainerVolumeTypeConfigfile ContainerVolumeTypeEnum = "CONFIGFILE" )
func GetContainerVolumeTypeEnumValues() []ContainerVolumeTypeEnum
GetContainerVolumeTypeEnumValues Enumerates the set of values for ContainerVolumeTypeEnum
func GetMappingContainerVolumeTypeEnum(val string) (ContainerVolumeTypeEnum, bool)
GetMappingContainerVolumeTypeEnum performs case Insensitive comparison on enum value and return the desired enum
CreateBasicImagePullSecretDetails A CreateBasicImagePullSecretDetails is a ImagePullSecret which accepts username and password as credentials information.
type CreateBasicImagePullSecretDetails struct { // The registry endpoint of the container image. RegistryEndpoint *string `mandatory:"true" json:"registryEndpoint"` // The username which should be used with the registry for authentication. The value is expected in base64 format. Username *string `mandatory:"true" json:"username"` // The password which should be used with the registry for authentication. The value is expected in base64 format. Password *string `mandatory:"true" json:"password"` }
func (m CreateBasicImagePullSecretDetails) GetRegistryEndpoint() *string
GetRegistryEndpoint returns RegistryEndpoint
func (m CreateBasicImagePullSecretDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m CreateBasicImagePullSecretDetails) String() string
func (m CreateBasicImagePullSecretDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateContainerCommandHealthCheckDetails Container Health Check Command type.
type CreateContainerCommandHealthCheckDetails struct { // The list of strings which will be concatenated to a single command for checking container's status. Command []string `mandatory:"true" json:"command"` // Health check name. Name *string `mandatory:"false" json:"name"` // The initial delay in seconds before start checking container health status. InitialDelayInSeconds *int `mandatory:"false" json:"initialDelayInSeconds"` // Number of seconds between two consecutive runs for checking container health. IntervalInSeconds *int `mandatory:"false" json:"intervalInSeconds"` // Number of consecutive failures at which we consider the check failed. FailureThreshold *int `mandatory:"false" json:"failureThreshold"` // Number of consecutive successes at which we consider the check succeeded again after it was in failure state. SuccessThreshold *int `mandatory:"false" json:"successThreshold"` // Length of waiting time in seconds before marking health check failed. TimeoutInSeconds *int `mandatory:"false" json:"timeoutInSeconds"` // The action will be triggered when the container health check fails. There are two types of action: KILL or NONE. The default // action is KILL. If failure action is KILL, the container will be subject to the container restart policy. FailureAction ContainerHealthCheckFailureActionEnum `mandatory:"false" json:"failureAction,omitempty"` }
func (m CreateContainerCommandHealthCheckDetails) GetFailureAction() ContainerHealthCheckFailureActionEnum
GetFailureAction returns FailureAction
func (m CreateContainerCommandHealthCheckDetails) GetFailureThreshold() *int
GetFailureThreshold returns FailureThreshold
func (m CreateContainerCommandHealthCheckDetails) GetInitialDelayInSeconds() *int
GetInitialDelayInSeconds returns InitialDelayInSeconds
func (m CreateContainerCommandHealthCheckDetails) GetIntervalInSeconds() *int
GetIntervalInSeconds returns IntervalInSeconds
func (m CreateContainerCommandHealthCheckDetails) GetName() *string
GetName returns Name
func (m CreateContainerCommandHealthCheckDetails) GetSuccessThreshold() *int
GetSuccessThreshold returns SuccessThreshold
func (m CreateContainerCommandHealthCheckDetails) GetTimeoutInSeconds() *int
GetTimeoutInSeconds returns TimeoutInSeconds
func (m CreateContainerCommandHealthCheckDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m CreateContainerCommandHealthCheckDetails) String() string
func (m CreateContainerCommandHealthCheckDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateContainerConfigFileVolumeDetails The configuration files to pass to the container using volume mounts.
type CreateContainerConfigFileVolumeDetails struct { // The name of the volume. This has be unique cross single ContainerInstance. Name *string `mandatory:"true" json:"name"` // Contains key value pairs which can be mounted as individual files inside the container. The value needs to be base64 encoded. It is decoded to plain text before the mount. Configs []ContainerConfigFile `mandatory:"false" json:"configs"` }
func (m CreateContainerConfigFileVolumeDetails) GetName() *string
GetName returns Name
func (m CreateContainerConfigFileVolumeDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m CreateContainerConfigFileVolumeDetails) String() string
func (m CreateContainerConfigFileVolumeDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateContainerDetails Information to create a new Container within a ContainerInstance. The Container created by this call will contain both the tags specified in this object as well as any tags specified in the parent ContainerInstance object. The Container will be created with the same `compartmentId`, `availabilityDomain`, and `faultDomain` as the parent ContainerInstance object.
type CreateContainerDetails struct { // The container image information. Currently only support public docker registry. Can be either image name, // e.g `containerImage`, image name with version, e.g `containerImage:v1` or complete docker image Url e.g // `docker.io/library/containerImage:latest`. // If no registry is provided, will default the registry to public docker hub `docker.io/library`. // The registry used for container image must be reachable over the Container Instance's VNIC. ImageUrl *string `mandatory:"true" json:"imageUrl"` // Display name for the Container. There are no guarantees of uniqueness // for this name. If none is provided, it will be calculated automatically. DisplayName *string `mandatory:"false" json:"displayName"` // This command will override the container's entrypoint process. // If not specified, the existing entrypoint process defined in the image will be used. Command []string `mandatory:"false" json:"command"` // A list of string arguments for a container's entrypoint process. // Many containers use an entrypoint process pointing to a shell, // for example /bin/bash. For such containers, this argument list // can also be used to specify the main command in the container process. // All arguments together must be 64KB or smaller. Arguments []string `mandatory:"false" json:"arguments"` // A list of additional capabilities for the container. AdditionalCapabilities []ContainerCapabilityEnum `mandatory:"false" json:"additionalCapabilities,omitempty"` // The working directory within the Container's filesystem for // the Container process. If none is set, the Container will run in the // working directory set by the container image. WorkingDirectory *string `mandatory:"false" json:"workingDirectory"` // A map of additional environment variables to set in the environment of the container's // entrypoint process. These variables are in addition to any variables already defined // in the container's image. // All environment variables together, name and values, must be 64KB or smaller. EnvironmentVariables map[string]string `mandatory:"false" json:"environmentVariables"` // List of the volume mounts. VolumeMounts []CreateVolumeMountDetails `mandatory:"false" json:"volumeMounts"` // Determines if the Container will have access to the Container Instance Resource Principal. // This method utilizes resource principal version 2.2. Please refer to // https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdk_authentication_methods.htm#sdk_authentication_methods_resource_principal // for detailed explanation of how to leverage the exposed resource principal elements. IsResourcePrincipalDisabled *bool `mandatory:"false" json:"isResourcePrincipalDisabled"` ResourceConfig *CreateContainerResourceConfigDetails `mandatory:"false" json:"resourceConfig"` // list of container health checks to check container status and take appropriate action if container status is failed. // There are three types of health checks that we currently support HTTP, TCP, and Command. HealthChecks []CreateContainerHealthCheckDetails `mandatory:"false" json:"healthChecks"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. // Example: `{"bar-key": "value"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"foo-namespace": {"bar-key": "value"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` }
func (m CreateContainerDetails) String() string
func (m *CreateContainerDetails) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
func (m CreateContainerDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateContainerDnsConfigDetails Allow customers to define DNS settings for containers. If this is not provided, the containers will use the default DNS settings of the subnet.
type CreateContainerDnsConfigDetails struct { // IP address of a name server that the resolver should query, either an IPv4 address // (in dot notation), or an IPv6 address in colon (and possibly dot) notation. If null, we will use // nameservers from subnet dhcpDnsOptions. Nameservers []string `mandatory:"false" json:"nameservers"` // Search list for host-name lookup. If null, we will use searches from subnet dhcpDnsOptios. Searches []string `mandatory:"false" json:"searches"` // Options allows certain internal resolver variables to be modified. Options are a list of objects in // https://man7.org/linux/man-pages/man5/resolv.conf.5.html. Examples: ["ndots:n", "edns0"] Options []string `mandatory:"false" json:"options"` }
func (m CreateContainerDnsConfigDetails) String() string
func (m CreateContainerDnsConfigDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateContainerEmptyDirVolumeDetails The empty directory for container instance
type CreateContainerEmptyDirVolumeDetails struct { // The name of the volume. This has be unique cross single ContainerInstance. Name *string `mandatory:"true" json:"name"` // Volume type that we are using for empty dir where it could be either File Storage or Memory BackingStore ContainerEmptyDirVolumeBackingStoreEnum `mandatory:"false" json:"backingStore,omitempty"` }
func (m CreateContainerEmptyDirVolumeDetails) GetName() *string
GetName returns Name
func (m CreateContainerEmptyDirVolumeDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m CreateContainerEmptyDirVolumeDetails) String() string
func (m CreateContainerEmptyDirVolumeDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateContainerHealthCheckDetails Container Health Check is using for checking container status and taking appropriate actions on behalf of customers.
type CreateContainerHealthCheckDetails interface { // Health check name. GetName() *string // The initial delay in seconds before start checking container health status. GetInitialDelayInSeconds() *int // Number of seconds between two consecutive runs for checking container health. GetIntervalInSeconds() *int // Number of consecutive failures at which we consider the check failed. GetFailureThreshold() *int // Number of consecutive successes at which we consider the check succeeded again after it was in failure state. GetSuccessThreshold() *int // Length of waiting time in seconds before marking health check failed. GetTimeoutInSeconds() *int // The action will be triggered when the container health check fails. There are two types of action: KILL or NONE. The default // action is KILL. If failure action is KILL, the container will be subject to the container restart policy. GetFailureAction() ContainerHealthCheckFailureActionEnum }
CreateContainerHttpHealthCheckDetails Container Health Check HTTP type.
type CreateContainerHttpHealthCheckDetails struct { // Container health check Http's path. Path *string `mandatory:"true" json:"path"` // Container health check Http's port. Port *int `mandatory:"true" json:"port"` // Health check name. Name *string `mandatory:"false" json:"name"` // The initial delay in seconds before start checking container health status. InitialDelayInSeconds *int `mandatory:"false" json:"initialDelayInSeconds"` // Number of seconds between two consecutive runs for checking container health. IntervalInSeconds *int `mandatory:"false" json:"intervalInSeconds"` // Number of consecutive failures at which we consider the check failed. FailureThreshold *int `mandatory:"false" json:"failureThreshold"` // Number of consecutive successes at which we consider the check succeeded again after it was in failure state. SuccessThreshold *int `mandatory:"false" json:"successThreshold"` // Length of waiting time in seconds before marking health check failed. TimeoutInSeconds *int `mandatory:"false" json:"timeoutInSeconds"` // Container health check Http's headers. Headers []HealthCheckHttpHeader `mandatory:"false" json:"headers"` // The action will be triggered when the container health check fails. There are two types of action: KILL or NONE. The default // action is KILL. If failure action is KILL, the container will be subject to the container restart policy. FailureAction ContainerHealthCheckFailureActionEnum `mandatory:"false" json:"failureAction,omitempty"` }
func (m CreateContainerHttpHealthCheckDetails) GetFailureAction() ContainerHealthCheckFailureActionEnum
GetFailureAction returns FailureAction
func (m CreateContainerHttpHealthCheckDetails) GetFailureThreshold() *int
GetFailureThreshold returns FailureThreshold
func (m CreateContainerHttpHealthCheckDetails) GetInitialDelayInSeconds() *int
GetInitialDelayInSeconds returns InitialDelayInSeconds
func (m CreateContainerHttpHealthCheckDetails) GetIntervalInSeconds() *int
GetIntervalInSeconds returns IntervalInSeconds
func (m CreateContainerHttpHealthCheckDetails) GetName() *string
GetName returns Name
func (m CreateContainerHttpHealthCheckDetails) GetSuccessThreshold() *int
GetSuccessThreshold returns SuccessThreshold
func (m CreateContainerHttpHealthCheckDetails) GetTimeoutInSeconds() *int
GetTimeoutInSeconds returns TimeoutInSeconds
func (m CreateContainerHttpHealthCheckDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m CreateContainerHttpHealthCheckDetails) String() string
func (m CreateContainerHttpHealthCheckDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateContainerInstanceDetails The information about new ContainerInstance.
type CreateContainerInstanceDetails struct { // Compartment Identifier CompartmentId *string `mandatory:"true" json:"compartmentId"` // Availability Domain where the ContainerInstance should be created. AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` // The shape of the Container Instance. The shape determines the resources available to the Container Instance. Shape *string `mandatory:"true" json:"shape"` ShapeConfig *CreateContainerInstanceShapeConfigDetails `mandatory:"true" json:"shapeConfig"` // The Containers to create on this Instance. Containers []CreateContainerDetails `mandatory:"true" json:"containers"` // The networks to make available to containers on this Instance. Vnics []CreateContainerVnicDetails `mandatory:"true" json:"vnics"` // Human-readable name for the ContainerInstance. If none is provided, // OCI will select one for you. DisplayName *string `mandatory:"false" json:"displayName"` // Fault Domain where the ContainerInstance should run. FaultDomain *string `mandatory:"false" json:"faultDomain"` // A Volume represents a directory with data that is accessible across multiple containers in a // ContainerInstance. // Up to 32 volumes can be attached to single container instance. Volumes []CreateContainerVolumeDetails `mandatory:"false" json:"volumes"` DnsConfig *CreateContainerDnsConfigDetails `mandatory:"false" json:"dnsConfig"` // Duration in seconds processes within a Container have to gracefully terminate. This applies whenever a Container must be halted, such as when the Container Instance is deleted. Processes will first be sent a termination signal. After this timeout is reached, the processes will be sent a termination signal. GracefulShutdownTimeoutInSeconds *int64 `mandatory:"false" json:"gracefulShutdownTimeoutInSeconds"` // The image pull secrets for accessing private registry to pull images for containers ImagePullSecrets []CreateImagePullSecretDetails `mandatory:"false" json:"imagePullSecrets"` // Container restart policy ContainerRestartPolicy ContainerInstanceContainerRestartPolicyEnum `mandatory:"false" json:"containerRestartPolicy,omitempty"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. // Example: `{"bar-key": "value"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"foo-namespace": {"bar-key": "value"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` }
func (m CreateContainerInstanceDetails) String() string
func (m *CreateContainerInstanceDetails) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
func (m CreateContainerInstanceDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateContainerInstanceRequest wrapper for the CreateContainerInstance operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/CreateContainerInstance.go.html to see an example of how to use CreateContainerInstanceRequest.
type CreateContainerInstanceRequest struct { // Details for the new ContainerInstance. CreateContainerInstanceDetails `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 // might be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // The client request ID for tracing. 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 CreateContainerInstanceRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request CreateContainerInstanceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateContainerInstanceRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateContainerInstanceRequest) String() string
func (request CreateContainerInstanceRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateContainerInstanceResponse wrapper for the CreateContainerInstance operation
type CreateContainerInstanceResponse struct { // The underlying http response RawResponse *http.Response // The ContainerInstance instance ContainerInstance `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response CreateContainerInstanceResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateContainerInstanceResponse) String() string
CreateContainerInstanceShapeConfigDetails The size and amount of resources available to the Container Instance.
type CreateContainerInstanceShapeConfigDetails struct { // The total number of OCPUs available to the instance. Ocpus *float32 `mandatory:"true" json:"ocpus"` // The total amount of memory available to the instance, in gigabytes. MemoryInGBs *float32 `mandatory:"false" json:"memoryInGBs"` }
func (m CreateContainerInstanceShapeConfigDetails) String() string
func (m CreateContainerInstanceShapeConfigDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateContainerResourceConfigDetails The size and amount of resources available to the Container.
type CreateContainerResourceConfigDetails struct { // The maximum amount of CPU utilization which may be consumed by the Container's process. // If no value is provided, then the process may consume all CPU resources on the Instance. // CPU usage is defined in terms of logical CPUs. This means that the maximum possible value on // an E3 ContainerInstance with 1 OCPU is 2.0. // A Container with that vcpusLimit could consume up to 100% of the CPU resources available on the Instance. // Values may be fractional. A value of "1.5" means that the Container // may consume at most the equivalent of 1 and a half logical CPUs worth of CPU capacity VcpusLimit *float32 `mandatory:"false" json:"vcpusLimit"` // The maximum amount of memory which may be consumed by the Container's process. // If no value is provided, then the process may use all available memory on the Instance. MemoryLimitInGBs *float32 `mandatory:"false" json:"memoryLimitInGBs"` }
func (m CreateContainerResourceConfigDetails) String() string
func (m CreateContainerResourceConfigDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateContainerTcpHealthCheckDetails Container Health Check TCP type.
type CreateContainerTcpHealthCheckDetails struct { // Container health check port. Port *int `mandatory:"true" json:"port"` // Health check name. Name *string `mandatory:"false" json:"name"` // The initial delay in seconds before start checking container health status. InitialDelayInSeconds *int `mandatory:"false" json:"initialDelayInSeconds"` // Number of seconds between two consecutive runs for checking container health. IntervalInSeconds *int `mandatory:"false" json:"intervalInSeconds"` // Number of consecutive failures at which we consider the check failed. FailureThreshold *int `mandatory:"false" json:"failureThreshold"` // Number of consecutive successes at which we consider the check succeeded again after it was in failure state. SuccessThreshold *int `mandatory:"false" json:"successThreshold"` // Length of waiting time in seconds before marking health check failed. TimeoutInSeconds *int `mandatory:"false" json:"timeoutInSeconds"` // The action will be triggered when the container health check fails. There are two types of action: KILL or NONE. The default // action is KILL. If failure action is KILL, the container will be subject to the container restart policy. FailureAction ContainerHealthCheckFailureActionEnum `mandatory:"false" json:"failureAction,omitempty"` }
func (m CreateContainerTcpHealthCheckDetails) GetFailureAction() ContainerHealthCheckFailureActionEnum
GetFailureAction returns FailureAction
func (m CreateContainerTcpHealthCheckDetails) GetFailureThreshold() *int
GetFailureThreshold returns FailureThreshold
func (m CreateContainerTcpHealthCheckDetails) GetInitialDelayInSeconds() *int
GetInitialDelayInSeconds returns InitialDelayInSeconds
func (m CreateContainerTcpHealthCheckDetails) GetIntervalInSeconds() *int
GetIntervalInSeconds returns IntervalInSeconds
func (m CreateContainerTcpHealthCheckDetails) GetName() *string
GetName returns Name
func (m CreateContainerTcpHealthCheckDetails) GetSuccessThreshold() *int
GetSuccessThreshold returns SuccessThreshold
func (m CreateContainerTcpHealthCheckDetails) GetTimeoutInSeconds() *int
GetTimeoutInSeconds returns TimeoutInSeconds
func (m CreateContainerTcpHealthCheckDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m CreateContainerTcpHealthCheckDetails) String() string
func (m CreateContainerTcpHealthCheckDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateContainerVnicDetails Create a Virtual Network Interface Card (VNIC) which gives Containers on this Container Instance access to a Virtual Client Network (VCN). This VNIC will be created in the same compartment as the specified subnet on behalf of the customer. The VNIC created by this call will contain both the tags specified in this object as well as any tags specified in the parent ContainerInstance object.
type CreateContainerVnicDetails struct { // The OCID of the subnet to create the VNIC in. SubnetId *string `mandatory:"true" json:"subnetId"` // A user-friendly name for the VNIC. Does not have to be unique. // Avoid entering confidential information. DisplayName *string `mandatory:"false" json:"displayName"` // The hostname for the VNIC's primary private IP. HostnameLabel *string `mandatory:"false" json:"hostnameLabel"` // Whether the VNIC should be assigned a public IP address. IsPublicIpAssigned *bool `mandatory:"false" json:"isPublicIpAssigned"` // Whether the source/destination check is disabled on the VNIC. SkipSourceDestCheck *bool `mandatory:"false" json:"skipSourceDestCheck"` // A list of the OCIDs of the network security groups (NSGs) to add the VNIC to. NsgIds []string `mandatory:"false" json:"nsgIds"` // A private IP address of your choice to assign to the VNIC. Must be an // available IP address within the subnet's CIDR. PrivateIp *string `mandatory:"false" json:"privateIp"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. // Example: `{"bar-key": "value"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"foo-namespace": {"bar-key": "value"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` }
func (m CreateContainerVnicDetails) String() string
func (m CreateContainerVnicDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateContainerVolumeDetails A Volume represents a directory with data that is accessible across multiple containers in a ContainerInstance.
type CreateContainerVolumeDetails interface { // The name of the volume. This has be unique cross single ContainerInstance. GetName() *string }
CreateImagePullSecretDetails The image pull secrets for accessing private registry to pull images for containers
type CreateImagePullSecretDetails interface { // The registry endpoint of the container image. GetRegistryEndpoint() *string }
CreateImagePullSecretDetailsSecretTypeEnum Enum with underlying type: string
type CreateImagePullSecretDetailsSecretTypeEnum string
Set of constants representing the allowable values for CreateImagePullSecretDetailsSecretTypeEnum
const ( CreateImagePullSecretDetailsSecretTypeBasic CreateImagePullSecretDetailsSecretTypeEnum = "BASIC" CreateImagePullSecretDetailsSecretTypeVault CreateImagePullSecretDetailsSecretTypeEnum = "VAULT" )
func GetCreateImagePullSecretDetailsSecretTypeEnumValues() []CreateImagePullSecretDetailsSecretTypeEnum
GetCreateImagePullSecretDetailsSecretTypeEnumValues Enumerates the set of values for CreateImagePullSecretDetailsSecretTypeEnum
func GetMappingCreateImagePullSecretDetailsSecretTypeEnum(val string) (CreateImagePullSecretDetailsSecretTypeEnum, bool)
GetMappingCreateImagePullSecretDetailsSecretTypeEnum performs case Insensitive comparison on enum value and return the desired enum
CreateVaultImagePullSecretDetails A CreateVaultImagePullSecretDetails is a ImagePullSecret which accepts secretId as credentials information. **Sample Format for username and password in Vault Secret** “` {
"username": "xxxxxxxxxx", "password": "xxxxxxxxxx"
} “`
type CreateVaultImagePullSecretDetails struct { // The registry endpoint of the container image. RegistryEndpoint *string `mandatory:"true" json:"registryEndpoint"` // The OCID of the secret for registry credentials. SecretId *string `mandatory:"true" json:"secretId"` }
func (m CreateVaultImagePullSecretDetails) GetRegistryEndpoint() *string
GetRegistryEndpoint returns RegistryEndpoint
func (m CreateVaultImagePullSecretDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m CreateVaultImagePullSecretDetails) String() string
func (m CreateVaultImagePullSecretDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateVolumeMountDetails Define the mapping from volume to a mount path in container.
type CreateVolumeMountDetails struct { // mountPath describes the volume access path. MountPath *string `mandatory:"true" json:"mountPath"` // The name of the volume. VolumeName *string `mandatory:"true" json:"volumeName"` // specifies a sub-path inside the referenced volume instead of its root SubPath *string `mandatory:"false" json:"subPath"` // Whether the volume was mounted in read-only mode. Defaults to false if not specified. IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` // If there is more than 1 partitions in the volume, this is the number of partition which be referenced. // Here is a example: // Number Start End Size File system Name Flags // 1 1049kB 106MB 105MB fat16 EFI System Partition boot, esp // 2 106MB 1180MB 1074MB xfs // 3 1180MB 50.0GB 48.8GB lvm Partition *int `mandatory:"false" json:"partition"` }
func (m CreateVolumeMountDetails) String() string
func (m CreateVolumeMountDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DeleteContainerInstanceRequest wrapper for the DeleteContainerInstance operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/DeleteContainerInstance.go.html to see an example of how to use DeleteContainerInstanceRequest.
type DeleteContainerInstanceRequest struct { // The system-generated unique identifier for the ContainerInstance. ContainerInstanceId *string `mandatory:"true" contributesTo:"path" name:"containerInstanceId"` // 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"` // The client request ID for tracing. 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 DeleteContainerInstanceRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DeleteContainerInstanceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeleteContainerInstanceRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteContainerInstanceRequest) String() string
func (request DeleteContainerInstanceRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DeleteContainerInstanceResponse wrapper for the DeleteContainerInstance operation
type DeleteContainerInstanceResponse struct { // The underlying http response RawResponse *http.Response // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response DeleteContainerInstanceResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeleteContainerInstanceResponse) String() string
GetContainerInstanceRequest wrapper for the GetContainerInstance operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/GetContainerInstance.go.html to see an example of how to use GetContainerInstanceRequest.
type GetContainerInstanceRequest struct { // The system-generated unique identifier for the ContainerInstance. ContainerInstanceId *string `mandatory:"true" contributesTo:"path" name:"containerInstanceId"` // The client request ID for tracing. 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 GetContainerInstanceRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetContainerInstanceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetContainerInstanceRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetContainerInstanceRequest) String() string
func (request GetContainerInstanceRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetContainerInstanceResponse wrapper for the GetContainerInstance operation
type GetContainerInstanceResponse struct { // The underlying http response RawResponse *http.Response // The ContainerInstance instance ContainerInstance `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 GetContainerInstanceResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetContainerInstanceResponse) String() string
GetContainerRequest wrapper for the GetContainer operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/GetContainer.go.html to see an example of how to use GetContainerRequest.
type GetContainerRequest struct { // The unique identifier for the Container. ContainerId *string `mandatory:"true" contributesTo:"path" name:"containerId"` // The client request ID for tracing. 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 GetContainerRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetContainerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetContainerRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetContainerRequest) String() string
func (request GetContainerRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetContainerResponse wrapper for the GetContainer operation
type GetContainerResponse struct { // The underlying http response RawResponse *http.Response // The Container instance Container `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 GetContainerResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetContainerResponse) String() string
GetWorkRequestRequest wrapper for the GetWorkRequest operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/GetWorkRequest.go.html to see an example of how to use GetWorkRequestRequest.
type GetWorkRequestRequest struct { // The ID of the asynchronous request. WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` // The client request ID for tracing. 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 GetWorkRequestRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetWorkRequestRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetWorkRequestRequest) String() string
func (request GetWorkRequestRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetWorkRequestResponse wrapper for the GetWorkRequest operation
type GetWorkRequestResponse struct { // The underlying http response RawResponse *http.Response // The WorkRequest instance WorkRequest `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // A decimal number representing the number of seconds the client should wait before polling this endpoint again. RetryAfter *int `presentIn:"header" name:"retry-after"` }
func (response GetWorkRequestResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetWorkRequestResponse) String() string
HealthCheckHttpHeader Container Http headers for Http health check.
type HealthCheckHttpHeader struct { // Container Http header Key. Name *string `mandatory:"true" json:"name"` // Container Http header value. Value *string `mandatory:"true" json:"value"` }
func (m HealthCheckHttpHeader) String() string
func (m HealthCheckHttpHeader) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ImagePullSecret The image pull secrets for accessing private registry to pull images for containers
type ImagePullSecret interface { // The registry endpoint of the container image. GetRegistryEndpoint() *string }
ImagePullSecretSecretTypeEnum Enum with underlying type: string
type ImagePullSecretSecretTypeEnum string
Set of constants representing the allowable values for ImagePullSecretSecretTypeEnum
const ( ImagePullSecretSecretTypeBasic ImagePullSecretSecretTypeEnum = "BASIC" ImagePullSecretSecretTypeVault ImagePullSecretSecretTypeEnum = "VAULT" )
func GetImagePullSecretSecretTypeEnumValues() []ImagePullSecretSecretTypeEnum
GetImagePullSecretSecretTypeEnumValues Enumerates the set of values for ImagePullSecretSecretTypeEnum
func GetMappingImagePullSecretSecretTypeEnum(val string) (ImagePullSecretSecretTypeEnum, bool)
GetMappingImagePullSecretSecretTypeEnum performs case Insensitive comparison on enum value and return the desired enum
ListContainerInstanceShapesRequest wrapper for the ListContainerInstanceShapes operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/ListContainerInstanceShapes.go.html to see an example of how to use ListContainerInstanceShapesRequest.
type ListContainerInstanceShapesRequest struct { // The ID of the compartment in which to list resources. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The name of the availability domain. // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` // The maximum number of items to return. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The client request ID for tracing. 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 ListContainerInstanceShapesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListContainerInstanceShapesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListContainerInstanceShapesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListContainerInstanceShapesRequest) String() string
func (request ListContainerInstanceShapesRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListContainerInstanceShapesResponse wrapper for the ListContainerInstanceShapes operation
type ListContainerInstanceShapesResponse struct { // The underlying http response RawResponse *http.Response // A list of ContainerInstanceShapeCollection instances ContainerInstanceShapeCollection `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response ListContainerInstanceShapesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListContainerInstanceShapesResponse) String() string
ListContainerInstancesRequest wrapper for the ListContainerInstances operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/ListContainerInstances.go.html to see an example of how to use ListContainerInstancesRequest.
type ListContainerInstancesRequest struct { // The ID of the compartment in which to list resources. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // A filter to return only resources whose lifecycleState matches the given lifecycleState. LifecycleState ContainerInstanceLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` // A filter to return only resources that match the entire display name given. DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` // The name of the availability domain. // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` // The maximum number of items to return. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The sort order to use, either 'asc' or 'desc'. SortOrder ListContainerInstancesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. SortBy ListContainerInstancesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListContainerInstancesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListContainerInstancesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListContainerInstancesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListContainerInstancesRequest) String() string
func (request ListContainerInstancesRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListContainerInstancesResponse wrapper for the ListContainerInstances operation
type ListContainerInstancesResponse struct { // The underlying http response RawResponse *http.Response // A list of ContainerInstanceCollection instances ContainerInstanceCollection `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response ListContainerInstancesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListContainerInstancesResponse) String() string
ListContainerInstancesSortByEnum Enum with underlying type: string
type ListContainerInstancesSortByEnum string
Set of constants representing the allowable values for ListContainerInstancesSortByEnum
const ( ListContainerInstancesSortByTimecreated ListContainerInstancesSortByEnum = "timeCreated" ListContainerInstancesSortByDisplayname ListContainerInstancesSortByEnum = "displayName" )
func GetListContainerInstancesSortByEnumValues() []ListContainerInstancesSortByEnum
GetListContainerInstancesSortByEnumValues Enumerates the set of values for ListContainerInstancesSortByEnum
func GetMappingListContainerInstancesSortByEnum(val string) (ListContainerInstancesSortByEnum, bool)
GetMappingListContainerInstancesSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListContainerInstancesSortOrderEnum Enum with underlying type: string
type ListContainerInstancesSortOrderEnum string
Set of constants representing the allowable values for ListContainerInstancesSortOrderEnum
const ( ListContainerInstancesSortOrderAsc ListContainerInstancesSortOrderEnum = "ASC" ListContainerInstancesSortOrderDesc ListContainerInstancesSortOrderEnum = "DESC" )
func GetListContainerInstancesSortOrderEnumValues() []ListContainerInstancesSortOrderEnum
GetListContainerInstancesSortOrderEnumValues Enumerates the set of values for ListContainerInstancesSortOrderEnum
func GetMappingListContainerInstancesSortOrderEnum(val string) (ListContainerInstancesSortOrderEnum, bool)
GetMappingListContainerInstancesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListContainersRequest wrapper for the ListContainers operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/ListContainers.go.html to see an example of how to use ListContainersRequest.
type ListContainersRequest struct { // The ID of the compartment in which to list resources. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // A filter to return only resources whose lifecycleState matches the given lifecycleState. LifecycleState ContainerLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` // A filter to return only resources that match the entire display name given. DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` // unique ContainerInstance identifier ContainerInstanceId *string `mandatory:"false" contributesTo:"query" name:"containerInstanceId"` // The name of the availability domain. // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` // The maximum number of items to return. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The sort order to use, either 'asc' or 'desc'. SortOrder ListContainersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. SortBy ListContainersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListContainersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListContainersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListContainersRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListContainersRequest) String() string
func (request ListContainersRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListContainersResponse wrapper for the ListContainers operation
type ListContainersResponse struct { // The underlying http response RawResponse *http.Response // A list of ContainerCollection instances ContainerCollection `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response ListContainersResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListContainersResponse) String() string
ListContainersSortByEnum Enum with underlying type: string
type ListContainersSortByEnum string
Set of constants representing the allowable values for ListContainersSortByEnum
const ( ListContainersSortByTimecreated ListContainersSortByEnum = "timeCreated" ListContainersSortByDisplayname ListContainersSortByEnum = "displayName" )
func GetListContainersSortByEnumValues() []ListContainersSortByEnum
GetListContainersSortByEnumValues Enumerates the set of values for ListContainersSortByEnum
func GetMappingListContainersSortByEnum(val string) (ListContainersSortByEnum, bool)
GetMappingListContainersSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListContainersSortOrderEnum Enum with underlying type: string
type ListContainersSortOrderEnum string
Set of constants representing the allowable values for ListContainersSortOrderEnum
const ( ListContainersSortOrderAsc ListContainersSortOrderEnum = "ASC" ListContainersSortOrderDesc ListContainersSortOrderEnum = "DESC" )
func GetListContainersSortOrderEnumValues() []ListContainersSortOrderEnum
GetListContainersSortOrderEnumValues Enumerates the set of values for ListContainersSortOrderEnum
func GetMappingListContainersSortOrderEnum(val string) (ListContainersSortOrderEnum, bool)
GetMappingListContainersSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListWorkRequestErrorsRequest wrapper for the ListWorkRequestErrors operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/ListWorkRequestErrors.go.html to see an example of how to use ListWorkRequestErrorsRequest.
type ListWorkRequestErrorsRequest struct { // The ID of the asynchronous request. WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The maximum number of items to return. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListWorkRequestErrorsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListWorkRequestErrorsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListWorkRequestErrorsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListWorkRequestErrorsRequest) String() string
func (request ListWorkRequestErrorsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListWorkRequestErrorsResponse wrapper for the ListWorkRequestErrors operation
type ListWorkRequestErrorsResponse struct { // The underlying http response RawResponse *http.Response // A list of WorkRequestErrorCollection instances WorkRequestErrorCollection `presentIn:"body"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ListWorkRequestErrorsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListWorkRequestErrorsResponse) String() string
ListWorkRequestLogsRequest wrapper for the ListWorkRequestLogs operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/ListWorkRequestLogs.go.html to see an example of how to use ListWorkRequestLogsRequest.
type ListWorkRequestLogsRequest struct { // The ID of the asynchronous request. WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The maximum number of items to return. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListWorkRequestLogsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListWorkRequestLogsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListWorkRequestLogsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListWorkRequestLogsRequest) String() string
func (request ListWorkRequestLogsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListWorkRequestLogsResponse wrapper for the ListWorkRequestLogs operation
type ListWorkRequestLogsResponse struct { // The underlying http response RawResponse *http.Response // A list of WorkRequestLogEntryCollection instances WorkRequestLogEntryCollection `presentIn:"body"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ListWorkRequestLogsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListWorkRequestLogsResponse) String() string
ListWorkRequestsRequest wrapper for the ListWorkRequests operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/ListWorkRequests.go.html to see an example of how to use ListWorkRequestsRequest.
type ListWorkRequestsRequest struct { // The ID of the compartment in which to list resources. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The ID of the asynchronous work request. WorkRequestId *string `mandatory:"false" contributesTo:"query" name:"workRequestId"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The maximum number of items to return. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListWorkRequestsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListWorkRequestsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListWorkRequestsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListWorkRequestsRequest) String() string
func (request ListWorkRequestsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListWorkRequestsResponse wrapper for the ListWorkRequests operation
type ListWorkRequestsResponse struct { // The underlying http response RawResponse *http.Response // A list of WorkRequestSummaryCollection instances WorkRequestSummaryCollection `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response ListWorkRequestsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListWorkRequestsResponse) String() string
OperationStatusEnum Enum with underlying type: string
type OperationStatusEnum string
Set of constants representing the allowable values for OperationStatusEnum
const ( OperationStatusAccepted OperationStatusEnum = "ACCEPTED" OperationStatusInProgress OperationStatusEnum = "IN_PROGRESS" OperationStatusFailed OperationStatusEnum = "FAILED" OperationStatusSucceeded OperationStatusEnum = "SUCCEEDED" OperationStatusCanceling OperationStatusEnum = "CANCELING" OperationStatusCanceled OperationStatusEnum = "CANCELED" )
func GetMappingOperationStatusEnum(val string) (OperationStatusEnum, bool)
GetMappingOperationStatusEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOperationStatusEnumValues() []OperationStatusEnum
GetOperationStatusEnumValues Enumerates the set of values for OperationStatusEnum
OperationTypeEnum Enum with underlying type: string
type OperationTypeEnum string
Set of constants representing the allowable values for OperationTypeEnum
const ( OperationTypeCreateContainerInstance OperationTypeEnum = "CREATE_CONTAINER_INSTANCE" OperationTypeUpdateContainerInstance OperationTypeEnum = "UPDATE_CONTAINER_INSTANCE" OperationTypeDeleteContainerInstance OperationTypeEnum = "DELETE_CONTAINER_INSTANCE" OperationTypeMoveContainerInstance OperationTypeEnum = "MOVE_CONTAINER_INSTANCE" OperationTypeStartContainerInstance OperationTypeEnum = "START_CONTAINER_INSTANCE" OperationTypeStopContainerInstance OperationTypeEnum = "STOP_CONTAINER_INSTANCE" OperationTypeRestartContainerInstance OperationTypeEnum = "RESTART_CONTAINER_INSTANCE" OperationTypeUpdateContainer OperationTypeEnum = "UPDATE_CONTAINER" )
func GetMappingOperationTypeEnum(val string) (OperationTypeEnum, bool)
GetMappingOperationTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOperationTypeEnumValues() []OperationTypeEnum
GetOperationTypeEnumValues Enumerates the set of values for OperationTypeEnum
RestartContainerInstanceRequest wrapper for the RestartContainerInstance operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/RestartContainerInstance.go.html to see an example of how to use RestartContainerInstanceRequest.
type RestartContainerInstanceRequest struct { // The system-generated unique identifier for the ContainerInstance. ContainerInstanceId *string `mandatory:"true" contributesTo:"path" name:"containerInstanceId"` // 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"` // The client request ID for tracing. 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 RestartContainerInstanceRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request RestartContainerInstanceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request RestartContainerInstanceRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request RestartContainerInstanceRequest) String() string
func (request RestartContainerInstanceRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
RestartContainerInstanceResponse wrapper for the RestartContainerInstance operation
type RestartContainerInstanceResponse struct { // The underlying http response RawResponse *http.Response // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response RestartContainerInstanceResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response RestartContainerInstanceResponse) String() string
RetrieveLogsRequest wrapper for the RetrieveLogs operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/RetrieveLogs.go.html to see an example of how to use RetrieveLogsRequest.
type RetrieveLogsRequest struct { // The unique identifier for the Container. ContainerId *string `mandatory:"true" contributesTo:"path" name:"containerId"` // The client request ID for tracing. 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 RetrieveLogsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request RetrieveLogsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request RetrieveLogsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request RetrieveLogsRequest) String() string
func (request RetrieveLogsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
RetrieveLogsResponse wrapper for the RetrieveLogs operation
type RetrieveLogsResponse struct { // The underlying http response RawResponse *http.Response // The io.ReadCloser instance Content io.ReadCloser `presentIn:"body" encoding:"binary"` // 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 RetrieveLogsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response RetrieveLogsResponse) String() string
ShapeMemoryOptions For a flexible shape, the amount of memory available for instances that use this shape.
type ShapeMemoryOptions struct { // The minimum amount of memory, in gigabytes. MinInGBs *float32 `mandatory:"true" json:"minInGBs"` // The maximum amount of memory, in gigabytes. MaxInGBs *float32 `mandatory:"true" json:"maxInGBs"` // The default amount of memory per OCPU available for this shape, in gigabytes. DefaultPerOcpuInGBs *float32 `mandatory:"true" json:"defaultPerOcpuInGBs"` // The minimum amount of memory per OCPU available for this shape, in gigabytes. MinPerOcpuInGBs *float32 `mandatory:"true" json:"minPerOcpuInGBs"` // The maximum amount of memory per OCPU available for this shape, in gigabytes. MaxPerOcpuInGBs *float32 `mandatory:"true" json:"maxPerOcpuInGBs"` }
func (m ShapeMemoryOptions) String() string
func (m ShapeMemoryOptions) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ShapeNetworkingBandwidthOptions For a flexible shape, the amount of networking bandwidth available for instances that use this shape.
type ShapeNetworkingBandwidthOptions struct { // The minimum amount of networking bandwidth, in gigabits per second. MinInGbps *float32 `mandatory:"true" json:"minInGbps"` // The maximum amount of networking bandwidth, in gigabits per second. MaxInGbps *float32 `mandatory:"true" json:"maxInGbps"` // The default amount of networking bandwidth per OCPU, in gigabits per second. DefaultPerOcpuInGbps *float32 `mandatory:"true" json:"defaultPerOcpuInGbps"` }
func (m ShapeNetworkingBandwidthOptions) String() string
func (m ShapeNetworkingBandwidthOptions) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ShapeOcpuOptions For a flexible shape, the number of OCPUs available for instances that use this shape.
type ShapeOcpuOptions struct { // The minimum number of OCPUs. Min *float32 `mandatory:"true" json:"min"` // The maximum number of OCPUs. Max *float32 `mandatory:"true" json:"max"` }
func (m ShapeOcpuOptions) String() string
func (m ShapeOcpuOptions) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
SortOrderEnum Enum with underlying type: string
type SortOrderEnum string
Set of constants representing the allowable values for SortOrderEnum
const ( SortOrderAsc SortOrderEnum = "ASC" SortOrderDesc SortOrderEnum = "DESC" )
func GetMappingSortOrderEnum(val string) (SortOrderEnum, bool)
GetMappingSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
func GetSortOrderEnumValues() []SortOrderEnum
GetSortOrderEnumValues Enumerates the set of values for SortOrderEnum
StartContainerInstanceRequest wrapper for the StartContainerInstance operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/StartContainerInstance.go.html to see an example of how to use StartContainerInstanceRequest.
type StartContainerInstanceRequest struct { // The system-generated unique identifier for the ContainerInstance. ContainerInstanceId *string `mandatory:"true" contributesTo:"path" name:"containerInstanceId"` // 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"` // The client request ID for tracing. 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 StartContainerInstanceRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request StartContainerInstanceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request StartContainerInstanceRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request StartContainerInstanceRequest) String() string
func (request StartContainerInstanceRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
StartContainerInstanceResponse wrapper for the StartContainerInstance operation
type StartContainerInstanceResponse struct { // The underlying http response RawResponse *http.Response // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response StartContainerInstanceResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response StartContainerInstanceResponse) String() string
StopContainerInstanceRequest wrapper for the StopContainerInstance operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/StopContainerInstance.go.html to see an example of how to use StopContainerInstanceRequest.
type StopContainerInstanceRequest struct { // The system-generated unique identifier for the ContainerInstance. ContainerInstanceId *string `mandatory:"true" contributesTo:"path" name:"containerInstanceId"` // 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"` // The client request ID for tracing. 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 StopContainerInstanceRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request StopContainerInstanceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request StopContainerInstanceRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request StopContainerInstanceRequest) String() string
func (request StopContainerInstanceRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
StopContainerInstanceResponse wrapper for the StopContainerInstance operation
type StopContainerInstanceResponse struct { // The underlying http response RawResponse *http.Response // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response StopContainerInstanceResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response StopContainerInstanceResponse) String() string
UpdateContainerDetails The information to be updated.
type UpdateContainerDetails struct { // Display name for the Container. There are no guarantees of uniqueness // for this name. DisplayName *string `mandatory:"false" json:"displayName"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. // Example: `{"bar-key": "value"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"foo-namespace": {"bar-key": "value"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` }
func (m UpdateContainerDetails) String() string
func (m UpdateContainerDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateContainerInstanceDetails The information to be updated.
type UpdateContainerInstanceDetails struct { // ContainerInstance Identifier DisplayName *string `mandatory:"false" json:"displayName"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. // Example: `{"bar-key": "value"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"foo-namespace": {"bar-key": "value"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` }
func (m UpdateContainerInstanceDetails) String() string
func (m UpdateContainerInstanceDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateContainerInstanceRequest wrapper for the UpdateContainerInstance operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/UpdateContainerInstance.go.html to see an example of how to use UpdateContainerInstanceRequest.
type UpdateContainerInstanceRequest struct { // The system-generated unique identifier for the ContainerInstance. ContainerInstanceId *string `mandatory:"true" contributesTo:"path" name:"containerInstanceId"` // The information to be updated. UpdateContainerInstanceDetails `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"` // The client request ID for tracing. 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 UpdateContainerInstanceRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request UpdateContainerInstanceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request UpdateContainerInstanceRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdateContainerInstanceRequest) String() string
func (request UpdateContainerInstanceRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateContainerInstanceResponse wrapper for the UpdateContainerInstance operation
type UpdateContainerInstanceResponse struct { // The underlying http response RawResponse *http.Response // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response UpdateContainerInstanceResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response UpdateContainerInstanceResponse) String() string
UpdateContainerRequest wrapper for the UpdateContainer operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.42.0/containerinstances/UpdateContainer.go.html to see an example of how to use UpdateContainerRequest.
type UpdateContainerRequest struct { // The unique identifier for the Container. ContainerId *string `mandatory:"true" contributesTo:"path" name:"containerId"` // The information to be updated. UpdateContainerDetails `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"` // The client request ID for tracing. 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 UpdateContainerRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request UpdateContainerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request UpdateContainerRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdateContainerRequest) String() string
func (request UpdateContainerRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateContainerResponse wrapper for the UpdateContainer operation
type UpdateContainerResponse struct { // The underlying http response RawResponse *http.Response // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response UpdateContainerResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response UpdateContainerResponse) String() string
VaultImagePullSecret A VaultImagePullSecret is a ImagePullSecret which accepts secretId as credentials information.
type VaultImagePullSecret struct { // The registry endpoint of the container image. RegistryEndpoint *string `mandatory:"true" json:"registryEndpoint"` // The OCID of the secret for registry credentials. SecretId *string `mandatory:"true" json:"secretId"` }
func (m VaultImagePullSecret) GetRegistryEndpoint() *string
GetRegistryEndpoint returns RegistryEndpoint
func (m VaultImagePullSecret) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m VaultImagePullSecret) String() string
func (m VaultImagePullSecret) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
VolumeMount Define the mapping from volume to a mount path in container.
type VolumeMount struct { // mountPath describes the volume access path. MountPath *string `mandatory:"true" json:"mountPath"` // The name of the volume. VolumeName *string `mandatory:"true" json:"volumeName"` // specifies a sub-path inside the referenced volume instead of its root SubPath *string `mandatory:"false" json:"subPath"` // Whether the volume was mounted in read-only mode. Defaults to false if not specified. IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` // If there is more than 1 partitions in the volume, this is the number of partition which be referenced. // Here is a example: // Number Start End Size File system Name Flags // 1 1049kB 106MB 105MB fat16 EFI System Partition boot, esp // 2 106MB 1180MB 1074MB xfs // 3 1180MB 50.0GB 48.8GB lvm Partition *int `mandatory:"false" json:"partition"` }
func (m VolumeMount) String() string
func (m VolumeMount) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
WorkRequest A description of workrequest status
type WorkRequest struct { // Type of the work request OperationType OperationTypeEnum `mandatory:"true" json:"operationType"` // Status of current work request. Status OperationStatusEnum `mandatory:"true" json:"status"` // The id of the work request. Id *string `mandatory:"true" json:"id"` // The ocid of the compartment that contains the work request. Work requests should be scoped to // the same compartment as the resource the work request affects. If the work request affects multiple resources, // and those resources are not in the same compartment, it is up to the service team to pick the primary // resource whose compartment should be used CompartmentId *string `mandatory:"true" json:"compartmentId"` // The resources affected by this work request. Resources []WorkRequestResource `mandatory:"true" json:"resources"` // Percentage of the request completed. PercentComplete *float32 `mandatory:"true" json:"percentComplete"` // The date and time the request was created, as described in // RFC 3339 (https://tools.ietf.org/rfc/rfc3339), section 14.29. TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"` // The date and time the request was started, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339), // section 14.29. TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` // The date and time the object was finished, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339). TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` }
func (m WorkRequest) String() string
func (m WorkRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
WorkRequestError An error encountered while executing a work request.
type WorkRequestError struct { // A machine-usable code for the error that occured. Error codes are listed on // (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm) Code *string `mandatory:"true" json:"code"` // A human readable description of the issue encountered. Message *string `mandatory:"true" json:"message"` // The time the error occured. An RFC3339 formatted datetime string. Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` }
func (m WorkRequestError) String() string
func (m WorkRequestError) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
WorkRequestErrorCollection Results of a workRequestError search. Contains both WorkRequestError items and other information, such as metadata.
type WorkRequestErrorCollection struct { // List of workRequestError objects. Items []WorkRequestError `mandatory:"true" json:"items"` }
func (m WorkRequestErrorCollection) String() string
func (m WorkRequestErrorCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
WorkRequestLogEntry A log message from the execution of a work request.
type WorkRequestLogEntry struct { // Human-readable log message. Message *string `mandatory:"true" json:"message"` // The time the log message was written. An RFC3339 formatted datetime string Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` }
func (m WorkRequestLogEntry) String() string
func (m WorkRequestLogEntry) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
WorkRequestLogEntryCollection Results of a workRequestLog search. Contains both workRequestLog items and other information, such as metadata.
type WorkRequestLogEntryCollection struct { // List of workRequestLogEntries. Items []WorkRequestLogEntry `mandatory:"true" json:"items"` }
func (m WorkRequestLogEntryCollection) String() string
func (m WorkRequestLogEntryCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
WorkRequestResource A resource created or operated on by a work request.
type WorkRequestResource struct { // The resource type the work request affects. EntityType *string `mandatory:"true" json:"entityType"` // The way in which this resource is affected by the work tracked in the work request. // A resource being created, updated, or deleted will remain in the IN_PROGRESS state until // work is complete for that resource at which point it will transition to CREATED, UPDATED, // or DELETED, respectively. ActionType ActionTypeEnum `mandatory:"true" json:"actionType"` // The identifier of the resource the work request affects. Identifier *string `mandatory:"true" json:"identifier"` // The URI path that the user can do a GET on to access the resource metadata EntityUri *string `mandatory:"false" json:"entityUri"` }
func (m WorkRequestResource) String() string
func (m WorkRequestResource) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
WorkRequestSummary A summary of the status of a work request.
type WorkRequestSummary struct { // Type of the work request OperationType OperationTypeEnum `mandatory:"true" json:"operationType"` // Status of current work request. Status OperationStatusEnum `mandatory:"true" json:"status"` // The id of the work request. Id *string `mandatory:"true" json:"id"` // The ocid of the compartment that contains the work request. Work requests should be scoped to // the same compartment as the resource the work request affects. If the work request affects multiple resources, // and those resources are not in the same compartment, it is up to the service team to pick the primary // resource whose compartment should be used CompartmentId *string `mandatory:"true" json:"compartmentId"` // The resources affected by this work request. Resources []WorkRequestResource `mandatory:"true" json:"resources"` // Percentage of the request completed. PercentComplete *float32 `mandatory:"true" json:"percentComplete"` // The date and time the request was created, as described in // RFC 3339 (https://tools.ietf.org/rfc/rfc3339), section 14.29. TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"` // The date and time the request was started, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339), // section 14.29. TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` // The date and time the object was finished, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339). TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` }
func (m WorkRequestSummary) String() string
func (m WorkRequestSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
WorkRequestSummaryCollection Results of a workRequest search. Contains both WorkRequest items and other information, such as metadata.
type WorkRequestSummaryCollection struct { // List of workRequestSummary objects. Items []WorkRequestSummary `mandatory:"true" json:"items"` }
func (m WorkRequestSummaryCollection) String() string
func (m WorkRequestSummaryCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly