...

Package accessgovernancecp

import "github.com/oracle/oci-go-sdk/accessgovernancecp"
Overview
Index

Overview ▾

Index ▾

func GetInstanceLifecycleStateEnumStringValues() []string
func GetLicenseTypeEnumStringValues() []string
func GetListGovernanceInstancesSortByEnumStringValues() []string
func GetListGovernanceInstancesSortOrderEnumStringValues() []string
func GetSortOrderEnumStringValues() []string
type AccessGovernanceCPClient
    func NewAccessGovernanceCPClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client AccessGovernanceCPClient, err error)
    func NewAccessGovernanceCPClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client AccessGovernanceCPClient, err error)
    func (client AccessGovernanceCPClient) ChangeGovernanceInstanceCompartment(ctx context.Context, request ChangeGovernanceInstanceCompartmentRequest) (response ChangeGovernanceInstanceCompartmentResponse, err error)
    func (client *AccessGovernanceCPClient) ConfigurationProvider() *common.ConfigurationProvider
    func (client AccessGovernanceCPClient) CreateGovernanceInstance(ctx context.Context, request CreateGovernanceInstanceRequest) (response CreateGovernanceInstanceResponse, err error)
    func (client AccessGovernanceCPClient) DeleteGovernanceInstance(ctx context.Context, request DeleteGovernanceInstanceRequest) (response DeleteGovernanceInstanceResponse, err error)
    func (client AccessGovernanceCPClient) GetGovernanceInstance(ctx context.Context, request GetGovernanceInstanceRequest) (response GetGovernanceInstanceResponse, err error)
    func (client AccessGovernanceCPClient) GetGovernanceInstanceConfiguration(ctx context.Context, request GetGovernanceInstanceConfigurationRequest) (response GetGovernanceInstanceConfigurationResponse, err error)
    func (client AccessGovernanceCPClient) ListGovernanceInstances(ctx context.Context, request ListGovernanceInstancesRequest) (response ListGovernanceInstancesResponse, err error)
    func (client *AccessGovernanceCPClient) SetRegion(region string)
    func (client AccessGovernanceCPClient) UpdateGovernanceInstance(ctx context.Context, request UpdateGovernanceInstanceRequest) (response UpdateGovernanceInstanceResponse, err error)
    func (client AccessGovernanceCPClient) UpdateGovernanceInstanceConfiguration(ctx context.Context, request UpdateGovernanceInstanceConfigurationRequest) (response UpdateGovernanceInstanceConfigurationResponse, err error)
type ChangeGovernanceInstanceCompartmentDetails
    func (m ChangeGovernanceInstanceCompartmentDetails) String() string
    func (m ChangeGovernanceInstanceCompartmentDetails) ValidateEnumValue() (bool, error)
type ChangeGovernanceInstanceCompartmentRequest
    func (request ChangeGovernanceInstanceCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ChangeGovernanceInstanceCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ChangeGovernanceInstanceCompartmentRequest) RetryPolicy() *common.RetryPolicy
    func (request ChangeGovernanceInstanceCompartmentRequest) String() string
    func (request ChangeGovernanceInstanceCompartmentRequest) ValidateEnumValue() (bool, error)
type ChangeGovernanceInstanceCompartmentResponse
    func (response ChangeGovernanceInstanceCompartmentResponse) HTTPResponse() *http.Response
    func (response ChangeGovernanceInstanceCompartmentResponse) String() string
type CreateGovernanceInstanceDetails
    func (m CreateGovernanceInstanceDetails) String() string
    func (m CreateGovernanceInstanceDetails) ValidateEnumValue() (bool, error)
type CreateGovernanceInstanceRequest
    func (request CreateGovernanceInstanceRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request CreateGovernanceInstanceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request CreateGovernanceInstanceRequest) RetryPolicy() *common.RetryPolicy
    func (request CreateGovernanceInstanceRequest) String() string
    func (request CreateGovernanceInstanceRequest) ValidateEnumValue() (bool, error)
type CreateGovernanceInstanceResponse
    func (response CreateGovernanceInstanceResponse) HTTPResponse() *http.Response
    func (response CreateGovernanceInstanceResponse) String() string
type DeleteGovernanceInstanceRequest
    func (request DeleteGovernanceInstanceRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request DeleteGovernanceInstanceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request DeleteGovernanceInstanceRequest) RetryPolicy() *common.RetryPolicy
    func (request DeleteGovernanceInstanceRequest) String() string
    func (request DeleteGovernanceInstanceRequest) ValidateEnumValue() (bool, error)
type DeleteGovernanceInstanceResponse
    func (response DeleteGovernanceInstanceResponse) HTTPResponse() *http.Response
    func (response DeleteGovernanceInstanceResponse) String() string
type GetGovernanceInstanceConfigurationRequest
    func (request GetGovernanceInstanceConfigurationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetGovernanceInstanceConfigurationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetGovernanceInstanceConfigurationRequest) RetryPolicy() *common.RetryPolicy
    func (request GetGovernanceInstanceConfigurationRequest) String() string
    func (request GetGovernanceInstanceConfigurationRequest) ValidateEnumValue() (bool, error)
type GetGovernanceInstanceConfigurationResponse
    func (response GetGovernanceInstanceConfigurationResponse) HTTPResponse() *http.Response
    func (response GetGovernanceInstanceConfigurationResponse) String() string
type GetGovernanceInstanceRequest
    func (request GetGovernanceInstanceRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetGovernanceInstanceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetGovernanceInstanceRequest) RetryPolicy() *common.RetryPolicy
    func (request GetGovernanceInstanceRequest) String() string
    func (request GetGovernanceInstanceRequest) ValidateEnumValue() (bool, error)
type GetGovernanceInstanceResponse
    func (response GetGovernanceInstanceResponse) HTTPResponse() *http.Response
    func (response GetGovernanceInstanceResponse) String() string
type GovernanceInstance
    func (m GovernanceInstance) String() string
    func (m GovernanceInstance) ValidateEnumValue() (bool, error)
type GovernanceInstanceCollection
    func (m GovernanceInstanceCollection) String() string
    func (m GovernanceInstanceCollection) ValidateEnumValue() (bool, error)
type GovernanceInstanceConfiguration
    func (m GovernanceInstanceConfiguration) String() string
    func (m GovernanceInstanceConfiguration) ValidateEnumValue() (bool, error)
type GovernanceInstanceSummary
    func (m GovernanceInstanceSummary) String() string
    func (m GovernanceInstanceSummary) ValidateEnumValue() (bool, error)
type InstanceLifecycleStateEnum
    func GetInstanceLifecycleStateEnumValues() []InstanceLifecycleStateEnum
    func GetMappingInstanceLifecycleStateEnum(val string) (InstanceLifecycleStateEnum, bool)
type LicenseTypeEnum
    func GetLicenseTypeEnumValues() []LicenseTypeEnum
    func GetMappingLicenseTypeEnum(val string) (LicenseTypeEnum, bool)
type ListGovernanceInstancesRequest
    func (request ListGovernanceInstancesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListGovernanceInstancesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListGovernanceInstancesRequest) RetryPolicy() *common.RetryPolicy
    func (request ListGovernanceInstancesRequest) String() string
    func (request ListGovernanceInstancesRequest) ValidateEnumValue() (bool, error)
type ListGovernanceInstancesResponse
    func (response ListGovernanceInstancesResponse) HTTPResponse() *http.Response
    func (response ListGovernanceInstancesResponse) String() string
type ListGovernanceInstancesSortByEnum
    func GetListGovernanceInstancesSortByEnumValues() []ListGovernanceInstancesSortByEnum
    func GetMappingListGovernanceInstancesSortByEnum(val string) (ListGovernanceInstancesSortByEnum, bool)
type ListGovernanceInstancesSortOrderEnum
    func GetListGovernanceInstancesSortOrderEnumValues() []ListGovernanceInstancesSortOrderEnum
    func GetMappingListGovernanceInstancesSortOrderEnum(val string) (ListGovernanceInstancesSortOrderEnum, bool)
type SenderConfig
    func (m SenderConfig) String() string
    func (m SenderConfig) ValidateEnumValue() (bool, error)
type SortOrderEnum
    func GetMappingSortOrderEnum(val string) (SortOrderEnum, bool)
    func GetSortOrderEnumValues() []SortOrderEnum
type UpdateGovernanceInstanceConfigurationDetails
    func (m UpdateGovernanceInstanceConfigurationDetails) String() string
    func (m UpdateGovernanceInstanceConfigurationDetails) ValidateEnumValue() (bool, error)
type UpdateGovernanceInstanceConfigurationRequest
    func (request UpdateGovernanceInstanceConfigurationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request UpdateGovernanceInstanceConfigurationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request UpdateGovernanceInstanceConfigurationRequest) RetryPolicy() *common.RetryPolicy
    func (request UpdateGovernanceInstanceConfigurationRequest) String() string
    func (request UpdateGovernanceInstanceConfigurationRequest) ValidateEnumValue() (bool, error)
type UpdateGovernanceInstanceConfigurationResponse
    func (response UpdateGovernanceInstanceConfigurationResponse) HTTPResponse() *http.Response
    func (response UpdateGovernanceInstanceConfigurationResponse) String() string
type UpdateGovernanceInstanceDetails
    func (m UpdateGovernanceInstanceDetails) String() string
    func (m UpdateGovernanceInstanceDetails) ValidateEnumValue() (bool, error)
type UpdateGovernanceInstanceRequest
    func (request UpdateGovernanceInstanceRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request UpdateGovernanceInstanceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request UpdateGovernanceInstanceRequest) RetryPolicy() *common.RetryPolicy
    func (request UpdateGovernanceInstanceRequest) String() string
    func (request UpdateGovernanceInstanceRequest) ValidateEnumValue() (bool, error)
type UpdateGovernanceInstanceResponse
    func (response UpdateGovernanceInstanceResponse) HTTPResponse() *http.Response
    func (response UpdateGovernanceInstanceResponse) String() string
type UpdateSenderConfig
    func (m UpdateSenderConfig) String() string
    func (m UpdateSenderConfig) ValidateEnumValue() (bool, error)

Package files

accessgovernancecp_client.go change_governance_instance_compartment_details.go change_governance_instance_compartment_request_response.go create_governance_instance_details.go create_governance_instance_request_response.go delete_governance_instance_request_response.go get_governance_instance_configuration_request_response.go get_governance_instance_request_response.go governance_instance.go governance_instance_collection.go governance_instance_configuration.go governance_instance_summary.go instance_lifecycle_state.go license_type.go list_governance_instances_request_response.go sender_config.go sort_order.go update_governance_instance_configuration_details.go update_governance_instance_configuration_request_response.go update_governance_instance_details.go update_governance_instance_request_response.go update_sender_config.go

func GetInstanceLifecycleStateEnumStringValues

func GetInstanceLifecycleStateEnumStringValues() []string

GetInstanceLifecycleStateEnumStringValues Enumerates the set of values in String for InstanceLifecycleStateEnum

func GetLicenseTypeEnumStringValues

func GetLicenseTypeEnumStringValues() []string

GetLicenseTypeEnumStringValues Enumerates the set of values in String for LicenseTypeEnum

func GetListGovernanceInstancesSortByEnumStringValues

func GetListGovernanceInstancesSortByEnumStringValues() []string

GetListGovernanceInstancesSortByEnumStringValues Enumerates the set of values in String for ListGovernanceInstancesSortByEnum

func GetListGovernanceInstancesSortOrderEnumStringValues

func GetListGovernanceInstancesSortOrderEnumStringValues() []string

GetListGovernanceInstancesSortOrderEnumStringValues Enumerates the set of values in String for ListGovernanceInstancesSortOrderEnum

func GetSortOrderEnumStringValues

func GetSortOrderEnumStringValues() []string

GetSortOrderEnumStringValues Enumerates the set of values in String for SortOrderEnum

type AccessGovernanceCPClient

AccessGovernanceCPClient a client for AccessGovernanceCP

type AccessGovernanceCPClient struct {
    common.BaseClient
    // contains filtered or unexported fields
}

func NewAccessGovernanceCPClientWithConfigurationProvider

func NewAccessGovernanceCPClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client AccessGovernanceCPClient, err error)

NewAccessGovernanceCPClientWithConfigurationProvider Creates a new default AccessGovernanceCP client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region

func NewAccessGovernanceCPClientWithOboToken

func NewAccessGovernanceCPClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client AccessGovernanceCPClient, err error)

NewAccessGovernanceCPClientWithOboToken Creates a new default AccessGovernanceCP 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 (AccessGovernanceCPClient) ChangeGovernanceInstanceCompartment

func (client AccessGovernanceCPClient) ChangeGovernanceInstanceCompartment(ctx context.Context, request ChangeGovernanceInstanceCompartmentRequest) (response ChangeGovernanceInstanceCompartmentResponse, err error)

ChangeGovernanceInstanceCompartment Moves a GovernanceInstance resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/accessgovernancecp/ChangeGovernanceInstanceCompartment.go.html to see an example of how to use ChangeGovernanceInstanceCompartment API. A default retry strategy applies to this operation ChangeGovernanceInstanceCompartment()

func (*AccessGovernanceCPClient) ConfigurationProvider

func (client *AccessGovernanceCPClient) ConfigurationProvider() *common.ConfigurationProvider

ConfigurationProvider the ConfigurationProvider used in this client, or null if none set

func (AccessGovernanceCPClient) CreateGovernanceInstance

func (client AccessGovernanceCPClient) CreateGovernanceInstance(ctx context.Context, request CreateGovernanceInstanceRequest) (response CreateGovernanceInstanceResponse, err error)

CreateGovernanceInstance Creates a new GovernanceInstance.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/accessgovernancecp/CreateGovernanceInstance.go.html to see an example of how to use CreateGovernanceInstance API. A default retry strategy applies to this operation CreateGovernanceInstance()

func (AccessGovernanceCPClient) DeleteGovernanceInstance

func (client AccessGovernanceCPClient) DeleteGovernanceInstance(ctx context.Context, request DeleteGovernanceInstanceRequest) (response DeleteGovernanceInstanceResponse, err error)

DeleteGovernanceInstance Deletes an existing GovernanceInstance.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/accessgovernancecp/DeleteGovernanceInstance.go.html to see an example of how to use DeleteGovernanceInstance API. A default retry strategy applies to this operation DeleteGovernanceInstance()

func (AccessGovernanceCPClient) GetGovernanceInstance

func (client AccessGovernanceCPClient) GetGovernanceInstance(ctx context.Context, request GetGovernanceInstanceRequest) (response GetGovernanceInstanceResponse, err error)

GetGovernanceInstance Gets a GovernanceInstance by OCID.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/accessgovernancecp/GetGovernanceInstance.go.html to see an example of how to use GetGovernanceInstance API. A default retry strategy applies to this operation GetGovernanceInstance()

func (AccessGovernanceCPClient) GetGovernanceInstanceConfiguration

func (client AccessGovernanceCPClient) GetGovernanceInstanceConfiguration(ctx context.Context, request GetGovernanceInstanceConfigurationRequest) (response GetGovernanceInstanceConfigurationResponse, err error)

GetGovernanceInstanceConfiguration Gets the tenancy-wide configuration for GovernanceInstances

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/accessgovernancecp/GetGovernanceInstanceConfiguration.go.html to see an example of how to use GetGovernanceInstanceConfiguration API. A default retry strategy applies to this operation GetGovernanceInstanceConfiguration()

func (AccessGovernanceCPClient) ListGovernanceInstances

func (client AccessGovernanceCPClient) ListGovernanceInstances(ctx context.Context, request ListGovernanceInstancesRequest) (response ListGovernanceInstancesResponse, err error)

ListGovernanceInstances Returns a list of Governance Instances.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/accessgovernancecp/ListGovernanceInstances.go.html to see an example of how to use ListGovernanceInstances API. A default retry strategy applies to this operation ListGovernanceInstances()

func (*AccessGovernanceCPClient) SetRegion

func (client *AccessGovernanceCPClient) SetRegion(region string)

SetRegion overrides the region of this client.

func (AccessGovernanceCPClient) UpdateGovernanceInstance

func (client AccessGovernanceCPClient) UpdateGovernanceInstance(ctx context.Context, request UpdateGovernanceInstanceRequest) (response UpdateGovernanceInstanceResponse, err error)

UpdateGovernanceInstance Updates the GovernanceInstance.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/accessgovernancecp/UpdateGovernanceInstance.go.html to see an example of how to use UpdateGovernanceInstance API. A default retry strategy applies to this operation UpdateGovernanceInstance()

func (AccessGovernanceCPClient) UpdateGovernanceInstanceConfiguration

func (client AccessGovernanceCPClient) UpdateGovernanceInstanceConfiguration(ctx context.Context, request UpdateGovernanceInstanceConfigurationRequest) (response UpdateGovernanceInstanceConfigurationResponse, err error)

UpdateGovernanceInstanceConfiguration Updates the tenancy-wide configuration for GovernanceInstances

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/accessgovernancecp/UpdateGovernanceInstanceConfiguration.go.html to see an example of how to use UpdateGovernanceInstanceConfiguration API. A default retry strategy applies to this operation UpdateGovernanceInstanceConfiguration()

type ChangeGovernanceInstanceCompartmentDetails

ChangeGovernanceInstanceCompartmentDetails The details of a GovernanceInstance to be updated for a compartment change.

type ChangeGovernanceInstanceCompartmentDetails struct {

    // The OCID of the compartment where the GovernanceInstance resides.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`
}

func (ChangeGovernanceInstanceCompartmentDetails) String

func (m ChangeGovernanceInstanceCompartmentDetails) String() string

func (ChangeGovernanceInstanceCompartmentDetails) ValidateEnumValue

func (m ChangeGovernanceInstanceCompartmentDetails) 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

type ChangeGovernanceInstanceCompartmentRequest

ChangeGovernanceInstanceCompartmentRequest wrapper for the ChangeGovernanceInstanceCompartment operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/accessgovernancecp/ChangeGovernanceInstanceCompartment.go.html to see an example of how to use ChangeGovernanceInstanceCompartmentRequest.

type ChangeGovernanceInstanceCompartmentRequest struct {

    // The OCID of the GovernanceInstance
    GovernanceInstanceId *string `mandatory:"true" contributesTo:"path" name:"governanceInstanceId"`

    // The details to change the compartment of a GovernanceInstance.
    ChangeGovernanceInstanceCompartmentDetails `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"`

    // 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"`

    // 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 (ChangeGovernanceInstanceCompartmentRequest) BinaryRequestBody

func (request ChangeGovernanceInstanceCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (ChangeGovernanceInstanceCompartmentRequest) HTTPRequest

func (request ChangeGovernanceInstanceCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ChangeGovernanceInstanceCompartmentRequest) RetryPolicy

func (request ChangeGovernanceInstanceCompartmentRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (ChangeGovernanceInstanceCompartmentRequest) String

func (request ChangeGovernanceInstanceCompartmentRequest) String() string

func (ChangeGovernanceInstanceCompartmentRequest) ValidateEnumValue

func (request ChangeGovernanceInstanceCompartmentRequest) 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

type ChangeGovernanceInstanceCompartmentResponse

ChangeGovernanceInstanceCompartmentResponse wrapper for the ChangeGovernanceInstanceCompartment operation

type ChangeGovernanceInstanceCompartmentResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

func (ChangeGovernanceInstanceCompartmentResponse) HTTPResponse

func (response ChangeGovernanceInstanceCompartmentResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (ChangeGovernanceInstanceCompartmentResponse) String

func (response ChangeGovernanceInstanceCompartmentResponse) String() string

type CreateGovernanceInstanceDetails

CreateGovernanceInstanceDetails The details about a new GovernanceInstance.

type CreateGovernanceInstanceDetails struct {

    // The name for the GovernanceInstance.
    DisplayName *string `mandatory:"true" json:"displayName"`

    // The licenseType being used.
    LicenseType LicenseTypeEnum `mandatory:"true" json:"licenseType"`

    // The namespace for tenancy object storage.
    TenancyNamespace *string `mandatory:"true" json:"tenancyNamespace"`

    // The OCID of the compartment where the GovernanceInstance resides.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // IDCS access token identifying a stripe and service administrator user.
    IdcsAccessToken *string `mandatory:"true" json:"idcsAccessToken"`

    // The description of the GovernanceInstance.
    Description *string `mandatory:"false" json:"description"`

    // 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"`

    // 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"`

    // 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"`
}

func (CreateGovernanceInstanceDetails) String

func (m CreateGovernanceInstanceDetails) String() string

func (CreateGovernanceInstanceDetails) ValidateEnumValue

func (m CreateGovernanceInstanceDetails) 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

type CreateGovernanceInstanceRequest

CreateGovernanceInstanceRequest wrapper for the CreateGovernanceInstance operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/accessgovernancecp/CreateGovernanceInstance.go.html to see an example of how to use CreateGovernanceInstanceRequest.

type CreateGovernanceInstanceRequest struct {

    // The details of a new GovernanceInstance.
    CreateGovernanceInstanceDetails `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 (CreateGovernanceInstanceRequest) BinaryRequestBody

func (request CreateGovernanceInstanceRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (CreateGovernanceInstanceRequest) HTTPRequest

func (request CreateGovernanceInstanceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (CreateGovernanceInstanceRequest) RetryPolicy

func (request CreateGovernanceInstanceRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (CreateGovernanceInstanceRequest) String

func (request CreateGovernanceInstanceRequest) String() string

func (CreateGovernanceInstanceRequest) ValidateEnumValue

func (request CreateGovernanceInstanceRequest) 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

type CreateGovernanceInstanceResponse

CreateGovernanceInstanceResponse wrapper for the CreateGovernanceInstance operation

type CreateGovernanceInstanceResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The GovernanceInstance instance
    GovernanceInstance `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 (CreateGovernanceInstanceResponse) HTTPResponse

func (response CreateGovernanceInstanceResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (CreateGovernanceInstanceResponse) String

func (response CreateGovernanceInstanceResponse) String() string

type DeleteGovernanceInstanceRequest

DeleteGovernanceInstanceRequest wrapper for the DeleteGovernanceInstance operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/accessgovernancecp/DeleteGovernanceInstance.go.html to see an example of how to use DeleteGovernanceInstanceRequest.

type DeleteGovernanceInstanceRequest struct {

    // The OCID of the GovernanceInstance
    GovernanceInstanceId *string `mandatory:"true" contributesTo:"path" name:"governanceInstanceId"`

    // 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"`

    // 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 (DeleteGovernanceInstanceRequest) BinaryRequestBody

func (request DeleteGovernanceInstanceRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (DeleteGovernanceInstanceRequest) HTTPRequest

func (request DeleteGovernanceInstanceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (DeleteGovernanceInstanceRequest) RetryPolicy

func (request DeleteGovernanceInstanceRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (DeleteGovernanceInstanceRequest) String

func (request DeleteGovernanceInstanceRequest) String() string

func (DeleteGovernanceInstanceRequest) ValidateEnumValue

func (request DeleteGovernanceInstanceRequest) 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

type DeleteGovernanceInstanceResponse

DeleteGovernanceInstanceResponse wrapper for the DeleteGovernanceInstance operation

type DeleteGovernanceInstanceResponse 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 (DeleteGovernanceInstanceResponse) HTTPResponse

func (response DeleteGovernanceInstanceResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (DeleteGovernanceInstanceResponse) String

func (response DeleteGovernanceInstanceResponse) String() string

type GetGovernanceInstanceConfigurationRequest

GetGovernanceInstanceConfigurationRequest wrapper for the GetGovernanceInstanceConfiguration operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/accessgovernancecp/GetGovernanceInstanceConfiguration.go.html to see an example of how to use GetGovernanceInstanceConfigurationRequest.

type GetGovernanceInstanceConfigurationRequest struct {

    // The OCID of the compartment in which resources are listed.
    CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`

    // 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 (GetGovernanceInstanceConfigurationRequest) BinaryRequestBody

func (request GetGovernanceInstanceConfigurationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (GetGovernanceInstanceConfigurationRequest) HTTPRequest

func (request GetGovernanceInstanceConfigurationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (GetGovernanceInstanceConfigurationRequest) RetryPolicy

func (request GetGovernanceInstanceConfigurationRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (GetGovernanceInstanceConfigurationRequest) String

func (request GetGovernanceInstanceConfigurationRequest) String() string

func (GetGovernanceInstanceConfigurationRequest) ValidateEnumValue

func (request GetGovernanceInstanceConfigurationRequest) 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

type GetGovernanceInstanceConfigurationResponse

GetGovernanceInstanceConfigurationResponse wrapper for the GetGovernanceInstanceConfiguration operation

type GetGovernanceInstanceConfigurationResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The GovernanceInstanceConfiguration instance
    GovernanceInstanceConfiguration `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 (GetGovernanceInstanceConfigurationResponse) HTTPResponse

func (response GetGovernanceInstanceConfigurationResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (GetGovernanceInstanceConfigurationResponse) String

func (response GetGovernanceInstanceConfigurationResponse) String() string

type GetGovernanceInstanceRequest

GetGovernanceInstanceRequest wrapper for the GetGovernanceInstance operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/accessgovernancecp/GetGovernanceInstance.go.html to see an example of how to use GetGovernanceInstanceRequest.

type GetGovernanceInstanceRequest struct {

    // The OCID of the GovernanceInstance
    GovernanceInstanceId *string `mandatory:"true" contributesTo:"path" name:"governanceInstanceId"`

    // 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 (GetGovernanceInstanceRequest) BinaryRequestBody

func (request GetGovernanceInstanceRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (GetGovernanceInstanceRequest) HTTPRequest

func (request GetGovernanceInstanceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (GetGovernanceInstanceRequest) RetryPolicy

func (request GetGovernanceInstanceRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (GetGovernanceInstanceRequest) String

func (request GetGovernanceInstanceRequest) String() string

func (GetGovernanceInstanceRequest) ValidateEnumValue

func (request GetGovernanceInstanceRequest) 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

type GetGovernanceInstanceResponse

GetGovernanceInstanceResponse wrapper for the GetGovernanceInstance operation

type GetGovernanceInstanceResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The GovernanceInstance instance
    GovernanceInstance `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 (GetGovernanceInstanceResponse) HTTPResponse

func (response GetGovernanceInstanceResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (GetGovernanceInstanceResponse) String

func (response GetGovernanceInstanceResponse) String() string

type GovernanceInstance

GovernanceInstance The details of a GovenanceInstance.

type GovernanceInstance struct {

    // The name for the GovernanceInstance.
    DisplayName *string `mandatory:"true" json:"displayName"`

    // The OCID of the compartment where the GovernanceInstance resides.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // The time the the GovernanceInstance was created in an RFC3339 formatted datetime string.
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // The current state of the GovernanceInstance.
    LifecycleState InstanceLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // The unique OCID of the GovernanceInstance.
    Id *string `mandatory:"false" json:"id"`

    // The time the GovernanceInstance was updated in an RFC3339 formatted datetime string.
    TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

    // The description of the GovernanceInstance.
    Description *string `mandatory:"false" json:"description"`

    // The licenseType being used.
    LicenseType LicenseTypeEnum `mandatory:"false" json:"licenseType,omitempty"`

    // The namespace for tenancy object storage.
    TenancyNamespace *string `mandatory:"false" json:"tenancyNamespace"`

    // The access URL of the GovernanceInstance.
    InstanceUrl *string `mandatory:"false" json:"instanceUrl"`

    // 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"`

    // 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"`

    // 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"`
}

func (GovernanceInstance) String

func (m GovernanceInstance) String() string

func (GovernanceInstance) ValidateEnumValue

func (m GovernanceInstance) 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

type GovernanceInstanceCollection

GovernanceInstanceCollection Results of a GovernanceInstance search.

type GovernanceInstanceCollection struct {

    // List of GovernanceInstances.
    Items []GovernanceInstanceSummary `mandatory:"true" json:"items"`
}

func (GovernanceInstanceCollection) String

func (m GovernanceInstanceCollection) String() string

func (GovernanceInstanceCollection) ValidateEnumValue

func (m GovernanceInstanceCollection) 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

type GovernanceInstanceConfiguration

GovernanceInstanceConfiguration The tenancy-wide configuration for GovernanceInstances.

type GovernanceInstanceConfiguration struct {
    SenderInfo *SenderConfig `mandatory:"true" json:"senderInfo"`
}

func (GovernanceInstanceConfiguration) String

func (m GovernanceInstanceConfiguration) String() string

func (GovernanceInstanceConfiguration) ValidateEnumValue

func (m GovernanceInstanceConfiguration) 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

type GovernanceInstanceSummary

GovernanceInstanceSummary The summary of an GovernanceInstance.

type GovernanceInstanceSummary struct {

    // The name for the GovernanceInstance.
    DisplayName *string `mandatory:"true" json:"displayName"`

    // The OCID of the compartment where the GovernanceInstance resides.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // The time the the GovernanceInstance was created in an RFC3339 formatted datetime string.
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // The current state of the GovernanceInstance.
    LifecycleState InstanceLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // The unique OCID of the GovernanceInstance.
    Id *string `mandatory:"false" json:"id"`

    // The description of the GovernanceInstance.
    Description *string `mandatory:"false" json:"description"`

    // The time the GovernanceInstance was updated in an RFC3339 formatted datetime string.
    TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

    // The licenseType being used.
    LicenseType LicenseTypeEnum `mandatory:"false" json:"licenseType,omitempty"`

    // The access URL of the GovernanceInstance.
    InstanceUrl *string `mandatory:"false" json:"instanceUrl"`

    // 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"`

    // 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"`

    // 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"`
}

func (GovernanceInstanceSummary) String

func (m GovernanceInstanceSummary) String() string

func (GovernanceInstanceSummary) ValidateEnumValue

func (m GovernanceInstanceSummary) 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

type InstanceLifecycleStateEnum

InstanceLifecycleStateEnum Enum with underlying type: string

type InstanceLifecycleStateEnum string

Set of constants representing the allowable values for InstanceLifecycleStateEnum

const (
    InstanceLifecycleStateCreating       InstanceLifecycleStateEnum = "CREATING"
    InstanceLifecycleStateActive         InstanceLifecycleStateEnum = "ACTIVE"
    InstanceLifecycleStateDeleting       InstanceLifecycleStateEnum = "DELETING"
    InstanceLifecycleStateDeleted        InstanceLifecycleStateEnum = "DELETED"
    InstanceLifecycleStateNeedsAttention InstanceLifecycleStateEnum = "NEEDS_ATTENTION"
)

func GetInstanceLifecycleStateEnumValues

func GetInstanceLifecycleStateEnumValues() []InstanceLifecycleStateEnum

GetInstanceLifecycleStateEnumValues Enumerates the set of values for InstanceLifecycleStateEnum

func GetMappingInstanceLifecycleStateEnum

func GetMappingInstanceLifecycleStateEnum(val string) (InstanceLifecycleStateEnum, bool)

GetMappingInstanceLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum

type LicenseTypeEnum

LicenseTypeEnum Enum with underlying type: string

type LicenseTypeEnum string

Set of constants representing the allowable values for LicenseTypeEnum

const (
    LicenseTypeNewLicense          LicenseTypeEnum = "NEW_LICENSE"
    LicenseTypeBringYourOwnLicense LicenseTypeEnum = "BRING_YOUR_OWN_LICENSE"
    LicenseTypeAgOracleWorkloads   LicenseTypeEnum = "AG_ORACLE_WORKLOADS"
    LicenseTypeAgOci               LicenseTypeEnum = "AG_OCI"
)

func GetLicenseTypeEnumValues

func GetLicenseTypeEnumValues() []LicenseTypeEnum

GetLicenseTypeEnumValues Enumerates the set of values for LicenseTypeEnum

func GetMappingLicenseTypeEnum

func GetMappingLicenseTypeEnum(val string) (LicenseTypeEnum, bool)

GetMappingLicenseTypeEnum performs case Insensitive comparison on enum value and return the desired enum

type ListGovernanceInstancesRequest

ListGovernanceInstancesRequest wrapper for the ListGovernanceInstances operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/accessgovernancecp/ListGovernanceInstances.go.html to see an example of how to use ListGovernanceInstancesRequest.

type ListGovernanceInstancesRequest struct {

    // The OCID of the compartment in which resources are listed.
    CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`

    // The lifecycle state to filter on.
    LifecycleState *string `mandatory:"false" contributesTo:"query" name:"lifecycleState"`

    // A filter to return only resources that match the entire display name given.
    DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"`

    // The OCID of the GovernanceInstance
    Id *string `mandatory:"false" contributesTo:"query" name:"id"`

    // The maximum number of items to return.
    Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

    // A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
    Page *string `mandatory:"false" contributesTo:"query" name:"page"`

    // The sort order to use, either 'ASC' or 'DESC'.
    SortOrder ListGovernanceInstancesSortOrderEnum `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.
    SortBy ListGovernanceInstancesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

    // 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 (ListGovernanceInstancesRequest) BinaryRequestBody

func (request ListGovernanceInstancesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (ListGovernanceInstancesRequest) HTTPRequest

func (request ListGovernanceInstancesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ListGovernanceInstancesRequest) RetryPolicy

func (request ListGovernanceInstancesRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (ListGovernanceInstancesRequest) String

func (request ListGovernanceInstancesRequest) String() string

func (ListGovernanceInstancesRequest) ValidateEnumValue

func (request ListGovernanceInstancesRequest) 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

type ListGovernanceInstancesResponse

ListGovernanceInstancesResponse wrapper for the ListGovernanceInstances operation

type ListGovernanceInstancesResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of GovernanceInstanceCollection instances
    GovernanceInstanceCollection `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 (ListGovernanceInstancesResponse) HTTPResponse

func (response ListGovernanceInstancesResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (ListGovernanceInstancesResponse) String

func (response ListGovernanceInstancesResponse) String() string

type ListGovernanceInstancesSortByEnum

ListGovernanceInstancesSortByEnum Enum with underlying type: string

type ListGovernanceInstancesSortByEnum string

Set of constants representing the allowable values for ListGovernanceInstancesSortByEnum

const (
    ListGovernanceInstancesSortByTimecreated    ListGovernanceInstancesSortByEnum = "timeCreated"
    ListGovernanceInstancesSortByDisplayname    ListGovernanceInstancesSortByEnum = "displayName"
    ListGovernanceInstancesSortByTimeupdated    ListGovernanceInstancesSortByEnum = "timeUpdated"
    ListGovernanceInstancesSortByLifecyclestate ListGovernanceInstancesSortByEnum = "lifecycleState"
)

func GetListGovernanceInstancesSortByEnumValues

func GetListGovernanceInstancesSortByEnumValues() []ListGovernanceInstancesSortByEnum

GetListGovernanceInstancesSortByEnumValues Enumerates the set of values for ListGovernanceInstancesSortByEnum

func GetMappingListGovernanceInstancesSortByEnum

func GetMappingListGovernanceInstancesSortByEnum(val string) (ListGovernanceInstancesSortByEnum, bool)

GetMappingListGovernanceInstancesSortByEnum performs case Insensitive comparison on enum value and return the desired enum

type ListGovernanceInstancesSortOrderEnum

ListGovernanceInstancesSortOrderEnum Enum with underlying type: string

type ListGovernanceInstancesSortOrderEnum string

Set of constants representing the allowable values for ListGovernanceInstancesSortOrderEnum

const (
    ListGovernanceInstancesSortOrderAsc  ListGovernanceInstancesSortOrderEnum = "ASC"
    ListGovernanceInstancesSortOrderDesc ListGovernanceInstancesSortOrderEnum = "DESC"
)

func GetListGovernanceInstancesSortOrderEnumValues

func GetListGovernanceInstancesSortOrderEnumValues() []ListGovernanceInstancesSortOrderEnum

GetListGovernanceInstancesSortOrderEnumValues Enumerates the set of values for ListGovernanceInstancesSortOrderEnum

func GetMappingListGovernanceInstancesSortOrderEnum

func GetMappingListGovernanceInstancesSortOrderEnum(val string) (ListGovernanceInstancesSortOrderEnum, bool)

GetMappingListGovernanceInstancesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum

type SenderConfig

SenderConfig The sender information for email notifications sent by GovernanceInstance.

type SenderConfig struct {

    // The sender's displayName.
    DisplayName *string `mandatory:"false" json:"displayName"`

    // The sender's email.
    Email *string `mandatory:"false" json:"email"`

    // Whether or not the sender's email has been verified.
    IsVerified *bool `mandatory:"false" json:"isVerified"`

    // The time when the verify response needs to be received by.
    TimeVerifyResponseExpiry *common.SDKTime `mandatory:"false" json:"timeVerifyResponseExpiry"`

    // Whether the sender email has inbox configured to receive emails.
    IsInboxConfigured *bool `mandatory:"false" json:"isInboxConfigured"`
}

func (SenderConfig) String

func (m SenderConfig) String() string

func (SenderConfig) ValidateEnumValue

func (m SenderConfig) 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

type SortOrderEnum

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

func GetMappingSortOrderEnum(val string) (SortOrderEnum, bool)

GetMappingSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum

func GetSortOrderEnumValues

func GetSortOrderEnumValues() []SortOrderEnum

GetSortOrderEnumValues Enumerates the set of values for SortOrderEnum

type UpdateGovernanceInstanceConfigurationDetails

UpdateGovernanceInstanceConfigurationDetails The details of a tenancy-wide configuration for GovernanceInstances to be updated.

type UpdateGovernanceInstanceConfigurationDetails struct {
    SenderInfo *UpdateSenderConfig `mandatory:"false" json:"senderInfo"`
}

func (UpdateGovernanceInstanceConfigurationDetails) String

func (m UpdateGovernanceInstanceConfigurationDetails) String() string

func (UpdateGovernanceInstanceConfigurationDetails) ValidateEnumValue

func (m UpdateGovernanceInstanceConfigurationDetails) 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

type UpdateGovernanceInstanceConfigurationRequest

UpdateGovernanceInstanceConfigurationRequest wrapper for the UpdateGovernanceInstanceConfiguration operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/accessgovernancecp/UpdateGovernanceInstanceConfiguration.go.html to see an example of how to use UpdateGovernanceInstanceConfigurationRequest.

type UpdateGovernanceInstanceConfigurationRequest struct {

    // The details of the tenancy-wide configuration to be updated.
    UpdateGovernanceInstanceConfigurationDetails `contributesTo:"body"`

    // The OCID of the compartment in which resources are listed.
    CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`

    // 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 (UpdateGovernanceInstanceConfigurationRequest) BinaryRequestBody

func (request UpdateGovernanceInstanceConfigurationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (UpdateGovernanceInstanceConfigurationRequest) HTTPRequest

func (request UpdateGovernanceInstanceConfigurationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (UpdateGovernanceInstanceConfigurationRequest) RetryPolicy

func (request UpdateGovernanceInstanceConfigurationRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (UpdateGovernanceInstanceConfigurationRequest) String

func (request UpdateGovernanceInstanceConfigurationRequest) String() string

func (UpdateGovernanceInstanceConfigurationRequest) ValidateEnumValue

func (request UpdateGovernanceInstanceConfigurationRequest) 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

type UpdateGovernanceInstanceConfigurationResponse

UpdateGovernanceInstanceConfigurationResponse wrapper for the UpdateGovernanceInstanceConfiguration operation

type UpdateGovernanceInstanceConfigurationResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The GovernanceInstanceConfiguration instance
    GovernanceInstanceConfiguration `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 (UpdateGovernanceInstanceConfigurationResponse) HTTPResponse

func (response UpdateGovernanceInstanceConfigurationResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (UpdateGovernanceInstanceConfigurationResponse) String

func (response UpdateGovernanceInstanceConfigurationResponse) String() string

type UpdateGovernanceInstanceDetails

UpdateGovernanceInstanceDetails The details of a GovernanceInstance to be updated.

type UpdateGovernanceInstanceDetails struct {

    // The name for the GovernanceInstance.
    DisplayName *string `mandatory:"false" json:"displayName"`

    // The description of the GovernanceInstance.
    Description *string `mandatory:"false" json:"description"`

    // The licenseType being used.
    LicenseType LicenseTypeEnum `mandatory:"false" json:"licenseType,omitempty"`

    // 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"`

    // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
    // Example: `{"bar-key": "value"}`
    FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
}

func (UpdateGovernanceInstanceDetails) String

func (m UpdateGovernanceInstanceDetails) String() string

func (UpdateGovernanceInstanceDetails) ValidateEnumValue

func (m UpdateGovernanceInstanceDetails) 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

type UpdateGovernanceInstanceRequest

UpdateGovernanceInstanceRequest wrapper for the UpdateGovernanceInstance operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/accessgovernancecp/UpdateGovernanceInstance.go.html to see an example of how to use UpdateGovernanceInstanceRequest.

type UpdateGovernanceInstanceRequest struct {

    // The details of the GovernanceInstance to be updated.
    UpdateGovernanceInstanceDetails `contributesTo:"body"`

    // The OCID of the GovernanceInstance
    GovernanceInstanceId *string `mandatory:"true" contributesTo:"path" name:"governanceInstanceId"`

    // 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 (UpdateGovernanceInstanceRequest) BinaryRequestBody

func (request UpdateGovernanceInstanceRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (UpdateGovernanceInstanceRequest) HTTPRequest

func (request UpdateGovernanceInstanceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (UpdateGovernanceInstanceRequest) RetryPolicy

func (request UpdateGovernanceInstanceRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (UpdateGovernanceInstanceRequest) String

func (request UpdateGovernanceInstanceRequest) String() string

func (UpdateGovernanceInstanceRequest) ValidateEnumValue

func (request UpdateGovernanceInstanceRequest) 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

type UpdateGovernanceInstanceResponse

UpdateGovernanceInstanceResponse wrapper for the UpdateGovernanceInstance operation

type UpdateGovernanceInstanceResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The GovernanceInstance instance
    GovernanceInstance `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 (UpdateGovernanceInstanceResponse) HTTPResponse

func (response UpdateGovernanceInstanceResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (UpdateGovernanceInstanceResponse) String

func (response UpdateGovernanceInstanceResponse) String() string

type UpdateSenderConfig

UpdateSenderConfig Update to a sender information for email notifications sent by GovernanceInstance.

type UpdateSenderConfig struct {

    // The sender's email.
    Email *string `mandatory:"true" json:"email"`

    // Whether the sender email has inbox configured to receive emails.
    IsInboxConfigured *bool `mandatory:"true" json:"isInboxConfigured"`

    // The sender's displayName.
    DisplayName *string `mandatory:"false" json:"displayName"`

    // Whether there is a need to resend the verification email.
    IsResendNotificationEmail *bool `mandatory:"false" json:"isResendNotificationEmail"`
}

func (UpdateSenderConfig) String

func (m UpdateSenderConfig) String() string

func (UpdateSenderConfig) ValidateEnumValue

func (m UpdateSenderConfig) 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