Documentation
¶
Index ¶
- func GetActionTypeEnumStringValues() []string
- func GetListMacDevicesSortByEnumStringValues() []string
- func GetListMacDevicesSortOrderEnumStringValues() []string
- func GetListMacOrdersSortByEnumStringValues() []string
- func GetListMacOrdersSortOrderEnumStringValues() []string
- func GetListWorkRequestErrorsSortByEnumStringValues() []string
- func GetListWorkRequestErrorsSortOrderEnumStringValues() []string
- func GetListWorkRequestLogsSortByEnumStringValues() []string
- func GetListWorkRequestLogsSortOrderEnumStringValues() []string
- func GetListWorkRequestsSortByEnumStringValues() []string
- func GetListWorkRequestsSortOrderEnumStringValues() []string
- func GetListWorkRequestsStatusEnumStringValues() []string
- func GetMacDeviceLifecycleStateEnumStringValues() []string
- func GetMacOrderCommitmentTermEnumStringValues() []string
- func GetMacOrderLifecycleStateEnumStringValues() []string
- func GetMacOrderOrderStatusEnumStringValues() []string
- func GetMacOrderShapeEnumStringValues() []string
- func GetOperationStatusEnumStringValues() []string
- func GetOperationTypeEnumStringValues() []string
- func GetOpsActionUpdateMacDeviceDetailsLifecycleStateEnumStringValues() []string
- func GetSortOrderEnumStringValues() []string
- func GetWorkRequestResourceMetadataKeyEnumStringValues() []string
- type ActionTypeEnum
- type CancelMacOrderDetails
- type CancelMacOrderRequest
- func (request CancelMacOrderRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request CancelMacOrderRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, ...) (http.Request, error)
- func (request CancelMacOrderRequest) RetryPolicy() *common.RetryPolicy
- func (request CancelMacOrderRequest) String() string
- func (request CancelMacOrderRequest) ValidateEnumValue() (bool, error)
- type CancelMacOrderResponse
- type CancelWorkRequestRequest
- func (request CancelWorkRequestRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request CancelWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, ...) (http.Request, error)
- func (request CancelWorkRequestRequest) RetryPolicy() *common.RetryPolicy
- func (request CancelWorkRequestRequest) String() string
- func (request CancelWorkRequestRequest) ValidateEnumValue() (bool, error)
- type CancelWorkRequestResponse
- type ChangeMacOrderCompartmentDetails
- type ChangeMacOrderCompartmentRequest
- func (request ChangeMacOrderCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request ChangeMacOrderCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, ...) (http.Request, error)
- func (request ChangeMacOrderCompartmentRequest) RetryPolicy() *common.RetryPolicy
- func (request ChangeMacOrderCompartmentRequest) String() string
- func (request ChangeMacOrderCompartmentRequest) ValidateEnumValue() (bool, error)
- type ChangeMacOrderCompartmentResponse
- type CreateMacOrderDetails
- type CreateMacOrderRequest
- func (request CreateMacOrderRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request CreateMacOrderRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, ...) (http.Request, error)
- func (request CreateMacOrderRequest) RetryPolicy() *common.RetryPolicy
- func (request CreateMacOrderRequest) String() string
- func (request CreateMacOrderRequest) ValidateEnumValue() (bool, error)
- type CreateMacOrderResponse
- type CreateNodeConfigDetails
- type GetMacDeviceRequest
- func (request GetMacDeviceRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request GetMacDeviceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, ...) (http.Request, error)
- func (request GetMacDeviceRequest) RetryPolicy() *common.RetryPolicy
- func (request GetMacDeviceRequest) String() string
- func (request GetMacDeviceRequest) ValidateEnumValue() (bool, error)
- type GetMacDeviceResponse
- type GetMacOrderRequest
- func (request GetMacOrderRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request GetMacOrderRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, ...) (http.Request, error)
- func (request GetMacOrderRequest) RetryPolicy() *common.RetryPolicy
- func (request GetMacOrderRequest) String() string
- func (request GetMacOrderRequest) ValidateEnumValue() (bool, error)
- type GetMacOrderResponse
- type GetWorkRequestRequest
- func (request GetWorkRequestRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request GetWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, ...) (http.Request, error)
- func (request GetWorkRequestRequest) RetryPolicy() *common.RetryPolicy
- func (request GetWorkRequestRequest) String() string
- func (request GetWorkRequestRequest) ValidateEnumValue() (bool, error)
- type GetWorkRequestResponse
- type ListMacDevicesRequest
- func (request ListMacDevicesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request ListMacDevicesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, ...) (http.Request, error)
- func (request ListMacDevicesRequest) RetryPolicy() *common.RetryPolicy
- func (request ListMacDevicesRequest) String() string
- func (request ListMacDevicesRequest) ValidateEnumValue() (bool, error)
- type ListMacDevicesResponse
- type ListMacDevicesSortByEnum
- type ListMacDevicesSortOrderEnum
- type ListMacOrdersRequest
- func (request ListMacOrdersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request ListMacOrdersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, ...) (http.Request, error)
- func (request ListMacOrdersRequest) RetryPolicy() *common.RetryPolicy
- func (request ListMacOrdersRequest) String() string
- func (request ListMacOrdersRequest) ValidateEnumValue() (bool, error)
- type ListMacOrdersResponse
- type ListMacOrdersSortByEnum
- type ListMacOrdersSortOrderEnum
- type ListWorkRequestErrorsRequest
- func (request ListWorkRequestErrorsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request ListWorkRequestErrorsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, ...) (http.Request, error)
- func (request ListWorkRequestErrorsRequest) RetryPolicy() *common.RetryPolicy
- func (request ListWorkRequestErrorsRequest) String() string
- func (request ListWorkRequestErrorsRequest) ValidateEnumValue() (bool, error)
- type ListWorkRequestErrorsResponse
- type ListWorkRequestErrorsSortByEnum
- type ListWorkRequestErrorsSortOrderEnum
- type ListWorkRequestLogsRequest
- func (request ListWorkRequestLogsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request ListWorkRequestLogsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, ...) (http.Request, error)
- func (request ListWorkRequestLogsRequest) RetryPolicy() *common.RetryPolicy
- func (request ListWorkRequestLogsRequest) String() string
- func (request ListWorkRequestLogsRequest) ValidateEnumValue() (bool, error)
- type ListWorkRequestLogsResponse
- type ListWorkRequestLogsSortByEnum
- type ListWorkRequestLogsSortOrderEnum
- type ListWorkRequestsRequest
- func (request ListWorkRequestsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request ListWorkRequestsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, ...) (http.Request, error)
- func (request ListWorkRequestsRequest) RetryPolicy() *common.RetryPolicy
- func (request ListWorkRequestsRequest) String() string
- func (request ListWorkRequestsRequest) ValidateEnumValue() (bool, error)
- type ListWorkRequestsResponse
- type ListWorkRequestsSortByEnum
- type ListWorkRequestsSortOrderEnum
- type ListWorkRequestsStatusEnum
- type MacDevice
- type MacDeviceClient
- func (client *MacDeviceClient) ConfigurationProvider() *common.ConfigurationProvider
- func (client MacDeviceClient) GetMacDevice(ctx context.Context, request GetMacDeviceRequest) (response GetMacDeviceResponse, err error)
- func (client MacDeviceClient) ListMacDevices(ctx context.Context, request ListMacDevicesRequest) (response ListMacDevicesResponse, err error)
- func (client *MacDeviceClient) SetRegion(region string)
- func (client MacDeviceClient) TerminateMacDevice(ctx context.Context, request TerminateMacDeviceRequest) (response TerminateMacDeviceResponse, err error)
- type MacDeviceCollection
- type MacDeviceLifecycleStateEnum
- type MacDeviceSummary
- type MacOrder
- type MacOrderClient
- func (client MacOrderClient) CancelMacOrder(ctx context.Context, request CancelMacOrderRequest) (response CancelMacOrderResponse, err error)
- func (client MacOrderClient) CancelWorkRequest(ctx context.Context, request CancelWorkRequestRequest) (response CancelWorkRequestResponse, err error)
- func (client MacOrderClient) ChangeMacOrderCompartment(ctx context.Context, request ChangeMacOrderCompartmentRequest) (response ChangeMacOrderCompartmentResponse, err error)
- func (client *MacOrderClient) ConfigurationProvider() *common.ConfigurationProvider
- func (client MacOrderClient) CreateMacOrder(ctx context.Context, request CreateMacOrderRequest) (response CreateMacOrderResponse, err error)
- func (client MacOrderClient) GetMacOrder(ctx context.Context, request GetMacOrderRequest) (response GetMacOrderResponse, err error)
- func (client MacOrderClient) GetWorkRequest(ctx context.Context, request GetWorkRequestRequest) (response GetWorkRequestResponse, err error)
- func (client MacOrderClient) ListMacOrders(ctx context.Context, request ListMacOrdersRequest) (response ListMacOrdersResponse, err error)
- func (client MacOrderClient) ListWorkRequestErrors(ctx context.Context, request ListWorkRequestErrorsRequest) (response ListWorkRequestErrorsResponse, err error)
- func (client MacOrderClient) ListWorkRequestLogs(ctx context.Context, request ListWorkRequestLogsRequest) (response ListWorkRequestLogsResponse, err error)
- func (client MacOrderClient) ListWorkRequests(ctx context.Context, request ListWorkRequestsRequest) (response ListWorkRequestsResponse, err error)
- func (client *MacOrderClient) SetRegion(region string)
- func (client MacOrderClient) UpdateMacOrder(ctx context.Context, request UpdateMacOrderRequest) (response UpdateMacOrderResponse, err error)
- type MacOrderCollection
- type MacOrderCommitmentTermEnum
- type MacOrderLifecycleStateEnum
- type MacOrderOrderStatusEnum
- type MacOrderShapeEnum
- type MacOrderSummary
- type NodeConfig
- type OperationStatusEnum
- type OperationTypeEnum
- type OpsActionCreateMacDeviceDetails
- type OpsActionUpdateMacDeviceDetails
- type OpsActionUpdateMacDeviceDetailsLifecycleStateEnum
- type OpsActionUpdateMacOrderDetails
- type SortOrderEnum
- type TerminateMacDeviceRequest
- func (request TerminateMacDeviceRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request TerminateMacDeviceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, ...) (http.Request, error)
- func (request TerminateMacDeviceRequest) RetryPolicy() *common.RetryPolicy
- func (request TerminateMacDeviceRequest) String() string
- func (request TerminateMacDeviceRequest) ValidateEnumValue() (bool, error)
- type TerminateMacDeviceResponse
- type UpdateMacOrderDetails
- type UpdateMacOrderRequest
- func (request UpdateMacOrderRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request UpdateMacOrderRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, ...) (http.Request, error)
- func (request UpdateMacOrderRequest) RetryPolicy() *common.RetryPolicy
- func (request UpdateMacOrderRequest) String() string
- func (request UpdateMacOrderRequest) ValidateEnumValue() (bool, error)
- type UpdateMacOrderResponse
- type UpdateNodeConfigDetails
- type WorkRequest
- type WorkRequestError
- type WorkRequestErrorCollection
- type WorkRequestLogEntry
- type WorkRequestLogEntryCollection
- type WorkRequestResource
- type WorkRequestResourceMetadataKeyEnum
- type WorkRequestSummary
- type WorkRequestSummaryCollection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetActionTypeEnumStringValues ¶
func GetActionTypeEnumStringValues() []string
GetActionTypeEnumStringValues Enumerates the set of values in String for ActionTypeEnum
func GetListMacDevicesSortByEnumStringValues ¶
func GetListMacDevicesSortByEnumStringValues() []string
GetListMacDevicesSortByEnumStringValues Enumerates the set of values in String for ListMacDevicesSortByEnum
func GetListMacDevicesSortOrderEnumStringValues ¶
func GetListMacDevicesSortOrderEnumStringValues() []string
GetListMacDevicesSortOrderEnumStringValues Enumerates the set of values in String for ListMacDevicesSortOrderEnum
func GetListMacOrdersSortByEnumStringValues ¶
func GetListMacOrdersSortByEnumStringValues() []string
GetListMacOrdersSortByEnumStringValues Enumerates the set of values in String for ListMacOrdersSortByEnum
func GetListMacOrdersSortOrderEnumStringValues ¶
func GetListMacOrdersSortOrderEnumStringValues() []string
GetListMacOrdersSortOrderEnumStringValues Enumerates the set of values in String for ListMacOrdersSortOrderEnum
func GetListWorkRequestErrorsSortByEnumStringValues ¶
func GetListWorkRequestErrorsSortByEnumStringValues() []string
GetListWorkRequestErrorsSortByEnumStringValues Enumerates the set of values in String for ListWorkRequestErrorsSortByEnum
func GetListWorkRequestErrorsSortOrderEnumStringValues ¶
func GetListWorkRequestErrorsSortOrderEnumStringValues() []string
GetListWorkRequestErrorsSortOrderEnumStringValues Enumerates the set of values in String for ListWorkRequestErrorsSortOrderEnum
func GetListWorkRequestLogsSortByEnumStringValues ¶
func GetListWorkRequestLogsSortByEnumStringValues() []string
GetListWorkRequestLogsSortByEnumStringValues Enumerates the set of values in String for ListWorkRequestLogsSortByEnum
func GetListWorkRequestLogsSortOrderEnumStringValues ¶
func GetListWorkRequestLogsSortOrderEnumStringValues() []string
GetListWorkRequestLogsSortOrderEnumStringValues Enumerates the set of values in String for ListWorkRequestLogsSortOrderEnum
func GetListWorkRequestsSortByEnumStringValues ¶
func GetListWorkRequestsSortByEnumStringValues() []string
GetListWorkRequestsSortByEnumStringValues Enumerates the set of values in String for ListWorkRequestsSortByEnum
func GetListWorkRequestsSortOrderEnumStringValues ¶
func GetListWorkRequestsSortOrderEnumStringValues() []string
GetListWorkRequestsSortOrderEnumStringValues Enumerates the set of values in String for ListWorkRequestsSortOrderEnum
func GetListWorkRequestsStatusEnumStringValues ¶
func GetListWorkRequestsStatusEnumStringValues() []string
GetListWorkRequestsStatusEnumStringValues Enumerates the set of values in String for ListWorkRequestsStatusEnum
func GetMacDeviceLifecycleStateEnumStringValues ¶
func GetMacDeviceLifecycleStateEnumStringValues() []string
GetMacDeviceLifecycleStateEnumStringValues Enumerates the set of values in String for MacDeviceLifecycleStateEnum
func GetMacOrderCommitmentTermEnumStringValues ¶
func GetMacOrderCommitmentTermEnumStringValues() []string
GetMacOrderCommitmentTermEnumStringValues Enumerates the set of values in String for MacOrderCommitmentTermEnum
func GetMacOrderLifecycleStateEnumStringValues ¶
func GetMacOrderLifecycleStateEnumStringValues() []string
GetMacOrderLifecycleStateEnumStringValues Enumerates the set of values in String for MacOrderLifecycleStateEnum
func GetMacOrderOrderStatusEnumStringValues ¶
func GetMacOrderOrderStatusEnumStringValues() []string
GetMacOrderOrderStatusEnumStringValues Enumerates the set of values in String for MacOrderOrderStatusEnum
func GetMacOrderShapeEnumStringValues ¶
func GetMacOrderShapeEnumStringValues() []string
GetMacOrderShapeEnumStringValues Enumerates the set of values in String for MacOrderShapeEnum
func GetOperationStatusEnumStringValues ¶
func GetOperationStatusEnumStringValues() []string
GetOperationStatusEnumStringValues Enumerates the set of values in String for OperationStatusEnum
func GetOperationTypeEnumStringValues ¶
func GetOperationTypeEnumStringValues() []string
GetOperationTypeEnumStringValues Enumerates the set of values in String for OperationTypeEnum
func GetOpsActionUpdateMacDeviceDetailsLifecycleStateEnumStringValues ¶
func GetOpsActionUpdateMacDeviceDetailsLifecycleStateEnumStringValues() []string
GetOpsActionUpdateMacDeviceDetailsLifecycleStateEnumStringValues Enumerates the set of values in String for OpsActionUpdateMacDeviceDetailsLifecycleStateEnum
func GetSortOrderEnumStringValues ¶
func GetSortOrderEnumStringValues() []string
GetSortOrderEnumStringValues Enumerates the set of values in String for SortOrderEnum
func GetWorkRequestResourceMetadataKeyEnumStringValues ¶
func GetWorkRequestResourceMetadataKeyEnumStringValues() []string
GetWorkRequestResourceMetadataKeyEnumStringValues Enumerates the set of values in String for WorkRequestResourceMetadataKeyEnum
Types ¶
type ActionTypeEnum ¶
type ActionTypeEnum string
ActionTypeEnum Enum with underlying type: string
const ( ActionTypeCreated ActionTypeEnum = "CREATED" ActionTypeUpdated ActionTypeEnum = "UPDATED" ActionTypeDeleted ActionTypeEnum = "DELETED" ActionTypeInProgress ActionTypeEnum = "IN_PROGRESS" ActionTypeRelated ActionTypeEnum = "RELATED" ActionTypeFailed ActionTypeEnum = "FAILED" )
Set of constants representing the allowable values for ActionTypeEnum
func GetActionTypeEnumValues ¶
func GetActionTypeEnumValues() []ActionTypeEnum
GetActionTypeEnumValues Enumerates the set of values for ActionTypeEnum
func GetMappingActionTypeEnum ¶
func GetMappingActionTypeEnum(val string) (ActionTypeEnum, bool)
GetMappingActionTypeEnum performs case Insensitive comparison on enum value and return the desired enum
type CancelMacOrderDetails ¶
type CancelMacOrderDetails struct {
// The reason for the MacOrder cancellation.
CancelReason *string `mandatory:"false" json:"cancelReason"`
}
CancelMacOrderDetails The data to cancel a MacOrder.
func (CancelMacOrderDetails) String ¶
func (m CancelMacOrderDetails) String() string
func (CancelMacOrderDetails) ValidateEnumValue ¶
func (m CancelMacOrderDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type CancelMacOrderRequest ¶
type CancelMacOrderRequest struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the MacOrder.
MacOrderId *string `mandatory:"true" contributesTo:"path" name:"macOrderId"`
// The information to cancel a MacOrder.
CancelMacOrderDetails `contributesTo:"body"`
// For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
// `if-match` parameter to the value of the etag from a previous GET or POST response for
// that resource. The resource will be updated or deleted only if the etag you provide
// matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
// The only valid characters for request IDs are letters, numbers,
// underscore, and dash.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// A token that uniquely identifies a request so it can be retried in case of a timeout or
// server error without risk of running that same action again. Retry tokens expire after 24
// hours, but can be invalidated before then due to conflicting operations. For example, if a resource
// has been deleted and removed from the system, then a retry of the original creation request
// might be rejected.
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
CancelMacOrderRequest wrapper for the CancelMacOrder operation
See also ¶
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/mngdmac/CancelMacOrder.go.html to see an example of how to use CancelMacOrderRequest.
func (CancelMacOrderRequest) BinaryRequestBody ¶
func (request CancelMacOrderRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (CancelMacOrderRequest) HTTPRequest ¶
func (request CancelMacOrderRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (CancelMacOrderRequest) RetryPolicy ¶
func (request CancelMacOrderRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (CancelMacOrderRequest) String ¶
func (request CancelMacOrderRequest) String() string
func (CancelMacOrderRequest) ValidateEnumValue ¶
func (request CancelMacOrderRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type CancelMacOrderResponse ¶
type CancelMacOrderResponse struct {
// The underlying http response
RawResponse *http.Response
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.
// Use GetWorkRequest with this ID to track the status of the request.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
CancelMacOrderResponse wrapper for the CancelMacOrder operation
func (CancelMacOrderResponse) HTTPResponse ¶
func (response CancelMacOrderResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (CancelMacOrderResponse) String ¶
func (response CancelMacOrderResponse) String() string
type CancelWorkRequestRequest ¶
type CancelWorkRequestRequest struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.
WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"`
// 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"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
// The only valid characters for request IDs are letters, numbers,
// underscore, and dash.
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
}
CancelWorkRequestRequest wrapper for the CancelWorkRequest operation
See also ¶
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/mngdmac/CancelWorkRequest.go.html to see an example of how to use CancelWorkRequestRequest.
func (CancelWorkRequestRequest) BinaryRequestBody ¶
func (request CancelWorkRequestRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (CancelWorkRequestRequest) HTTPRequest ¶
func (request CancelWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (CancelWorkRequestRequest) RetryPolicy ¶
func (request CancelWorkRequestRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (CancelWorkRequestRequest) String ¶
func (request CancelWorkRequestRequest) String() string
func (CancelWorkRequestRequest) ValidateEnumValue ¶
func (request CancelWorkRequestRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type CancelWorkRequestResponse ¶
type CancelWorkRequestResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
CancelWorkRequestResponse wrapper for the CancelWorkRequest operation
func (CancelWorkRequestResponse) HTTPResponse ¶
func (response CancelWorkRequestResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (CancelWorkRequestResponse) String ¶
func (response CancelWorkRequestResponse) String() string
type ChangeMacOrderCompartmentDetails ¶
type ChangeMacOrderCompartmentDetails struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the MacOrder to.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
}
ChangeMacOrderCompartmentDetails The configuration details for the move operation.
func (ChangeMacOrderCompartmentDetails) String ¶
func (m ChangeMacOrderCompartmentDetails) String() string
func (ChangeMacOrderCompartmentDetails) ValidateEnumValue ¶
func (m ChangeMacOrderCompartmentDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type ChangeMacOrderCompartmentRequest ¶
type ChangeMacOrderCompartmentRequest struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the MacOrder.
MacOrderId *string `mandatory:"true" contributesTo:"path" name:"macOrderId"`
// The information to be updated.
ChangeMacOrderCompartmentDetails `contributesTo:"body"`
// For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
// `if-match` parameter to the value of the etag from a previous GET or POST response for
// that resource. The resource will be updated or deleted only if the etag you provide
// matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
// The only valid characters for request IDs are letters, numbers,
// underscore, and dash.
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
}
ChangeMacOrderCompartmentRequest wrapper for the ChangeMacOrderCompartment operation
See also ¶
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/mngdmac/ChangeMacOrderCompartment.go.html to see an example of how to use ChangeMacOrderCompartmentRequest.
func (ChangeMacOrderCompartmentRequest) BinaryRequestBody ¶
func (request ChangeMacOrderCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (ChangeMacOrderCompartmentRequest) HTTPRequest ¶
func (request ChangeMacOrderCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ChangeMacOrderCompartmentRequest) RetryPolicy ¶
func (request ChangeMacOrderCompartmentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ChangeMacOrderCompartmentRequest) String ¶
func (request ChangeMacOrderCompartmentRequest) String() string
func (ChangeMacOrderCompartmentRequest) ValidateEnumValue ¶
func (request ChangeMacOrderCompartmentRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type ChangeMacOrderCompartmentResponse ¶
type ChangeMacOrderCompartmentResponse struct {
// The underlying http response
RawResponse *http.Response
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.
// Use GetWorkRequest with this ID to track the status of the request.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
ChangeMacOrderCompartmentResponse wrapper for the ChangeMacOrderCompartment operation
func (ChangeMacOrderCompartmentResponse) HTTPResponse ¶
func (response ChangeMacOrderCompartmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ChangeMacOrderCompartmentResponse) String ¶
func (response ChangeMacOrderCompartmentResponse) String() string
type CreateMacOrderDetails ¶
type CreateMacOrderDetails struct {
// OCID of the compartment to which the resource belongs to.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// A user-friendly description. To provide some insight about the resource.
// Avoid entering confidential information.
OrderDescription *string `mandatory:"true" json:"orderDescription"`
// Number of macs requested in this MacOrder.
OrderSize *int `mandatory:"true" json:"orderSize"`
// The requested shape of the MacDevices in the MacOrder.
Shape MacOrderShapeEnum `mandatory:"true" json:"shape"`
// Enum that indicates the agreed commitment term for the MacDevices.
CommitmentTerm MacOrderCommitmentTermEnum `mandatory:"true" json:"commitmentTerm"`
// A user-friendly name. Does not have to be unique, and it's changeable.
// Avoid entering confidential information.
// Example: `My new resource`
DisplayName *string `mandatory:"false" json:"displayName"`
// The IP Range specified by the customer for this order.
IpRange *string `mandatory:"false" json:"ipRange"`
}
CreateMacOrderDetails The data to create a new MacOrder.
func (CreateMacOrderDetails) String ¶
func (m CreateMacOrderDetails) String() string
func (CreateMacOrderDetails) ValidateEnumValue ¶
func (m CreateMacOrderDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type CreateMacOrderRequest ¶
type CreateMacOrderRequest struct {
// Details for the new MacOrder.
CreateMacOrderDetails `contributesTo:"body"`
// A token that uniquely identifies a request so it can be retried in case of a timeout or
// server error without risk of running that same action again. Retry tokens expire after 24
// hours, but can be invalidated before then due to conflicting operations. For example, if a resource
// has been deleted and removed from the system, then a retry of the original creation request
// might be rejected.
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
// The only valid characters for request IDs are letters, numbers,
// underscore, and dash.
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
}
CreateMacOrderRequest wrapper for the CreateMacOrder operation
See also ¶
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/mngdmac/CreateMacOrder.go.html to see an example of how to use CreateMacOrderRequest.
func (CreateMacOrderRequest) BinaryRequestBody ¶
func (request CreateMacOrderRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (CreateMacOrderRequest) HTTPRequest ¶
func (request CreateMacOrderRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (CreateMacOrderRequest) RetryPolicy ¶
func (request CreateMacOrderRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (CreateMacOrderRequest) String ¶
func (request CreateMacOrderRequest) String() string
func (CreateMacOrderRequest) ValidateEnumValue ¶
func (request CreateMacOrderRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type CreateMacOrderResponse ¶
type CreateMacOrderResponse struct {
// The underlying http response
RawResponse *http.Response
// The MacOrder instance
MacOrder `presentIn:"body"`
// URL for the created MacOrder. The MacOrder OCID is generated after this request is sent.
Location *string `presentIn:"header" name:"location"`
// Same as location.
ContentLocation *string `presentIn:"header" name:"content-location"`
// For optimistic concurrency control. See `if-match`.
Etag *string `presentIn:"header" name:"etag"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.
// Use GetWorkRequest with this ID to track the status of the request.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
CreateMacOrderResponse wrapper for the CreateMacOrder operation
func (CreateMacOrderResponse) HTTPResponse ¶
func (response CreateMacOrderResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (CreateMacOrderResponse) String ¶
func (response CreateMacOrderResponse) String() string
type CreateNodeConfigDetails ¶
type CreateNodeConfigDetails struct {
// The serial number of the MacDevice.
SerialNumber *string `mandatory:"true" json:"serialNumber"`
// The macAddress.
MacAddress *string `mandatory:"true" json:"macAddress"`
// The macOrderId.
MacOrderId *string `mandatory:"true" json:"macOrderId"`
// The switchHostname.
SwitchHostname *string `mandatory:"false" json:"switchHostname"`
// The switchEthPort.
SwitchEthPort *string `mandatory:"false" json:"switchEthPort"`
// The ipKvmHostname.
IpKvmHostname *string `mandatory:"false" json:"ipKvmHostname"`
// The ipKvmPortNumber.
IpKvmPortNumber *int `mandatory:"false" json:"ipKvmPortNumber"`
// The pduHostname.
PduHostname *string `mandatory:"false" json:"pduHostname"`
// The pduPort.
PduPort *int `mandatory:"false" json:"pduPort"`
// The buildVlanId.
BuildVlanId *int `mandatory:"false" json:"buildVlanId"`
// The buildIpAddress.
BuildIpAddress *string `mandatory:"false" json:"buildIpAddress"`
// The prodVlanId.
ProdVlanId *int `mandatory:"false" json:"prodVlanId"`
// The prodIpAddress.
ProdIpAddress *string `mandatory:"false" json:"prodIpAddress"`
// The rackLocation.
RackLocation *string `mandatory:"false" json:"rackLocation"`
// The chipSetn.
ChipSet *string `mandatory:"false" json:"chipSet"`
// The osVersion.
OsVersion *string `mandatory:"false" json:"osVersion"`
// The tenancyId.
TenancyId *string `mandatory:"false" json:"tenancyId"`
}
CreateNodeConfigDetails The data to create a new NodeConfig.
func (CreateNodeConfigDetails) String ¶
func (m CreateNodeConfigDetails) String() string
func (CreateNodeConfigDetails) ValidateEnumValue ¶
func (m CreateNodeConfigDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type GetMacDeviceRequest ¶
type GetMacDeviceRequest struct {
// The UUID of the MacDevice.
MacDeviceId *string `mandatory:"true" contributesTo:"path" name:"macDeviceId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the MacOrder.
MacOrderId *string `mandatory:"true" contributesTo:"path" name:"macOrderId"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
// The only valid characters for request IDs are letters, numbers,
// underscore, and dash.
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
}
GetMacDeviceRequest wrapper for the GetMacDevice operation
See also ¶
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/mngdmac/GetMacDevice.go.html to see an example of how to use GetMacDeviceRequest.
func (GetMacDeviceRequest) BinaryRequestBody ¶
func (request GetMacDeviceRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (GetMacDeviceRequest) HTTPRequest ¶
func (request GetMacDeviceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (GetMacDeviceRequest) RetryPolicy ¶
func (request GetMacDeviceRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (GetMacDeviceRequest) String ¶
func (request GetMacDeviceRequest) String() string
func (GetMacDeviceRequest) ValidateEnumValue ¶
func (request GetMacDeviceRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type GetMacDeviceResponse ¶
type GetMacDeviceResponse struct {
// The underlying http response
RawResponse *http.Response
// The MacDevice instance
MacDevice `presentIn:"body"`
// For optimistic concurrency control. See `if-match`.
Etag *string `presentIn:"header" name:"etag"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
GetMacDeviceResponse wrapper for the GetMacDevice operation
func (GetMacDeviceResponse) HTTPResponse ¶
func (response GetMacDeviceResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (GetMacDeviceResponse) String ¶
func (response GetMacDeviceResponse) String() string
type GetMacOrderRequest ¶
type GetMacOrderRequest struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the MacOrder.
MacOrderId *string `mandatory:"true" contributesTo:"path" name:"macOrderId"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
// The only valid characters for request IDs are letters, numbers,
// underscore, and dash.
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
}
GetMacOrderRequest wrapper for the GetMacOrder operation
See also ¶
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/mngdmac/GetMacOrder.go.html to see an example of how to use GetMacOrderRequest.
func (GetMacOrderRequest) BinaryRequestBody ¶
func (request GetMacOrderRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (GetMacOrderRequest) HTTPRequest ¶
func (request GetMacOrderRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (GetMacOrderRequest) RetryPolicy ¶
func (request GetMacOrderRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (GetMacOrderRequest) String ¶
func (request GetMacOrderRequest) String() string
func (GetMacOrderRequest) ValidateEnumValue ¶
func (request GetMacOrderRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type GetMacOrderResponse ¶
type GetMacOrderResponse struct {
// The underlying http response
RawResponse *http.Response
// The MacOrder instance
MacOrder `presentIn:"body"`
// For optimistic concurrency control. See `if-match`.
Etag *string `presentIn:"header" name:"etag"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
GetMacOrderResponse wrapper for the GetMacOrder operation
func (GetMacOrderResponse) HTTPResponse ¶
func (response GetMacOrderResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (GetMacOrderResponse) String ¶
func (response GetMacOrderResponse) String() string
type GetWorkRequestRequest ¶
type GetWorkRequestRequest struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.
WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
// The only valid characters for request IDs are letters, numbers,
// underscore, and dash.
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
}
GetWorkRequestRequest wrapper for the GetWorkRequest operation
See also ¶
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/mngdmac/GetWorkRequest.go.html to see an example of how to use GetWorkRequestRequest.
func (GetWorkRequestRequest) BinaryRequestBody ¶
func (request GetWorkRequestRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (GetWorkRequestRequest) HTTPRequest ¶
func (request GetWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (GetWorkRequestRequest) RetryPolicy ¶
func (request GetWorkRequestRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (GetWorkRequestRequest) String ¶
func (request GetWorkRequestRequest) String() string
func (GetWorkRequestRequest) ValidateEnumValue ¶
func (request GetWorkRequestRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type GetWorkRequestResponse ¶
type GetWorkRequestResponse struct {
// The underlying http response
RawResponse *http.Response
// The WorkRequest instance
WorkRequest `presentIn:"body"`
// For optimistic concurrency control. See `if-match`.
Etag *string `presentIn:"header" name:"etag"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// A decimal number representing the number of seconds the client should wait before polling this endpoint again.
RetryAfter *int `presentIn:"header" name:"retry-after"`
}
GetWorkRequestResponse wrapper for the GetWorkRequest operation
func (GetWorkRequestResponse) HTTPResponse ¶
func (response GetWorkRequestResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (GetWorkRequestResponse) String ¶
func (response GetWorkRequestResponse) String() string
type ListMacDevicesRequest ¶
type ListMacDevicesRequest struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the MacOrder.
MacOrderId *string `mandatory:"true" contributesTo:"path" name:"macOrderId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.
CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"`
// The UUID of the MacDevice.
Id *string `mandatory:"false" contributesTo:"query" name:"id"`
// The serial number of the MacDevice.
SerialNumber *string `mandatory:"false" contributesTo:"query" name:"serialNumber"`
// A filter to return only resources that match the given lifecycle state. The
// state value is case-insensitive.
LifecycleState MacDeviceLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`
// 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.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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
// The sort order to use, either ascending (`ASC`) or descending (`DESC`).
SortOrder ListMacDevicesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`
// The field to sort by. You can provide only one sort order. Default order for `timeCreated`
// is descending. Default order for `SerialNumber` is ascending.
SortBy ListMacDevicesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
// The only valid characters for request IDs are letters, numbers,
// underscore, and dash.
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
}
ListMacDevicesRequest wrapper for the ListMacDevices operation
See also ¶
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/mngdmac/ListMacDevices.go.html to see an example of how to use ListMacDevicesRequest.
func (ListMacDevicesRequest) BinaryRequestBody ¶
func (request ListMacDevicesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (ListMacDevicesRequest) HTTPRequest ¶
func (request ListMacDevicesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ListMacDevicesRequest) RetryPolicy ¶
func (request ListMacDevicesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ListMacDevicesRequest) String ¶
func (request ListMacDevicesRequest) String() string
func (ListMacDevicesRequest) ValidateEnumValue ¶
func (request ListMacDevicesRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type ListMacDevicesResponse ¶
type ListMacDevicesResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of MacDeviceCollection instances
MacDeviceCollection `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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}
ListMacDevicesResponse wrapper for the ListMacDevices operation
func (ListMacDevicesResponse) HTTPResponse ¶
func (response ListMacDevicesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ListMacDevicesResponse) String ¶
func (response ListMacDevicesResponse) String() string
type ListMacDevicesSortByEnum ¶
type ListMacDevicesSortByEnum string
ListMacDevicesSortByEnum Enum with underlying type: string
const ( ListMacDevicesSortByTimecreated ListMacDevicesSortByEnum = "timeCreated" ListMacDevicesSortBySerialnumber ListMacDevicesSortByEnum = "SerialNumber" )
Set of constants representing the allowable values for ListMacDevicesSortByEnum
func GetListMacDevicesSortByEnumValues ¶
func GetListMacDevicesSortByEnumValues() []ListMacDevicesSortByEnum
GetListMacDevicesSortByEnumValues Enumerates the set of values for ListMacDevicesSortByEnum
func GetMappingListMacDevicesSortByEnum ¶
func GetMappingListMacDevicesSortByEnum(val string) (ListMacDevicesSortByEnum, bool)
GetMappingListMacDevicesSortByEnum performs case Insensitive comparison on enum value and return the desired enum
type ListMacDevicesSortOrderEnum ¶
type ListMacDevicesSortOrderEnum string
ListMacDevicesSortOrderEnum Enum with underlying type: string
const ( ListMacDevicesSortOrderAsc ListMacDevicesSortOrderEnum = "ASC" ListMacDevicesSortOrderDesc ListMacDevicesSortOrderEnum = "DESC" )
Set of constants representing the allowable values for ListMacDevicesSortOrderEnum
func GetListMacDevicesSortOrderEnumValues ¶
func GetListMacDevicesSortOrderEnumValues() []ListMacDevicesSortOrderEnum
GetListMacDevicesSortOrderEnumValues Enumerates the set of values for ListMacDevicesSortOrderEnum
func GetMappingListMacDevicesSortOrderEnum ¶
func GetMappingListMacDevicesSortOrderEnum(val string) (ListMacDevicesSortOrderEnum, bool)
GetMappingListMacDevicesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
type ListMacOrdersRequest ¶
type ListMacOrdersRequest struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.
CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"`
// A filter to return only resources that match the given lifecycle state. The
// state value is case-insensitive.
LifecycleState MacOrderLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`
// A filter to return only resources that match the given display name exactly.
DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the MacOrder.
Id *string `mandatory:"false" contributesTo:"query" name:"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.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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
// The sort order to use, either ascending (`ASC`) or descending (`DESC`).
SortOrder ListMacOrdersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`
// The field to sort by. You can provide only one sort order. Default order for `timeCreated`
// is descending. Default order for `displayName` is ascending.
SortBy ListMacOrdersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
// The only valid characters for request IDs are letters, numbers,
// underscore, and dash.
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
}
ListMacOrdersRequest wrapper for the ListMacOrders operation
See also ¶
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/mngdmac/ListMacOrders.go.html to see an example of how to use ListMacOrdersRequest.
func (ListMacOrdersRequest) BinaryRequestBody ¶
func (request ListMacOrdersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (ListMacOrdersRequest) HTTPRequest ¶
func (request ListMacOrdersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ListMacOrdersRequest) RetryPolicy ¶
func (request ListMacOrdersRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ListMacOrdersRequest) String ¶
func (request ListMacOrdersRequest) String() string
func (ListMacOrdersRequest) ValidateEnumValue ¶
func (request ListMacOrdersRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type ListMacOrdersResponse ¶
type ListMacOrdersResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of MacOrderCollection instances
MacOrderCollection `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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}
ListMacOrdersResponse wrapper for the ListMacOrders operation
func (ListMacOrdersResponse) HTTPResponse ¶
func (response ListMacOrdersResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ListMacOrdersResponse) String ¶
func (response ListMacOrdersResponse) String() string
type ListMacOrdersSortByEnum ¶
type ListMacOrdersSortByEnum string
ListMacOrdersSortByEnum Enum with underlying type: string
const ( ListMacOrdersSortByTimecreated ListMacOrdersSortByEnum = "timeCreated" ListMacOrdersSortByDisplayname ListMacOrdersSortByEnum = "displayName" )
Set of constants representing the allowable values for ListMacOrdersSortByEnum
func GetListMacOrdersSortByEnumValues ¶
func GetListMacOrdersSortByEnumValues() []ListMacOrdersSortByEnum
GetListMacOrdersSortByEnumValues Enumerates the set of values for ListMacOrdersSortByEnum
func GetMappingListMacOrdersSortByEnum ¶
func GetMappingListMacOrdersSortByEnum(val string) (ListMacOrdersSortByEnum, bool)
GetMappingListMacOrdersSortByEnum performs case Insensitive comparison on enum value and return the desired enum
type ListMacOrdersSortOrderEnum ¶
type ListMacOrdersSortOrderEnum string
ListMacOrdersSortOrderEnum Enum with underlying type: string
const ( ListMacOrdersSortOrderAsc ListMacOrdersSortOrderEnum = "ASC" ListMacOrdersSortOrderDesc ListMacOrdersSortOrderEnum = "DESC" )
Set of constants representing the allowable values for ListMacOrdersSortOrderEnum
func GetListMacOrdersSortOrderEnumValues ¶
func GetListMacOrdersSortOrderEnumValues() []ListMacOrdersSortOrderEnum
GetListMacOrdersSortOrderEnumValues Enumerates the set of values for ListMacOrdersSortOrderEnum
func GetMappingListMacOrdersSortOrderEnum ¶
func GetMappingListMacOrdersSortOrderEnum(val string) (ListMacOrdersSortOrderEnum, bool)
GetMappingListMacOrdersSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
type ListWorkRequestErrorsRequest ¶
type ListWorkRequestErrorsRequest struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.
WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
// The only valid characters for request IDs are letters, numbers,
// underscore, and dash.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// 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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
// 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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`
// The field to sort by. Only one sort order may be provided. Default order for `timestamp` is descending.
SortBy ListWorkRequestErrorsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// The sort order to use, either ascending (`ASC`) or descending (`DESC`).
SortOrder ListWorkRequestErrorsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
ListWorkRequestErrorsRequest wrapper for the ListWorkRequestErrors operation
See also ¶
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/mngdmac/ListWorkRequestErrors.go.html to see an example of how to use ListWorkRequestErrorsRequest.
func (ListWorkRequestErrorsRequest) BinaryRequestBody ¶
func (request ListWorkRequestErrorsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (ListWorkRequestErrorsRequest) HTTPRequest ¶
func (request ListWorkRequestErrorsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ListWorkRequestErrorsRequest) RetryPolicy ¶
func (request ListWorkRequestErrorsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ListWorkRequestErrorsRequest) String ¶
func (request ListWorkRequestErrorsRequest) String() string
func (ListWorkRequestErrorsRequest) ValidateEnumValue ¶
func (request ListWorkRequestErrorsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type ListWorkRequestErrorsResponse ¶
type ListWorkRequestErrorsResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of WorkRequestErrorCollection instances
WorkRequestErrorCollection `presentIn:"body"`
// 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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
ListWorkRequestErrorsResponse wrapper for the ListWorkRequestErrors operation
func (ListWorkRequestErrorsResponse) HTTPResponse ¶
func (response ListWorkRequestErrorsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ListWorkRequestErrorsResponse) String ¶
func (response ListWorkRequestErrorsResponse) String() string
type ListWorkRequestErrorsSortByEnum ¶
type ListWorkRequestErrorsSortByEnum string
ListWorkRequestErrorsSortByEnum Enum with underlying type: string
const (
ListWorkRequestErrorsSortByTimestamp ListWorkRequestErrorsSortByEnum = "timestamp"
)
Set of constants representing the allowable values for ListWorkRequestErrorsSortByEnum
func GetListWorkRequestErrorsSortByEnumValues ¶
func GetListWorkRequestErrorsSortByEnumValues() []ListWorkRequestErrorsSortByEnum
GetListWorkRequestErrorsSortByEnumValues Enumerates the set of values for ListWorkRequestErrorsSortByEnum
func GetMappingListWorkRequestErrorsSortByEnum ¶
func GetMappingListWorkRequestErrorsSortByEnum(val string) (ListWorkRequestErrorsSortByEnum, bool)
GetMappingListWorkRequestErrorsSortByEnum performs case Insensitive comparison on enum value and return the desired enum
type ListWorkRequestErrorsSortOrderEnum ¶
type ListWorkRequestErrorsSortOrderEnum string
ListWorkRequestErrorsSortOrderEnum Enum with underlying type: string
const ( ListWorkRequestErrorsSortOrderAsc ListWorkRequestErrorsSortOrderEnum = "ASC" ListWorkRequestErrorsSortOrderDesc ListWorkRequestErrorsSortOrderEnum = "DESC" )
Set of constants representing the allowable values for ListWorkRequestErrorsSortOrderEnum
func GetListWorkRequestErrorsSortOrderEnumValues ¶
func GetListWorkRequestErrorsSortOrderEnumValues() []ListWorkRequestErrorsSortOrderEnum
GetListWorkRequestErrorsSortOrderEnumValues Enumerates the set of values for ListWorkRequestErrorsSortOrderEnum
func GetMappingListWorkRequestErrorsSortOrderEnum ¶
func GetMappingListWorkRequestErrorsSortOrderEnum(val string) (ListWorkRequestErrorsSortOrderEnum, bool)
GetMappingListWorkRequestErrorsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
type ListWorkRequestLogsRequest ¶
type ListWorkRequestLogsRequest struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.
WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
// The only valid characters for request IDs are letters, numbers,
// underscore, and dash.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// 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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
// 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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`
// The field to sort by. Only one sort order may be provided. Default order for `timestamp` is descending.
SortBy ListWorkRequestLogsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// The sort order to use, either ascending (`ASC`) or descending (`DESC`).
SortOrder ListWorkRequestLogsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
ListWorkRequestLogsRequest wrapper for the ListWorkRequestLogs operation
See also ¶
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/mngdmac/ListWorkRequestLogs.go.html to see an example of how to use ListWorkRequestLogsRequest.
func (ListWorkRequestLogsRequest) BinaryRequestBody ¶
func (request ListWorkRequestLogsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (ListWorkRequestLogsRequest) HTTPRequest ¶
func (request ListWorkRequestLogsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ListWorkRequestLogsRequest) RetryPolicy ¶
func (request ListWorkRequestLogsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ListWorkRequestLogsRequest) String ¶
func (request ListWorkRequestLogsRequest) String() string
func (ListWorkRequestLogsRequest) ValidateEnumValue ¶
func (request ListWorkRequestLogsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type ListWorkRequestLogsResponse ¶
type ListWorkRequestLogsResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of WorkRequestLogEntryCollection instances
WorkRequestLogEntryCollection `presentIn:"body"`
// 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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
ListWorkRequestLogsResponse wrapper for the ListWorkRequestLogs operation
func (ListWorkRequestLogsResponse) HTTPResponse ¶
func (response ListWorkRequestLogsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ListWorkRequestLogsResponse) String ¶
func (response ListWorkRequestLogsResponse) String() string
type ListWorkRequestLogsSortByEnum ¶
type ListWorkRequestLogsSortByEnum string
ListWorkRequestLogsSortByEnum Enum with underlying type: string
const (
ListWorkRequestLogsSortByTimestamp ListWorkRequestLogsSortByEnum = "timestamp"
)
Set of constants representing the allowable values for ListWorkRequestLogsSortByEnum
func GetListWorkRequestLogsSortByEnumValues ¶
func GetListWorkRequestLogsSortByEnumValues() []ListWorkRequestLogsSortByEnum
GetListWorkRequestLogsSortByEnumValues Enumerates the set of values for ListWorkRequestLogsSortByEnum
func GetMappingListWorkRequestLogsSortByEnum ¶
func GetMappingListWorkRequestLogsSortByEnum(val string) (ListWorkRequestLogsSortByEnum, bool)
GetMappingListWorkRequestLogsSortByEnum performs case Insensitive comparison on enum value and return the desired enum
type ListWorkRequestLogsSortOrderEnum ¶
type ListWorkRequestLogsSortOrderEnum string
ListWorkRequestLogsSortOrderEnum Enum with underlying type: string
const ( ListWorkRequestLogsSortOrderAsc ListWorkRequestLogsSortOrderEnum = "ASC" ListWorkRequestLogsSortOrderDesc ListWorkRequestLogsSortOrderEnum = "DESC" )
Set of constants representing the allowable values for ListWorkRequestLogsSortOrderEnum
func GetListWorkRequestLogsSortOrderEnumValues ¶
func GetListWorkRequestLogsSortOrderEnumValues() []ListWorkRequestLogsSortOrderEnum
GetListWorkRequestLogsSortOrderEnumValues Enumerates the set of values for ListWorkRequestLogsSortOrderEnum
func GetMappingListWorkRequestLogsSortOrderEnum ¶
func GetMappingListWorkRequestLogsSortOrderEnum(val string) (ListWorkRequestLogsSortOrderEnum, bool)
GetMappingListWorkRequestLogsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
type ListWorkRequestsRequest ¶
type ListWorkRequestsRequest struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.
CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.
WorkRequestId *string `mandatory:"false" contributesTo:"query" name:"workRequestId"`
// A filter to return only the resources that match the given lifecycle state.
Status ListWorkRequestsStatusEnum `mandatory:"false" contributesTo:"query" name:"status" omitEmpty:"true"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource affected by the work request.
ResourceId *string `mandatory:"false" contributesTo:"query" name:"resourceId"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
// The only valid characters for request IDs are letters, numbers,
// underscore, and dash.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// 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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
// 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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`
// The sort order to use, either ascending (`ASC`) or descending (`DESC`).
SortOrder ListWorkRequestsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`
// The field to sort by. Only one sort order may be provided. Default order for `timeAccepted` is descending.
SortBy ListWorkRequestsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
ListWorkRequestsRequest wrapper for the ListWorkRequests operation
See also ¶
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/mngdmac/ListWorkRequests.go.html to see an example of how to use ListWorkRequestsRequest.
func (ListWorkRequestsRequest) BinaryRequestBody ¶
func (request ListWorkRequestsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (ListWorkRequestsRequest) HTTPRequest ¶
func (request ListWorkRequestsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ListWorkRequestsRequest) RetryPolicy ¶
func (request ListWorkRequestsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ListWorkRequestsRequest) String ¶
func (request ListWorkRequestsRequest) String() string
func (ListWorkRequestsRequest) ValidateEnumValue ¶
func (request ListWorkRequestsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type ListWorkRequestsResponse ¶
type ListWorkRequestsResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of WorkRequestSummaryCollection instances
WorkRequestSummaryCollection `presentIn:"body"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// For 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.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}
ListWorkRequestsResponse wrapper for the ListWorkRequests operation
func (ListWorkRequestsResponse) HTTPResponse ¶
func (response ListWorkRequestsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ListWorkRequestsResponse) String ¶
func (response ListWorkRequestsResponse) String() string
type ListWorkRequestsSortByEnum ¶
type ListWorkRequestsSortByEnum string
ListWorkRequestsSortByEnum Enum with underlying type: string
const (
ListWorkRequestsSortByTimeaccepted ListWorkRequestsSortByEnum = "timeAccepted"
)
Set of constants representing the allowable values for ListWorkRequestsSortByEnum
func GetListWorkRequestsSortByEnumValues ¶
func GetListWorkRequestsSortByEnumValues() []ListWorkRequestsSortByEnum
GetListWorkRequestsSortByEnumValues Enumerates the set of values for ListWorkRequestsSortByEnum
func GetMappingListWorkRequestsSortByEnum ¶
func GetMappingListWorkRequestsSortByEnum(val string) (ListWorkRequestsSortByEnum, bool)
GetMappingListWorkRequestsSortByEnum performs case Insensitive comparison on enum value and return the desired enum
type ListWorkRequestsSortOrderEnum ¶
type ListWorkRequestsSortOrderEnum string
ListWorkRequestsSortOrderEnum Enum with underlying type: string
const ( ListWorkRequestsSortOrderAsc ListWorkRequestsSortOrderEnum = "ASC" ListWorkRequestsSortOrderDesc ListWorkRequestsSortOrderEnum = "DESC" )
Set of constants representing the allowable values for ListWorkRequestsSortOrderEnum
func GetListWorkRequestsSortOrderEnumValues ¶
func GetListWorkRequestsSortOrderEnumValues() []ListWorkRequestsSortOrderEnum
GetListWorkRequestsSortOrderEnumValues Enumerates the set of values for ListWorkRequestsSortOrderEnum
func GetMappingListWorkRequestsSortOrderEnum ¶
func GetMappingListWorkRequestsSortOrderEnum(val string) (ListWorkRequestsSortOrderEnum, bool)
GetMappingListWorkRequestsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
type ListWorkRequestsStatusEnum ¶
type ListWorkRequestsStatusEnum string
ListWorkRequestsStatusEnum Enum with underlying type: string
const ( ListWorkRequestsStatusAccepted ListWorkRequestsStatusEnum = "ACCEPTED" ListWorkRequestsStatusInProgress ListWorkRequestsStatusEnum = "IN_PROGRESS" ListWorkRequestsStatusWaiting ListWorkRequestsStatusEnum = "WAITING" ListWorkRequestsStatusNeedsAttention ListWorkRequestsStatusEnum = "NEEDS_ATTENTION" ListWorkRequestsStatusFailed ListWorkRequestsStatusEnum = "FAILED" ListWorkRequestsStatusSucceeded ListWorkRequestsStatusEnum = "SUCCEEDED" ListWorkRequestsStatusCanceling ListWorkRequestsStatusEnum = "CANCELING" ListWorkRequestsStatusCanceled ListWorkRequestsStatusEnum = "CANCELED" )
Set of constants representing the allowable values for ListWorkRequestsStatusEnum
func GetListWorkRequestsStatusEnumValues ¶
func GetListWorkRequestsStatusEnumValues() []ListWorkRequestsStatusEnum
GetListWorkRequestsStatusEnumValues Enumerates the set of values for ListWorkRequestsStatusEnum
func GetMappingListWorkRequestsStatusEnum ¶
func GetMappingListWorkRequestsStatusEnum(val string) (ListWorkRequestsStatusEnum, bool)
GetMappingListWorkRequestsStatusEnum performs case Insensitive comparison on enum value and return the desired enum
type MacDevice ¶
type MacDevice struct {
// The unique ID of the MacDevice.
Id *string `mandatory:"true" json:"id"`
// OCID of the compartment to which the resource belongs to.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The OCID of the resource.
MacOrderId *string `mandatory:"true" json:"macOrderId"`
// The serial number of the MacDevice.
SerialNumber *string `mandatory:"true" json:"serialNumber"`
// The IP address assigned to the MacDevice.
IpAddress *string `mandatory:"true" json:"ipAddress"`
// The current status of the MacDevice.
LifecycleState MacDeviceLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// The shape of the Mac.
Shape MacOrderShapeEnum `mandatory:"true" json:"shape"`
// The time this resource was created. An RFC3339 formatted datetime string.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The time this resource was last updated. An RFC3339 formatted datetime string.
TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
// A flag that indicates if this MacDevice is decommissioned.
IsMarkedDecom *bool `mandatory:"true" json:"isMarkedDecom"`
// An RFC3339-formatted datetime string containing the time this MacDevice was decommissioned.
TimeDecom *common.SDKTime `mandatory:"true" json:"timeDecom"`
}
MacDevice Represents a MacDevice resource.
func (MacDevice) ValidateEnumValue ¶
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type MacDeviceClient ¶
type MacDeviceClient struct {
common.BaseClient
// contains filtered or unexported fields
}
MacDeviceClient a client for MacDevice
func NewMacDeviceClientWithConfigurationProvider ¶
func NewMacDeviceClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client MacDeviceClient, err error)
NewMacDeviceClientWithConfigurationProvider Creates a new default MacDevice client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region
func NewMacDeviceClientWithOboToken ¶
func NewMacDeviceClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client MacDeviceClient, err error)
NewMacDeviceClientWithOboToken Creates a new default MacDevice 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 (*MacDeviceClient) ConfigurationProvider ¶
func (client *MacDeviceClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (MacDeviceClient) GetMacDevice ¶
func (client MacDeviceClient) GetMacDevice(ctx context.Context, request GetMacDeviceRequest) (response GetMacDeviceResponse, err error)
GetMacDevice Gets information about a MacDevice.
See also ¶
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/mngdmac/GetMacDevice.go.html to see an example of how to use GetMacDevice API. A default retry strategy applies to this operation GetMacDevice()
func (MacDeviceClient) ListMacDevices ¶
func (client MacDeviceClient) ListMacDevices(ctx context.Context, request ListMacDevicesRequest) (response ListMacDevicesResponse, err error)
ListMacDevices Gets a list of MacDevices assigned to this order.
See also ¶
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/mngdmac/ListMacDevices.go.html to see an example of how to use ListMacDevices API. A default retry strategy applies to this operation ListMacDevices()
func (*MacDeviceClient) SetRegion ¶
func (client *MacDeviceClient) SetRegion(region string)
SetRegion overrides the region of this client.
func (MacDeviceClient) TerminateMacDevice ¶
func (client MacDeviceClient) TerminateMacDevice(ctx context.Context, request TerminateMacDeviceRequest) (response TerminateMacDeviceResponse, err error)
TerminateMacDevice Terminates a MacDevice.
See also ¶
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/mngdmac/TerminateMacDevice.go.html to see an example of how to use TerminateMacDevice API. A default retry strategy applies to this operation TerminateMacDevice()
type MacDeviceCollection ¶
type MacDeviceCollection struct {
// List of MacDevices.
Items []MacDeviceSummary `mandatory:"true" json:"items"`
}
MacDeviceCollection Results of a MacDevice search. Contains both MacDeviceSummary items and other information, such as metadata.
func (MacDeviceCollection) String ¶
func (m MacDeviceCollection) String() string
func (MacDeviceCollection) ValidateEnumValue ¶
func (m MacDeviceCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type MacDeviceLifecycleStateEnum ¶
type MacDeviceLifecycleStateEnum string
MacDeviceLifecycleStateEnum Enum with underlying type: string
const ( MacDeviceLifecycleStateCreating MacDeviceLifecycleStateEnum = "CREATING" MacDeviceLifecycleStateActive MacDeviceLifecycleStateEnum = "ACTIVE" MacDeviceLifecycleStateNeedsAttention MacDeviceLifecycleStateEnum = "NEEDS_ATTENTION" MacDeviceLifecycleStateDeleting MacDeviceLifecycleStateEnum = "DELETING" MacDeviceLifecycleStateDeleted MacDeviceLifecycleStateEnum = "DELETED" )
Set of constants representing the allowable values for MacDeviceLifecycleStateEnum
func GetMacDeviceLifecycleStateEnumValues ¶
func GetMacDeviceLifecycleStateEnumValues() []MacDeviceLifecycleStateEnum
GetMacDeviceLifecycleStateEnumValues Enumerates the set of values for MacDeviceLifecycleStateEnum
func GetMappingMacDeviceLifecycleStateEnum ¶
func GetMappingMacDeviceLifecycleStateEnum(val string) (MacDeviceLifecycleStateEnum, bool)
GetMappingMacDeviceLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
type MacDeviceSummary ¶
type MacDeviceSummary struct {
// The unique ID of the MacDevice.
Id *string `mandatory:"true" json:"id"`
// OCID of the compartment to which the resource belongs to.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The OCID of the resource.
MacOrderId *string `mandatory:"true" json:"macOrderId"`
// The serial number of the MacDevice.
SerialNumber *string `mandatory:"true" json:"serialNumber"`
// The IP address assigned to the MacDevice.
IpAddress *string `mandatory:"true" json:"ipAddress"`
// The shape of the MacDevice.
Shape MacOrderShapeEnum `mandatory:"true" json:"shape"`
// The current status of the MacDevice.
LifecycleState MacDeviceLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// The time this resource was created. An RFC3339 formatted datetime string.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The time this resource was last updated. An RFC3339 formatted datetime string.
TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
// A flag that indicates if this MacDevice is decommissioned.
IsMarkedDecom *bool `mandatory:"true" json:"isMarkedDecom"`
// An RFC3339-formatted datetime string containing the time this MacDevice was decommissioned.
TimeDecom *common.SDKTime `mandatory:"true" json:"timeDecom"`
}
MacDeviceSummary Summary information about a MacDevice.
func (MacDeviceSummary) String ¶
func (m MacDeviceSummary) String() string
func (MacDeviceSummary) ValidateEnumValue ¶
func (m MacDeviceSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type MacOrder ¶
type MacOrder struct {
// The OCID of the resource.
Id *string `mandatory:"true" json:"id"`
// OCID of the compartment to which the resource belongs to.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// A user-friendly description. To provide some insight about the resource.
// Avoid entering confidential information.
OrderDescription *string `mandatory:"true" json:"orderDescription"`
// Number of macs requested in this MacOrder.
OrderSize *int `mandatory:"true" json:"orderSize"`
// Checkbox value that indicates whether the customer completed docusign process.
IsDocusigned *bool `mandatory:"true" json:"isDocusigned"`
// Enum indicating the requested shape for the MacDevices.
Shape MacOrderShapeEnum `mandatory:"true" json:"shape"`
// The time this resource was created. An RFC3339 formatted datetime string.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// Enum indicating the agreed commitment term for the requested MacDevices.
CommitmentTerm MacOrderCommitmentTermEnum `mandatory:"true" json:"commitmentTerm"`
// The current status of the MacOrder.
OrderStatus MacOrderOrderStatusEnum `mandatory:"true" json:"orderStatus"`
// The current state of the MacOrder.
LifecycleState MacOrderLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// A user-friendly name. Does not have to be unique, and it's changeable.
// Avoid entering confidential information.
// Example: `My new resource`
DisplayName *string `mandatory:"false" json:"displayName"`
// The IP Range specified by the customer for this order.
IpRange *string `mandatory:"false" json:"ipRange"`
// The time this resource was last updated. An RFC3339 formatted datetime string.
TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
// An RFC3339-formatted datetime string containing the date and time that billing for this MacOrder begins.
TimeBillingStarted *common.SDKTime `mandatory:"false" json:"timeBillingStarted"`
// An RFC3339-formatted datetime string containing the date and time that billing for this MacOrder ends.
TimeBillingEnded *common.SDKTime `mandatory:"false" json:"timeBillingEnded"`
// A message that describes the current state of the MacOrder in more detail.
LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`
// The reason for the MacOrder cancellation.
CancelReason *string `mandatory:"false" json:"cancelReason"`
// An RFC3339-formatted datetime string containing the time this MacOrder was cancelled.
TimeCanceled *common.SDKTime `mandatory:"false" json:"timeCanceled"`
}
MacOrder A description of a MacOrder resource.
func (MacOrder) ValidateEnumValue ¶
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type MacOrderClient ¶
type MacOrderClient struct {
common.BaseClient
// contains filtered or unexported fields
}
MacOrderClient a client for MacOrder
func NewMacOrderClientWithConfigurationProvider ¶
func NewMacOrderClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client MacOrderClient, err error)
NewMacOrderClientWithConfigurationProvider Creates a new default MacOrder client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region
func NewMacOrderClientWithOboToken ¶
func NewMacOrderClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client MacOrderClient, err error)
NewMacOrderClientWithOboToken Creates a new default MacOrder 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 (MacOrderClient) CancelMacOrder ¶
func (client MacOrderClient) CancelMacOrder(ctx context.Context, request CancelMacOrderRequest) (response CancelMacOrderResponse, err error)
CancelMacOrder Cancels a MacOrder.
See also ¶
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/mngdmac/CancelMacOrder.go.html to see an example of how to use CancelMacOrder API. A default retry strategy applies to this operation CancelMacOrder()
func (MacOrderClient) CancelWorkRequest ¶
func (client MacOrderClient) CancelWorkRequest(ctx context.Context, request CancelWorkRequestRequest) (response CancelWorkRequestResponse, err error)
CancelWorkRequest Cancels a work request.
See also ¶
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/mngdmac/CancelWorkRequest.go.html to see an example of how to use CancelWorkRequest API. A default retry strategy applies to this operation CancelWorkRequest()
func (MacOrderClient) ChangeMacOrderCompartment ¶
func (client MacOrderClient) ChangeMacOrderCompartment(ctx context.Context, request ChangeMacOrderCompartmentRequest) (response ChangeMacOrderCompartmentResponse, err error)
ChangeMacOrderCompartment Moves a MacOrder into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
See also ¶
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/mngdmac/ChangeMacOrderCompartment.go.html to see an example of how to use ChangeMacOrderCompartment API. A default retry strategy applies to this operation ChangeMacOrderCompartment()
func (*MacOrderClient) ConfigurationProvider ¶
func (client *MacOrderClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (MacOrderClient) CreateMacOrder ¶
func (client MacOrderClient) CreateMacOrder(ctx context.Context, request CreateMacOrderRequest) (response CreateMacOrderResponse, err error)
CreateMacOrder Creates a MacOrder.
See also ¶
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/mngdmac/CreateMacOrder.go.html to see an example of how to use CreateMacOrder API. A default retry strategy applies to this operation CreateMacOrder()
func (MacOrderClient) GetMacOrder ¶
func (client MacOrderClient) GetMacOrder(ctx context.Context, request GetMacOrderRequest) (response GetMacOrderResponse, err error)
GetMacOrder Gets information about a MacOrder.
See also ¶
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/mngdmac/GetMacOrder.go.html to see an example of how to use GetMacOrder API. A default retry strategy applies to this operation GetMacOrder()
func (MacOrderClient) GetWorkRequest ¶
func (client MacOrderClient) GetWorkRequest(ctx context.Context, request GetWorkRequestRequest) (response GetWorkRequestResponse, err error)
GetWorkRequest Gets the details of a work request.
See also ¶
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/mngdmac/GetWorkRequest.go.html to see an example of how to use GetWorkRequest API. A default retry strategy applies to this operation GetWorkRequest()
func (MacOrderClient) ListMacOrders ¶
func (client MacOrderClient) ListMacOrders(ctx context.Context, request ListMacOrdersRequest) (response ListMacOrdersResponse, err error)
ListMacOrders Gets a list of MacOrders.
See also ¶
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/mngdmac/ListMacOrders.go.html to see an example of how to use ListMacOrders API. A default retry strategy applies to this operation ListMacOrders()
func (MacOrderClient) ListWorkRequestErrors ¶
func (client MacOrderClient) ListWorkRequestErrors(ctx context.Context, request ListWorkRequestErrorsRequest) (response ListWorkRequestErrorsResponse, err error)
ListWorkRequestErrors Lists the errors for a work request.
See also ¶
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/mngdmac/ListWorkRequestErrors.go.html to see an example of how to use ListWorkRequestErrors API. A default retry strategy applies to this operation ListWorkRequestErrors()
func (MacOrderClient) ListWorkRequestLogs ¶
func (client MacOrderClient) ListWorkRequestLogs(ctx context.Context, request ListWorkRequestLogsRequest) (response ListWorkRequestLogsResponse, err error)
ListWorkRequestLogs Lists the logs for a work request.
See also ¶
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/mngdmac/ListWorkRequestLogs.go.html to see an example of how to use ListWorkRequestLogs API. A default retry strategy applies to this operation ListWorkRequestLogs()
func (MacOrderClient) ListWorkRequests ¶
func (client MacOrderClient) ListWorkRequests(ctx context.Context, request ListWorkRequestsRequest) (response ListWorkRequestsResponse, err error)
ListWorkRequests Lists the work requests in a compartment.
See also ¶
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/mngdmac/ListWorkRequests.go.html to see an example of how to use ListWorkRequests API. A default retry strategy applies to this operation ListWorkRequests()
func (*MacOrderClient) SetRegion ¶
func (client *MacOrderClient) SetRegion(region string)
SetRegion overrides the region of this client.
func (MacOrderClient) UpdateMacOrder ¶
func (client MacOrderClient) UpdateMacOrder(ctx context.Context, request UpdateMacOrderRequest) (response UpdateMacOrderResponse, err error)
UpdateMacOrder Updates a MacOrder.
See also ¶
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/mngdmac/UpdateMacOrder.go.html to see an example of how to use UpdateMacOrder API. A default retry strategy applies to this operation UpdateMacOrder()
type MacOrderCollection ¶
type MacOrderCollection struct {
// List of MacOrders.
Items []MacOrderSummary `mandatory:"true" json:"items"`
}
MacOrderCollection Results of a MacOrder search. Contains both MacOrderSummary items and other information, such as metadata.
func (MacOrderCollection) String ¶
func (m MacOrderCollection) String() string
func (MacOrderCollection) ValidateEnumValue ¶
func (m MacOrderCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type MacOrderCommitmentTermEnum ¶
type MacOrderCommitmentTermEnum string
MacOrderCommitmentTermEnum Enum with underlying type: string
const (
MacOrderCommitmentTermYears3 MacOrderCommitmentTermEnum = "YEARS_3"
)
Set of constants representing the allowable values for MacOrderCommitmentTermEnum
func GetMacOrderCommitmentTermEnumValues ¶
func GetMacOrderCommitmentTermEnumValues() []MacOrderCommitmentTermEnum
GetMacOrderCommitmentTermEnumValues Enumerates the set of values for MacOrderCommitmentTermEnum
func GetMappingMacOrderCommitmentTermEnum ¶
func GetMappingMacOrderCommitmentTermEnum(val string) (MacOrderCommitmentTermEnum, bool)
GetMappingMacOrderCommitmentTermEnum performs case Insensitive comparison on enum value and return the desired enum
type MacOrderLifecycleStateEnum ¶
type MacOrderLifecycleStateEnum string
MacOrderLifecycleStateEnum Enum with underlying type: string
const ( MacOrderLifecycleStateCreating MacOrderLifecycleStateEnum = "CREATING" MacOrderLifecycleStateUpdating MacOrderLifecycleStateEnum = "UPDATING" MacOrderLifecycleStateActive MacOrderLifecycleStateEnum = "ACTIVE" MacOrderLifecycleStateNeedsAttention MacOrderLifecycleStateEnum = "NEEDS_ATTENTION" MacOrderLifecycleStateDeleting MacOrderLifecycleStateEnum = "DELETING" MacOrderLifecycleStateDeleted MacOrderLifecycleStateEnum = "DELETED" MacOrderLifecycleStateFailed MacOrderLifecycleStateEnum = "FAILED" )
Set of constants representing the allowable values for MacOrderLifecycleStateEnum
func GetMacOrderLifecycleStateEnumValues ¶
func GetMacOrderLifecycleStateEnumValues() []MacOrderLifecycleStateEnum
GetMacOrderLifecycleStateEnumValues Enumerates the set of values for MacOrderLifecycleStateEnum
func GetMappingMacOrderLifecycleStateEnum ¶
func GetMappingMacOrderLifecycleStateEnum(val string) (MacOrderLifecycleStateEnum, bool)
GetMappingMacOrderLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
type MacOrderOrderStatusEnum ¶
type MacOrderOrderStatusEnum string
MacOrderOrderStatusEnum Enum with underlying type: string
const ( MacOrderOrderStatusSubmitted MacOrderOrderStatusEnum = "SUBMITTED" MacOrderOrderStatusPendingDocusign MacOrderOrderStatusEnum = "PENDING_DOCUSIGN" MacOrderOrderStatusOrderReview MacOrderOrderStatusEnum = "ORDER_REVIEW" MacOrderOrderStatusCustomerReview MacOrderOrderStatusEnum = "CUSTOMER_REVIEW" MacOrderOrderStatusCustomerApproved MacOrderOrderStatusEnum = "CUSTOMER_APPROVED" MacOrderOrderStatusFundingApproved MacOrderOrderStatusEnum = "FUNDING_APPROVED" MacOrderOrderStatusProvisioning MacOrderOrderStatusEnum = "PROVISIONING" MacOrderOrderStatusCustomerAccepted MacOrderOrderStatusEnum = "CUSTOMER_ACCEPTED" MacOrderOrderStatusCompleted MacOrderOrderStatusEnum = "COMPLETED" MacOrderOrderStatusCanceled MacOrderOrderStatusEnum = "CANCELED" )
Set of constants representing the allowable values for MacOrderOrderStatusEnum
func GetMacOrderOrderStatusEnumValues ¶
func GetMacOrderOrderStatusEnumValues() []MacOrderOrderStatusEnum
GetMacOrderOrderStatusEnumValues Enumerates the set of values for MacOrderOrderStatusEnum
func GetMappingMacOrderOrderStatusEnum ¶
func GetMappingMacOrderOrderStatusEnum(val string) (MacOrderOrderStatusEnum, bool)
GetMappingMacOrderOrderStatusEnum performs case Insensitive comparison on enum value and return the desired enum
type MacOrderShapeEnum ¶
type MacOrderShapeEnum string
MacOrderShapeEnum Enum with underlying type: string
const ( MacOrderShapeM2ProMacMini32gb1tb MacOrderShapeEnum = "M2_PRO_MAC_MINI_32GB_1TB" MacOrderShapeM2UltraMacStudio64gb4tb MacOrderShapeEnum = "M2_ULTRA_MAC_STUDIO_64GB_4TB" MacOrderShapeM2UltraMacStudio192gb4tb MacOrderShapeEnum = "M2_ULTRA_MAC_STUDIO_192GB_4TB" MacOrderShapeM4ProMacMini64gb2tb MacOrderShapeEnum = "M4_PRO_MAC_MINI_64GB_2TB" MacOrderShapeM4ProMacMini64gb4tb MacOrderShapeEnum = "M4_PRO_MAC_MINI_64GB_4TB" )
Set of constants representing the allowable values for MacOrderShapeEnum
func GetMacOrderShapeEnumValues ¶
func GetMacOrderShapeEnumValues() []MacOrderShapeEnum
GetMacOrderShapeEnumValues Enumerates the set of values for MacOrderShapeEnum
func GetMappingMacOrderShapeEnum ¶
func GetMappingMacOrderShapeEnum(val string) (MacOrderShapeEnum, bool)
GetMappingMacOrderShapeEnum performs case Insensitive comparison on enum value and return the desired enum
type MacOrderSummary ¶
type MacOrderSummary struct {
// The OCID of the resource.
Id *string `mandatory:"true" json:"id"`
// OCID of the compartment to which the resource belongs to.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// A user-friendly name. Does not have to be unique, and it's changeable.
// Avoid entering confidential information.
// Example: `My new resource`
DisplayName *string `mandatory:"true" json:"displayName"`
// A user-friendly description. To provide some insight about the resource.
// Avoid entering confidential information.
OrderDescription *string `mandatory:"true" json:"orderDescription"`
// Number of macs requested in this MacOrder.
OrderSize *int `mandatory:"true" json:"orderSize"`
// Checkbox value that indicates whether the customer completed docusign process.
IsDocusigned *bool `mandatory:"true" json:"isDocusigned"`
// The requested shape for Macs in this MacOrder.
Shape MacOrderShapeEnum `mandatory:"true" json:"shape"`
// The time this resource was created. An RFC3339 formatted datetime string.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// Enum indicating the agreed commitment term on the MacOrder.
CommitmentTerm MacOrderCommitmentTermEnum `mandatory:"true" json:"commitmentTerm"`
// The current status of the MacOrder.
OrderStatus MacOrderOrderStatusEnum `mandatory:"true" json:"orderStatus"`
// The current state of the MacOrder.
LifecycleState MacOrderLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// The IP Range specified by the customer for this order.
IpRange *string `mandatory:"false" json:"ipRange"`
// The time this resource was last updated. An RFC3339 formatted datetime string.
TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
// An RFC3339-formatted datetime string containing the date and time this MacOrder begins.
TimeBillingStarted *common.SDKTime `mandatory:"false" json:"timeBillingStarted"`
// An RFC3339-formatted datetime string containing the date and time this MacOrder begins.
TimeBillingEnded *common.SDKTime `mandatory:"false" json:"timeBillingEnded"`
// A message that describes the current state of the MacOrder in more detail.
LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`
}
MacOrderSummary Summary information about a MacOrder.
func (MacOrderSummary) String ¶
func (m MacOrderSummary) String() string
func (MacOrderSummary) ValidateEnumValue ¶
func (m MacOrderSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type NodeConfig ¶
type NodeConfig struct {
// The serial number of the MacDevice.
SerialNumber *string `mandatory:"true" json:"serialNumber"`
// The macAddress.
MacAddress *string `mandatory:"true" json:"macAddress"`
// The switchHostname.
SwitchHostname *string `mandatory:"true" json:"switchHostname"`
// The switchEthPort.
SwitchEthPort *string `mandatory:"true" json:"switchEthPort"`
// The ipKvmHostname.
IpKvmHostname *string `mandatory:"true" json:"ipKvmHostname"`
// The ipKvmPortNumber.
IpKvmPortNumber *int `mandatory:"true" json:"ipKvmPortNumber"`
// The pduHostname.
PduHostname *string `mandatory:"true" json:"pduHostname"`
// The pduPort.
PduPort *int `mandatory:"true" json:"pduPort"`
// The buildVlanId.
BuildVlanId *int `mandatory:"true" json:"buildVlanId"`
// The buildIpAddress.
BuildIpAddress *string `mandatory:"true" json:"buildIpAddress"`
// The prodVlanId.
ProdVlanId *int `mandatory:"true" json:"prodVlanId"`
// The prodIpAddress.
ProdIpAddress *string `mandatory:"true" json:"prodIpAddress"`
// The rackLocation.
RackLocation *string `mandatory:"true" json:"rackLocation"`
// The chipSetn.
ChipSet *string `mandatory:"true" json:"chipSet"`
// The osVersion.
OsVersion *string `mandatory:"true" json:"osVersion"`
// The macOrderId.
MacOrderId *string `mandatory:"true" json:"macOrderId"`
// The tenancyId.
TenancyId *string `mandatory:"true" json:"tenancyId"`
}
NodeConfig Represents a MacDevice resource.
func (NodeConfig) String ¶
func (m NodeConfig) String() string
func (NodeConfig) ValidateEnumValue ¶
func (m NodeConfig) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type OperationStatusEnum ¶
type OperationStatusEnum string
OperationStatusEnum Enum with underlying type: string
const ( OperationStatusAccepted OperationStatusEnum = "ACCEPTED" OperationStatusInProgress OperationStatusEnum = "IN_PROGRESS" OperationStatusWaiting OperationStatusEnum = "WAITING" OperationStatusNeedsAttention OperationStatusEnum = "NEEDS_ATTENTION" OperationStatusFailed OperationStatusEnum = "FAILED" OperationStatusSucceeded OperationStatusEnum = "SUCCEEDED" OperationStatusCanceling OperationStatusEnum = "CANCELING" OperationStatusCanceled OperationStatusEnum = "CANCELED" )
Set of constants representing the allowable values for OperationStatusEnum
func GetMappingOperationStatusEnum ¶
func GetMappingOperationStatusEnum(val string) (OperationStatusEnum, bool)
GetMappingOperationStatusEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOperationStatusEnumValues ¶
func GetOperationStatusEnumValues() []OperationStatusEnum
GetOperationStatusEnumValues Enumerates the set of values for OperationStatusEnum
type OperationTypeEnum ¶
type OperationTypeEnum string
OperationTypeEnum Enum with underlying type: string
const ( OperationTypeCreateMacOrder OperationTypeEnum = "CREATE_MAC_ORDER" OperationTypeUpdateMacOrder OperationTypeEnum = "UPDATE_MAC_ORDER" OperationTypeCancelMacOrder OperationTypeEnum = "CANCEL_MAC_ORDER" OperationTypeDeleteMacOrder OperationTypeEnum = "DELETE_MAC_ORDER" OperationTypeMoveMacOrder OperationTypeEnum = "MOVE_MAC_ORDER" OperationTypeDeleteMacDevice OperationTypeEnum = "DELETE_MAC_DEVICE" )
Set of constants representing the allowable values for OperationTypeEnum
func GetMappingOperationTypeEnum ¶
func GetMappingOperationTypeEnum(val string) (OperationTypeEnum, bool)
GetMappingOperationTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOperationTypeEnumValues ¶
func GetOperationTypeEnumValues() []OperationTypeEnum
GetOperationTypeEnumValues Enumerates the set of values for OperationTypeEnum
type OpsActionCreateMacDeviceDetails ¶
type OpsActionCreateMacDeviceDetails struct {
// The serial number of the MacDevice.
SerialNumber *string `mandatory:"true" json:"serialNumber"`
// The IP address assigned to the MacDevice.
IpAddress *string `mandatory:"true" json:"ipAddress"`
}
OpsActionCreateMacDeviceDetails The data to create a MacDevice in MAC_DEVICE bucket.
func (OpsActionCreateMacDeviceDetails) String ¶
func (m OpsActionCreateMacDeviceDetails) String() string
func (OpsActionCreateMacDeviceDetails) ValidateEnumValue ¶
func (m OpsActionCreateMacDeviceDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type OpsActionUpdateMacDeviceDetails ¶
type OpsActionUpdateMacDeviceDetails struct {
// The current status of the MacDevice.
LifecycleState OpsActionUpdateMacDeviceDetailsLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// The IP address assigned to the MacDevice.
IpAddress *string `mandatory:"false" json:"ipAddress"`
}
OpsActionUpdateMacDeviceDetails The data to update a MacDevice in MAC_DEVICE bucket.
func (OpsActionUpdateMacDeviceDetails) String ¶
func (m OpsActionUpdateMacDeviceDetails) String() string
func (OpsActionUpdateMacDeviceDetails) ValidateEnumValue ¶
func (m OpsActionUpdateMacDeviceDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type OpsActionUpdateMacDeviceDetailsLifecycleStateEnum ¶
type OpsActionUpdateMacDeviceDetailsLifecycleStateEnum string
OpsActionUpdateMacDeviceDetailsLifecycleStateEnum Enum with underlying type: string
const ( OpsActionUpdateMacDeviceDetailsLifecycleStateCreating OpsActionUpdateMacDeviceDetailsLifecycleStateEnum = "CREATING" OpsActionUpdateMacDeviceDetailsLifecycleStateActive OpsActionUpdateMacDeviceDetailsLifecycleStateEnum = "ACTIVE" OpsActionUpdateMacDeviceDetailsLifecycleStateNeedsAttention OpsActionUpdateMacDeviceDetailsLifecycleStateEnum = "NEEDS_ATTENTION" OpsActionUpdateMacDeviceDetailsLifecycleStateDeleting OpsActionUpdateMacDeviceDetailsLifecycleStateEnum = "DELETING" OpsActionUpdateMacDeviceDetailsLifecycleStateDeleted OpsActionUpdateMacDeviceDetailsLifecycleStateEnum = "DELETED" )
Set of constants representing the allowable values for OpsActionUpdateMacDeviceDetailsLifecycleStateEnum
func GetMappingOpsActionUpdateMacDeviceDetailsLifecycleStateEnum ¶
func GetMappingOpsActionUpdateMacDeviceDetailsLifecycleStateEnum(val string) (OpsActionUpdateMacDeviceDetailsLifecycleStateEnum, bool)
GetMappingOpsActionUpdateMacDeviceDetailsLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOpsActionUpdateMacDeviceDetailsLifecycleStateEnumValues ¶
func GetOpsActionUpdateMacDeviceDetailsLifecycleStateEnumValues() []OpsActionUpdateMacDeviceDetailsLifecycleStateEnum
GetOpsActionUpdateMacDeviceDetailsLifecycleStateEnumValues Enumerates the set of values for OpsActionUpdateMacDeviceDetailsLifecycleStateEnum
type OpsActionUpdateMacOrderDetails ¶
type OpsActionUpdateMacOrderDetails struct {
// The new status of the MacOrder.
OrderStatus MacOrderOrderStatusEnum `mandatory:"false" json:"orderStatus,omitempty"`
// The IP Range specified by the customer for this order.
IpRange *string `mandatory:"false" json:"ipRange"`
// The date and time this mac order is Active from. An RFC3339 formatted datetime string.
TimeBillingStarted *common.SDKTime `mandatory:"false" json:"timeBillingStarted"`
// The date and time this mac order until which this mac is Active. An RFC3339 formatted datetime string.
TimeBillingEnded *common.SDKTime `mandatory:"false" json:"timeBillingEnded"`
}
OpsActionUpdateMacOrderDetails The data to update an order in MAC_ORDER bucket.
func (OpsActionUpdateMacOrderDetails) String ¶
func (m OpsActionUpdateMacOrderDetails) String() string
func (OpsActionUpdateMacOrderDetails) ValidateEnumValue ¶
func (m OpsActionUpdateMacOrderDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type SortOrderEnum ¶
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 GetMappingSortOrderEnum ¶
func GetMappingSortOrderEnum(val string) (SortOrderEnum, bool)
GetMappingSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
func GetSortOrderEnumValues ¶
func GetSortOrderEnumValues() []SortOrderEnum
GetSortOrderEnumValues Enumerates the set of values for SortOrderEnum
type TerminateMacDeviceRequest ¶
type TerminateMacDeviceRequest struct {
// The UUID of the MacDevice.
MacDeviceId *string `mandatory:"true" contributesTo:"path" name:"macDeviceId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the MacOrder.
MacOrderId *string `mandatory:"true" contributesTo:"path" name:"macOrderId"`
// 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"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
// The only valid characters for request IDs are letters, numbers,
// underscore, and dash.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// A token that uniquely identifies a request so it can be retried in case of a timeout or
// server error without risk of running that same action again. Retry tokens expire after 24
// hours, but can be invalidated before then due to conflicting operations. For example, if a resource
// has been deleted and removed from the system, then a retry of the original creation request
// might be rejected.
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
TerminateMacDeviceRequest wrapper for the TerminateMacDevice operation
See also ¶
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/mngdmac/TerminateMacDevice.go.html to see an example of how to use TerminateMacDeviceRequest.
func (TerminateMacDeviceRequest) BinaryRequestBody ¶
func (request TerminateMacDeviceRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (TerminateMacDeviceRequest) HTTPRequest ¶
func (request TerminateMacDeviceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (TerminateMacDeviceRequest) RetryPolicy ¶
func (request TerminateMacDeviceRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (TerminateMacDeviceRequest) String ¶
func (request TerminateMacDeviceRequest) String() string
func (TerminateMacDeviceRequest) ValidateEnumValue ¶
func (request TerminateMacDeviceRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type TerminateMacDeviceResponse ¶
type TerminateMacDeviceResponse struct {
// The underlying http response
RawResponse *http.Response
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.
// Use GetWorkRequest with this ID to track the status of the request.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
TerminateMacDeviceResponse wrapper for the TerminateMacDevice operation
func (TerminateMacDeviceResponse) HTTPResponse ¶
func (response TerminateMacDeviceResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (TerminateMacDeviceResponse) String ¶
func (response TerminateMacDeviceResponse) String() string
type UpdateMacOrderDetails ¶
type UpdateMacOrderDetails struct {
// A user-friendly name. Does not have to be unique, and it's changeable.
// Avoid entering confidential information.
// Example: `My new resource`
DisplayName *string `mandatory:"false" json:"displayName"`
// A user-friendly description. To provide some insight about the resource.
// Avoid entering confidential information.
OrderDescription *string `mandatory:"false" json:"orderDescription"`
// Number of macs requested in this MacOrder.
OrderSize *int `mandatory:"false" json:"orderSize"`
// The shape of the Mac.
Shape MacOrderShapeEnum `mandatory:"false" json:"shape,omitempty"`
// The IP Range specified by the customer for this order.
IpRange *string `mandatory:"false" json:"ipRange"`
}
UpdateMacOrderDetails The data to update a MacOrder.
func (UpdateMacOrderDetails) String ¶
func (m UpdateMacOrderDetails) String() string
func (UpdateMacOrderDetails) ValidateEnumValue ¶
func (m UpdateMacOrderDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type UpdateMacOrderRequest ¶
type UpdateMacOrderRequest struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the MacOrder.
MacOrderId *string `mandatory:"true" contributesTo:"path" name:"macOrderId"`
// The information to be updated.
UpdateMacOrderDetails `contributesTo:"body"`
// For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
// `if-match` parameter to the value of the etag from a previous GET or POST response for
// that resource. The resource will be updated or deleted only if the etag you provide
// matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
// The only valid characters for request IDs are letters, numbers,
// underscore, and dash.
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
}
UpdateMacOrderRequest wrapper for the UpdateMacOrder operation
See also ¶
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/mngdmac/UpdateMacOrder.go.html to see an example of how to use UpdateMacOrderRequest.
func (UpdateMacOrderRequest) BinaryRequestBody ¶
func (request UpdateMacOrderRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (UpdateMacOrderRequest) HTTPRequest ¶
func (request UpdateMacOrderRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (UpdateMacOrderRequest) RetryPolicy ¶
func (request UpdateMacOrderRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (UpdateMacOrderRequest) String ¶
func (request UpdateMacOrderRequest) String() string
func (UpdateMacOrderRequest) ValidateEnumValue ¶
func (request UpdateMacOrderRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type UpdateMacOrderResponse ¶
type UpdateMacOrderResponse struct {
// The underlying http response
RawResponse *http.Response
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.
// Use GetWorkRequest with this ID to track the status of the request.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
UpdateMacOrderResponse wrapper for the UpdateMacOrder operation
func (UpdateMacOrderResponse) HTTPResponse ¶
func (response UpdateMacOrderResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (UpdateMacOrderResponse) String ¶
func (response UpdateMacOrderResponse) String() string
type UpdateNodeConfigDetails ¶
type UpdateNodeConfigDetails struct {
// The macAddress.
MacAddress *string `mandatory:"false" json:"macAddress"`
// The macOrderId.
MacOrderId *string `mandatory:"false" json:"macOrderId"`
// The switchHostname.
SwitchHostname *string `mandatory:"false" json:"switchHostname"`
// The switchEthPort.
SwitchEthPort *string `mandatory:"false" json:"switchEthPort"`
// The ipKvmHostname.
IpKvmHostname *string `mandatory:"false" json:"ipKvmHostname"`
// The ipKvmPortNumber.
IpKvmPortNumber *int `mandatory:"false" json:"ipKvmPortNumber"`
// The pduHostname.
PduHostname *string `mandatory:"false" json:"pduHostname"`
// The pduPort.
PduPort *int `mandatory:"false" json:"pduPort"`
// The buildVlanId.
BuildVlanId *int `mandatory:"false" json:"buildVlanId"`
// The buildIpAddress.
BuildIpAddress *string `mandatory:"false" json:"buildIpAddress"`
// The prodVlanId.
ProdVlanId *int `mandatory:"false" json:"prodVlanId"`
// The prodIpAddress.
ProdIpAddress *string `mandatory:"false" json:"prodIpAddress"`
// The rackLocation.
RackLocation *string `mandatory:"false" json:"rackLocation"`
// The chipSetn.
ChipSet *string `mandatory:"false" json:"chipSet"`
// The osVersion.
OsVersion *string `mandatory:"false" json:"osVersion"`
// The tenancyId.
TenancyId *string `mandatory:"false" json:"tenancyId"`
}
UpdateNodeConfigDetails The data to update a new NodeConfig.
func (UpdateNodeConfigDetails) String ¶
func (m UpdateNodeConfigDetails) String() string
func (UpdateNodeConfigDetails) ValidateEnumValue ¶
func (m UpdateNodeConfigDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type WorkRequest ¶
type WorkRequest struct {
// The asynchronous operation tracked by this work request.
OperationType OperationTypeEnum `mandatory:"true" json:"operationType"`
// The status of the work request.
Status OperationStatusEnum `mandatory:"true" json:"status"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request.
Id *string `mandatory:"true" json:"id"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The resources that are affected by the work request.
Resources []WorkRequestResource `mandatory:"true" json:"resources"`
// Shows the progress of the operation tracked by the work request, as a percentage of the total work
// that must be performed.
PercentComplete *float32 `mandatory:"true" json:"percentComplete"`
// The date and time the work request was created, in the format defined by
// RFC 3339 (https://tools.ietf.org/html/rfc3339).
TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"`
// The date and time the work request was started, in the format defined by
// RFC 3339 (https://tools.ietf.org/html/rfc3339).
TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"`
// The date and time the work request was finished, in the format defined by
// RFC 3339 (https://tools.ietf.org/rfc/rfc3339).
TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"`
// The date and time the work request was updated, in the format defined by
// RFC 3339 (https://tools.ietf.org/rfc/rfc3339).
TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
}
WorkRequest An asynchronous work request. Work requests help you monitor long-running operations. When you start a long-running operation, the service creates a work request. A work request is an activity log that lets you track each step in the operation's progress. Each work request has an OCID that lets you interact with it programmatically and use it for automation.
func (WorkRequest) String ¶
func (m WorkRequest) String() string
func (WorkRequest) ValidateEnumValue ¶
func (m WorkRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type WorkRequestError ¶
type WorkRequestError struct {
// A machine-usable code for the error that occurred. For a list of error codes, see
// API Errors (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm).
Code *string `mandatory:"true" json:"code"`
// A human-readable error message.
Message *string `mandatory:"true" json:"message"`
// The date and time the error occurred, in the format defined by
// RFC 3339 (https://tools.ietf.org/html/rfc3339).
Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"`
}
WorkRequestError An error encountered while performing an operation that is tracked by a work request.
func (WorkRequestError) String ¶
func (m WorkRequestError) String() string
func (WorkRequestError) ValidateEnumValue ¶
func (m WorkRequestError) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type WorkRequestErrorCollection ¶
type WorkRequestErrorCollection struct {
// A list of work request errors.
Items []WorkRequestError `mandatory:"true" json:"items"`
}
WorkRequestErrorCollection A list of work request errors. Can contain both errors and other information, such as metadata.
func (WorkRequestErrorCollection) String ¶
func (m WorkRequestErrorCollection) String() string
func (WorkRequestErrorCollection) ValidateEnumValue ¶
func (m WorkRequestErrorCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type WorkRequestLogEntry ¶
type WorkRequestLogEntry struct {
// A human-readable log message.
Message *string `mandatory:"true" json:"message"`
// The date and time the log message was written, in the format defined by
// RFC 3339 (https://tools.ietf.org/html/rfc3339).
Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"`
}
WorkRequestLogEntry A log message from performing an operation that is tracked by a work request.
func (WorkRequestLogEntry) String ¶
func (m WorkRequestLogEntry) String() string
func (WorkRequestLogEntry) ValidateEnumValue ¶
func (m WorkRequestLogEntry) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type WorkRequestLogEntryCollection ¶
type WorkRequestLogEntryCollection struct {
// A list of work request log entries.
Items []WorkRequestLogEntry `mandatory:"true" json:"items"`
}
WorkRequestLogEntryCollection A list of work request logs. Can contain both logs and other information, such as metadata.
func (WorkRequestLogEntryCollection) String ¶
func (m WorkRequestLogEntryCollection) String() string
func (WorkRequestLogEntryCollection) ValidateEnumValue ¶
func (m WorkRequestLogEntryCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type WorkRequestResource ¶
type WorkRequestResource struct {
// The resource type that the work request affects.
EntityType *string `mandatory:"true" json:"entityType"`
// The way in which this resource is affected by the operation tracked in the work request.
// A resource being created, updated, or deleted remains in the IN_PROGRESS state until
// work is complete for that resource, at which point it transitions to CREATED, UPDATED,
// or DELETED, respectively.
ActionType ActionTypeEnum `mandatory:"true" json:"actionType"`
// An OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) or other unique identifier for the resource.
Identifier *string `mandatory:"true" json:"identifier"`
// The URI path that you can use for a GET request to access the resource metadata.
EntityUri *string `mandatory:"false" json:"entityUri"`
// Additional information that helps to explain the resource.
Metadata map[string]string `mandatory:"false" json:"metadata"`
}
WorkRequestResource A resource created or operated on by a work request.
func (WorkRequestResource) String ¶
func (m WorkRequestResource) String() string
func (WorkRequestResource) ValidateEnumValue ¶
func (m WorkRequestResource) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type WorkRequestResourceMetadataKeyEnum ¶
type WorkRequestResourceMetadataKeyEnum string
WorkRequestResourceMetadataKeyEnum Enum with underlying type: string
const (
WorkRequestResourceMetadataKeyIsDryRun WorkRequestResourceMetadataKeyEnum = "IS_DRY_RUN"
)
Set of constants representing the allowable values for WorkRequestResourceMetadataKeyEnum
func GetMappingWorkRequestResourceMetadataKeyEnum ¶
func GetMappingWorkRequestResourceMetadataKeyEnum(val string) (WorkRequestResourceMetadataKeyEnum, bool)
GetMappingWorkRequestResourceMetadataKeyEnum performs case Insensitive comparison on enum value and return the desired enum
func GetWorkRequestResourceMetadataKeyEnumValues ¶
func GetWorkRequestResourceMetadataKeyEnumValues() []WorkRequestResourceMetadataKeyEnum
GetWorkRequestResourceMetadataKeyEnumValues Enumerates the set of values for WorkRequestResourceMetadataKeyEnum
type WorkRequestSummary ¶
type WorkRequestSummary struct {
// The asynchronous operation tracked by this work request.
OperationType OperationTypeEnum `mandatory:"true" json:"operationType"`
// The status of the work request.
Status OperationStatusEnum `mandatory:"true" json:"status"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request.
Id *string `mandatory:"true" json:"id"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The resources that are affected by this work request.
Resources []WorkRequestResource `mandatory:"true" json:"resources"`
// Shows the progress of the operation tracked by the work request, as a percentage of the total work
// that must be performed.
PercentComplete *float32 `mandatory:"true" json:"percentComplete"`
// The date and time the work request was created, in the format defined by
// RFC 3339 (https://tools.ietf.org/html/rfc3339).
TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"`
// The date and time the work request was started, in the format defined by
// RFC 3339 (https://tools.ietf.org/html/rfc3339).
TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"`
// The date and time the work request was finished, in the format defined by
// RFC 3339 (https://tools.ietf.org/rfc/rfc3339).
TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"`
// The date and time the work request was updated, in the format defined by
// RFC 3339 (https://tools.ietf.org/rfc/rfc3339).
TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
}
WorkRequestSummary Summary information about an asynchronous work request.
func (WorkRequestSummary) String ¶
func (m WorkRequestSummary) String() string
func (WorkRequestSummary) ValidateEnumValue ¶
func (m WorkRequestSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type WorkRequestSummaryCollection ¶
type WorkRequestSummaryCollection struct {
// A list of work requests.
Items []WorkRequestSummary `mandatory:"true" json:"items"`
}
WorkRequestSummaryCollection A list of work requests. Can contain both work requests and other information, such as metadata.
func (WorkRequestSummaryCollection) String ¶
func (m WorkRequestSummaryCollection) String() string
func (WorkRequestSummaryCollection) ValidateEnumValue ¶
func (m WorkRequestSummaryCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
Source Files
¶
- action_type.go
- cancel_mac_order_details.go
- cancel_mac_order_request_response.go
- cancel_work_request_request_response.go
- change_mac_order_compartment_details.go
- change_mac_order_compartment_request_response.go
- create_mac_order_details.go
- create_mac_order_request_response.go
- create_node_config_details.go
- get_mac_device_request_response.go
- get_mac_order_request_response.go
- get_work_request_request_response.go
- list_mac_devices_request_response.go
- list_mac_orders_request_response.go
- list_work_request_errors_request_response.go
- list_work_request_logs_request_response.go
- list_work_requests_request_response.go
- mac_device.go
- mac_device_collection.go
- mac_device_summary.go
- mac_order.go
- mac_order_collection.go
- mac_order_summary.go
- mngdmac_macdevice_client.go
- mngdmac_macorder_client.go
- node_config.go
- operation_status.go
- operation_type.go
- ops_action_create_mac_device_details.go
- ops_action_update_mac_device_details.go
- ops_action_update_mac_order_details.go
- sort_order.go
- terminate_mac_device_request_response.go
- update_mac_order_details.go
- update_mac_order_request_response.go
- update_node_config_details.go
- work_request.go
- work_request_error.go
- work_request_error_collection.go
- work_request_log_entry.go
- work_request_log_entry_collection.go
- work_request_resource.go
- work_request_resource_metadata_key.go
- work_request_summary.go
- work_request_summary_collection.go