func GetActionTypeEnumStringValues() []string
GetActionTypeEnumStringValues Enumerates the set of values in String for ActionTypeEnum
func GetListPrivateServiceAccessesSortByEnumStringValues() []string
GetListPrivateServiceAccessesSortByEnumStringValues Enumerates the set of values in String for ListPrivateServiceAccessesSortByEnum
func GetListPrivateServiceAccessesSortOrderEnumStringValues() []string
GetListPrivateServiceAccessesSortOrderEnumStringValues Enumerates the set of values in String for ListPrivateServiceAccessesSortOrderEnum
func GetListPsaServicesSortByEnumStringValues() []string
GetListPsaServicesSortByEnumStringValues Enumerates the set of values in String for ListPsaServicesSortByEnum
func GetListPsaServicesSortOrderEnumStringValues() []string
GetListPsaServicesSortOrderEnumStringValues Enumerates the set of values in String for ListPsaServicesSortOrderEnum
func GetListPsaWorkRequestErrorsSortByEnumStringValues() []string
GetListPsaWorkRequestErrorsSortByEnumStringValues Enumerates the set of values in String for ListPsaWorkRequestErrorsSortByEnum
func GetListPsaWorkRequestErrorsSortOrderEnumStringValues() []string
GetListPsaWorkRequestErrorsSortOrderEnumStringValues Enumerates the set of values in String for ListPsaWorkRequestErrorsSortOrderEnum
func GetListPsaWorkRequestLogsSortByEnumStringValues() []string
GetListPsaWorkRequestLogsSortByEnumStringValues Enumerates the set of values in String for ListPsaWorkRequestLogsSortByEnum
func GetListPsaWorkRequestLogsSortOrderEnumStringValues() []string
GetListPsaWorkRequestLogsSortOrderEnumStringValues Enumerates the set of values in String for ListPsaWorkRequestLogsSortOrderEnum
func GetListPsaWorkRequestsSortByEnumStringValues() []string
GetListPsaWorkRequestsSortByEnumStringValues Enumerates the set of values in String for ListPsaWorkRequestsSortByEnum
func GetListPsaWorkRequestsSortOrderEnumStringValues() []string
GetListPsaWorkRequestsSortOrderEnumStringValues Enumerates the set of values in String for ListPsaWorkRequestsSortOrderEnum
func GetListPsaWorkRequestsStatusEnumStringValues() []string
GetListPsaWorkRequestsStatusEnumStringValues Enumerates the set of values in String for ListPsaWorkRequestsStatusEnum
func GetOperationStatusEnumStringValues() []string
GetOperationStatusEnumStringValues Enumerates the set of values in String for OperationStatusEnum
func GetOperationTypeEnumStringValues() []string
GetOperationTypeEnumStringValues Enumerates the set of values in String for OperationTypeEnum
func GetPrivateServiceAccessLifecycleStateEnumStringValues() []string
GetPrivateServiceAccessLifecycleStateEnumStringValues Enumerates the set of values in String for PrivateServiceAccessLifecycleStateEnum
func GetSortOrderEnumStringValues() []string
GetSortOrderEnumStringValues Enumerates the set of values in String for SortOrderEnum
func GetWorkRequestResourceMetadataKeyEnumStringValues() []string
GetWorkRequestResourceMetadataKeyEnumStringValues Enumerates the set of values in String for WorkRequestResourceMetadataKeyEnum
ActionTypeEnum Enum with underlying type: string
type ActionTypeEnum string
Set of constants representing the allowable values for ActionTypeEnum
const (
ActionTypeCreated ActionTypeEnum = "CREATED"
ActionTypeUpdated ActionTypeEnum = "UPDATED"
ActionTypeDeleted ActionTypeEnum = "DELETED"
ActionTypeInProgress ActionTypeEnum = "IN_PROGRESS"
ActionTypeRelated ActionTypeEnum = "RELATED"
ActionTypeFailed ActionTypeEnum = "FAILED"
)
func GetActionTypeEnumValues() []ActionTypeEnum
GetActionTypeEnumValues Enumerates the set of values for ActionTypeEnum
func GetMappingActionTypeEnum(val string) (ActionTypeEnum, bool)
GetMappingActionTypeEnum performs case Insensitive comparison on enum value and return the desired enum
CancelPsaWorkRequestRequest wrapper for the CancelPsaWorkRequest operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/psa/CancelPsaWorkRequest.go.html to see an example of how to use CancelPsaWorkRequestRequest.
type CancelPsaWorkRequestRequest 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
}
func (request CancelPsaWorkRequestRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request CancelPsaWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CancelPsaWorkRequestRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CancelPsaWorkRequestRequest) String() string
func (request CancelPsaWorkRequestRequest) 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
CancelPsaWorkRequestResponse wrapper for the CancelPsaWorkRequest operation
type CancelPsaWorkRequestResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response CancelPsaWorkRequestResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CancelPsaWorkRequestResponse) String() string
ChangePrivateServiceAccessCompartmentDetails The configuration details for the move operation.
type ChangePrivateServiceAccessCompartmentDetails struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment
// into which the private service access should be moved.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
}
func (m ChangePrivateServiceAccessCompartmentDetails) String() string
func (m ChangePrivateServiceAccessCompartmentDetails) 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
ChangePrivateServiceAccessCompartmentRequest wrapper for the ChangePrivateServiceAccessCompartment operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/psa/ChangePrivateServiceAccessCompartment.go.html to see an example of how to use ChangePrivateServiceAccessCompartmentRequest.
type ChangePrivateServiceAccessCompartmentRequest struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the PrivateServiceAccess.
PrivateServiceAccessId *string `mandatory:"true" contributesTo:"path" name:"privateServiceAccessId"`
// The information to be updated.
ChangePrivateServiceAccessCompartmentDetails `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
}
func (request ChangePrivateServiceAccessCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ChangePrivateServiceAccessCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ChangePrivateServiceAccessCompartmentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ChangePrivateServiceAccessCompartmentRequest) String() string
func (request ChangePrivateServiceAccessCompartmentRequest) 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
ChangePrivateServiceAccessCompartmentResponse wrapper for the ChangePrivateServiceAccessCompartment operation
type ChangePrivateServiceAccessCompartmentResponse 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"`
}
func (response ChangePrivateServiceAccessCompartmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ChangePrivateServiceAccessCompartmentResponse) String() string
CreatePrivateServiceAccessDetails Details to create a private service access.
type CreatePrivateServiceAccessDetails struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the
// private service access.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN's
// subnet where the private service access's VNIC will reside.
SubnetId *string `mandatory:"true" json:"subnetId"`
// A unique service identifier for which the private service access was created.
ServiceId *string `mandatory:"true" json:"serviceId"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Operations": {"CostCenter": "42"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
// For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Department": "Finance"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Security attributes (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels
// for a resource that can be referenced in a Zero Trust Packet Routing (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm)
// (ZPR) policy to control access to ZPR-supported resources.
// Example: `{"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}}`
SecurityAttributes map[string]map[string]interface{} `mandatory:"false" json:"securityAttributes"`
// A user-friendly name. Does not have to be unique, and it's changeable.
// Avoid entering confidential information.
DisplayName *string `mandatory:"false" json:"displayName"`
// A description of this private service accesss.
Description *string `mandatory:"false" json:"description"`
// A list of the OCIDs of the network security groups (NSGs) to add the private
// service access's VNIC to.
// For more information about NSGs, see
// NetworkSecurityGroup.
NsgIds []string `mandatory:"false" json:"nsgIds"`
// The private IPv4 address (in the consumer's VCN) that represents the access point for the
// associated service.
Ipv4Ip *string `mandatory:"false" json:"ipv4Ip"`
}
func (m CreatePrivateServiceAccessDetails) String() string
func (m CreatePrivateServiceAccessDetails) 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
CreatePrivateServiceAccessRequest wrapper for the CreatePrivateServiceAccess operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/psa/CreatePrivateServiceAccess.go.html to see an example of how to use CreatePrivateServiceAccessRequest.
type CreatePrivateServiceAccessRequest struct {
// Details for the new PrivateServiceAccess.
CreatePrivateServiceAccessDetails `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
}
func (request CreatePrivateServiceAccessRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request CreatePrivateServiceAccessRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreatePrivateServiceAccessRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreatePrivateServiceAccessRequest) String() string
func (request CreatePrivateServiceAccessRequest) 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
CreatePrivateServiceAccessResponse wrapper for the CreatePrivateServiceAccess operation
type CreatePrivateServiceAccessResponse struct {
// The underlying http response
RawResponse *http.Response
// The PrivateServiceAccess instance
PrivateServiceAccess `presentIn:"body"`
// URL for the created privateServiceAccess. The privateServiceAccess 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"`
}
func (response CreatePrivateServiceAccessResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreatePrivateServiceAccessResponse) String() string
DeletePrivateServiceAccessRequest wrapper for the DeletePrivateServiceAccess operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/psa/DeletePrivateServiceAccess.go.html to see an example of how to use DeletePrivateServiceAccessRequest.
type DeletePrivateServiceAccessRequest struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the PrivateServiceAccess.
PrivateServiceAccessId *string `mandatory:"true" contributesTo:"path" name:"privateServiceAccessId"`
// 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
}
func (request DeletePrivateServiceAccessRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DeletePrivateServiceAccessRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeletePrivateServiceAccessRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeletePrivateServiceAccessRequest) String() string
func (request DeletePrivateServiceAccessRequest) 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
DeletePrivateServiceAccessResponse wrapper for the DeletePrivateServiceAccess operation
type DeletePrivateServiceAccessResponse 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"`
}
func (response DeletePrivateServiceAccessResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeletePrivateServiceAccessResponse) String() string
GetPrivateServiceAccessRequest wrapper for the GetPrivateServiceAccess operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/psa/GetPrivateServiceAccess.go.html to see an example of how to use GetPrivateServiceAccessRequest.
type GetPrivateServiceAccessRequest struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the PrivateServiceAccess.
PrivateServiceAccessId *string `mandatory:"true" contributesTo:"path" name:"privateServiceAccessId"`
// 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
}
func (request GetPrivateServiceAccessRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetPrivateServiceAccessRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetPrivateServiceAccessRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetPrivateServiceAccessRequest) String() string
func (request GetPrivateServiceAccessRequest) 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
GetPrivateServiceAccessResponse wrapper for the GetPrivateServiceAccess operation
type GetPrivateServiceAccessResponse struct {
// The underlying http response
RawResponse *http.Response
// The PrivateServiceAccess instance
PrivateServiceAccess `presentIn:"body"`
// For optimistic concurrency control. See `if-match`.
Etag *string `presentIn:"header" name:"etag"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response GetPrivateServiceAccessResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetPrivateServiceAccessResponse) String() string
GetPsaWorkRequestRequest wrapper for the GetPsaWorkRequest operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/psa/GetPsaWorkRequest.go.html to see an example of how to use GetPsaWorkRequestRequest.
type GetPsaWorkRequestRequest 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
}
func (request GetPsaWorkRequestRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetPsaWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetPsaWorkRequestRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetPsaWorkRequestRequest) String() string
func (request GetPsaWorkRequestRequest) 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
GetPsaWorkRequestResponse wrapper for the GetPsaWorkRequest operation
type GetPsaWorkRequestResponse 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"`
}
func (response GetPsaWorkRequestResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetPsaWorkRequestResponse) String() string
ListPrivateServiceAccessesRequest wrapper for the ListPrivateServiceAccesses operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/psa/ListPrivateServiceAccesses.go.html to see an example of how to use ListPrivateServiceAccessesRequest.
type ListPrivateServiceAccessesRequest 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 PrivateServiceAccessLifecycleStateEnum `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 resource.
Id *string `mandatory:"false" contributesTo:"query" name:"id"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN.
VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"`
// The unique identifier of the OCI service.
ServiceId *string `mandatory:"false" contributesTo:"query" name:"serviceId"`
// 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 field to sort by. You can provide only one sort order. Default order for `timeCreated`
// is descending. Default order for `displayName` is ascending.
SortBy ListPrivateServiceAccessesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// The sort order to use, either ascending (`ASC`) or descending (`DESC`).
SortOrder ListPrivateServiceAccessesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" 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
}
func (request ListPrivateServiceAccessesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListPrivateServiceAccessesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListPrivateServiceAccessesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListPrivateServiceAccessesRequest) String() string
func (request ListPrivateServiceAccessesRequest) 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
ListPrivateServiceAccessesResponse wrapper for the ListPrivateServiceAccesses operation
type ListPrivateServiceAccessesResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of PrivateServiceAccessCollection instances
PrivateServiceAccessCollection `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"`
}
func (response ListPrivateServiceAccessesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListPrivateServiceAccessesResponse) String() string
ListPrivateServiceAccessesSortByEnum Enum with underlying type: string
type ListPrivateServiceAccessesSortByEnum string
Set of constants representing the allowable values for ListPrivateServiceAccessesSortByEnum
const (
ListPrivateServiceAccessesSortByTimecreated ListPrivateServiceAccessesSortByEnum = "timeCreated"
ListPrivateServiceAccessesSortByDisplayname ListPrivateServiceAccessesSortByEnum = "displayName"
)
func GetListPrivateServiceAccessesSortByEnumValues() []ListPrivateServiceAccessesSortByEnum
GetListPrivateServiceAccessesSortByEnumValues Enumerates the set of values for ListPrivateServiceAccessesSortByEnum
func GetMappingListPrivateServiceAccessesSortByEnum(val string) (ListPrivateServiceAccessesSortByEnum, bool)
GetMappingListPrivateServiceAccessesSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListPrivateServiceAccessesSortOrderEnum Enum with underlying type: string
type ListPrivateServiceAccessesSortOrderEnum string
Set of constants representing the allowable values for ListPrivateServiceAccessesSortOrderEnum
const (
ListPrivateServiceAccessesSortOrderAsc ListPrivateServiceAccessesSortOrderEnum = "ASC"
ListPrivateServiceAccessesSortOrderDesc ListPrivateServiceAccessesSortOrderEnum = "DESC"
)
func GetListPrivateServiceAccessesSortOrderEnumValues() []ListPrivateServiceAccessesSortOrderEnum
GetListPrivateServiceAccessesSortOrderEnumValues Enumerates the set of values for ListPrivateServiceAccessesSortOrderEnum
func GetMappingListPrivateServiceAccessesSortOrderEnum(val string) (ListPrivateServiceAccessesSortOrderEnum, bool)
GetMappingListPrivateServiceAccessesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListPsaServicesRequest wrapper for the ListPsaServices operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/psa/ListPsaServices.go.html to see an example of how to use ListPsaServicesRequest.
type ListPsaServicesRequest struct {
// A filter to return only resources that match the given display name exactly.
DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"`
// The unique identifier of the OCI service.
ServiceId *string `mandatory:"false" contributesTo:"query" name:"serviceId"`
// 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 field to sort by. Only one sort order may be provided. Default order for `displayName` is descending.
SortBy ListPsaServicesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// The sort order to use, either ascending (`ASC`) or descending (`DESC`).
SortOrder ListPsaServicesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" 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
}
func (request ListPsaServicesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListPsaServicesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListPsaServicesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListPsaServicesRequest) String() string
func (request ListPsaServicesRequest) 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
ListPsaServicesResponse wrapper for the ListPsaServices operation
type ListPsaServicesResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of PsaServiceCollection instances
PsaServiceCollection `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"`
}
func (response ListPsaServicesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListPsaServicesResponse) String() string
ListPsaServicesSortByEnum Enum with underlying type: string
type ListPsaServicesSortByEnum string
Set of constants representing the allowable values for ListPsaServicesSortByEnum
const (
ListPsaServicesSortByDisplayname ListPsaServicesSortByEnum = "displayName"
)
func GetListPsaServicesSortByEnumValues() []ListPsaServicesSortByEnum
GetListPsaServicesSortByEnumValues Enumerates the set of values for ListPsaServicesSortByEnum
func GetMappingListPsaServicesSortByEnum(val string) (ListPsaServicesSortByEnum, bool)
GetMappingListPsaServicesSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListPsaServicesSortOrderEnum Enum with underlying type: string
type ListPsaServicesSortOrderEnum string
Set of constants representing the allowable values for ListPsaServicesSortOrderEnum
const (
ListPsaServicesSortOrderAsc ListPsaServicesSortOrderEnum = "ASC"
ListPsaServicesSortOrderDesc ListPsaServicesSortOrderEnum = "DESC"
)
func GetListPsaServicesSortOrderEnumValues() []ListPsaServicesSortOrderEnum
GetListPsaServicesSortOrderEnumValues Enumerates the set of values for ListPsaServicesSortOrderEnum
func GetMappingListPsaServicesSortOrderEnum(val string) (ListPsaServicesSortOrderEnum, bool)
GetMappingListPsaServicesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListPsaWorkRequestErrorsRequest wrapper for the ListPsaWorkRequestErrors operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/psa/ListPsaWorkRequestErrors.go.html to see an example of how to use ListPsaWorkRequestErrorsRequest.
type ListPsaWorkRequestErrorsRequest 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 `timeCreated` is descending.
SortBy ListPsaWorkRequestErrorsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// The sort order to use, either ascending (`ASC`) or descending (`DESC`).
SortOrder ListPsaWorkRequestErrorsSortOrderEnum `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
}
func (request ListPsaWorkRequestErrorsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListPsaWorkRequestErrorsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListPsaWorkRequestErrorsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListPsaWorkRequestErrorsRequest) String() string
func (request ListPsaWorkRequestErrorsRequest) 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
ListPsaWorkRequestErrorsResponse wrapper for the ListPsaWorkRequestErrors operation
type ListPsaWorkRequestErrorsResponse 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"`
}
func (response ListPsaWorkRequestErrorsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListPsaWorkRequestErrorsResponse) String() string
ListPsaWorkRequestErrorsSortByEnum Enum with underlying type: string
type ListPsaWorkRequestErrorsSortByEnum string
Set of constants representing the allowable values for ListPsaWorkRequestErrorsSortByEnum
const (
ListPsaWorkRequestErrorsSortByTimecreated ListPsaWorkRequestErrorsSortByEnum = "timeCreated"
)
func GetListPsaWorkRequestErrorsSortByEnumValues() []ListPsaWorkRequestErrorsSortByEnum
GetListPsaWorkRequestErrorsSortByEnumValues Enumerates the set of values for ListPsaWorkRequestErrorsSortByEnum
func GetMappingListPsaWorkRequestErrorsSortByEnum(val string) (ListPsaWorkRequestErrorsSortByEnum, bool)
GetMappingListPsaWorkRequestErrorsSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListPsaWorkRequestErrorsSortOrderEnum Enum with underlying type: string
type ListPsaWorkRequestErrorsSortOrderEnum string
Set of constants representing the allowable values for ListPsaWorkRequestErrorsSortOrderEnum
const (
ListPsaWorkRequestErrorsSortOrderAsc ListPsaWorkRequestErrorsSortOrderEnum = "ASC"
ListPsaWorkRequestErrorsSortOrderDesc ListPsaWorkRequestErrorsSortOrderEnum = "DESC"
)
func GetListPsaWorkRequestErrorsSortOrderEnumValues() []ListPsaWorkRequestErrorsSortOrderEnum
GetListPsaWorkRequestErrorsSortOrderEnumValues Enumerates the set of values for ListPsaWorkRequestErrorsSortOrderEnum
func GetMappingListPsaWorkRequestErrorsSortOrderEnum(val string) (ListPsaWorkRequestErrorsSortOrderEnum, bool)
GetMappingListPsaWorkRequestErrorsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListPsaWorkRequestLogsRequest wrapper for the ListPsaWorkRequestLogs operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/psa/ListPsaWorkRequestLogs.go.html to see an example of how to use ListPsaWorkRequestLogsRequest.
type ListPsaWorkRequestLogsRequest 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 `timeCreated` is descending.
SortBy ListPsaWorkRequestLogsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// The sort order to use, either ascending (`ASC`) or descending (`DESC`).
SortOrder ListPsaWorkRequestLogsSortOrderEnum `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
}
func (request ListPsaWorkRequestLogsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListPsaWorkRequestLogsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListPsaWorkRequestLogsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListPsaWorkRequestLogsRequest) String() string
func (request ListPsaWorkRequestLogsRequest) 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
ListPsaWorkRequestLogsResponse wrapper for the ListPsaWorkRequestLogs operation
type ListPsaWorkRequestLogsResponse 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"`
}
func (response ListPsaWorkRequestLogsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListPsaWorkRequestLogsResponse) String() string
ListPsaWorkRequestLogsSortByEnum Enum with underlying type: string
type ListPsaWorkRequestLogsSortByEnum string
Set of constants representing the allowable values for ListPsaWorkRequestLogsSortByEnum
const (
ListPsaWorkRequestLogsSortByTimecreated ListPsaWorkRequestLogsSortByEnum = "timeCreated"
)
func GetListPsaWorkRequestLogsSortByEnumValues() []ListPsaWorkRequestLogsSortByEnum
GetListPsaWorkRequestLogsSortByEnumValues Enumerates the set of values for ListPsaWorkRequestLogsSortByEnum
func GetMappingListPsaWorkRequestLogsSortByEnum(val string) (ListPsaWorkRequestLogsSortByEnum, bool)
GetMappingListPsaWorkRequestLogsSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListPsaWorkRequestLogsSortOrderEnum Enum with underlying type: string
type ListPsaWorkRequestLogsSortOrderEnum string
Set of constants representing the allowable values for ListPsaWorkRequestLogsSortOrderEnum
const (
ListPsaWorkRequestLogsSortOrderAsc ListPsaWorkRequestLogsSortOrderEnum = "ASC"
ListPsaWorkRequestLogsSortOrderDesc ListPsaWorkRequestLogsSortOrderEnum = "DESC"
)
func GetListPsaWorkRequestLogsSortOrderEnumValues() []ListPsaWorkRequestLogsSortOrderEnum
GetListPsaWorkRequestLogsSortOrderEnumValues Enumerates the set of values for ListPsaWorkRequestLogsSortOrderEnum
func GetMappingListPsaWorkRequestLogsSortOrderEnum(val string) (ListPsaWorkRequestLogsSortOrderEnum, bool)
GetMappingListPsaWorkRequestLogsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListPsaWorkRequestsRequest wrapper for the ListPsaWorkRequests operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/psa/ListPsaWorkRequests.go.html to see an example of how to use ListPsaWorkRequestsRequest.
type ListPsaWorkRequestsRequest 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 ListPsaWorkRequestsStatusEnum `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 ListPsaWorkRequestsSortOrderEnum `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 ListPsaWorkRequestsSortByEnum `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
}
func (request ListPsaWorkRequestsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListPsaWorkRequestsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListPsaWorkRequestsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListPsaWorkRequestsRequest) String() string
func (request ListPsaWorkRequestsRequest) 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
ListPsaWorkRequestsResponse wrapper for the ListPsaWorkRequests operation
type ListPsaWorkRequestsResponse 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"`
}
func (response ListPsaWorkRequestsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListPsaWorkRequestsResponse) String() string
ListPsaWorkRequestsSortByEnum Enum with underlying type: string
type ListPsaWorkRequestsSortByEnum string
Set of constants representing the allowable values for ListPsaWorkRequestsSortByEnum
const (
ListPsaWorkRequestsSortByTimeaccepted ListPsaWorkRequestsSortByEnum = "timeAccepted"
)
func GetListPsaWorkRequestsSortByEnumValues() []ListPsaWorkRequestsSortByEnum
GetListPsaWorkRequestsSortByEnumValues Enumerates the set of values for ListPsaWorkRequestsSortByEnum
func GetMappingListPsaWorkRequestsSortByEnum(val string) (ListPsaWorkRequestsSortByEnum, bool)
GetMappingListPsaWorkRequestsSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListPsaWorkRequestsSortOrderEnum Enum with underlying type: string
type ListPsaWorkRequestsSortOrderEnum string
Set of constants representing the allowable values for ListPsaWorkRequestsSortOrderEnum
const (
ListPsaWorkRequestsSortOrderAsc ListPsaWorkRequestsSortOrderEnum = "ASC"
ListPsaWorkRequestsSortOrderDesc ListPsaWorkRequestsSortOrderEnum = "DESC"
)
func GetListPsaWorkRequestsSortOrderEnumValues() []ListPsaWorkRequestsSortOrderEnum
GetListPsaWorkRequestsSortOrderEnumValues Enumerates the set of values for ListPsaWorkRequestsSortOrderEnum
func GetMappingListPsaWorkRequestsSortOrderEnum(val string) (ListPsaWorkRequestsSortOrderEnum, bool)
GetMappingListPsaWorkRequestsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListPsaWorkRequestsStatusEnum Enum with underlying type: string
type ListPsaWorkRequestsStatusEnum string
Set of constants representing the allowable values for ListPsaWorkRequestsStatusEnum
const (
ListPsaWorkRequestsStatusAccepted ListPsaWorkRequestsStatusEnum = "ACCEPTED"
ListPsaWorkRequestsStatusInProgress ListPsaWorkRequestsStatusEnum = "IN_PROGRESS"
ListPsaWorkRequestsStatusWaiting ListPsaWorkRequestsStatusEnum = "WAITING"
ListPsaWorkRequestsStatusNeedsAttention ListPsaWorkRequestsStatusEnum = "NEEDS_ATTENTION"
ListPsaWorkRequestsStatusFailed ListPsaWorkRequestsStatusEnum = "FAILED"
ListPsaWorkRequestsStatusSucceeded ListPsaWorkRequestsStatusEnum = "SUCCEEDED"
ListPsaWorkRequestsStatusCancelling ListPsaWorkRequestsStatusEnum = "CANCELLING"
ListPsaWorkRequestsStatusCancelled ListPsaWorkRequestsStatusEnum = "CANCELLED"
)
func GetListPsaWorkRequestsStatusEnumValues() []ListPsaWorkRequestsStatusEnum
GetListPsaWorkRequestsStatusEnumValues Enumerates the set of values for ListPsaWorkRequestsStatusEnum
func GetMappingListPsaWorkRequestsStatusEnum(val string) (ListPsaWorkRequestsStatusEnum, bool)
GetMappingListPsaWorkRequestsStatusEnum performs case Insensitive comparison on enum value and return the desired enum
OperationStatusEnum Enum with underlying type: string
type OperationStatusEnum string
Set of constants representing the allowable values for OperationStatusEnum
const (
OperationStatusAccepted OperationStatusEnum = "ACCEPTED"
OperationStatusInProgress OperationStatusEnum = "IN_PROGRESS"
OperationStatusWaiting OperationStatusEnum = "WAITING"
OperationStatusNeedsAttention OperationStatusEnum = "NEEDS_ATTENTION"
OperationStatusFailed OperationStatusEnum = "FAILED"
OperationStatusSucceeded OperationStatusEnum = "SUCCEEDED"
OperationStatusCancelling OperationStatusEnum = "CANCELLING"
OperationStatusCancelled OperationStatusEnum = "CANCELLED"
)
func GetMappingOperationStatusEnum(val string) (OperationStatusEnum, bool)
GetMappingOperationStatusEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOperationStatusEnumValues() []OperationStatusEnum
GetOperationStatusEnumValues Enumerates the set of values for OperationStatusEnum
OperationTypeEnum Enum with underlying type: string
type OperationTypeEnum string
Set of constants representing the allowable values for OperationTypeEnum
const (
OperationTypeCreatePrivateServiceAccess OperationTypeEnum = "CREATE_PRIVATE_SERVICE_ACCESS"
OperationTypeUpdatePrivateServiceAccess OperationTypeEnum = "UPDATE_PRIVATE_SERVICE_ACCESS"
OperationTypeDeletePrivateServiceAccess OperationTypeEnum = "DELETE_PRIVATE_SERVICE_ACCESS"
OperationTypeMovePrivateServiceAccess OperationTypeEnum = "MOVE_PRIVATE_SERVICE_ACCESS"
)
func GetMappingOperationTypeEnum(val string) (OperationTypeEnum, bool)
GetMappingOperationTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOperationTypeEnumValues() []OperationTypeEnum
GetOperationTypeEnumValues Enumerates the set of values for OperationTypeEnum
PrivateServiceAccess Private Service Access (PSA) is a new way to create private accesss for a service.
type PrivateServiceAccess struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the
// private service access.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// A user-friendly name. Does not have to be unique, and it's changeable.
// Avoid entering confidential information.
DisplayName *string `mandatory:"true" json:"displayName"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private service access.
Id *string `mandatory:"true" json:"id"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN that the private
// service access belongs to.
VcnId *string `mandatory:"true" json:"vcnId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet that the private service access
// belongs to.
SubnetId *string `mandatory:"true" json:"subnetId"`
// An OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private service access's VNIC, which
// resides in the private service access's VCN .
VnicId *string `mandatory:"true" json:"vnicId"`
// The private service access's current lifecycle state.
LifecycleState PrivateServiceAccessLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// A unique service identifier for which the private service access was created.
ServiceId *string `mandatory:"true" json:"serviceId"`
// The private service access FQDNs, which are going to be used to access the service.
// Example: `xyz.oraclecloud.com`
Fqdns []string `mandatory:"true" json:"fqdns"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Operations": {"CostCenter": "42"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
// For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Department": "Finance"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// System tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
// Security attributes (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels
// for a resource that can be referenced in a Zero Trust Packet Routing (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm)
// (ZPR) policy to control access to ZPR-supported resources.
// Example: `{"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}}`
SecurityAttributes map[string]map[string]interface{} `mandatory:"false" json:"securityAttributes"`
// A description of this private service access.
Description *string `mandatory:"false" json:"description"`
// The date and time the private service access was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
// Example: `2016-08-25T21:10:29.600Z`
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
// The date and time the PrivateServiceAccess was updated, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339).
// Example: `2016-08-25T21:10:29.600Z`
TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
// A list of the OCIDs of the network security groups that the private service access's VNIC belongs to.
// For more information about NSGs, see
// NetworkSecurityGroup.
NsgIds []string `mandatory:"false" json:"nsgIds"`
// The private IPv4 address (in the consumer's VCN) that represents the access point for the
// associated service.
Ipv4Ip *string `mandatory:"false" json:"ipv4Ip"`
}
func (m PrivateServiceAccess) String() string
func (m PrivateServiceAccess) 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
PrivateServiceAccessClient a client for PrivateServiceAccess
type PrivateServiceAccessClient struct {
common.BaseClient
// contains filtered or unexported fields
}
func NewPrivateServiceAccessClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client PrivateServiceAccessClient, err error)
NewPrivateServiceAccessClientWithConfigurationProvider Creates a new default PrivateServiceAccess client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region
func NewPrivateServiceAccessClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client PrivateServiceAccessClient, err error)
NewPrivateServiceAccessClientWithOboToken Creates a new default PrivateServiceAccess client with the given configuration provider. The obotoken will be added to default headers and signed; the configuration provider will be used for the signer
as well as reading the region
func (client PrivateServiceAccessClient) CancelPsaWorkRequest(ctx context.Context, request CancelPsaWorkRequestRequest) (response CancelPsaWorkRequestResponse, err error)
CancelPsaWorkRequest Cancels a PrivateServiceAccess work request.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/psa/CancelPsaWorkRequest.go.html to see an example of how to use CancelPsaWorkRequest API. A default retry strategy applies to this operation CancelPsaWorkRequest()
func (client PrivateServiceAccessClient) ChangePrivateServiceAccessCompartment(ctx context.Context, request ChangePrivateServiceAccessCompartmentRequest) (response ChangePrivateServiceAccessCompartmentResponse, err error)
ChangePrivateServiceAccessCompartment Moves a PrivateServiceAccess 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).
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/psa/ChangePrivateServiceAccessCompartment.go.html to see an example of how to use ChangePrivateServiceAccessCompartment API. A default retry strategy applies to this operation ChangePrivateServiceAccessCompartment()
func (client *PrivateServiceAccessClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (client PrivateServiceAccessClient) CreatePrivateServiceAccess(ctx context.Context, request CreatePrivateServiceAccessRequest) (response CreatePrivateServiceAccessResponse, err error)
CreatePrivateServiceAccess Creates a private service access in the specified subnet (in the consumer's VCN) and the specified compartment for a particular service.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/psa/CreatePrivateServiceAccess.go.html to see an example of how to use CreatePrivateServiceAccess API. A default retry strategy applies to this operation CreatePrivateServiceAccess()
func (client PrivateServiceAccessClient) DeletePrivateServiceAccess(ctx context.Context, request DeletePrivateServiceAccessRequest) (response DeletePrivateServiceAccessResponse, err error)
DeletePrivateServiceAccess Deletes a PrivateServiceAccess.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/psa/DeletePrivateServiceAccess.go.html to see an example of how to use DeletePrivateServiceAccess API. A default retry strategy applies to this operation DeletePrivateServiceAccess()
func (client PrivateServiceAccessClient) GetPrivateServiceAccess(ctx context.Context, request GetPrivateServiceAccessRequest) (response GetPrivateServiceAccessResponse, err error)
GetPrivateServiceAccess Gets information about a PrivateServiceAccess.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/psa/GetPrivateServiceAccess.go.html to see an example of how to use GetPrivateServiceAccess API. A default retry strategy applies to this operation GetPrivateServiceAccess()
func (client PrivateServiceAccessClient) GetPsaWorkRequest(ctx context.Context, request GetPsaWorkRequestRequest) (response GetPsaWorkRequestResponse, err error)
GetPsaWorkRequest Gets the details of a PrivateServiceAccess work request.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/psa/GetPsaWorkRequest.go.html to see an example of how to use GetPsaWorkRequest API. A default retry strategy applies to this operation GetPsaWorkRequest()
func (client PrivateServiceAccessClient) ListPrivateServiceAccesses(ctx context.Context, request ListPrivateServiceAccessesRequest) (response ListPrivateServiceAccessesResponse, err error)
ListPrivateServiceAccesses List the private service accesses in the specified compartment. You can optionally filter the list by specifying the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a subnet in the cunsumer's VCN.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/psa/ListPrivateServiceAccesses.go.html to see an example of how to use ListPrivateServiceAccesses API. A default retry strategy applies to this operation ListPrivateServiceAccesses()
func (client PrivateServiceAccessClient) ListPsaServices(ctx context.Context, request ListPsaServicesRequest) (response ListPsaServicesResponse, err error)
ListPsaServices List the OCI services available for Private Service Access catalog in the region, sorted by service name.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/psa/ListPsaServices.go.html to see an example of how to use ListPsaServices API. A default retry strategy applies to this operation ListPsaServices()
func (client PrivateServiceAccessClient) ListPsaWorkRequestErrors(ctx context.Context, request ListPsaWorkRequestErrorsRequest) (response ListPsaWorkRequestErrorsResponse, err error)
ListPsaWorkRequestErrors Lists the errors for a PrivateServiceAccess work request.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/psa/ListPsaWorkRequestErrors.go.html to see an example of how to use ListPsaWorkRequestErrors API. A default retry strategy applies to this operation ListPsaWorkRequestErrors()
func (client PrivateServiceAccessClient) ListPsaWorkRequestLogs(ctx context.Context, request ListPsaWorkRequestLogsRequest) (response ListPsaWorkRequestLogsResponse, err error)
ListPsaWorkRequestLogs Lists the logs for a PrivateServiceAccess work request.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/psa/ListPsaWorkRequestLogs.go.html to see an example of how to use ListPsaWorkRequestLogs API. A default retry strategy applies to this operation ListPsaWorkRequestLogs()
func (client PrivateServiceAccessClient) ListPsaWorkRequests(ctx context.Context, request ListPsaWorkRequestsRequest) (response ListPsaWorkRequestsResponse, err error)
ListPsaWorkRequests Lists the PrivateServiceAccess work requests in a compartment.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/psa/ListPsaWorkRequests.go.html to see an example of how to use ListPsaWorkRequests API. A default retry strategy applies to this operation ListPsaWorkRequests()
func (client *PrivateServiceAccessClient) SetRegion(region string)
SetRegion overrides the region of this client.
func (client PrivateServiceAccessClient) UpdatePrivateServiceAccess(ctx context.Context, request UpdatePrivateServiceAccessRequest) (response UpdatePrivateServiceAccessResponse, err error)
UpdatePrivateServiceAccess Updates a PrivateServiceAccess.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/psa/UpdatePrivateServiceAccess.go.html to see an example of how to use UpdatePrivateServiceAccess API. A default retry strategy applies to this operation UpdatePrivateServiceAccess()
PrivateServiceAccessCollection Results of a privateServiceAccess search. Contains both PrivateServiceAccessSummary items and other information, such as metadata.
type PrivateServiceAccessCollection struct {
// List of privateServiceAccess.
Items []PrivateServiceAccessSummary `mandatory:"true" json:"items"`
}
func (m PrivateServiceAccessCollection) String() string
func (m PrivateServiceAccessCollection) 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
PrivateServiceAccessLifecycleStateEnum Enum with underlying type: string
type PrivateServiceAccessLifecycleStateEnum string
Set of constants representing the allowable values for PrivateServiceAccessLifecycleStateEnum
const (
PrivateServiceAccessLifecycleStateCreating PrivateServiceAccessLifecycleStateEnum = "CREATING"
PrivateServiceAccessLifecycleStateUpdating PrivateServiceAccessLifecycleStateEnum = "UPDATING"
PrivateServiceAccessLifecycleStateActive PrivateServiceAccessLifecycleStateEnum = "ACTIVE"
PrivateServiceAccessLifecycleStateDeleting PrivateServiceAccessLifecycleStateEnum = "DELETING"
PrivateServiceAccessLifecycleStateDeleted PrivateServiceAccessLifecycleStateEnum = "DELETED"
PrivateServiceAccessLifecycleStateFailed PrivateServiceAccessLifecycleStateEnum = "FAILED"
)
func GetMappingPrivateServiceAccessLifecycleStateEnum(val string) (PrivateServiceAccessLifecycleStateEnum, bool)
GetMappingPrivateServiceAccessLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
func GetPrivateServiceAccessLifecycleStateEnumValues() []PrivateServiceAccessLifecycleStateEnum
GetPrivateServiceAccessLifecycleStateEnumValues Enumerates the set of values for PrivateServiceAccessLifecycleStateEnum
PrivateServiceAccessSummary A summary of private service access information. This object is returned when listing private service accesses.
type PrivateServiceAccessSummary struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the
// private service access.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// A user-friendly name. Does not have to be unique, and it's changeable.
// Avoid entering confidential information.
DisplayName *string `mandatory:"true" json:"displayName"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private service access.
Id *string `mandatory:"true" json:"id"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN that the private
// service access belongs to.
VcnId *string `mandatory:"true" json:"vcnId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet that the private service access
// belongs to.
SubnetId *string `mandatory:"true" json:"subnetId"`
// An OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private service access's VNIC, which
// resides in the private service access's VCN .
VnicId *string `mandatory:"true" json:"vnicId"`
// The private service access's current lifecycle state.
LifecycleState PrivateServiceAccessLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// A unique service identifier for which the private service access was created.
ServiceId *string `mandatory:"true" json:"serviceId"`
// The private service access IPv4 FQDNs, which are going to be used to access the service.
// Example: `xyz.oraclecloud.com`
Fqdns []string `mandatory:"true" json:"fqdns"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Operations": {"CostCenter": "42"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
// For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Department": "Finance"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// System tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
// Security attributes (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels
// for a resource that can be referenced in a Zero Trust Packet Routing (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm)
// (ZPR) policy to control access to ZPR-supported resources.
// Example: `{"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}}`
SecurityAttributes map[string]map[string]interface{} `mandatory:"false" json:"securityAttributes"`
// A description of this private service access.
Description *string `mandatory:"false" json:"description"`
// The date and time the private service access was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339).
// Example: `2016-08-25T21:10:29.600Z`
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
// The date and time the PrivateServiceAccess was updated, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339).
// Example: `2016-08-25T21:10:29.600Z`
TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
// A list of the OCIDs of the network security groups that the private service access's VNIC belongs to.
// For more information about NSGs, see
// NetworkSecurityGroup.
NsgIds []string `mandatory:"false" json:"nsgIds"`
// The private IP address (in the consumer's VCN) that represents the access point for the
// associated service.
Ipv4Ip *string `mandatory:"false" json:"ipv4Ip"`
}
func (m PrivateServiceAccessSummary) String() string
func (m PrivateServiceAccessSummary) 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
PsaServiceCollection Results of a psaServices search. Contains PsaServiceSummary items.
type PsaServiceCollection struct {
// List of PsaServiceSummary.
Items []PsaServiceSummary `mandatory:"true" json:"items"`
}
func (m PsaServiceCollection) String() string
func (m PsaServiceCollection) 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
PsaServiceSummary An OCI service summary, that will be used as a catalog for Private Service Access.
type PsaServiceSummary struct {
// A unique OCI service identifier.
// Example: `object-storage-api`
Id *string `mandatory:"true" json:"id"`
// A user-friendly name. Does not have to be unique, and it's changeable.
// Avoid entering confidential information.
DisplayName *string `mandatory:"true" json:"displayName"`
// The public facing service FQDNs, which are going to be used to access the service.
// Example: `xyz.oraclecloud.com`
Fqdns []string `mandatory:"true" json:"fqdns"`
// A description of the OCI service.
Description *string `mandatory:"false" json:"description"`
// This optional field will indicate that whether service is IPv6 enabled.
IsV6Enabled *bool `mandatory:"false" json:"isV6Enabled"`
}
func (m PsaServiceSummary) String() string
func (m PsaServiceSummary) 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
SortOrderEnum Enum with underlying type: string
type SortOrderEnum string
Set of constants representing the allowable values for SortOrderEnum
const (
SortOrderAsc SortOrderEnum = "ASC"
SortOrderDesc SortOrderEnum = "DESC"
)
func GetMappingSortOrderEnum(val string) (SortOrderEnum, bool)
GetMappingSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
func GetSortOrderEnumValues() []SortOrderEnum
GetSortOrderEnumValues Enumerates the set of values for SortOrderEnum
UpdatePrivateServiceAccessDetails Details to update a private service access.
type UpdatePrivateServiceAccessDetails struct {
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Operations": {"CostCenter": "42"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
// For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Department": "Finance"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Security attributes (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels
// for a resource that can be referenced in a Zero Trust Packet Routing (https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm)
// (ZPR) policy to control access to ZPR-supported resources.
// Example: `{"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}}`
SecurityAttributes map[string]map[string]interface{} `mandatory:"false" json:"securityAttributes"`
// A user-friendly name. Does not have to be unique, and it's changeable.
// Avoid entering confidential information.
DisplayName *string `mandatory:"false" json:"displayName"`
// A description of this private service.
Description *string `mandatory:"false" json:"description"`
// A list of the OCIDs of the network security groups (NSGs) to add the private service access's VNIC to.
// For more information about NSGs, see
// NetworkSecurityGroup.
NsgIds []string `mandatory:"false" json:"nsgIds"`
}
func (m UpdatePrivateServiceAccessDetails) String() string
func (m UpdatePrivateServiceAccessDetails) 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
UpdatePrivateServiceAccessRequest wrapper for the UpdatePrivateServiceAccess operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/psa/UpdatePrivateServiceAccess.go.html to see an example of how to use UpdatePrivateServiceAccessRequest.
type UpdatePrivateServiceAccessRequest struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the PrivateServiceAccess.
PrivateServiceAccessId *string `mandatory:"true" contributesTo:"path" name:"privateServiceAccessId"`
// PrivateServiceAccess information to be updated.
UpdatePrivateServiceAccessDetails `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
}
func (request UpdatePrivateServiceAccessRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request UpdatePrivateServiceAccessRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request UpdatePrivateServiceAccessRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdatePrivateServiceAccessRequest) String() string
func (request UpdatePrivateServiceAccessRequest) 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
UpdatePrivateServiceAccessResponse wrapper for the UpdatePrivateServiceAccess operation
type UpdatePrivateServiceAccessResponse 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"`
}
func (response UpdatePrivateServiceAccessResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response UpdatePrivateServiceAccessResponse) String() string
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.
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"`
}
func (m WorkRequest) String() string
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
WorkRequestError An error encountered while performing an operation that is tracked by a work request.
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"`
}
func (m WorkRequestError) String() string
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
WorkRequestErrorCollection A list of work request errors. Can contain both errors and other information, such as metadata.
type WorkRequestErrorCollection struct {
// A list of work request errors.
Items []WorkRequestError `mandatory:"true" json:"items"`
}
func (m WorkRequestErrorCollection) String() string
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
WorkRequestLogEntry A log message from performing an operation that is tracked by a work request.
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"`
}
func (m WorkRequestLogEntry) String() string
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
WorkRequestLogEntryCollection A list of work request logs. Can contain both logs and other information, such as metadata.
type WorkRequestLogEntryCollection struct {
// A list of work request log entries.
Items []WorkRequestLogEntry `mandatory:"true" json:"items"`
}
func (m WorkRequestLogEntryCollection) String() string
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
WorkRequestResource A resource created or operated on by a work request.
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"`
}
func (m WorkRequestResource) String() string
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
WorkRequestResourceMetadataKeyEnum Enum with underlying type: string
type WorkRequestResourceMetadataKeyEnum string
Set of constants representing the allowable values for WorkRequestResourceMetadataKeyEnum
const (
WorkRequestResourceMetadataKeyIsDryRun WorkRequestResourceMetadataKeyEnum = "IS_DRY_RUN"
)
func GetMappingWorkRequestResourceMetadataKeyEnum(val string) (WorkRequestResourceMetadataKeyEnum, bool)
GetMappingWorkRequestResourceMetadataKeyEnum performs case Insensitive comparison on enum value and return the desired enum
func GetWorkRequestResourceMetadataKeyEnumValues() []WorkRequestResourceMetadataKeyEnum
GetWorkRequestResourceMetadataKeyEnumValues Enumerates the set of values for WorkRequestResourceMetadataKeyEnum
WorkRequestSummary Summary information about an asynchronous work request.
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"`
}
func (m WorkRequestSummary) String() string
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
WorkRequestSummaryCollection A list of work requests. Can contain both work requests and other information, such as metadata.
type WorkRequestSummaryCollection struct {
// A list of work requests.
Items []WorkRequestSummary `mandatory:"true" json:"items"`
}
func (m WorkRequestSummaryCollection) String() string
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