ActivityItem Details about the ActivityItem object.
type ActivityItem struct { // Unique identifier for the item. ItemKey *string `mandatory:"true" json:"itemKey"` // The display name of the item. Name *string `mandatory:"false" json:"name"` Category *Category `mandatory:"false" json:"category"` SubCategory *SubCategory `mandatory:"false" json:"subCategory"` IssueType *IssueType `mandatory:"false" json:"issueType"` // Comments added with the activity on the support ticket. Comments *string `mandatory:"false" json:"comments"` // The time when the activity was created, in milliseconds since epoch time. TimeCreated *int `mandatory:"false" json:"timeCreated"` // The time when the activity was updated, in milliseconds since epoch time. TimeUpdated *int `mandatory:"false" json:"timeUpdated"` // The type of activity occuring on the support ticket. ActivityType ActivityItemActivityTypeEnum `mandatory:"false" json:"activityType,omitempty"` // The person who updates the activity on the support ticket. ActivityAuthor ActivityItemActivityAuthorEnum `mandatory:"false" json:"activityAuthor,omitempty"` }
func (m ActivityItem) GetCategory() *Category
GetCategory returns Category
func (m ActivityItem) GetIssueType() *IssueType
GetIssueType returns IssueType
func (m ActivityItem) GetItemKey() *string
GetItemKey returns ItemKey
func (m ActivityItem) GetName() *string
GetName returns Name
func (m ActivityItem) GetSubCategory() *SubCategory
GetSubCategory returns SubCategory
func (m ActivityItem) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m ActivityItem) String() string
ActivityItemActivityAuthorEnum Enum with underlying type: string
type ActivityItemActivityAuthorEnum string
Set of constants representing the allowable values for ActivityItemActivityAuthorEnum
const ( ActivityItemActivityAuthorCustomer ActivityItemActivityAuthorEnum = "CUSTOMER" ActivityItemActivityAuthorOracle ActivityItemActivityAuthorEnum = "ORACLE" )
func GetActivityItemActivityAuthorEnumValues() []ActivityItemActivityAuthorEnum
GetActivityItemActivityAuthorEnumValues Enumerates the set of values for ActivityItemActivityAuthorEnum
ActivityItemActivityTypeEnum Enum with underlying type: string
type ActivityItemActivityTypeEnum string
Set of constants representing the allowable values for ActivityItemActivityTypeEnum
const ( ActivityItemActivityTypeNotes ActivityItemActivityTypeEnum = "NOTES" ActivityItemActivityTypeProblemDescription ActivityItemActivityTypeEnum = "PROBLEM_DESCRIPTION" ActivityItemActivityTypeUpdate ActivityItemActivityTypeEnum = "UPDATE" ActivityItemActivityTypeClose ActivityItemActivityTypeEnum = "CLOSE" )
func GetActivityItemActivityTypeEnumValues() []ActivityItemActivityTypeEnum
GetActivityItemActivityTypeEnumValues Enumerates the set of values for ActivityItemActivityTypeEnum
AvailabilityDomainEnum Enum with underlying type: string
type AvailabilityDomainEnum string
Set of constants representing the allowable values for AvailabilityDomainEnum
const ( AvailabilityDomainDev1 AvailabilityDomainEnum = "DEV_1" AvailabilityDomainDev2 AvailabilityDomainEnum = "DEV_2" AvailabilityDomainDev3 AvailabilityDomainEnum = "DEV_3" AvailabilityDomainIntegNext1 AvailabilityDomainEnum = "INTEG_NEXT_1" AvailabilityDomainIntegStable1 AvailabilityDomainEnum = "INTEG_STABLE_1" AvailabilityDomainSeaAd1 AvailabilityDomainEnum = "SEA_AD_1" AvailabilityDomainSeaAd2 AvailabilityDomainEnum = "SEA_AD_2" AvailabilityDomainSeaAd3 AvailabilityDomainEnum = "SEA_AD_3" AvailabilityDomainPhxAd1 AvailabilityDomainEnum = "PHX_AD_1" AvailabilityDomainPhxAd2 AvailabilityDomainEnum = "PHX_AD_2" AvailabilityDomainPhxAd3 AvailabilityDomainEnum = "PHX_AD_3" AvailabilityDomainUsAshburnAd1 AvailabilityDomainEnum = "US_ASHBURN_AD_1" AvailabilityDomainUsAshburnAd2 AvailabilityDomainEnum = "US_ASHBURN_AD_2" AvailabilityDomainUsAshburnAd3 AvailabilityDomainEnum = "US_ASHBURN_AD_3" AvailabilityDomainUsAshburnAd4 AvailabilityDomainEnum = "US_ASHBURN_AD_4" AvailabilityDomainEuFrankfurt1Ad1 AvailabilityDomainEnum = "EU_FRANKFURT_1_AD_1" AvailabilityDomainEuFrankfurt1Ad2 AvailabilityDomainEnum = "EU_FRANKFURT_1_AD_2" AvailabilityDomainEuFrankfurt1Ad3 AvailabilityDomainEnum = "EU_FRANKFURT_1_AD_3" AvailabilityDomainUkLondon1Ad1 AvailabilityDomainEnum = "UK_LONDON_1_AD_1" AvailabilityDomainUkLondon1Ad2 AvailabilityDomainEnum = "UK_LONDON_1_AD_2" AvailabilityDomainUkLondon1Ad3 AvailabilityDomainEnum = "UK_LONDON_1_AD_3" AvailabilityDomainCaToronto1Ad1 AvailabilityDomainEnum = "CA_TORONTO_1_AD_1" AvailabilityDomainApTokyo1Ad1 AvailabilityDomainEnum = "AP_TOKYO_1_AD_1" AvailabilityDomainApSeoul1Ad1 AvailabilityDomainEnum = "AP_SEOUL_1_AD_1" AvailabilityDomainApMumbai1Ad1 AvailabilityDomainEnum = "AP_MUMBAI_1_AD_1" AvailabilityDomainSaSaopaulo1Ad1 AvailabilityDomainEnum = "SA_SAOPAULO_1_AD_1" AvailabilityDomainMeJeddah1Ad1 AvailabilityDomainEnum = "ME_JEDDAH_1_AD_1" AvailabilityDomainApOsaka1Ad1 AvailabilityDomainEnum = "AP_OSAKA_1_AD_1" AvailabilityDomainApSydney1Ad1 AvailabilityDomainEnum = "AP_SYDNEY_1_AD_1" AvailabilityDomainEuZurich1Ad1 AvailabilityDomainEnum = "EU_ZURICH_1_AD_1" AvailabilityDomainEuAmsterdam1Ad1 AvailabilityDomainEnum = "EU_AMSTERDAM_1_AD_1" AvailabilityDomainApMelbourne1Ad1 AvailabilityDomainEnum = "AP_MELBOURNE_1_AD_1" AvailabilityDomainCaMontreal1Ad1 AvailabilityDomainEnum = "CA_MONTREAL_1_AD_1" AvailabilityDomainApHyderabad1Ad1 AvailabilityDomainEnum = "AP_HYDERABAD_1_AD_1" AvailabilityDomainApChuncheon1Ad1 AvailabilityDomainEnum = "AP_CHUNCHEON_1_AD_1" AvailabilityDomainNoAd AvailabilityDomainEnum = "NO_AD" )
func GetAvailabilityDomainEnumValues() []AvailabilityDomainEnum
GetAvailabilityDomainEnumValues Enumerates the set of values for AvailabilityDomainEnum
Category Details about the category associated with the support ticket.
type Category struct { // Unique identifier for the category. CategoryKey *string `mandatory:"false" json:"categoryKey"` // The name of the category. For example, `Compute` or `Identity`. Name *string `mandatory:"false" json:"name"` }
func (m Category) String() string
Classifier Details about the incident classifier object.
type Classifier struct { // Unique identifier of the classifier. Id *string `mandatory:"false" json:"id"` // The display name of the classifier. Name *string `mandatory:"false" json:"name"` // The label associated with the classifier. Label *string `mandatory:"false" json:"label"` // The description of the classifier. Description *string `mandatory:"false" json:"description"` // The list of issues. IssueTypeList []IssueType `mandatory:"false" json:"issueTypeList"` // The scope of the service category or resource. Scope ClassifierScopeEnum `mandatory:"false" json:"scope,omitempty"` // The unit to use to measure the service category or resource. Unit ClassifierUnitEnum `mandatory:"false" json:"unit,omitempty"` }
func (m Classifier) String() string
ClassifierScopeEnum Enum with underlying type: string
type ClassifierScopeEnum string
Set of constants representing the allowable values for ClassifierScopeEnum
const ( ClassifierScopeAd ClassifierScopeEnum = "AD" ClassifierScopeRegion ClassifierScopeEnum = "REGION" ClassifierScopeTenancy ClassifierScopeEnum = "TENANCY" ClassifierScopeNone ClassifierScopeEnum = "NONE" )
func GetClassifierScopeEnumValues() []ClassifierScopeEnum
GetClassifierScopeEnumValues Enumerates the set of values for ClassifierScopeEnum
ClassifierUnitEnum Enum with underlying type: string
type ClassifierUnitEnum string
Set of constants representing the allowable values for ClassifierUnitEnum
const ( ClassifierUnitCount ClassifierUnitEnum = "COUNT" ClassifierUnitGb ClassifierUnitEnum = "GB" ClassifierUnitNone ClassifierUnitEnum = "NONE" )
func GetClassifierUnitEnumValues() []ClassifierUnitEnum
GetClassifierUnitEnumValues Enumerates the set of values for ClassifierUnitEnum
Contact Contact details for the customer.
type Contact struct { // The name of the contact person. ContactName *string `mandatory:"false" json:"contactName"` // The email of the contact person. ContactEmail *string `mandatory:"false" json:"contactEmail"` // The phone number of the contact person. ContactPhone *string `mandatory:"false" json:"contactPhone"` // The type of contact, such as primary or alternate. ContactType ContactContactTypeEnum `mandatory:"false" json:"contactType,omitempty"` }
func (m Contact) String() string
ContactContactTypeEnum Enum with underlying type: string
type ContactContactTypeEnum string
Set of constants representing the allowable values for ContactContactTypeEnum
const ( ContactContactTypePrimary ContactContactTypeEnum = "PRIMARY" ContactContactTypeAlternate ContactContactTypeEnum = "ALTERNATE" ContactContactTypeSecondary ContactContactTypeEnum = "SECONDARY" ContactContactTypeAdmin ContactContactTypeEnum = "ADMIN" ContactContactTypeManager ContactContactTypeEnum = "MANAGER" )
func GetContactContactTypeEnumValues() []ContactContactTypeEnum
GetContactContactTypeEnumValues Enumerates the set of values for ContactContactTypeEnum
ContactList The list of contacts for the ticket.
type ContactList struct { // The list of contacts. ContactList []Contact `mandatory:"true" json:"contactList"` }
func (m ContactList) String() string
ContextualData The representation of ContextualData
type ContextualData struct { // The unique client identifier ClientId *string `mandatory:"true" json:"clientId"` // The schema name SchemaName *string `mandatory:"true" json:"schemaName"` // The schema version SchemaVersion *string `mandatory:"true" json:"schemaVersion"` // The context data payload Payload *string `mandatory:"true" json:"payload"` }
func (m ContextualData) String() string
CreateCategoryDetails Details for creating the category of the support ticket. **Caution:** Avoid using any confidential information when you supply string values using the API.
type CreateCategoryDetails struct { // Unique identifier for the category. CategoryKey *string `mandatory:"false" json:"categoryKey"` }
func (m CreateCategoryDetails) String() string
CreateIncident Details gathered during the creation of the support ticket. **Caution:** Avoid using any confidential information when you supply string values using the API.
type CreateIncident struct { // The OCID of the tenancy. CompartmentId *string `mandatory:"true" json:"compartmentId"` Ticket *CreateTicketDetails `mandatory:"true" json:"ticket"` // The kind of support ticket, such as a technical issue request. ProblemType ProblemTypeEnum `mandatory:"true" json:"problemType"` // The Customer Support Identifier number for the support account. Csi *string `mandatory:"false" json:"csi"` // The list of contacts. Contacts []Contact `mandatory:"false" json:"contacts"` // The incident referrer. This value is often the URL that the customer used when creating the support ticket. Referrer *string `mandatory:"false" json:"referrer"` }
func (m CreateIncident) String() string
CreateIncidentRequest wrapper for the CreateIncident operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/cims/CreateIncident.go.html to see an example of how to use CreateIncidentRequest.
type CreateIncidentRequest struct { // Incident information CreateIncidentDetails CreateIncident `contributesTo:"body"` // User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle Cloud Infrastructure account. Ocid *string `mandatory:"true" contributesTo:"header" name:"ocid"` // 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"` // The region of the tenancy. Homeregion *string `mandatory:"false" contributesTo:"header" name:"homeregion"` // 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 CreateIncidentRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateIncidentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateIncidentRequest) String() string
CreateIncidentResponse wrapper for the CreateIncident operation
type CreateIncidentResponse struct { // The underlying http response RawResponse *http.Response // The Incident instance Incident `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response CreateIncidentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateIncidentResponse) String() string
CreateIssueTypeDetails Details for creating the issue type of the support ticket. **Caution:** Avoid using any confidential information when you supply string values using the API.
type CreateIssueTypeDetails struct { // Unique identifier for the issue type. IssueTypeKey *string `mandatory:"false" json:"issueTypeKey"` }
func (m CreateIssueTypeDetails) String() string
CreateItemDetails Details gathered during item creation. **Caution:** Avoid using any confidential information when you supply string values using the API.
type CreateItemDetails interface { GetCategory() *CreateCategoryDetails GetSubCategory() *CreateSubCategoryDetails GetIssueType() *CreateIssueTypeDetails // The display name of the item. GetName() *string }
CreateLimitItemDetails Reserved for future use.
type CreateLimitItemDetails struct { Category *CreateCategoryDetails `mandatory:"false" json:"category"` SubCategory *CreateSubCategoryDetails `mandatory:"false" json:"subCategory"` IssueType *CreateIssueTypeDetails `mandatory:"false" json:"issueType"` // The display name of the item. Name *string `mandatory:"false" json:"name"` // The limit of the resource currently available. CurrentLimit *int `mandatory:"false" json:"currentLimit"` // The current usage of the resource. CurrentUsage *int `mandatory:"false" json:"currentUsage"` // Reserved for future use. RequestedLimit *int `mandatory:"false" json:"requestedLimit"` // The current status of the request. LimitStatus CreateLimitItemDetailsLimitStatusEnum `mandatory:"false" json:"limitStatus,omitempty"` }
func (m CreateLimitItemDetails) GetCategory() *CreateCategoryDetails
GetCategory returns Category
func (m CreateLimitItemDetails) GetIssueType() *CreateIssueTypeDetails
GetIssueType returns IssueType
func (m CreateLimitItemDetails) GetName() *string
GetName returns Name
func (m CreateLimitItemDetails) GetSubCategory() *CreateSubCategoryDetails
GetSubCategory returns SubCategory
func (m CreateLimitItemDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m CreateLimitItemDetails) String() string
CreateLimitItemDetailsLimitStatusEnum Enum with underlying type: string
type CreateLimitItemDetailsLimitStatusEnum string
Set of constants representing the allowable values for CreateLimitItemDetailsLimitStatusEnum
const ( CreateLimitItemDetailsLimitStatusApproved CreateLimitItemDetailsLimitStatusEnum = "APPROVED" CreateLimitItemDetailsLimitStatusPartiallyApproved CreateLimitItemDetailsLimitStatusEnum = "PARTIALLY_APPROVED" CreateLimitItemDetailsLimitStatusNotApproved CreateLimitItemDetailsLimitStatusEnum = "NOT_APPROVED" )
func GetCreateLimitItemDetailsLimitStatusEnumValues() []CreateLimitItemDetailsLimitStatusEnum
GetCreateLimitItemDetailsLimitStatusEnumValues Enumerates the set of values for CreateLimitItemDetailsLimitStatusEnum
CreateResourceDetails Details about the resource that the support ticket relates to. **Caution:** Avoid using any confidential information when you supply string values using the API.
type CreateResourceDetails struct { Item CreateItemDetails `mandatory:"false" json:"item"` // The list of available Oracle Cloud Infrastructure regions. Region RegionEnum `mandatory:"false" json:"region,omitempty"` // The list of available Oracle Cloud Infrastructure availability domains. AvailabilityDomain AvailabilityDomainEnum `mandatory:"false" json:"availabilityDomain,omitempty"` }
func (m CreateResourceDetails) String() string
func (m *CreateResourceDetails) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
CreateSubCategoryDetails Details for creating the subcategory of the support ticket. **Caution:** Avoid using any confidential information when you supply string values using the API.
type CreateSubCategoryDetails struct { // Unique identifier for the subcategory. SubCategoryKey *string `mandatory:"false" json:"subCategoryKey"` }
func (m CreateSubCategoryDetails) String() string
CreateTechSupportItemDetails Details about the issue that the technical support request relates to. **Caution:** Avoid using any confidential information when you supply string values using the API.
type CreateTechSupportItemDetails struct { Category *CreateCategoryDetails `mandatory:"false" json:"category"` SubCategory *CreateSubCategoryDetails `mandatory:"false" json:"subCategory"` IssueType *CreateIssueTypeDetails `mandatory:"false" json:"issueType"` // The display name of the item. Name *string `mandatory:"false" json:"name"` }
func (m CreateTechSupportItemDetails) GetCategory() *CreateCategoryDetails
GetCategory returns Category
func (m CreateTechSupportItemDetails) GetIssueType() *CreateIssueTypeDetails
GetIssueType returns IssueType
func (m CreateTechSupportItemDetails) GetName() *string
GetName returns Name
func (m CreateTechSupportItemDetails) GetSubCategory() *CreateSubCategoryDetails
GetSubCategory returns SubCategory
func (m CreateTechSupportItemDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m CreateTechSupportItemDetails) String() string
CreateTicketDetails Details relevant to the support ticket. **Caution:** Avoid using any confidential information when you supply string values using the API.
type CreateTicketDetails struct { // The severity of the support ticket. Severity CreateTicketDetailsSeverityEnum `mandatory:"true" json:"severity"` // The title of the support ticket. Title *string `mandatory:"true" json:"title"` // The description of the support ticket. Description *string `mandatory:"true" json:"description"` // The list of resources. ResourceList []CreateResourceDetails `mandatory:"false" json:"resourceList"` // The context from where the ticket is getting created. ContextualData *ContextualData `mandatory:"false" json:"contextualData"` }
func (m CreateTicketDetails) String() string
CreateTicketDetailsSeverityEnum Enum with underlying type: string
type CreateTicketDetailsSeverityEnum string
Set of constants representing the allowable values for CreateTicketDetailsSeverityEnum
const ( CreateTicketDetailsSeverityHighest CreateTicketDetailsSeverityEnum = "HIGHEST" CreateTicketDetailsSeverityHigh CreateTicketDetailsSeverityEnum = "HIGH" CreateTicketDetailsSeverityMedium CreateTicketDetailsSeverityEnum = "MEDIUM" )
func GetCreateTicketDetailsSeverityEnumValues() []CreateTicketDetailsSeverityEnum
GetCreateTicketDetailsSeverityEnumValues Enumerates the set of values for CreateTicketDetailsSeverityEnum
CreateUserDetails Details about creation of user.
type CreateUserDetails struct { // The OCID of the tenancy. CompartmentId *string `mandatory:"true" json:"compartmentId"` // First name of the user. FirstName *string `mandatory:"true" json:"firstName"` // Last name of the user. LastName *string `mandatory:"true" json:"lastName"` // Country of the user. Country *string `mandatory:"true" json:"country"` // CSI to be associated to the user. Csi *string `mandatory:"true" json:"csi"` // Contact number of the user. Phone *string `mandatory:"true" json:"phone"` // Timezone of the user. Timezone *string `mandatory:"true" json:"timezone"` // Organization of the user. OrganizationName *string `mandatory:"true" json:"organizationName"` }
func (m CreateUserDetails) String() string
CreateUserRequest wrapper for the CreateUser operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/cims/CreateUser.go.html to see an example of how to use CreateUserRequest.
type CreateUserRequest struct { // User information CreateUserDetails `contributesTo:"body"` // User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle Cloud Infrastructure account. Ocid *string `mandatory:"true" contributesTo:"header" name:"ocid"` // 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"` // The region of the tenancy. Homeregion *string `mandatory:"false" contributesTo:"header" name:"homeregion"` // 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 CreateUserRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateUserRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateUserRequest) String() string
CreateUserResponse wrapper for the CreateUser operation
type CreateUserResponse struct { // The underlying http response RawResponse *http.Response // The User instance User `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response CreateUserResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateUserResponse) String() string
ErrorCodeEnum Enum with underlying type: string
type ErrorCodeEnum string
Set of constants representing the allowable values for ErrorCodeEnum
const ( ErrorCodeContentEmpty ErrorCodeEnum = "CONTENT_EMPTY" ErrorCodeClientException ErrorCodeEnum = "CLIENT_EXCEPTION" ErrorCodeInvalidFormat ErrorCodeEnum = "INVALID_FORMAT" ErrorCodeInvalidJsonInput ErrorCodeEnum = "INVALID_JSON_INPUT" ErrorCodeSslAuthorization ErrorCodeEnum = "SSL_AUTHORIZATION" ErrorCodeAuthFailed ErrorCodeEnum = "AUTH_FAILED" ErrorCodeCsiNotAuthorized ErrorCodeEnum = "CSI_NOT_AUTHORIZED" ErrorCodeUserPolicyNotAuthorized ErrorCodeEnum = "USER_POLICY_NOT_AUTHORIZED" ErrorCodeEmailNotVerified ErrorCodeEnum = "EMAIL_NOT_VERIFIED" ErrorCodeEmailNotFound ErrorCodeEnum = "EMAIL_NOT_FOUND" ErrorCodeIdcsEmailNotValid ErrorCodeEnum = "IDCS_EMAIL_NOT_VALID" ErrorCodeInvalidPath ErrorCodeEnum = "INVALID_PATH" ErrorCodeMethodNotAllowed ErrorCodeEnum = "METHOD_NOT_ALLOWED" ErrorCodeJsonProcessing ErrorCodeEnum = "JSON_PROCESSING" ErrorCodeGenericException ErrorCodeEnum = "GENERIC_EXCEPTION" ErrorCodeEnum = "EXTERNAL_SERVICE_PROVIDER_UNAVAILABLE" ErrorCodeExternalServiceProviderTimeout ErrorCodeEnum = "EXTERNAL_SERVICE_PROVIDER_TIMEOUT" ErrorCodeTooManyRequests ErrorCodeEnum = "TOO_MANY_REQUESTS" ErrorCodeIdpScimNotSetup ErrorCodeEnum = "IDP_SCIM_NOT_SETUP" ErrorCodeIncidentNotFound ErrorCodeEnum = "INCIDENT_NOT_FOUND" ErrorCodeInvalidUserCsi ErrorCodeEnum = "INVALID_USER_CSI" ErrorCodeDataAlreadyExists ErrorCodeEnum = "DATA_ALREADY_EXISTS" ErrorCodeAuthUserNotMatching ErrorCodeEnum = "AUTH_USER_NOT_MATCHING" )
func GetErrorCodeEnumValues() []ErrorCodeEnum
GetErrorCodeEnumValues Enumerates the set of values for ErrorCodeEnum
GetIncidentRequest wrapper for the GetIncident operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/cims/GetIncident.go.html to see an example of how to use GetIncidentRequest.
type GetIncidentRequest struct { // Unique identifier for the support ticket. IncidentKey *string `mandatory:"true" contributesTo:"path" name:"incidentKey"` // The Customer Support Identifier associated with the support account. Csi *string `mandatory:"true" contributesTo:"header" name:"csi"` // User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle Cloud Infrastructure account. Ocid *string `mandatory:"true" contributesTo:"header" name:"ocid"` // 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"` // The region of the tenancy. Homeregion *string `mandatory:"false" contributesTo:"header" name:"homeregion"` // The kind of support request. ProblemType *string `mandatory:"false" contributesTo:"header" name:"problem-type"` // 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 GetIncidentRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetIncidentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetIncidentRequest) String() string
GetIncidentResponse wrapper for the GetIncident operation
type GetIncidentResponse struct { // The underlying http response RawResponse *http.Response // The Incident instance Incident `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetIncidentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetIncidentResponse) String() string
GetStatusRequest wrapper for the GetStatus operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/cims/GetStatus.go.html to see an example of how to use GetStatusRequest.
type GetStatusRequest struct { // The system that generated the support ticket, such as My Oracle Support. Source *string `mandatory:"true" contributesTo:"path" name:"source"` // User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle Cloud Infrastructure account. Ocid *string `mandatory:"true" contributesTo:"header" name:"ocid"` // 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"` // The region of the tenancy. Homeregion *string `mandatory:"false" contributesTo:"header" name:"homeregion"` // 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 GetStatusRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetStatusRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetStatusRequest) String() string
GetStatusResponse wrapper for the GetStatus operation
type GetStatusResponse struct { // The underlying http response RawResponse *http.Response // The Status instance Status `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetStatusResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetStatusResponse) String() string
Incident Details of about the incident object.
type Incident struct { // Unique identifier for the support ticket. Key *string `mandatory:"true" json:"key"` // The OCID of the tenancy. CompartmentId *string `mandatory:"false" json:"compartmentId"` ContactList *ContactList `mandatory:"false" json:"contactList"` TenancyInformation *TenancyInformation `mandatory:"false" json:"tenancyInformation"` Ticket *Ticket `mandatory:"false" json:"ticket"` IncidentType *IncidentType `mandatory:"false" json:"incidentType"` // The kind of support ticket, such as a technical support request. ProblemType ProblemTypeEnum `mandatory:"false" json:"problemType,omitempty"` // The incident referrer. This value is often the URL that the customer used when creating the support ticket. Referrer *string `mandatory:"false" json:"referrer"` }
func (m Incident) String() string
IncidentClient a client for Incident
type IncidentClient struct { common.BaseClient // contains filtered or unexported fields }
func NewIncidentClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client IncidentClient, err error)
NewIncidentClientWithConfigurationProvider Creates a new default Incident client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region
func NewIncidentClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client IncidentClient, err error)
NewIncidentClientWithOboToken Creates a new default Incident 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 *IncidentClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (client IncidentClient) CreateIncident(ctx context.Context, request CreateIncidentRequest) (response CreateIncidentResponse, err error)
CreateIncident Enables the customer to create an support ticket.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/cims/CreateIncident.go.html to see an example of how to use CreateIncident API.
func (client IncidentClient) GetIncident(ctx context.Context, request GetIncidentRequest) (response GetIncidentResponse, err error)
GetIncident Gets the details of the support ticket.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/cims/GetIncident.go.html to see an example of how to use GetIncident API.
func (client IncidentClient) GetStatus(ctx context.Context, request GetStatusRequest) (response GetStatusResponse, err error)
GetStatus Gets the status of the service.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/cims/GetStatus.go.html to see an example of how to use GetStatus API.
func (client IncidentClient) ListIncidentResourceTypes(ctx context.Context, request ListIncidentResourceTypesRequest) (response ListIncidentResourceTypesResponse, err error)
ListIncidentResourceTypes During support ticket creation, returns the list of all possible products that Oracle Cloud Infrastructure supports.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/cims/ListIncidentResourceTypes.go.html to see an example of how to use ListIncidentResourceTypes API.
func (client IncidentClient) ListIncidents(ctx context.Context, request ListIncidentsRequest) (response ListIncidentsResponse, err error)
ListIncidents Returns the list of support tickets raised by the tenancy.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/cims/ListIncidents.go.html to see an example of how to use ListIncidents API.
func (client *IncidentClient) SetRegion(region string)
SetRegion overrides the region of this client.
func (client IncidentClient) UpdateIncident(ctx context.Context, request UpdateIncidentRequest) (response UpdateIncidentResponse, err error)
UpdateIncident Updates the specified support ticket's information.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/cims/UpdateIncident.go.html to see an example of how to use UpdateIncident API.
func (client IncidentClient) ValidateUser(ctx context.Context, request ValidateUserRequest) (response ValidateUserResponse, err error)
ValidateUser Checks whether the requested user is valid.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/cims/ValidateUser.go.html to see an example of how to use ValidateUser API.
IncidentResourceType Details about the resource associated with the support request.
type IncidentResourceType struct { // The label associated with the resource. Label *string `mandatory:"true" json:"label"` // Unique identifier of the resource. ResourceTypeKey *string `mandatory:"false" json:"resourceTypeKey"` // The display name of the resource. Name *string `mandatory:"false" json:"name"` // The description of the resource. Description *string `mandatory:"false" json:"description"` // The service category list. ServiceCategoryList []ServiceCategory `mandatory:"false" json:"serviceCategoryList"` }
func (m IncidentResourceType) String() string
IncidentSummary Details about the support ticket.
type IncidentSummary struct { // Unique identifier of the incident. Key *string `mandatory:"true" json:"key"` // The kind of support ticket, such as a technical support request. ProblemType ProblemTypeEnum `mandatory:"true" json:"problemType"` // The OCID of the tenancy. CompartmentId *string `mandatory:"false" json:"compartmentId"` ContactList *ContactList `mandatory:"false" json:"contactList"` TenancyInformation *TenancyInformation `mandatory:"false" json:"tenancyInformation"` Ticket *Ticket `mandatory:"false" json:"ticket"` IncidentType *IncidentResourceType `mandatory:"false" json:"incidentType"` }
func (m IncidentSummary) String() string
IncidentType Details about the incident type object.
type IncidentType struct { // Unique identifier for the incident type. Id *string `mandatory:"false" json:"id"` // The name of the incident type. Name *string `mandatory:"false" json:"name"` // The label associated with the incident type. Label *string `mandatory:"false" json:"label"` // The description of the incident type. Description *string `mandatory:"false" json:"description"` // The list of classifiers. ClassifierList []Classifier `mandatory:"false" json:"classifierList"` }
func (m IncidentType) String() string
IssueType Details about the issue type associated with the support ticket.
type IssueType struct { // Unique identifier for the issue type. IssueTypeKey *string `mandatory:"false" json:"issueTypeKey"` // The label for the issue type. For example, `Instance Performance`. Label *string `mandatory:"false" json:"label"` }
func (m IssueType) String() string
Item Details about the item object.
type Item interface { // Unique identifier for the item. GetItemKey() *string // The display name of the item. GetName() *string GetCategory() *Category GetSubCategory() *SubCategory GetIssueType() *IssueType }
LifecycleDetailsEnum Enum with underlying type: string
type LifecycleDetailsEnum string
Set of constants representing the allowable values for LifecycleDetailsEnum
const ( LifecycleDetailsPendingWithOracle LifecycleDetailsEnum = "PENDING_WITH_ORACLE" LifecycleDetailsPendingWithCustomer LifecycleDetailsEnum = "PENDING_WITH_CUSTOMER" LifecycleDetailsCloseRequested LifecycleDetailsEnum = "CLOSE_REQUESTED" LifecycleDetailsClosed LifecycleDetailsEnum = "CLOSED" )
func GetLifecycleDetailsEnumValues() []LifecycleDetailsEnum
GetLifecycleDetailsEnumValues Enumerates the set of values for LifecycleDetailsEnum
LifecycleStateEnum Enum with underlying type: string
type LifecycleStateEnum string
Set of constants representing the allowable values for LifecycleStateEnum
const ( LifecycleStateActive LifecycleStateEnum = "ACTIVE" LifecycleStateClosed LifecycleStateEnum = "CLOSED" )
func GetLifecycleStateEnumValues() []LifecycleStateEnum
GetLifecycleStateEnumValues Enumerates the set of values for LifecycleStateEnum
LimitItem Reserved for future use.
type LimitItem struct { // Unique identifier for the item. ItemKey *string `mandatory:"true" json:"itemKey"` // The display name of the item. Name *string `mandatory:"false" json:"name"` Category *Category `mandatory:"false" json:"category"` SubCategory *SubCategory `mandatory:"false" json:"subCategory"` IssueType *IssueType `mandatory:"false" json:"issueType"` // The currently available limit of the resource. CurrentLimit *int `mandatory:"false" json:"currentLimit"` // The current usage of the resource. CurrentUsage *int `mandatory:"false" json:"currentUsage"` // The requested limit for the resource. RequestedLimit *int `mandatory:"false" json:"requestedLimit"` // The status of the request. LimitStatus LimitItemLimitStatusEnum `mandatory:"false" json:"limitStatus,omitempty"` }
func (m LimitItem) GetCategory() *Category
GetCategory returns Category
func (m LimitItem) GetIssueType() *IssueType
GetIssueType returns IssueType
func (m LimitItem) GetItemKey() *string
GetItemKey returns ItemKey
func (m LimitItem) GetName() *string
GetName returns Name
func (m LimitItem) GetSubCategory() *SubCategory
GetSubCategory returns SubCategory
func (m LimitItem) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m LimitItem) String() string
LimitItemLimitStatusEnum Enum with underlying type: string
type LimitItemLimitStatusEnum string
Set of constants representing the allowable values for LimitItemLimitStatusEnum
const ( LimitItemLimitStatusApproved LimitItemLimitStatusEnum = "APPROVED" LimitItemLimitStatusPartiallyApproved LimitItemLimitStatusEnum = "PARTIALLY_APPROVED" LimitItemLimitStatusNotApproved LimitItemLimitStatusEnum = "NOT_APPROVED" )
func GetLimitItemLimitStatusEnumValues() []LimitItemLimitStatusEnum
GetLimitItemLimitStatusEnumValues Enumerates the set of values for LimitItemLimitStatusEnum
ListIncidentResourceTypesRequest wrapper for the ListIncidentResourceTypes operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/cims/ListIncidentResourceTypes.go.html to see an example of how to use ListIncidentResourceTypesRequest.
type ListIncidentResourceTypesRequest struct { // The kind of support request. ProblemType *string `mandatory:"true" contributesTo:"query" name:"problemType"` // The OCID of the tenancy. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The Customer Support Identifier associated with the support account. Csi *string `mandatory:"true" contributesTo:"header" name:"csi"` // User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle Cloud Infrastructure account. Ocid *string `mandatory:"true" contributesTo:"header" name:"ocid"` // 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"` // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The key to use to sort the returned items. SortBy ListIncidentResourceTypesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The order to sort the results in. SortOrder ListIncidentResourceTypesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // The user-friendly name of the incident type. Name *string `mandatory:"false" contributesTo:"query" name:"name"` // The region of the tenancy. Homeregion *string `mandatory:"false" contributesTo:"header" name:"homeregion"` // 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 ListIncidentResourceTypesRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListIncidentResourceTypesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListIncidentResourceTypesRequest) String() string
ListIncidentResourceTypesResponse wrapper for the ListIncidentResourceTypes operation
type ListIncidentResourceTypesResponse struct { // The underlying http response RawResponse *http.Response // A list of []IncidentResourceType instances Items []IncidentResourceType `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 list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response ListIncidentResourceTypesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListIncidentResourceTypesResponse) String() string
ListIncidentResourceTypesSortByEnum Enum with underlying type: string
type ListIncidentResourceTypesSortByEnum string
Set of constants representing the allowable values for ListIncidentResourceTypesSortByEnum
const ( ListIncidentResourceTypesSortByDateupdated ListIncidentResourceTypesSortByEnum = "dateUpdated" ListIncidentResourceTypesSortBySeverity ListIncidentResourceTypesSortByEnum = "severity" )
func GetListIncidentResourceTypesSortByEnumValues() []ListIncidentResourceTypesSortByEnum
GetListIncidentResourceTypesSortByEnumValues Enumerates the set of values for ListIncidentResourceTypesSortByEnum
ListIncidentResourceTypesSortOrderEnum Enum with underlying type: string
type ListIncidentResourceTypesSortOrderEnum string
Set of constants representing the allowable values for ListIncidentResourceTypesSortOrderEnum
const ( ListIncidentResourceTypesSortOrderAsc ListIncidentResourceTypesSortOrderEnum = "ASC" ListIncidentResourceTypesSortOrderDesc ListIncidentResourceTypesSortOrderEnum = "DESC" )
func GetListIncidentResourceTypesSortOrderEnumValues() []ListIncidentResourceTypesSortOrderEnum
GetListIncidentResourceTypesSortOrderEnumValues Enumerates the set of values for ListIncidentResourceTypesSortOrderEnum
ListIncidentsLifecycleStateEnum Enum with underlying type: string
type ListIncidentsLifecycleStateEnum string
Set of constants representing the allowable values for ListIncidentsLifecycleStateEnum
const ( ListIncidentsLifecycleStateActive ListIncidentsLifecycleStateEnum = "ACTIVE" ListIncidentsLifecycleStateClosed ListIncidentsLifecycleStateEnum = "CLOSED" )
func GetListIncidentsLifecycleStateEnumValues() []ListIncidentsLifecycleStateEnum
GetListIncidentsLifecycleStateEnumValues Enumerates the set of values for ListIncidentsLifecycleStateEnum
ListIncidentsRequest wrapper for the ListIncidents operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/cims/ListIncidents.go.html to see an example of how to use ListIncidentsRequest.
type ListIncidentsRequest struct { // The Customer Support Identifier associated with the support account. Csi *string `mandatory:"true" contributesTo:"header" name:"csi"` // The OCID of the tenancy. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle Cloud Infrastructure account. Ocid *string `mandatory:"true" contributesTo:"header" name:"ocid"` // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The key to use to sort the returned items. SortBy ListIncidentsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The order to sort the results in. SortOrder ListIncidentsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // The current state of the ticket. LifecycleState ListIncidentsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"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 `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The region of the tenancy. Homeregion *string `mandatory:"false" contributesTo:"header" name:"homeregion"` // The kind of support request. ProblemType *string `mandatory:"false" contributesTo:"query" name:"problemType"` // 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 ListIncidentsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListIncidentsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListIncidentsRequest) String() string
ListIncidentsResponse wrapper for the ListIncidents operation
type ListIncidentsResponse struct { // The underlying http response RawResponse *http.Response // A list of []IncidentSummary instances Items []IncidentSummary `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 list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response ListIncidentsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListIncidentsResponse) String() string
ListIncidentsSortByEnum Enum with underlying type: string
type ListIncidentsSortByEnum string
Set of constants representing the allowable values for ListIncidentsSortByEnum
const ( ListIncidentsSortByDateupdated ListIncidentsSortByEnum = "dateUpdated" ListIncidentsSortBySeverity ListIncidentsSortByEnum = "severity" )
func GetListIncidentsSortByEnumValues() []ListIncidentsSortByEnum
GetListIncidentsSortByEnumValues Enumerates the set of values for ListIncidentsSortByEnum
ListIncidentsSortOrderEnum Enum with underlying type: string
type ListIncidentsSortOrderEnum string
Set of constants representing the allowable values for ListIncidentsSortOrderEnum
const ( ListIncidentsSortOrderAsc ListIncidentsSortOrderEnum = "ASC" ListIncidentsSortOrderDesc ListIncidentsSortOrderEnum = "DESC" )
func GetListIncidentsSortOrderEnumValues() []ListIncidentsSortOrderEnum
GetListIncidentsSortOrderEnumValues Enumerates the set of values for ListIncidentsSortOrderEnum
ProblemTypeEnum Enum with underlying type: string
type ProblemTypeEnum string
Set of constants representing the allowable values for ProblemTypeEnum
const ( ProblemTypeLimit ProblemTypeEnum = "LIMIT" ProblemTypeLegacyLimit ProblemTypeEnum = "LEGACY_LIMIT" ProblemTypeTech ProblemTypeEnum = "TECH" ProblemTypeAccount ProblemTypeEnum = "ACCOUNT" )
func GetProblemTypeEnumValues() []ProblemTypeEnum
GetProblemTypeEnumValues Enumerates the set of values for ProblemTypeEnum
RegionEnum Enum with underlying type: string
type RegionEnum string
Set of constants representing the allowable values for RegionEnum
const ( RegionDev RegionEnum = "DEV" RegionSea RegionEnum = "SEA" RegionIntegNext RegionEnum = "INTEG_NEXT" RegionIntegStable RegionEnum = "INTEG_STABLE" RegionPhx RegionEnum = "PHX" RegionIad RegionEnum = "IAD" RegionFra RegionEnum = "FRA" RegionEuFrankfurt1 RegionEnum = "EU_FRANKFURT_1" RegionLhr RegionEnum = "LHR" RegionYyz RegionEnum = "YYZ" RegionNrt RegionEnum = "NRT" RegionIcn RegionEnum = "ICN" RegionBom RegionEnum = "BOM" RegionGru RegionEnum = "GRU" RegionSyd RegionEnum = "SYD" RegionZrh RegionEnum = "ZRH" RegionJed RegionEnum = "JED" RegionAms RegionEnum = "AMS" RegionKix RegionEnum = "KIX" RegionMel RegionEnum = "MEL" RegionYul RegionEnum = "YUL" RegionHyd RegionEnum = "HYD" RegionYny RegionEnum = "YNY" )
func GetRegionEnumValues() []RegionEnum
GetRegionEnumValues Enumerates the set of values for RegionEnum
Resource Details about the ticket item object.
type Resource struct { Item Item `mandatory:"false" json:"item"` // The list of available Oracle Cloud Infrastructure regions. Region RegionEnum `mandatory:"false" json:"region,omitempty"` // The list of available Oracle Cloud Infrastructure availability domains. AvailabilityDomain AvailabilityDomainEnum `mandatory:"false" json:"availabilityDomain,omitempty"` }
func (m Resource) String() string
func (m *Resource) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
ScopeEnum Enum with underlying type: string
type ScopeEnum string
Set of constants representing the allowable values for ScopeEnum
const ( ScopeAd ScopeEnum = "AD" ScopeRegion ScopeEnum = "REGION" ScopeTenancy ScopeEnum = "TENANCY" ScopeNone ScopeEnum = "NONE" )
func GetScopeEnumValues() []ScopeEnum
GetScopeEnumValues Enumerates the set of values for ScopeEnum
ServiceCategory Information about the incident classifier.
type ServiceCategory struct { // The unique ID that identifies a classifier. Key *string `mandatory:"false" json:"key"` // The name of the classifier. Name *string `mandatory:"false" json:"name"` // The label for the classifier. Label *string `mandatory:"false" json:"label"` // The text describing the classifier. Description *string `mandatory:"false" json:"description"` // The list of issues. IssueTypeList []IssueType `mandatory:"false" json:"issueTypeList"` // The scope of the incident. Scope ScopeEnum `mandatory:"false" json:"scope,omitempty"` // The unit to use to measure the service category or resource. Unit UnitEnum `mandatory:"false" json:"unit,omitempty"` // The unique ID for the limit. LimitId *string `mandatory:"false" json:"limitId"` }
func (m ServiceCategory) String() string
SortByEnum Enum with underlying type: string
type SortByEnum string
Set of constants representing the allowable values for SortByEnum
const ( SortByDateUpdated SortByEnum = "dateUpdated" SortBySeverity SortByEnum = "severity" )
func GetSortByEnumValues() []SortByEnum
GetSortByEnumValues Enumerates the set of values for SortByEnum
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 GetSortOrderEnumValues() []SortOrderEnum
GetSortOrderEnumValues Enumerates the set of values for SortOrderEnum
Status Details about the status of the support ticket.
type Status struct { // The code unique to this ticket status. Code *string `mandatory:"true" json:"code"` // The status message for this ticket. Message *string `mandatory:"true" json:"message"` }
func (m Status) String() string
SubCategory Details about the subcategory associated with the support ticket.
type SubCategory struct { // Unique identifier for the subcategory. SubCategoryKey *string `mandatory:"false" json:"subCategoryKey"` // The name of the subcategory. For example, `Backup Count` or `Custom Image Count`. Name *string `mandatory:"false" json:"name"` }
func (m SubCategory) String() string
TechSupportItem Details about the TechSupportItem object.
type TechSupportItem struct { // Unique identifier for the item. ItemKey *string `mandatory:"true" json:"itemKey"` // The display name of the item. Name *string `mandatory:"false" json:"name"` Category *Category `mandatory:"false" json:"category"` SubCategory *SubCategory `mandatory:"false" json:"subCategory"` IssueType *IssueType `mandatory:"false" json:"issueType"` }
func (m TechSupportItem) GetCategory() *Category
GetCategory returns Category
func (m TechSupportItem) GetIssueType() *IssueType
GetIssueType returns IssueType
func (m TechSupportItem) GetItemKey() *string
GetItemKey returns ItemKey
func (m TechSupportItem) GetName() *string
GetName returns Name
func (m TechSupportItem) GetSubCategory() *SubCategory
GetSubCategory returns SubCategory
func (m TechSupportItem) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m TechSupportItem) String() string
TenancyInformation Details about the customer's tenancy.
type TenancyInformation struct { // The Customer Support Identifier number associated with the tenancy. CustomerSupportKey *string `mandatory:"true" json:"customerSupportKey"` // The OCID of the tenancy. TenancyId *string `mandatory:"true" json:"tenancyId"` }
func (m TenancyInformation) String() string
Ticket Details about the ticket created.
type Ticket struct { // The severity assigned to the ticket. Severity TicketSeverityEnum `mandatory:"true" json:"severity"` // The title of the ticket. Title *string `mandatory:"true" json:"title"` // The description of the issue addressed in the ticket. Description *string `mandatory:"true" json:"description"` // Unique identifier for the ticket. TicketNumber *string `mandatory:"false" json:"ticketNumber"` // The list of resources associated with the ticket. ResourceList []Resource `mandatory:"false" json:"resourceList"` // The time when the ticket was created, in milliseconds since epoch time. TimeCreated *int `mandatory:"false" json:"timeCreated"` // The time when the ticket was updated, in milliseconds since epoch time. TimeUpdated *int `mandatory:"false" json:"timeUpdated"` // The current state of the ticket. LifecycleState LifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` // Additional information about the current `lifecycleState`. LifecycleDetails LifecycleDetailsEnum `mandatory:"false" json:"lifecycleDetails,omitempty"` }
func (m Ticket) String() string
TicketSeverityEnum Enum with underlying type: string
type TicketSeverityEnum string
Set of constants representing the allowable values for TicketSeverityEnum
const ( TicketSeverityHighest TicketSeverityEnum = "HIGHEST" TicketSeverityHigh TicketSeverityEnum = "HIGH" TicketSeverityMedium TicketSeverityEnum = "MEDIUM" )
func GetTicketSeverityEnumValues() []TicketSeverityEnum
GetTicketSeverityEnumValues Enumerates the set of values for TicketSeverityEnum
TimeZoneEnum Enum with underlying type: string
type TimeZoneEnum string
Set of constants representing the allowable values for TimeZoneEnum
const ( TimeZoneGreenwichMeanTime TimeZoneEnum = "GREENWICH_MEAN_TIME" TimeZoneEuropeanCentralTime TimeZoneEnum = "EUROPEAN_CENTRAL_TIME" TimeZoneEasternEuropeanTime TimeZoneEnum = "EASTERN_EUROPEAN_TIME" TimeZoneEasternAfricanTime TimeZoneEnum = "EASTERN_AFRICAN_TIME" TimeZoneMiddleEastTime TimeZoneEnum = "MIDDLE_EAST_TIME" TimeZoneNearEastTime TimeZoneEnum = "NEAR_EAST_TIME" TimeZonePakistanLahoreTime TimeZoneEnum = "PAKISTAN_LAHORE_TIME" TimeZoneIndiaStandardTime TimeZoneEnum = "INDIA_STANDARD_TIME" TimeZoneBangladeshStandardTime TimeZoneEnum = "BANGLADESH_STANDARD_TIME" TimeZoneVietnamStandardTime TimeZoneEnum = "VIETNAM_STANDARD_TIME" TimeZoneChinaTaiwanTime TimeZoneEnum = "CHINA_TAIWAN_TIME" TimeZoneJapanStandardTime TimeZoneEnum = "JAPAN_STANDARD_TIME" TimeZoneAustraliaCentralTime TimeZoneEnum = "AUSTRALIA_CENTRAL_TIME" TimeZoneAustraliaEasternTime TimeZoneEnum = "AUSTRALIA_EASTERN_TIME" TimeZoneSolomonStandardTime TimeZoneEnum = "SOLOMON_STANDARD_TIME" TimeZoneNewZealandStandardTime TimeZoneEnum = "NEW_ZEALAND_STANDARD_TIME" TimeZoneMidwayIslandsTime TimeZoneEnum = "MIDWAY_ISLANDS_TIME" TimeZoneHawaiiStandardTime TimeZoneEnum = "HAWAII_STANDARD_TIME" TimeZoneAlaskaStandardTime TimeZoneEnum = "ALASKA_STANDARD_TIME" TimeZonePacificStandardTime TimeZoneEnum = "PACIFIC_STANDARD_TIME" TimeZoneMountainStandardTime TimeZoneEnum = "MOUNTAIN_STANDARD_TIME" TimeZoneCentralStandardTime TimeZoneEnum = "CENTRAL_STANDARD_TIME" TimeZoneEasternStandardTime TimeZoneEnum = "EASTERN_STANDARD_TIME" TimeZonePuertoRicoAndUsVirginIslandsTime TimeZoneEnum = "PUERTO_RICO_AND_US_VIRGIN_ISLANDS_TIME" TimeZoneCanadaNewfoundlandTime TimeZoneEnum = "CANADA_NEWFOUNDLAND_TIME" TimeZoneArgentinaStandardTime TimeZoneEnum = "ARGENTINA_STANDARD_TIME" TimeZoneMidAtlanticTime TimeZoneEnum = "MID_ATLANTIC_TIME" TimeZoneCentralAfricanTime TimeZoneEnum = "CENTRAL_AFRICAN_TIME" )
func GetTimeZoneEnumValues() []TimeZoneEnum
GetTimeZoneEnumValues Enumerates the set of values for TimeZoneEnum
UnitEnum Enum with underlying type: string
type UnitEnum string
Set of constants representing the allowable values for UnitEnum
const ( UnitCount UnitEnum = "COUNT" UnitGb UnitEnum = "GB" UnitNone UnitEnum = "NONE" )
func GetUnitEnumValues() []UnitEnum
GetUnitEnumValues Enumerates the set of values for UnitEnum
UpdateActivityItemDetails Details for udpating the support ticket activity. **Caution:** Avoid using any confidential information when you supply string values using the API.
type UpdateActivityItemDetails struct { // Comments updated at the time that the activity occurs. Comments *string `mandatory:"false" json:"comments"` // The type of activity occurring. ActivityType UpdateActivityItemDetailsActivityTypeEnum `mandatory:"false" json:"activityType,omitempty"` }
func (m UpdateActivityItemDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m UpdateActivityItemDetails) String() string
UpdateActivityItemDetailsActivityTypeEnum Enum with underlying type: string
type UpdateActivityItemDetailsActivityTypeEnum string
Set of constants representing the allowable values for UpdateActivityItemDetailsActivityTypeEnum
const ( UpdateActivityItemDetailsActivityTypeNotes UpdateActivityItemDetailsActivityTypeEnum = "NOTES" UpdateActivityItemDetailsActivityTypeProblemDescription UpdateActivityItemDetailsActivityTypeEnum = "PROBLEM_DESCRIPTION" UpdateActivityItemDetailsActivityTypeUpdate UpdateActivityItemDetailsActivityTypeEnum = "UPDATE" UpdateActivityItemDetailsActivityTypeClose UpdateActivityItemDetailsActivityTypeEnum = "CLOSE" )
func GetUpdateActivityItemDetailsActivityTypeEnumValues() []UpdateActivityItemDetailsActivityTypeEnum
GetUpdateActivityItemDetailsActivityTypeEnumValues Enumerates the set of values for UpdateActivityItemDetailsActivityTypeEnum
UpdateIncident Details about the support ticket being updated.
type UpdateIncident struct { Ticket *UpdateTicketDetails `mandatory:"true" json:"ticket"` }
func (m UpdateIncident) String() string
UpdateIncidentRequest wrapper for the UpdateIncident operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/cims/UpdateIncident.go.html to see an example of how to use UpdateIncidentRequest.
type UpdateIncidentRequest struct { // Unique identifier for the support ticket. IncidentKey *string `mandatory:"true" contributesTo:"path" name:"incidentKey"` // The Customer Support Identifier associated with the support account. Csi *string `mandatory:"true" contributesTo:"header" name:"csi"` // Details about the support ticket being updated. UpdateIncidentDetails UpdateIncident `contributesTo:"body"` // User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle Cloud Infrastructure account. Ocid *string `mandatory:"true" contributesTo:"header" name:"ocid"` // 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"` // 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 region of the tenancy. Homeregion *string `mandatory:"false" contributesTo:"header" name:"homeregion"` // 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 UpdateIncidentRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request UpdateIncidentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdateIncidentRequest) String() string
UpdateIncidentResponse wrapper for the UpdateIncident operation
type UpdateIncidentResponse struct { // The underlying http response RawResponse *http.Response // The Incident instance Incident `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response UpdateIncidentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response UpdateIncidentResponse) String() string
UpdateItemDetails Details for udpating an item. **Caution:** Avoid using any confidential information when you supply string values using the API.
type UpdateItemDetails interface { }
UpdateResourceDetails Details about updates to the resource. **Caution:** Avoid using any confidential information when you supply string values using the API.
type UpdateResourceDetails struct { Item UpdateItemDetails `mandatory:"false" json:"item"` }
func (m UpdateResourceDetails) String() string
func (m *UpdateResourceDetails) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
UpdateTicketDetails Details about the ticket updated. **Caution:** Avoid using any confidential information when you supply string values using the API.
type UpdateTicketDetails struct {
// The list of resources.
Resource *interface{} `mandatory:"true" json:"resource"`
}
func (m UpdateTicketDetails) String() string
User Details about the user object.
type User struct { // Unique identifier for the user. Key *string `mandatory:"true" json:"key"` // First name of the user. FirstName *string `mandatory:"false" json:"firstName"` // Last name of the user. LastName *string `mandatory:"false" json:"lastName"` // Country of the user. Country *string `mandatory:"false" json:"country"` // CSI to be associated to the user. Csi *string `mandatory:"false" json:"csi"` // Contact number of the user. Phone *string `mandatory:"false" json:"phone"` // Timezone of the user. Timezone *string `mandatory:"false" json:"timezone"` // Organization of the user. OrganizationName *string `mandatory:"false" json:"organizationName"` // The OCID of the tenancy. CompartmentId *string `mandatory:"false" json:"compartmentId"` // The email of the contact person. ContactEmail *string `mandatory:"false" json:"contactEmail"` }
func (m User) String() string
UserClient a client for User
type UserClient struct { common.BaseClient // contains filtered or unexported fields }
func NewUserClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client UserClient, err error)
NewUserClientWithConfigurationProvider Creates a new default User client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region
func NewUserClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client UserClient, err error)
NewUserClientWithOboToken Creates a new default User 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 *UserClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (client UserClient) CreateUser(ctx context.Context, request CreateUserRequest) (response CreateUserResponse, err error)
CreateUser Create user to request Customer Support Identifier(CSI) to Customer User Administrator(CUA).
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/cims/CreateUser.go.html to see an example of how to use CreateUser API.
func (client *UserClient) SetRegion(region string)
SetRegion overrides the region of this client.
ValidateUserRequest wrapper for the ValidateUser operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/cims/ValidateUser.go.html to see an example of how to use ValidateUserRequest.
type ValidateUserRequest struct { // The Customer Support Identifier number for the support account. Csi *string `mandatory:"true" contributesTo:"header" name:"csi"` // User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle Cloud Infrastructure account. Ocid *string `mandatory:"true" contributesTo:"header" name:"ocid"` // 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"` // The kind of support request. ProblemType *string `mandatory:"false" contributesTo:"query" name:"problemType"` // The region of the tenancy. Homeregion *string `mandatory:"false" contributesTo:"header" name:"homeregion"` // 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 ValidateUserRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ValidateUserRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ValidateUserRequest) String() string
ValidateUserResponse wrapper for the ValidateUser operation
type ValidateUserResponse struct { // The underlying http response RawResponse *http.Response // The ValidationResponse instance ValidationResponse `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ValidateUserResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ValidateUserResponse) String() string
ValidationResponse The validation response returned when checking whether the requested user is valid.
type ValidationResponse struct { // Boolean value that indicates whether the requested user is valid. IsValidUser *bool `mandatory:"false" json:"isValidUser"` }
func (m ValidationResponse) String() string