ErrorEntity The model for the error entity.
type ErrorEntity struct {
// A short error code that defines the error.
Code *string `mandatory:"true" json:"code"`
// A human-readable error string.
Message *string `mandatory:"true" json:"message"`
}
func (m ErrorEntity) String() string
GetServiceEnvironmentRequest wrapper for the GetServiceEnvironment operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/53.1.0/servicemanagerproxy/GetServiceEnvironment.go.html to see an example of how to use GetServiceEnvironmentRequest.
type GetServiceEnvironmentRequest struct {
// The Id associated with the service environment.
ServiceEnvironmentId *string `mandatory:"true" contributesTo:"path" name:"serviceEnvironmentId"`
// The unique identifier for the compartment.
CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`
// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
// please provide the request ID.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request GetServiceEnvironmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetServiceEnvironmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetServiceEnvironmentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetServiceEnvironmentRequest) String() string
GetServiceEnvironmentResponse wrapper for the GetServiceEnvironment operation
type GetServiceEnvironmentResponse struct {
// The underlying http response
RawResponse *http.Response
// The ServiceEnvironment instance
ServiceEnvironment `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 optimistic concurrency control. See `if-match`.
Etag *string `presentIn:"header" name:"etag"`
}
func (response GetServiceEnvironmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetServiceEnvironmentResponse) String() string
ListServiceEnvironmentsRequest wrapper for the ListServiceEnvironments operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/53.1.0/servicemanagerproxy/ListServiceEnvironments.go.html to see an example of how to use ListServiceEnvironmentsRequest.
type ListServiceEnvironmentsRequest struct {
// The unique identifier for the compartment.
CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`
// The Id associated with the service environment.
ServiceEnvironmentId *string `mandatory:"false" contributesTo:"query" name:"serviceEnvironmentId"`
// The service definition type of the environment.
ServiceEnvironmentType *string `mandatory:"false" contributesTo:"query" name:"serviceEnvironmentType"`
// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
// please provide the request ID.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// How many records to return. Specify a value greater than zero and less than or equal to 1000. The default is 30.
Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`
// The value of the `opc-next-page` response header from the previous "List" call.
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
// The field to sort by. Only one sort order may be provided. ID is default ordered as ascending.
SortBy ListServiceEnvironmentsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// The sort order to use, either `ASC` or `DESC`.
SortOrder ListServiceEnvironmentsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`
// The display name of the resource.
DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"`
// 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 ListServiceEnvironmentsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListServiceEnvironmentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListServiceEnvironmentsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListServiceEnvironmentsRequest) String() string
ListServiceEnvironmentsResponse wrapper for the ListServiceEnvironments operation
type ListServiceEnvironmentsResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of ServiceEnvironmentCollection instances
ServiceEnvironmentCollection `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 ListServiceEnvironmentsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListServiceEnvironmentsResponse) String() string
ListServiceEnvironmentsSortByEnum Enum with underlying type: string
type ListServiceEnvironmentsSortByEnum string
Set of constants representing the allowable values for ListServiceEnvironmentsSortByEnum
const (
ListServiceEnvironmentsSortById ListServiceEnvironmentsSortByEnum = "ID"
)
func GetListServiceEnvironmentsSortByEnumValues() []ListServiceEnvironmentsSortByEnum
GetListServiceEnvironmentsSortByEnumValues Enumerates the set of values for ListServiceEnvironmentsSortByEnum
ListServiceEnvironmentsSortOrderEnum Enum with underlying type: string
type ListServiceEnvironmentsSortOrderEnum string
Set of constants representing the allowable values for ListServiceEnvironmentsSortOrderEnum
const (
ListServiceEnvironmentsSortOrderAsc ListServiceEnvironmentsSortOrderEnum = "ASC"
ListServiceEnvironmentsSortOrderDesc ListServiceEnvironmentsSortOrderEnum = "DESC"
)
func GetListServiceEnvironmentsSortOrderEnumValues() []ListServiceEnvironmentsSortOrderEnum
GetListServiceEnvironmentsSortOrderEnumValues Enumerates the set of values for ListServiceEnvironmentsSortOrderEnum
ServiceDefinition Model for details associated with service
type ServiceDefinition struct {
// The service definition type.
Type *string `mandatory:"true" json:"type"`
// Display name of the service.
DisplayName *string `mandatory:"true" json:"displayName"`
// Short display name of the service.
ShortDisplayName *string `mandatory:"true" json:"shortDisplayName"`
}
func (m ServiceDefinition) String() string
ServiceEntitlementRegistrationStatusEnum Enum with underlying type: string
type ServiceEntitlementRegistrationStatusEnum string
Set of constants representing the allowable values for ServiceEntitlementRegistrationStatusEnum
const (
ServiceEntitlementRegistrationStatusInitialized ServiceEntitlementRegistrationStatusEnum = "INITIALIZED"
ServiceEntitlementRegistrationStatusBeginActivation ServiceEntitlementRegistrationStatusEnum = "BEGIN_ACTIVATION"
ServiceEntitlementRegistrationStatusActive ServiceEntitlementRegistrationStatusEnum = "ACTIVE"
ServiceEntitlementRegistrationStatusBeginSoftTermination ServiceEntitlementRegistrationStatusEnum = "BEGIN_SOFT_TERMINATION"
ServiceEntitlementRegistrationStatusSoftTerminated ServiceEntitlementRegistrationStatusEnum = "SOFT_TERMINATED"
ServiceEntitlementRegistrationStatusBeginTermination ServiceEntitlementRegistrationStatusEnum = "BEGIN_TERMINATION"
ServiceEntitlementRegistrationStatusCanceled ServiceEntitlementRegistrationStatusEnum = "CANCELED"
ServiceEntitlementRegistrationStatusTerminated ServiceEntitlementRegistrationStatusEnum = "TERMINATED"
ServiceEntitlementRegistrationStatusBeginDisabling ServiceEntitlementRegistrationStatusEnum = "BEGIN_DISABLING"
ServiceEntitlementRegistrationStatusBeginEnabling ServiceEntitlementRegistrationStatusEnum = "BEGIN_ENABLING"
ServiceEntitlementRegistrationStatusBeginMigration ServiceEntitlementRegistrationStatusEnum = "BEGIN_MIGRATION"
ServiceEntitlementRegistrationStatusDisabled ServiceEntitlementRegistrationStatusEnum = "DISABLED"
ServiceEntitlementRegistrationStatusBeginSuspension ServiceEntitlementRegistrationStatusEnum = "BEGIN_SUSPENSION"
ServiceEntitlementRegistrationStatusBeginResumption ServiceEntitlementRegistrationStatusEnum = "BEGIN_RESUMPTION"
ServiceEntitlementRegistrationStatusSuspended ServiceEntitlementRegistrationStatusEnum = "SUSPENDED"
ServiceEntitlementRegistrationStatusBeginLockRelocation ServiceEntitlementRegistrationStatusEnum = "BEGIN_LOCK_RELOCATION"
ServiceEntitlementRegistrationStatusLockedRelocation ServiceEntitlementRegistrationStatusEnum = "LOCKED_RELOCATION"
ServiceEntitlementRegistrationStatusBeginRelocation ServiceEntitlementRegistrationStatusEnum = "BEGIN_RELOCATION"
ServiceEntitlementRegistrationStatusRelocated ServiceEntitlementRegistrationStatusEnum = "RELOCATED"
ServiceEntitlementRegistrationStatusBeginUnlockRelocation ServiceEntitlementRegistrationStatusEnum = "BEGIN_UNLOCK_RELOCATION"
ServiceEntitlementRegistrationStatusUnlockedRelocation ServiceEntitlementRegistrationStatusEnum = "UNLOCKED_RELOCATION"
ServiceEntitlementRegistrationStatusFailedLockRelocation ServiceEntitlementRegistrationStatusEnum = "FAILED_LOCK_RELOCATION"
ServiceEntitlementRegistrationStatusFailedActivation ServiceEntitlementRegistrationStatusEnum = "FAILED_ACTIVATION"
ServiceEntitlementRegistrationStatusFailedMigration ServiceEntitlementRegistrationStatusEnum = "FAILED_MIGRATION"
ServiceEntitlementRegistrationStatusAccessDisabled ServiceEntitlementRegistrationStatusEnum = "ACCESS_DISABLED"
ServiceEntitlementRegistrationStatusBeginDisablingAccess ServiceEntitlementRegistrationStatusEnum = "BEGIN_DISABLING_ACCESS"
ServiceEntitlementRegistrationStatusBeginEnablingAccess ServiceEntitlementRegistrationStatusEnum = "BEGIN_ENABLING_ACCESS"
ServiceEntitlementRegistrationStatusTraUnknown ServiceEntitlementRegistrationStatusEnum = "TRA_UNKNOWN"
)
func GetServiceEntitlementRegistrationStatusEnumValues() []ServiceEntitlementRegistrationStatusEnum
GetServiceEntitlementRegistrationStatusEnumValues Enumerates the set of values for ServiceEntitlementRegistrationStatusEnum
ServiceEnvironment Model describing service environment properties.
type ServiceEnvironment struct {
// Unqiue identifier for the entitlement related to the environment.
Id *string `mandatory:"true" json:"id"`
// The subscription Id corresponding to the service environment Id.
SubscriptionId *string `mandatory:"true" json:"subscriptionId"`
// Status of the entitlement registration for the service.
Status ServiceEntitlementRegistrationStatusEnum `mandatory:"true" json:"status"`
// Compartment Id associated with the service.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
ServiceDefinition *ServiceDefinition `mandatory:"true" json:"serviceDefinition"`
// The URL for the console.
ConsoleUrl *string `mandatory:"false" json:"consoleUrl"`
// Array of service environment end points.
ServiceEnvironmentEndpoints []ServiceEnvironmentEndPointOverview `mandatory:"false" json:"serviceEnvironmentEndpoints"`
}
func (m ServiceEnvironment) String() string
ServiceEnvironmentCollection Collection of Service environements.
type ServiceEnvironmentCollection struct {
// Collection of items.
Items []ServiceEnvironmentSummary `mandatory:"true" json:"items"`
}
func (m ServiceEnvironmentCollection) String() string
ServiceEnvironmentEndPointOverview Model describing the properties of service environment endPoint overview.
type ServiceEnvironmentEndPointOverview struct {
// Service Environemnt EndPoint type.
EnvironmentType ServiceEnvironmentEndPointOverviewEnvironmentTypeEnum `mandatory:"true" json:"environmentType"`
// Service Environemnt Instance EndPoint url.
Url *string `mandatory:"true" json:"url"`
}
func (m ServiceEnvironmentEndPointOverview) String() string
ServiceEnvironmentEndPointOverviewEnvironmentTypeEnum Enum with underlying type: string
type ServiceEnvironmentEndPointOverviewEnvironmentTypeEnum string
Set of constants representing the allowable values for ServiceEnvironmentEndPointOverviewEnvironmentTypeEnum
const (
ServiceEnvironmentEndPointOverviewEnvironmentTypeProd ServiceEnvironmentEndPointOverviewEnvironmentTypeEnum = "INSTANCE_URL_PROD"
ServiceEnvironmentEndPointOverviewEnvironmentTypeTest ServiceEnvironmentEndPointOverviewEnvironmentTypeEnum = "INSTANCE_URL_TEST"
ServiceEnvironmentEndPointOverviewEnvironmentTypeDev ServiceEnvironmentEndPointOverviewEnvironmentTypeEnum = "INSTANCE_URL_DEV"
)
func GetServiceEnvironmentEndPointOverviewEnvironmentTypeEnumValues() []ServiceEnvironmentEndPointOverviewEnvironmentTypeEnum
GetServiceEnvironmentEndPointOverviewEnvironmentTypeEnumValues Enumerates the set of values for ServiceEnvironmentEndPointOverviewEnvironmentTypeEnum
ServiceEnvironmentSummary Model describing service environment details.
type ServiceEnvironmentSummary struct {
// Unqiue identifier for the entitlement related to the environment.
Id *string `mandatory:"true" json:"id"`
// The subscription Id corresponding to the service environment Id.
SubscriptionId *string `mandatory:"true" json:"subscriptionId"`
// Status of the entitlement registration for the service.
Status ServiceEntitlementRegistrationStatusEnum `mandatory:"true" json:"status"`
// Compartment Id associated with the service.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
ServiceDefinition *ServiceDefinition `mandatory:"true" json:"serviceDefinition"`
// The URL for the console.
ConsoleUrl *string `mandatory:"false" json:"consoleUrl"`
// Array of service environment end points.
ServiceEnvironmentEndpoints []ServiceEnvironmentEndPointOverview `mandatory:"false" json:"serviceEnvironmentEndpoints"`
// 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 (m ServiceEnvironmentSummary) String() string
ServiceManagerProxyClient a client for ServiceManagerProxy
type ServiceManagerProxyClient struct {
common.BaseClient
// contains filtered or unexported fields
}
func NewServiceManagerProxyClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client ServiceManagerProxyClient, err error)
NewServiceManagerProxyClientWithConfigurationProvider Creates a new default ServiceManagerProxy client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region
func NewServiceManagerProxyClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client ServiceManagerProxyClient, err error)
NewServiceManagerProxyClientWithOboToken Creates a new default ServiceManagerProxy 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 *ServiceManagerProxyClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (client ServiceManagerProxyClient) GetServiceEnvironment(ctx context.Context, request GetServiceEnvironmentRequest) (response GetServiceEnvironmentResponse, err error)
GetServiceEnvironment Gets details of the service environment specified by the serviceEnvironmentId.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/53.1.0/servicemanagerproxy/GetServiceEnvironment.go.html to see an example of how to use GetServiceEnvironment API.
func (client ServiceManagerProxyClient) ListServiceEnvironments(ctx context.Context, request ListServiceEnvironmentsRequest) (response ListServiceEnvironmentsResponse, err error)
ListServiceEnvironments List details of environments which the service is authorized to view. This includes the service instance endpoints and service definition details.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/53.1.0/servicemanagerproxy/ListServiceEnvironments.go.html to see an example of how to use ListServiceEnvironments API.
func (client *ServiceManagerProxyClient) SetRegion(region string)
SetRegion overrides the region of this client.