Documentation
¶
Index ¶
- type ActivityItem
- func (m ActivityItem) GetCategory() *Category
- func (m ActivityItem) GetIssueType() *IssueType
- func (m ActivityItem) GetItemKey() *string
- func (m ActivityItem) GetName() *string
- func (m ActivityItem) GetSubCategory() *SubCategory
- func (m ActivityItem) MarshalJSON() (buff []byte, e error)
- func (m ActivityItem) String() string
- type ActivityItemActivityAuthorEnum
- type ActivityItemActivityTypeEnum
- type AvailabilityDomainEnum
- type Category
- type Classifier
- type ClassifierScopeEnum
- type ClassifierUnitEnum
- type Contact
- type ContactContactTypeEnum
- type ContactList
- type CreateCategoryDetails
- type CreateIncident
- type CreateIncidentRequest
- type CreateIncidentResponse
- type CreateIssueTypeDetails
- type CreateItemDetails
- type CreateLimitItemDetails
- func (m CreateLimitItemDetails) GetCategory() *CreateCategoryDetails
- func (m CreateLimitItemDetails) GetIssueType() *CreateIssueTypeDetails
- func (m CreateLimitItemDetails) GetName() *string
- func (m CreateLimitItemDetails) GetSubCategory() *CreateSubCategoryDetails
- func (m CreateLimitItemDetails) MarshalJSON() (buff []byte, e error)
- func (m CreateLimitItemDetails) String() string
- type CreateLimitItemDetailsLimitStatusEnum
- type CreateResourceDetails
- type CreateSubCategoryDetails
- type CreateTechSupportItemDetails
- func (m CreateTechSupportItemDetails) GetCategory() *CreateCategoryDetails
- func (m CreateTechSupportItemDetails) GetIssueType() *CreateIssueTypeDetails
- func (m CreateTechSupportItemDetails) GetName() *string
- func (m CreateTechSupportItemDetails) GetSubCategory() *CreateSubCategoryDetails
- func (m CreateTechSupportItemDetails) MarshalJSON() (buff []byte, e error)
- func (m CreateTechSupportItemDetails) String() string
- type CreateTicketDetails
- type CreateTicketDetailsSeverityEnum
- type ErrorCodeEnum
- type GetIncidentRequest
- type GetIncidentResponse
- type GetStatusRequest
- type GetStatusResponse
- type Incident
- type IncidentClient
- func (client *IncidentClient) ConfigurationProvider() *common.ConfigurationProvider
- func (client IncidentClient) CreateIncident(ctx context.Context, request CreateIncidentRequest) (response CreateIncidentResponse, err error)
- func (client IncidentClient) GetIncident(ctx context.Context, request GetIncidentRequest) (response GetIncidentResponse, err error)
- func (client IncidentClient) GetStatus(ctx context.Context, request GetStatusRequest) (response GetStatusResponse, err error)
- func (client IncidentClient) ListIncidentResourceTypes(ctx context.Context, request ListIncidentResourceTypesRequest) (response ListIncidentResourceTypesResponse, err error)
- func (client IncidentClient) ListIncidents(ctx context.Context, request ListIncidentsRequest) (response ListIncidentsResponse, err error)
- func (client *IncidentClient) SetRegion(region string)
- func (client IncidentClient) UpdateIncident(ctx context.Context, request UpdateIncidentRequest) (response UpdateIncidentResponse, err error)
- func (client IncidentClient) ValidateUser(ctx context.Context, request ValidateUserRequest) (response ValidateUserResponse, err error)
- type IncidentResourceType
- type IncidentSummary
- type IncidentType
- type IssueType
- type Item
- type LifecycleDetailsEnum
- type LifecycleStateEnum
- type LimitItem
- func (m LimitItem) GetCategory() *Category
- func (m LimitItem) GetIssueType() *IssueType
- func (m LimitItem) GetItemKey() *string
- func (m LimitItem) GetName() *string
- func (m LimitItem) GetSubCategory() *SubCategory
- func (m LimitItem) MarshalJSON() (buff []byte, e error)
- func (m LimitItem) String() string
- type LimitItemLimitStatusEnum
- type ListIncidentResourceTypesRequest
- type ListIncidentResourceTypesResponse
- type ListIncidentResourceTypesSortByEnum
- type ListIncidentResourceTypesSortOrderEnum
- type ListIncidentsLifecycleStateEnum
- type ListIncidentsRequest
- type ListIncidentsResponse
- type ListIncidentsSortByEnum
- type ListIncidentsSortOrderEnum
- type ProblemTypeEnum
- type RegionEnum
- type Resource
- type ScopeEnum
- type ServiceCategory
- type SortByEnum
- type SortOrderEnum
- type Status
- type SubCategory
- type TechSupportItem
- func (m TechSupportItem) GetCategory() *Category
- func (m TechSupportItem) GetIssueType() *IssueType
- func (m TechSupportItem) GetItemKey() *string
- func (m TechSupportItem) GetName() *string
- func (m TechSupportItem) GetSubCategory() *SubCategory
- func (m TechSupportItem) MarshalJSON() (buff []byte, e error)
- func (m TechSupportItem) String() string
- type TenancyInformation
- type Ticket
- type TicketSeverityEnum
- type UnitEnum
- type UpdateActivityItemDetails
- type UpdateActivityItemDetailsActivityTypeEnum
- type UpdateIncident
- type UpdateIncidentRequest
- type UpdateIncidentResponse
- type UpdateItemDetails
- type UpdateResourceDetails
- type UpdateTicketDetails
- type ValidateUserRequest
- type ValidateUserResponse
- type ValidationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivityItem ¶
type ActivityItem struct {
// Unique ID that identifies an Item
ItemKey *string `mandatory:"true" json:"itemKey"`
// Name of 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 to update as part of Activity
Comments *string `mandatory:"false" json:"comments"`
// Epoch time when activity was created
TimeCreated *int `mandatory:"false" json:"timeCreated"`
// Epoch time when activity was updated
TimeUpdated *int `mandatory:"false" json:"timeUpdated"`
// Type of activity. eg: NOTES, UPDATE
ActivityType ActivityItemActivityTypeEnum `mandatory:"false" json:"activityType,omitempty"`
// Person who updates the activity
ActivityAuthor ActivityItemActivityAuthorEnum `mandatory:"false" json:"activityAuthor,omitempty"`
}
ActivityItem Details of Activity Item
func (ActivityItem) GetCategory ¶
func (m ActivityItem) GetCategory() *Category
GetCategory returns Category
func (ActivityItem) GetIssueType ¶
func (m ActivityItem) GetIssueType() *IssueType
GetIssueType returns IssueType
func (ActivityItem) GetItemKey ¶
func (m ActivityItem) GetItemKey() *string
GetItemKey returns ItemKey
func (ActivityItem) GetSubCategory ¶
func (m ActivityItem) GetSubCategory() *SubCategory
GetSubCategory returns SubCategory
func (ActivityItem) MarshalJSON ¶
func (m ActivityItem) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (ActivityItem) String ¶
func (m ActivityItem) String() string
type ActivityItemActivityAuthorEnum ¶
type ActivityItemActivityAuthorEnum string
ActivityItemActivityAuthorEnum Enum with underlying type: string
const ( ActivityItemActivityAuthorCustomer ActivityItemActivityAuthorEnum = "CUSTOMER" ActivityItemActivityAuthorOracle ActivityItemActivityAuthorEnum = "ORACLE" )
Set of constants representing the allowable values for ActivityItemActivityAuthorEnum
func GetActivityItemActivityAuthorEnumValues ¶
func GetActivityItemActivityAuthorEnumValues() []ActivityItemActivityAuthorEnum
GetActivityItemActivityAuthorEnumValues Enumerates the set of values for ActivityItemActivityAuthorEnum
type ActivityItemActivityTypeEnum ¶
type ActivityItemActivityTypeEnum string
ActivityItemActivityTypeEnum Enum with underlying type: string
const ( ActivityItemActivityTypeNotes ActivityItemActivityTypeEnum = "NOTES" ActivityItemActivityTypeProblemDescription ActivityItemActivityTypeEnum = "PROBLEM_DESCRIPTION" ActivityItemActivityTypeUpdate ActivityItemActivityTypeEnum = "UPDATE" ActivityItemActivityTypeClose ActivityItemActivityTypeEnum = "CLOSE" )
Set of constants representing the allowable values for ActivityItemActivityTypeEnum
func GetActivityItemActivityTypeEnumValues ¶
func GetActivityItemActivityTypeEnumValues() []ActivityItemActivityTypeEnum
GetActivityItemActivityTypeEnumValues Enumerates the set of values for ActivityItemActivityTypeEnum
type AvailabilityDomainEnum ¶
type AvailabilityDomainEnum string
AvailabilityDomainEnum Enum with underlying type: string
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" AvailabilityDomainUsLuke1Ad1 AvailabilityDomainEnum = "US_LUKE_1_AD_1" AvailabilityDomainUsLangley1Ad1 AvailabilityDomainEnum = "US_LANGLEY_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" AvailabilityDomainUsTacoma1Ad1 AvailabilityDomainEnum = "US_TACOMA_1_AD_1" AvailabilityDomainNoAd AvailabilityDomainEnum = "NO_AD" )
Set of constants representing the allowable values for AvailabilityDomainEnum
func GetAvailabilityDomainEnumValues ¶
func GetAvailabilityDomainEnumValues() []AvailabilityDomainEnum
GetAvailabilityDomainEnumValues Enumerates the set of values for AvailabilityDomainEnum
type Category ¶
type Category struct {
// Unique ID that identifies a Category
CategoryKey *string `mandatory:"false" json:"categoryKey"`
// Name of category. eg: Compute, Identity
Name *string `mandatory:"false" json:"name"`
}
Category Details of Category of the incident
type Classifier ¶
type Classifier struct {
// Unique ID that identifies a classifier
Id *string `mandatory:"false" json:"id"`
// Name of classifier. eg: LIMIT Increase
Name *string `mandatory:"false" json:"name"`
// Label of classifier
Label *string `mandatory:"false" json:"label"`
// Description of classifier
Description *string `mandatory:"false" json:"description"`
// List of Issues
IssueTypeList []IssueType `mandatory:"false" json:"issueTypeList"`
// Scope of Service category/resource
Scope ClassifierScopeEnum `mandatory:"false" json:"scope,omitempty"`
// Unit to measure Service category/ resource
Unit ClassifierUnitEnum `mandatory:"false" json:"unit,omitempty"`
}
Classifier Incident Classifier details
func (Classifier) String ¶
func (m Classifier) String() string
type ClassifierScopeEnum ¶
type ClassifierScopeEnum string
ClassifierScopeEnum Enum with underlying type: string
const ( ClassifierScopeAd ClassifierScopeEnum = "AD" ClassifierScopeRegion ClassifierScopeEnum = "REGION" ClassifierScopeTenancy ClassifierScopeEnum = "TENANCY" ClassifierScopeNone ClassifierScopeEnum = "NONE" )
Set of constants representing the allowable values for ClassifierScopeEnum
func GetClassifierScopeEnumValues ¶
func GetClassifierScopeEnumValues() []ClassifierScopeEnum
GetClassifierScopeEnumValues Enumerates the set of values for ClassifierScopeEnum
type ClassifierUnitEnum ¶
type ClassifierUnitEnum string
ClassifierUnitEnum Enum with underlying type: string
const ( ClassifierUnitCount ClassifierUnitEnum = "COUNT" ClassifierUnitGb ClassifierUnitEnum = "GB" ClassifierUnitNone ClassifierUnitEnum = "NONE" )
Set of constants representing the allowable values for ClassifierUnitEnum
func GetClassifierUnitEnumValues ¶
func GetClassifierUnitEnumValues() []ClassifierUnitEnum
GetClassifierUnitEnumValues Enumerates the set of values for ClassifierUnitEnum
type Contact ¶
type Contact struct {
// Contact person name
ContactName *string `mandatory:"false" json:"contactName"`
// Contact person email
ContactEmail *string `mandatory:"false" json:"contactEmail"`
// Contact person phone number
ContactPhone *string `mandatory:"false" json:"contactPhone"`
// ContactType enum. eg: MANAGER, PRIMARY
ContactType ContactContactTypeEnum `mandatory:"false" json:"contactType,omitempty"`
}
Contact Contact Details of the Customer
type ContactContactTypeEnum ¶
type ContactContactTypeEnum string
ContactContactTypeEnum Enum with underlying type: string
const ( ContactContactTypePrimary ContactContactTypeEnum = "PRIMARY" ContactContactTypeAlternate ContactContactTypeEnum = "ALTERNATE" ContactContactTypeSecondary ContactContactTypeEnum = "SECONDARY" ContactContactTypeAdmin ContactContactTypeEnum = "ADMIN" ContactContactTypeManager ContactContactTypeEnum = "MANAGER" )
Set of constants representing the allowable values for ContactContactTypeEnum
func GetContactContactTypeEnumValues ¶
func GetContactContactTypeEnumValues() []ContactContactTypeEnum
GetContactContactTypeEnumValues Enumerates the set of values for ContactContactTypeEnum
type ContactList ¶
type ContactList struct {
// List of contacts
ContactList []Contact `mandatory:"true" json:"contactList"`
}
ContactList List of contacts
func (ContactList) String ¶
func (m ContactList) String() string
type CreateCategoryDetails ¶
type CreateCategoryDetails struct {
// Unique ID that identifies a Category
CategoryKey *string `mandatory:"false" json:"categoryKey"`
}
CreateCategoryDetails Details of Category of the incident
func (CreateCategoryDetails) String ¶
func (m CreateCategoryDetails) String() string
type CreateIncident ¶
type CreateIncident struct {
// Tenancy Ocid
CompartmentId *string `mandatory:"true" json:"compartmentId"`
Ticket *CreateTicketDetails `mandatory:"true" json:"ticket"`
// States type of incident. eg: LIMIT, TECH
ProblemType ProblemTypeEnum `mandatory:"true" json:"problemType"`
// Customer Support Identifier of the support account
Csi *string `mandatory:"false" json:"csi"`
// List of contacts
Contacts []Contact `mandatory:"false" json:"contacts"`
// Referrer of the incident., its usually the URL for where the customer logged the incident
Referrer *string `mandatory:"false" json:"referrer"`
}
CreateIncident Details of Incident
func (CreateIncident) String ¶
func (m CreateIncident) String() string
type CreateIncidentRequest ¶
type CreateIncidentRequest struct {
// Incident information
CreateIncidentDetails CreateIncident `contributesTo:"body"`
// User OCID for IDCS users that have a shadow in OCI
Ocid *string `mandatory:"true" contributesTo:"header" name:"ocid"`
// Retry token
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
// Unique Header for 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
}
CreateIncidentRequest wrapper for the CreateIncident operation
func (CreateIncidentRequest) HTTPRequest ¶
func (request CreateIncidentRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (CreateIncidentRequest) RetryPolicy ¶
func (request CreateIncidentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (CreateIncidentRequest) String ¶
func (request CreateIncidentRequest) String() string
type CreateIncidentResponse ¶
type CreateIncidentResponse struct {
// The underlying http response
RawResponse *http.Response
// The Incident instance
Incident `presentIn:"body"`
// OPC Request Id
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// e-Tag
Etag *string `presentIn:"header" name:"etag"`
}
CreateIncidentResponse wrapper for the CreateIncident operation
func (CreateIncidentResponse) HTTPResponse ¶
func (response CreateIncidentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (CreateIncidentResponse) String ¶
func (response CreateIncidentResponse) String() string
type CreateIssueTypeDetails ¶
type CreateIssueTypeDetails struct {
// Unique ID that identifies an Issue Type
IssueTypeKey *string `mandatory:"false" json:"issueTypeKey"`
}
CreateIssueTypeDetails Details Issue Type of the incident
func (CreateIssueTypeDetails) String ¶
func (m CreateIssueTypeDetails) String() string
type CreateItemDetails ¶
type CreateItemDetails interface {
GetCategory() *CreateCategoryDetails
GetSubCategory() *CreateSubCategoryDetails
GetIssueType() *CreateIssueTypeDetails
// Name of the item
GetName() *string
}
CreateItemDetails Details of Item
type CreateLimitItemDetails ¶
type CreateLimitItemDetails struct {
Category *CreateCategoryDetails `mandatory:"false" json:"category"`
SubCategory *CreateSubCategoryDetails `mandatory:"false" json:"subCategory"`
IssueType *CreateIssueTypeDetails `mandatory:"false" json:"issueType"`
// Name of the item
Name *string `mandatory:"false" json:"name"`
// Current available limit of the resource
CurrentLimit *int `mandatory:"false" json:"currentLimit"`
// Current used limit of the resource
CurrentUsage *int `mandatory:"false" json:"currentUsage"`
// Requested limit for the resource
RequestedLimit *int `mandatory:"false" json:"requestedLimit"`
// Status of the Limit
LimitStatus CreateLimitItemDetailsLimitStatusEnum `mandatory:"false" json:"limitStatus,omitempty"`
}
CreateLimitItemDetails Details of Limit Item
func (CreateLimitItemDetails) GetCategory ¶
func (m CreateLimitItemDetails) GetCategory() *CreateCategoryDetails
GetCategory returns Category
func (CreateLimitItemDetails) GetIssueType ¶
func (m CreateLimitItemDetails) GetIssueType() *CreateIssueTypeDetails
GetIssueType returns IssueType
func (CreateLimitItemDetails) GetName ¶
func (m CreateLimitItemDetails) GetName() *string
GetName returns Name
func (CreateLimitItemDetails) GetSubCategory ¶
func (m CreateLimitItemDetails) GetSubCategory() *CreateSubCategoryDetails
GetSubCategory returns SubCategory
func (CreateLimitItemDetails) MarshalJSON ¶
func (m CreateLimitItemDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (CreateLimitItemDetails) String ¶
func (m CreateLimitItemDetails) String() string
type CreateLimitItemDetailsLimitStatusEnum ¶
type CreateLimitItemDetailsLimitStatusEnum string
CreateLimitItemDetailsLimitStatusEnum Enum with underlying type: string
const ( CreateLimitItemDetailsLimitStatusApproved CreateLimitItemDetailsLimitStatusEnum = "APPROVED" CreateLimitItemDetailsLimitStatusPartiallyApproved CreateLimitItemDetailsLimitStatusEnum = "PARTIALLY_APPROVED" CreateLimitItemDetailsLimitStatusNotApproved CreateLimitItemDetailsLimitStatusEnum = "NOT_APPROVED" )
Set of constants representing the allowable values for CreateLimitItemDetailsLimitStatusEnum
func GetCreateLimitItemDetailsLimitStatusEnumValues ¶
func GetCreateLimitItemDetailsLimitStatusEnumValues() []CreateLimitItemDetailsLimitStatusEnum
GetCreateLimitItemDetailsLimitStatusEnumValues Enumerates the set of values for CreateLimitItemDetailsLimitStatusEnum
type CreateResourceDetails ¶
type CreateResourceDetails struct {
Item CreateItemDetails `mandatory:"false" json:"item"`
// List of OCI regions
Region RegionEnum `mandatory:"false" json:"region,omitempty"`
// List of OCI ADs
AvailabilityDomain AvailabilityDomainEnum `mandatory:"false" json:"availabilityDomain,omitempty"`
}
CreateResourceDetails Details of Ticket Item
func (CreateResourceDetails) String ¶
func (m CreateResourceDetails) String() string
func (*CreateResourceDetails) UnmarshalJSON ¶
func (m *CreateResourceDetails) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
type CreateSubCategoryDetails ¶
type CreateSubCategoryDetails struct {
// Unique ID that identifies a Sub Category
SubCategoryKey *string `mandatory:"false" json:"subCategoryKey"`
}
CreateSubCategoryDetails Details of Sub Category of the incident
func (CreateSubCategoryDetails) String ¶
func (m CreateSubCategoryDetails) String() string
type CreateTechSupportItemDetails ¶
type CreateTechSupportItemDetails struct {
Category *CreateCategoryDetails `mandatory:"false" json:"category"`
SubCategory *CreateSubCategoryDetails `mandatory:"false" json:"subCategory"`
IssueType *CreateIssueTypeDetails `mandatory:"false" json:"issueType"`
// Name of the item
Name *string `mandatory:"false" json:"name"`
}
CreateTechSupportItemDetails Details of TechSupport Item
func (CreateTechSupportItemDetails) GetCategory ¶
func (m CreateTechSupportItemDetails) GetCategory() *CreateCategoryDetails
GetCategory returns Category
func (CreateTechSupportItemDetails) GetIssueType ¶
func (m CreateTechSupportItemDetails) GetIssueType() *CreateIssueTypeDetails
GetIssueType returns IssueType
func (CreateTechSupportItemDetails) GetName ¶
func (m CreateTechSupportItemDetails) GetName() *string
GetName returns Name
func (CreateTechSupportItemDetails) GetSubCategory ¶
func (m CreateTechSupportItemDetails) GetSubCategory() *CreateSubCategoryDetails
GetSubCategory returns SubCategory
func (CreateTechSupportItemDetails) MarshalJSON ¶
func (m CreateTechSupportItemDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (CreateTechSupportItemDetails) String ¶
func (m CreateTechSupportItemDetails) String() string
type CreateTicketDetails ¶
type CreateTicketDetails struct {
// Severity of the ticket. eg: HIGH, MEDIUM
Severity CreateTicketDetailsSeverityEnum `mandatory:"true" json:"severity"`
// Title of ticket
Title *string `mandatory:"true" json:"title"`
// Details of ticket
Description *string `mandatory:"true" json:"description"`
// List of resources
ResourceList []CreateResourceDetails `mandatory:"false" json:"resourceList"`
}
CreateTicketDetails Details of Ticket created
func (CreateTicketDetails) String ¶
func (m CreateTicketDetails) String() string
type CreateTicketDetailsSeverityEnum ¶
type CreateTicketDetailsSeverityEnum string
CreateTicketDetailsSeverityEnum Enum with underlying type: string
const ( CreateTicketDetailsSeverityHighest CreateTicketDetailsSeverityEnum = "HIGHEST" CreateTicketDetailsSeverityHigh CreateTicketDetailsSeverityEnum = "HIGH" CreateTicketDetailsSeverityMedium CreateTicketDetailsSeverityEnum = "MEDIUM" )
Set of constants representing the allowable values for CreateTicketDetailsSeverityEnum
func GetCreateTicketDetailsSeverityEnumValues ¶
func GetCreateTicketDetailsSeverityEnumValues() []CreateTicketDetailsSeverityEnum
GetCreateTicketDetailsSeverityEnumValues Enumerates the set of values for CreateTicketDetailsSeverityEnum
type ErrorCodeEnum ¶
type ErrorCodeEnum string
ErrorCodeEnum Enum with underlying type: string
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" ErrorCodeExternalServiceProviderTimeout ErrorCodeEnum = "EXTERNAL_SERVICE_PROVIDER_TIMEOUT" ErrorCodeTooManyRequests ErrorCodeEnum = "TOO_MANY_REQUESTS" )
Set of constants representing the allowable values for ErrorCodeEnum
func GetErrorCodeEnumValues ¶
func GetErrorCodeEnumValues() []ErrorCodeEnum
GetErrorCodeEnumValues Enumerates the set of values for ErrorCodeEnum
type GetIncidentRequest ¶
type GetIncidentRequest struct {
// Unique ID that identifies an incident
IncidentKey *string `mandatory:"true" contributesTo:"path" name:"incidentKey"`
// Customer Support Identifier of the support account
Csi *string `mandatory:"true" contributesTo:"header" name:"csi"`
// User OCID for IDCS users that have a shadow in OCI
Ocid *string `mandatory:"true" contributesTo:"header" name:"ocid"`
// Unique Header for 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
}
GetIncidentRequest wrapper for the GetIncident operation
func (GetIncidentRequest) HTTPRequest ¶
func (request GetIncidentRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (GetIncidentRequest) RetryPolicy ¶
func (request GetIncidentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (GetIncidentRequest) String ¶
func (request GetIncidentRequest) String() string
type GetIncidentResponse ¶
type GetIncidentResponse struct {
// The underlying http response
RawResponse *http.Response
// The Incident instance
Incident `presentIn:"body"`
// OPC Request Id
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// e-Tag
Etag *string `presentIn:"header" name:"etag"`
}
GetIncidentResponse wrapper for the GetIncident operation
func (GetIncidentResponse) HTTPResponse ¶
func (response GetIncidentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (GetIncidentResponse) String ¶
func (response GetIncidentResponse) String() string
type GetStatusRequest ¶
type GetStatusRequest struct {
// Source is a downstream system. Eg: JIRA or MOS or any other source in future.
Source *string `mandatory:"true" contributesTo:"path" name:"source"`
// User OCID for IDCS users that have a shadow in OCI
Ocid *string `mandatory:"true" contributesTo:"header" name:"ocid"`
// Unique Header for 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
}
GetStatusRequest wrapper for the GetStatus operation
func (GetStatusRequest) HTTPRequest ¶
func (request GetStatusRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (GetStatusRequest) RetryPolicy ¶
func (request GetStatusRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (GetStatusRequest) String ¶
func (request GetStatusRequest) String() string
type GetStatusResponse ¶
type GetStatusResponse struct {
// The underlying http response
RawResponse *http.Response
// The Status instance
Status `presentIn:"body"`
// OPC Request Id
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// e-Tag
Etag *string `presentIn:"header" name:"etag"`
}
GetStatusResponse wrapper for the GetStatus operation
func (GetStatusResponse) HTTPResponse ¶
func (response GetStatusResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (GetStatusResponse) String ¶
func (response GetStatusResponse) String() string
type Incident ¶
type Incident struct {
// Unique ID that identifies an Incident
Key *string `mandatory:"true" json:"key"`
// Tenancy Ocid
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"`
// States type of incident. eg: LIMIT, TECH
ProblemType ProblemTypeEnum `mandatory:"false" json:"problemType,omitempty"`
// Referrer of the incident., its usually the URL for where the customer logged the incident
Referrer *string `mandatory:"false" json:"referrer"`
}
Incident Details of Incident
type IncidentClient ¶
type IncidentClient struct {
common.BaseClient
// contains filtered or unexported fields
}
IncidentClient a client for Incident
func NewIncidentClientWithConfigurationProvider ¶
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 ¶
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 (*IncidentClient) ConfigurationProvider ¶
func (client *IncidentClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (IncidentClient) CreateIncident ¶
func (client IncidentClient) CreateIncident(ctx context.Context, request CreateIncidentRequest) (response CreateIncidentResponse, err error)
CreateIncident This API enables the customer to Create an Incident
func (IncidentClient) GetIncident ¶
func (client IncidentClient) GetIncident(ctx context.Context, request GetIncidentRequest) (response GetIncidentResponse, err error)
GetIncident This API fetches the details of a requested Incident
func (IncidentClient) GetStatus ¶
func (client IncidentClient) GetStatus(ctx context.Context, request GetStatusRequest) (response GetStatusResponse, err error)
GetStatus GetStatus of the Service
func (IncidentClient) ListIncidentResourceTypes ¶
func (client IncidentClient) ListIncidentResourceTypes(ctx context.Context, request ListIncidentResourceTypesRequest) (response ListIncidentResourceTypesResponse, err error)
ListIncidentResourceTypes This API returns the list of all possible product that OCI supports, while creating an incident
func (IncidentClient) ListIncidents ¶
func (client IncidentClient) ListIncidents(ctx context.Context, request ListIncidentsRequest) (response ListIncidentsResponse, err error)
ListIncidents This API returns the list of incidents raised by the tenant
func (*IncidentClient) SetRegion ¶
func (client *IncidentClient) SetRegion(region string)
SetRegion overrides the region of this client.
func (IncidentClient) UpdateIncident ¶
func (client IncidentClient) UpdateIncident(ctx context.Context, request UpdateIncidentRequest) (response UpdateIncidentResponse, err error)
UpdateIncident This API updates an existing incident
func (IncidentClient) ValidateUser ¶
func (client IncidentClient) ValidateUser(ctx context.Context, request ValidateUserRequest) (response ValidateUserResponse, err error)
ValidateUser ValidateUser
type IncidentResourceType ¶
type IncidentResourceType struct {
// Label associated with Incident Type
Label *string `mandatory:"true" json:"label"`
// Unique ID that identifies an Incident Type
ResourceTypeKey *string `mandatory:"false" json:"resourceTypeKey"`
// Name of Incident type
Name *string `mandatory:"false" json:"name"`
// Details of Incident Type
Description *string `mandatory:"false" json:"description"`
// Service Category List
ServiceCategoryList []ServiceCategory `mandatory:"false" json:"serviceCategoryList"`
}
IncidentResourceType Details of incident type
func (IncidentResourceType) String ¶
func (m IncidentResourceType) String() string
type IncidentSummary ¶
type IncidentSummary struct {
// Unique ID that identifies an Incident
Key *string `mandatory:"true" json:"key"`
// States type of incident. eg: LIMIT, TECH
ProblemType ProblemTypeEnum `mandatory:"true" json:"problemType"`
// Tenancy Ocid
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"`
}
IncidentSummary Details of Incident
func (IncidentSummary) String ¶
func (m IncidentSummary) String() string
type IncidentType ¶
type IncidentType struct {
// Unique ID that identifies an Incident Type
Id *string `mandatory:"false" json:"id"`
// Name of Incident type
Name *string `mandatory:"false" json:"name"`
// Label associated with Incident Type
Label *string `mandatory:"false" json:"label"`
// Details of Incident Type
Description *string `mandatory:"false" json:"description"`
// List of classifiers
ClassifierList []Classifier `mandatory:"false" json:"classifierList"`
}
IncidentType Details of incident type
func (IncidentType) String ¶
func (m IncidentType) String() string
type IssueType ¶
type IssueType struct {
// Unique ID that identifies an Issue Type
IssueTypeKey *string `mandatory:"false" json:"issueTypeKey"`
// Label of issue type. eg: Instance Performance
Label *string `mandatory:"false" json:"label"`
}
IssueType Details Issue Type of the incident
type Item ¶
type Item interface {
// Unique ID that identifies an Item
GetItemKey() *string
// Name of item
GetName() *string
GetCategory() *Category
GetSubCategory() *SubCategory
GetIssueType() *IssueType
}
Item Details of Item
type LifecycleDetailsEnum ¶
type LifecycleDetailsEnum string
LifecycleDetailsEnum Enum with underlying type: string
const ( LifecycleDetailsPendingWithOracle LifecycleDetailsEnum = "PENDING_WITH_ORACLE" LifecycleDetailsPendingWithCustomer LifecycleDetailsEnum = "PENDING_WITH_CUSTOMER" LifecycleDetailsCloseRequested LifecycleDetailsEnum = "CLOSE_REQUESTED" LifecycleDetailsClosed LifecycleDetailsEnum = "CLOSED" )
Set of constants representing the allowable values for LifecycleDetailsEnum
func GetLifecycleDetailsEnumValues ¶
func GetLifecycleDetailsEnumValues() []LifecycleDetailsEnum
GetLifecycleDetailsEnumValues Enumerates the set of values for LifecycleDetailsEnum
type LifecycleStateEnum ¶
type LifecycleStateEnum string
LifecycleStateEnum Enum with underlying type: string
const ( LifecycleStateActive LifecycleStateEnum = "ACTIVE" LifecycleStateClosed LifecycleStateEnum = "CLOSED" )
Set of constants representing the allowable values for LifecycleStateEnum
func GetLifecycleStateEnumValues ¶
func GetLifecycleStateEnumValues() []LifecycleStateEnum
GetLifecycleStateEnumValues Enumerates the set of values for LifecycleStateEnum
type LimitItem ¶
type LimitItem struct {
// Unique ID that identifies an Item
ItemKey *string `mandatory:"true" json:"itemKey"`
// Name of 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"`
// Current available limit of the resource
CurrentLimit *int `mandatory:"false" json:"currentLimit"`
// Current used limit of the resource
CurrentUsage *int `mandatory:"false" json:"currentUsage"`
// Requested limit for the resource
RequestedLimit *int `mandatory:"false" json:"requestedLimit"`
// Status of the Limit
LimitStatus LimitItemLimitStatusEnum `mandatory:"false" json:"limitStatus,omitempty"`
}
LimitItem Details of Limit Item
func (LimitItem) GetCategory ¶
GetCategory returns Category
func (LimitItem) GetIssueType ¶
GetIssueType returns IssueType
func (LimitItem) GetSubCategory ¶
func (m LimitItem) GetSubCategory() *SubCategory
GetSubCategory returns SubCategory
func (LimitItem) MarshalJSON ¶
MarshalJSON marshals to json representation
type LimitItemLimitStatusEnum ¶
type LimitItemLimitStatusEnum string
LimitItemLimitStatusEnum Enum with underlying type: string
const ( LimitItemLimitStatusApproved LimitItemLimitStatusEnum = "APPROVED" LimitItemLimitStatusPartiallyApproved LimitItemLimitStatusEnum = "PARTIALLY_APPROVED" LimitItemLimitStatusNotApproved LimitItemLimitStatusEnum = "NOT_APPROVED" )
Set of constants representing the allowable values for LimitItemLimitStatusEnum
func GetLimitItemLimitStatusEnumValues ¶
func GetLimitItemLimitStatusEnumValues() []LimitItemLimitStatusEnum
GetLimitItemLimitStatusEnumValues Enumerates the set of values for LimitItemLimitStatusEnum
type ListIncidentResourceTypesRequest ¶
type ListIncidentResourceTypesRequest struct {
// Problem Type of Taxonomy - tech/limit
ProblemType *string `mandatory:"true" contributesTo:"query" name:"problemType"`
// Tenancy Ocid
CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`
// Customer Support Identifier of the support account
Csi *string `mandatory:"true" contributesTo:"header" name:"csi"`
// User OCID for IDCS users that have a shadow in OCI
Ocid *string `mandatory:"true" contributesTo:"header" name:"ocid"`
// Unique Header for request id
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Limit query for number of returned results
Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`
// Pagination for Incident list
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
// The key to sort the returned items by
SortBy ListIncidentResourceTypesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// The order in which to sort the results
SortOrder ListIncidentResourceTypesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`
// Name of Incident Type. eg: Limit Increase
Name *string `mandatory:"false" contributesTo:"query" name:"name"`
// 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
}
ListIncidentResourceTypesRequest wrapper for the ListIncidentResourceTypes operation
func (ListIncidentResourceTypesRequest) HTTPRequest ¶
func (request ListIncidentResourceTypesRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ListIncidentResourceTypesRequest) RetryPolicy ¶
func (request ListIncidentResourceTypesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ListIncidentResourceTypesRequest) String ¶
func (request ListIncidentResourceTypesRequest) String() string
type ListIncidentResourceTypesResponse ¶
type ListIncidentResourceTypesResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of []IncidentResourceType instances
Items []IncidentResourceType `presentIn:"body"`
// OPC Request Id
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// OPC next page
OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
// e-Tag
Etag *string `presentIn:"header" name:"etag"`
}
ListIncidentResourceTypesResponse wrapper for the ListIncidentResourceTypes operation
func (ListIncidentResourceTypesResponse) HTTPResponse ¶
func (response ListIncidentResourceTypesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ListIncidentResourceTypesResponse) String ¶
func (response ListIncidentResourceTypesResponse) String() string
type ListIncidentResourceTypesSortByEnum ¶
type ListIncidentResourceTypesSortByEnum string
ListIncidentResourceTypesSortByEnum Enum with underlying type: string
const ( ListIncidentResourceTypesSortByDateupdated ListIncidentResourceTypesSortByEnum = "dateUpdated" ListIncidentResourceTypesSortBySeverity ListIncidentResourceTypesSortByEnum = "severity" )
Set of constants representing the allowable values for ListIncidentResourceTypesSortByEnum
func GetListIncidentResourceTypesSortByEnumValues ¶
func GetListIncidentResourceTypesSortByEnumValues() []ListIncidentResourceTypesSortByEnum
GetListIncidentResourceTypesSortByEnumValues Enumerates the set of values for ListIncidentResourceTypesSortByEnum
type ListIncidentResourceTypesSortOrderEnum ¶
type ListIncidentResourceTypesSortOrderEnum string
ListIncidentResourceTypesSortOrderEnum Enum with underlying type: string
const ( ListIncidentResourceTypesSortOrderAsc ListIncidentResourceTypesSortOrderEnum = "ASC" ListIncidentResourceTypesSortOrderDesc ListIncidentResourceTypesSortOrderEnum = "DESC" )
Set of constants representing the allowable values for ListIncidentResourceTypesSortOrderEnum
func GetListIncidentResourceTypesSortOrderEnumValues ¶
func GetListIncidentResourceTypesSortOrderEnumValues() []ListIncidentResourceTypesSortOrderEnum
GetListIncidentResourceTypesSortOrderEnumValues Enumerates the set of values for ListIncidentResourceTypesSortOrderEnum
type ListIncidentsLifecycleStateEnum ¶
type ListIncidentsLifecycleStateEnum string
ListIncidentsLifecycleStateEnum Enum with underlying type: string
const ( ListIncidentsLifecycleStateActive ListIncidentsLifecycleStateEnum = "ACTIVE" ListIncidentsLifecycleStateClosed ListIncidentsLifecycleStateEnum = "CLOSED" )
Set of constants representing the allowable values for ListIncidentsLifecycleStateEnum
func GetListIncidentsLifecycleStateEnumValues ¶
func GetListIncidentsLifecycleStateEnumValues() []ListIncidentsLifecycleStateEnum
GetListIncidentsLifecycleStateEnumValues Enumerates the set of values for ListIncidentsLifecycleStateEnum
type ListIncidentsRequest ¶
type ListIncidentsRequest struct {
// Customer Support Identifier of the support account
Csi *string `mandatory:"true" contributesTo:"header" name:"csi"`
// Tenancy Ocid
CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`
// User OCID for IDCS users that have a shadow in OCI
Ocid *string `mandatory:"true" contributesTo:"header" name:"ocid"`
// Limit query for number of returned results
Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`
// The key to sort the returned items by
SortBy ListIncidentsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// The order in which to sort the results
SortOrder ListIncidentsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`
// The order in which to sort the results
LifecycleState ListIncidentsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`
// Pagination for Incident list
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
// Unique Header for 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
}
ListIncidentsRequest wrapper for the ListIncidents operation
func (ListIncidentsRequest) HTTPRequest ¶
func (request ListIncidentsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ListIncidentsRequest) RetryPolicy ¶
func (request ListIncidentsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ListIncidentsRequest) String ¶
func (request ListIncidentsRequest) String() string
type ListIncidentsResponse ¶
type ListIncidentsResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of []IncidentSummary instances
Items []IncidentSummary `presentIn:"body"`
// OPC Request Id
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// OPC next page
OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
// e-Tag
Etag *string `presentIn:"header" name:"etag"`
}
ListIncidentsResponse wrapper for the ListIncidents operation
func (ListIncidentsResponse) HTTPResponse ¶
func (response ListIncidentsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ListIncidentsResponse) String ¶
func (response ListIncidentsResponse) String() string
type ListIncidentsSortByEnum ¶
type ListIncidentsSortByEnum string
ListIncidentsSortByEnum Enum with underlying type: string
const ( ListIncidentsSortByDateupdated ListIncidentsSortByEnum = "dateUpdated" ListIncidentsSortBySeverity ListIncidentsSortByEnum = "severity" )
Set of constants representing the allowable values for ListIncidentsSortByEnum
func GetListIncidentsSortByEnumValues ¶
func GetListIncidentsSortByEnumValues() []ListIncidentsSortByEnum
GetListIncidentsSortByEnumValues Enumerates the set of values for ListIncidentsSortByEnum
type ListIncidentsSortOrderEnum ¶
type ListIncidentsSortOrderEnum string
ListIncidentsSortOrderEnum Enum with underlying type: string
const ( ListIncidentsSortOrderAsc ListIncidentsSortOrderEnum = "ASC" ListIncidentsSortOrderDesc ListIncidentsSortOrderEnum = "DESC" )
Set of constants representing the allowable values for ListIncidentsSortOrderEnum
func GetListIncidentsSortOrderEnumValues ¶
func GetListIncidentsSortOrderEnumValues() []ListIncidentsSortOrderEnum
GetListIncidentsSortOrderEnumValues Enumerates the set of values for ListIncidentsSortOrderEnum
type ProblemTypeEnum ¶
type ProblemTypeEnum string
ProblemTypeEnum Enum with underlying type: string
const ( ProblemTypeLimit ProblemTypeEnum = "LIMIT" ProblemTypeLegacyLimit ProblemTypeEnum = "LEGACY_LIMIT" ProblemTypeTech ProblemTypeEnum = "TECH" ProblemTypeAccount ProblemTypeEnum = "ACCOUNT" )
Set of constants representing the allowable values for ProblemTypeEnum
func GetProblemTypeEnumValues ¶
func GetProblemTypeEnumValues() []ProblemTypeEnum
GetProblemTypeEnumValues Enumerates the set of values for ProblemTypeEnum
type RegionEnum ¶
type RegionEnum string
RegionEnum Enum with underlying type: string
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" RegionUsLangley1 RegionEnum = "US_LANGLEY_1" RegionUsLuke1 RegionEnum = "US_LUKE_1" RegionIcn RegionEnum = "ICN" RegionBom RegionEnum = "BOM" RegionGru RegionEnum = "GRU" RegionUsGovAshburn1 RegionEnum = "US_GOV_ASHBURN_1" RegionUsGovPhoenix1 RegionEnum = "US_GOV_PHOENIX_1" RegionUsGovChicago1 RegionEnum = "US_GOV_CHICAGO_1" 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" RegionTiw RegionEnum = "TIW" )
Set of constants representing the allowable values for RegionEnum
func GetRegionEnumValues ¶
func GetRegionEnumValues() []RegionEnum
GetRegionEnumValues Enumerates the set of values for RegionEnum
type Resource ¶
type Resource struct {
Item Item `mandatory:"false" json:"item"`
// List of OCI regions
Region RegionEnum `mandatory:"false" json:"region,omitempty"`
// List of OCI ADs
AvailabilityDomain AvailabilityDomainEnum `mandatory:"false" json:"availabilityDomain,omitempty"`
}
Resource Details of Ticket Item
func (*Resource) UnmarshalJSON ¶
UnmarshalJSON unmarshals from json
type ScopeEnum ¶
type ScopeEnum string
ScopeEnum Enum with underlying type: string
const ( ScopeAd ScopeEnum = "AD" ScopeRegion ScopeEnum = "REGION" ScopeTenancy ScopeEnum = "TENANCY" ScopeNone ScopeEnum = "NONE" )
Set of constants representing the allowable values for ScopeEnum
func GetScopeEnumValues ¶
func GetScopeEnumValues() []ScopeEnum
GetScopeEnumValues Enumerates the set of values for ScopeEnum
type ServiceCategory ¶
type ServiceCategory struct {
// Unique ID that identifies a classifier
Key *string `mandatory:"false" json:"key"`
// Name of classifier. eg: LIMIT Increase
Name *string `mandatory:"false" json:"name"`
// Label of classifier
Label *string `mandatory:"false" json:"label"`
// Description of classifier
Description *string `mandatory:"false" json:"description"`
// List of Issues
IssueTypeList []IssueType `mandatory:"false" json:"issueTypeList"`
// List of Scope
Scope ScopeEnum `mandatory:"false" json:"scope,omitempty"`
// List of Units
Unit UnitEnum `mandatory:"false" json:"unit,omitempty"`
// Limit's unique id
LimitId *string `mandatory:"false" json:"limitId"`
}
ServiceCategory Incident Classifier details
func (ServiceCategory) String ¶
func (m ServiceCategory) String() string
type SortByEnum ¶
type SortByEnum string
SortByEnum Enum with underlying type: string
const ( SortByDateUpdated SortByEnum = "dateUpdated" SortBySeverity SortByEnum = "severity" )
Set of constants representing the allowable values for SortByEnum
func GetSortByEnumValues ¶
func GetSortByEnumValues() []SortByEnum
GetSortByEnumValues Enumerates the set of values for SortByEnum
type SortOrderEnum ¶
type SortOrderEnum string
SortOrderEnum Enum with underlying type: string
const ( SortOrderAsc SortOrderEnum = "ASC" SortOrderDesc SortOrderEnum = "DESC" )
Set of constants representing the allowable values for SortOrderEnum
func GetSortOrderEnumValues ¶
func GetSortOrderEnumValues() []SortOrderEnum
GetSortOrderEnumValues Enumerates the set of values for SortOrderEnum
type Status ¶
type Status struct {
// Unique code
Code *string `mandatory:"true" json:"code"`
// Status message
Message *string `mandatory:"true" json:"message"`
}
Status Details of Ticket Status
type SubCategory ¶
type SubCategory struct {
// Unique ID that identifies a Sub Category
SubCategoryKey *string `mandatory:"false" json:"subCategoryKey"`
// Name of sub category. eg: Backup Count, Custom Image Count
Name *string `mandatory:"false" json:"name"`
}
SubCategory Details of Sub Category of the incident
func (SubCategory) String ¶
func (m SubCategory) String() string
type TechSupportItem ¶
type TechSupportItem struct {
// Unique ID that identifies an Item
ItemKey *string `mandatory:"true" json:"itemKey"`
// Name of 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"`
}
TechSupportItem Details of TechSupport Item
func (TechSupportItem) GetCategory ¶
func (m TechSupportItem) GetCategory() *Category
GetCategory returns Category
func (TechSupportItem) GetIssueType ¶
func (m TechSupportItem) GetIssueType() *IssueType
GetIssueType returns IssueType
func (TechSupportItem) GetItemKey ¶
func (m TechSupportItem) GetItemKey() *string
GetItemKey returns ItemKey
func (TechSupportItem) GetSubCategory ¶
func (m TechSupportItem) GetSubCategory() *SubCategory
GetSubCategory returns SubCategory
func (TechSupportItem) MarshalJSON ¶
func (m TechSupportItem) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (TechSupportItem) String ¶
func (m TechSupportItem) String() string
type TenancyInformation ¶
type TenancyInformation struct {
// Tenant customer support identifier
CustomerSupportKey *string `mandatory:"true" json:"customerSupportKey"`
// Tenant OCID
TenancyId *string `mandatory:"true" json:"tenancyId"`
}
TenancyInformation Details of Customer Tenant
func (TenancyInformation) String ¶
func (m TenancyInformation) String() string
type Ticket ¶
type Ticket struct {
// Severity of the ticket. eg: HIGH, MEDIUM
Severity TicketSeverityEnum `mandatory:"true" json:"severity"`
// Title of ticket
Title *string `mandatory:"true" json:"title"`
// Details of ticket
Description *string `mandatory:"true" json:"description"`
// Unique ID that identifies a Ticket
TicketNumber *string `mandatory:"false" json:"ticketNumber"`
// List of resources
ResourceList []Resource `mandatory:"false" json:"resourceList"`
// Epoch time of ticket creation
TimeCreated *int `mandatory:"false" json:"timeCreated"`
// Epoch time of ticket updated
TimeUpdated *int `mandatory:"false" json:"timeUpdated"`
// Describes the lifecycles of a ticket
LifecycleState LifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"`
// Describes the lifecycle details of a ticket
LifecycleDetails LifecycleDetailsEnum `mandatory:"false" json:"lifecycleDetails,omitempty"`
}
Ticket Details of Ticket created
type TicketSeverityEnum ¶
type TicketSeverityEnum string
TicketSeverityEnum Enum with underlying type: string
const ( TicketSeverityHighest TicketSeverityEnum = "HIGHEST" TicketSeverityHigh TicketSeverityEnum = "HIGH" TicketSeverityMedium TicketSeverityEnum = "MEDIUM" )
Set of constants representing the allowable values for TicketSeverityEnum
func GetTicketSeverityEnumValues ¶
func GetTicketSeverityEnumValues() []TicketSeverityEnum
GetTicketSeverityEnumValues Enumerates the set of values for TicketSeverityEnum
type UnitEnum ¶
type UnitEnum string
UnitEnum Enum with underlying type: string
Set of constants representing the allowable values for UnitEnum
func GetUnitEnumValues ¶
func GetUnitEnumValues() []UnitEnum
GetUnitEnumValues Enumerates the set of values for UnitEnum
type UpdateActivityItemDetails ¶
type UpdateActivityItemDetails struct {
// Comments to update as part of Activity
Comments *string `mandatory:"false" json:"comments"`
// Type of activity. eg: NOTES, UPDATE
ActivityType UpdateActivityItemDetailsActivityTypeEnum `mandatory:"false" json:"activityType,omitempty"`
}
UpdateActivityItemDetails Details of Activity Item
func (UpdateActivityItemDetails) MarshalJSON ¶
func (m UpdateActivityItemDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (UpdateActivityItemDetails) String ¶
func (m UpdateActivityItemDetails) String() string
type UpdateActivityItemDetailsActivityTypeEnum ¶
type UpdateActivityItemDetailsActivityTypeEnum string
UpdateActivityItemDetailsActivityTypeEnum Enum with underlying type: string
const ( UpdateActivityItemDetailsActivityTypeNotes UpdateActivityItemDetailsActivityTypeEnum = "NOTES" UpdateActivityItemDetailsActivityTypeProblemDescription UpdateActivityItemDetailsActivityTypeEnum = "PROBLEM_DESCRIPTION" UpdateActivityItemDetailsActivityTypeUpdate UpdateActivityItemDetailsActivityTypeEnum = "UPDATE" UpdateActivityItemDetailsActivityTypeClose UpdateActivityItemDetailsActivityTypeEnum = "CLOSE" )
Set of constants representing the allowable values for UpdateActivityItemDetailsActivityTypeEnum
func GetUpdateActivityItemDetailsActivityTypeEnumValues ¶
func GetUpdateActivityItemDetailsActivityTypeEnumValues() []UpdateActivityItemDetailsActivityTypeEnum
GetUpdateActivityItemDetailsActivityTypeEnumValues Enumerates the set of values for UpdateActivityItemDetailsActivityTypeEnum
type UpdateIncident ¶
type UpdateIncident struct {
Ticket *UpdateTicketDetails `mandatory:"true" json:"ticket"`
}
UpdateIncident Details of Resource Item to be updated
func (UpdateIncident) String ¶
func (m UpdateIncident) String() string
type UpdateIncidentRequest ¶
type UpdateIncidentRequest struct {
// Unique ID that identifies an incident
IncidentKey *string `mandatory:"true" contributesTo:"path" name:"incidentKey"`
// Customer Support Identifier of the support account
Csi *string `mandatory:"true" contributesTo:"header" name:"csi"`
// Details of Resource to be updated
UpdateIncidentDetails UpdateIncident `contributesTo:"body"`
// User OCID for IDCS users that have a shadow in OCI
Ocid *string `mandatory:"true" contributesTo:"header" name:"ocid"`
// Retry token
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
// Unique Header for request id
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// if-match check
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// 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
}
UpdateIncidentRequest wrapper for the UpdateIncident operation
func (UpdateIncidentRequest) HTTPRequest ¶
func (request UpdateIncidentRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (UpdateIncidentRequest) RetryPolicy ¶
func (request UpdateIncidentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (UpdateIncidentRequest) String ¶
func (request UpdateIncidentRequest) String() string
type UpdateIncidentResponse ¶
type UpdateIncidentResponse struct {
// The underlying http response
RawResponse *http.Response
// The Incident instance
Incident `presentIn:"body"`
// OPC Request Id
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// e-Tag
Etag *string `presentIn:"header" name:"etag"`
}
UpdateIncidentResponse wrapper for the UpdateIncident operation
func (UpdateIncidentResponse) HTTPResponse ¶
func (response UpdateIncidentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (UpdateIncidentResponse) String ¶
func (response UpdateIncidentResponse) String() string
type UpdateResourceDetails ¶
type UpdateResourceDetails struct {
Item UpdateItemDetails `mandatory:"false" json:"item"`
}
UpdateResourceDetails Update Resource details
func (UpdateResourceDetails) String ¶
func (m UpdateResourceDetails) String() string
func (*UpdateResourceDetails) UnmarshalJSON ¶
func (m *UpdateResourceDetails) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
type UpdateTicketDetails ¶
type UpdateTicketDetails struct {
// List of resources
Resource *interface{} `mandatory:"true" json:"resource"`
}
UpdateTicketDetails Details of Ticket updated
func (UpdateTicketDetails) String ¶
func (m UpdateTicketDetails) String() string
type ValidateUserRequest ¶
type ValidateUserRequest struct {
// Customer support identifier of the support account
Csi *string `mandatory:"true" contributesTo:"header" name:"csi"`
// User OCID for IDCS users that have a shadow in OCI
Ocid *string `mandatory:"true" contributesTo:"header" name:"ocid"`
// Retry-token header
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
// Unique request id
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Problem Type of Taxonomy - tech/limit
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
}
ValidateUserRequest wrapper for the ValidateUser operation
func (ValidateUserRequest) HTTPRequest ¶
func (request ValidateUserRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ValidateUserRequest) RetryPolicy ¶
func (request ValidateUserRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ValidateUserRequest) String ¶
func (request ValidateUserRequest) String() string
type ValidateUserResponse ¶
type ValidateUserResponse struct {
// The underlying http response
RawResponse *http.Response
// The ValidationResponse instance
ValidationResponse `presentIn:"body"`
// OPC Request Id
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// e-Tag
Etag *string `presentIn:"header" name:"etag"`
}
ValidateUserResponse wrapper for the ValidateUser operation
func (ValidateUserResponse) HTTPResponse ¶
func (response ValidateUserResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ValidateUserResponse) String ¶
func (response ValidateUserResponse) String() string
type ValidationResponse ¶
type ValidationResponse struct {
// Boolean value to check whether requested user is valid or not
IsValidUser *bool `mandatory:"false" json:"isValidUser"`
}
ValidationResponse Validation Response
func (ValidationResponse) String ¶
func (m ValidationResponse) String() string
Source Files
¶
- activity_item.go
- availability_domain.go
- category.go
- cims_incident_client.go
- classifier.go
- contact.go
- contact_list.go
- create_category_details.go
- create_incident.go
- create_incident_request_response.go
- create_issue_type_details.go
- create_item_details.go
- create_limit_item_details.go
- create_resource_details.go
- create_sub_category_details.go
- create_tech_support_item_details.go
- create_ticket_details.go
- error_code.go
- get_incident_request_response.go
- get_status_request_response.go
- incident.go
- incident_resource_type.go
- incident_summary.go
- incident_type.go
- issue_type.go
- item.go
- lifecycle_details.go
- lifecycle_state.go
- limit_item.go
- list_incident_resource_types_request_response.go
- list_incidents_request_response.go
- problem_type.go
- region.go
- resource.go
- scope.go
- service_category.go
- sort_by.go
- sort_order.go
- status.go
- sub_category.go
- tech_support_item.go
- tenancy_information.go
- ticket.go
- unit.go
- update_activity_item_details.go
- update_incident.go
- update_incident_request_response.go
- update_item_details.go
- update_resource_details.go
- update_ticket_details.go
- validate_user_request_response.go
- validation_response.go