licensemanager

package
v65.73.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2024 License: Apache-2.0, UPL-1.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLicenseUnitEnumStringValues

func GetLicenseUnitEnumStringValues() []string

GetLicenseUnitEnumStringValues Enumerates the set of values in String for LicenseUnitEnum

func GetLifeCycleStateEnumStringValues

func GetLifeCycleStateEnumStringValues() []string

GetLifeCycleStateEnumStringValues Enumerates the set of values in String for LifeCycleStateEnum

func GetListLicenseRecordsSortByEnumStringValues

func GetListLicenseRecordsSortByEnumStringValues() []string

GetListLicenseRecordsSortByEnumStringValues Enumerates the set of values in String for ListLicenseRecordsSortByEnum

func GetListLicenseRecordsSortOrderEnumStringValues

func GetListLicenseRecordsSortOrderEnumStringValues() []string

GetListLicenseRecordsSortOrderEnumStringValues Enumerates the set of values in String for ListLicenseRecordsSortOrderEnum

func GetListProductLicenseConsumersSortByEnumStringValues

func GetListProductLicenseConsumersSortByEnumStringValues() []string

GetListProductLicenseConsumersSortByEnumStringValues Enumerates the set of values in String for ListProductLicenseConsumersSortByEnum

func GetListProductLicenseConsumersSortOrderEnumStringValues

func GetListProductLicenseConsumersSortOrderEnumStringValues() []string

GetListProductLicenseConsumersSortOrderEnumStringValues Enumerates the set of values in String for ListProductLicenseConsumersSortOrderEnum

func GetListProductLicensesSortByEnumStringValues

func GetListProductLicensesSortByEnumStringValues() []string

GetListProductLicensesSortByEnumStringValues Enumerates the set of values in String for ListProductLicensesSortByEnum

func GetListProductLicensesSortOrderEnumStringValues

func GetListProductLicensesSortOrderEnumStringValues() []string

GetListProductLicensesSortOrderEnumStringValues Enumerates the set of values in String for ListProductLicensesSortOrderEnum

func GetListTopUtilizedProductLicensesSortByEnumStringValues

func GetListTopUtilizedProductLicensesSortByEnumStringValues() []string

GetListTopUtilizedProductLicensesSortByEnumStringValues Enumerates the set of values in String for ListTopUtilizedProductLicensesSortByEnum

func GetListTopUtilizedProductLicensesSortOrderEnumStringValues

func GetListTopUtilizedProductLicensesSortOrderEnumStringValues() []string

GetListTopUtilizedProductLicensesSortOrderEnumStringValues Enumerates the set of values in String for ListTopUtilizedProductLicensesSortOrderEnum

func GetListTopUtilizedResourcesResourceUnitTypeEnumStringValues

func GetListTopUtilizedResourcesResourceUnitTypeEnumStringValues() []string

GetListTopUtilizedResourcesResourceUnitTypeEnumStringValues Enumerates the set of values in String for ListTopUtilizedResourcesResourceUnitTypeEnum

func GetListTopUtilizedResourcesSortByEnumStringValues

func GetListTopUtilizedResourcesSortByEnumStringValues() []string

GetListTopUtilizedResourcesSortByEnumStringValues Enumerates the set of values in String for ListTopUtilizedResourcesSortByEnum

func GetListTopUtilizedResourcesSortOrderEnumStringValues

func GetListTopUtilizedResourcesSortOrderEnumStringValues() []string

GetListTopUtilizedResourcesSortOrderEnumStringValues Enumerates the set of values in String for ListTopUtilizedResourcesSortOrderEnum

func GetProductCategoryEnumStringValues

func GetProductCategoryEnumStringValues() []string

GetProductCategoryEnumStringValues Enumerates the set of values in String for ProductCategoryEnum

func GetResourceUnitEnumStringValues

func GetResourceUnitEnumStringValues() []string

GetResourceUnitEnumStringValues Enumerates the set of values in String for ResourceUnitEnum

func GetStatusEnumStringValues

func GetStatusEnumStringValues() []string

GetStatusEnumStringValues Enumerates the set of values in String for StatusEnum

Types

type BulkUploadCellInfo

type BulkUploadCellInfo struct {

	// Column index as in the given bulk upload file.
	ColumnIndex *string `mandatory:"true" json:"columnIndex"`

	// Error information corresponding to a particular column.
	ErrorInfo *string `mandatory:"true" json:"errorInfo"`
}

BulkUploadCellInfo Error information corresponding to each column that was required but was invalid.

func (BulkUploadCellInfo) String

func (m BulkUploadCellInfo) String() string

func (BulkUploadCellInfo) ValidateEnumValue

func (m BulkUploadCellInfo) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type BulkUploadFailedRecordInfo

type BulkUploadFailedRecordInfo struct {

	// Refers to the license record number as provided in the bulk upload file.
	RowNumber *int `mandatory:"true" json:"rowNumber"`

	// Product name of the failed row.
	ProductName *string `mandatory:"true" json:"productName"`

	// Failed license record error information.
	Error *string `mandatory:"true" json:"error"`
}

BulkUploadFailedRecordInfo Error information for a valid license record that could not be uploaded.

func (BulkUploadFailedRecordInfo) String

func (BulkUploadFailedRecordInfo) ValidateEnumValue

func (m BulkUploadFailedRecordInfo) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type BulkUploadLicenseRecordsDetails

type BulkUploadLicenseRecordsDetails struct {

	// The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) where license records are created.
	CompartmentId *string `mandatory:"true" json:"compartmentId"`

	// Name of the file that is being uploaded.
	FileName *string `mandatory:"true" json:"fileName"`

	// The file to be uploaded.
	FileContent *string `mandatory:"true" json:"fileContent"`
}

BulkUploadLicenseRecordsDetails Details required for bulk uploading of license records.

func (BulkUploadLicenseRecordsDetails) String

func (BulkUploadLicenseRecordsDetails) ValidateEnumValue

func (m BulkUploadLicenseRecordsDetails) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type BulkUploadLicenseRecordsRequest

type BulkUploadLicenseRecordsRequest struct {

	// Details required for the bulk upload of product licenses and license records.
	BulkUploadLicenseRecordsDetails `contributesTo:"body"`

	// The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
	// particular request, please provide the request ID.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// Metadata about the request. This information will not be transmitted to the service, but
	// represents information that the SDK will consume to drive retry behavior.
	RequestMetadata common.RequestMetadata
}

BulkUploadLicenseRecordsRequest wrapper for the BulkUploadLicenseRecords operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/BulkUploadLicenseRecords.go.html to see an example of how to use BulkUploadLicenseRecordsRequest.

func (BulkUploadLicenseRecordsRequest) BinaryRequestBody

func (request BulkUploadLicenseRecordsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (BulkUploadLicenseRecordsRequest) HTTPRequest

func (request BulkUploadLicenseRecordsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (BulkUploadLicenseRecordsRequest) RetryPolicy

func (request BulkUploadLicenseRecordsRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (BulkUploadLicenseRecordsRequest) String

func (request BulkUploadLicenseRecordsRequest) String() string

func (BulkUploadLicenseRecordsRequest) ValidateEnumValue

func (request BulkUploadLicenseRecordsRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type BulkUploadLicenseRecordsResponse

type BulkUploadLicenseRecordsResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// The BulkUploadResponse instance
	BulkUploadResponse `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"`
}

BulkUploadLicenseRecordsResponse wrapper for the BulkUploadLicenseRecords operation

func (BulkUploadLicenseRecordsResponse) HTTPResponse

func (response BulkUploadLicenseRecordsResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (BulkUploadLicenseRecordsResponse) String

func (response BulkUploadLicenseRecordsResponse) String() string

type BulkUploadResponse

type BulkUploadResponse struct {

	// The number of license records which were supported.
	TotalSupportedRecords *int `mandatory:"true" json:"totalSupportedRecords"`

	// The number of supported license records that were uploaded successfully.
	TotalSupportedRecordsSaved *int `mandatory:"true" json:"totalSupportedRecordsSaved"`

	// The number of supported license records that were valid but not uploaded since they were duplicates.
	TotalSupportedDuplicateRecords *int `mandatory:"true" json:"totalSupportedDuplicateRecords"`

	// The number of supported license records that were valid but failed with errors during upload.
	TotalSupportedFailedLicenseRecords *int `mandatory:"true" json:"totalSupportedFailedLicenseRecords"`

	// The number of supported license records that could not be uploaded since they were invalid.
	TotalSupportedInvalidRecords *int `mandatory:"true" json:"totalSupportedInvalidRecords"`

	// Detailed error information corresponding to each supported but invalid row for the uploaded file.
	ValidationErrorInfo []BulkUploadValidationErrorInfo `mandatory:"true" json:"validationErrorInfo"`

	// Error information corresponding to the supported records which are valid but could not be created.
	FailedLicenseRecordInfo []BulkUploadFailedRecordInfo `mandatory:"true" json:"failedLicenseRecordInfo"`

	// Response message for bulk upload.
	Message *string `mandatory:"true" json:"message"`
}

BulkUploadResponse The bulk upload response.

func (BulkUploadResponse) String

func (m BulkUploadResponse) String() string

func (BulkUploadResponse) ValidateEnumValue

func (m BulkUploadResponse) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type BulkUploadTemplate

type BulkUploadTemplate struct {

	// The bulk upload template.
	Template *string `mandatory:"true" json:"template"`
}

BulkUploadTemplate The bulk upload template file.

func (BulkUploadTemplate) String

func (m BulkUploadTemplate) String() string

func (BulkUploadTemplate) ValidateEnumValue

func (m BulkUploadTemplate) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type BulkUploadValidationErrorInfo

type BulkUploadValidationErrorInfo struct {

	// Refers to the license record number as provided in the bulk upload file.
	RowNumber *int `mandatory:"true" json:"rowNumber"`

	// Product name of invalid row.
	ProductName *string `mandatory:"true" json:"productName"`

	// Error information corresponding to each column.
	RowError []BulkUploadCellInfo `mandatory:"true" json:"rowError"`
}

BulkUploadValidationErrorInfo Detailed error information corresponding to each column for a particular supported license record that could not be uploaded.

func (BulkUploadValidationErrorInfo) String

func (BulkUploadValidationErrorInfo) ValidateEnumValue

func (m BulkUploadValidationErrorInfo) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type Configuration

type Configuration struct {

	// The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to which the configuration is specified.
	CompartmentId *string `mandatory:"true" json:"compartmentId"`

	// The list of associated configuration email IDs.
	EmailIds []string `mandatory:"true" json:"emailIds"`

	// The time the configuration was created. An RFC 3339 (https://tools.ietf.org/html/rfc3339)-formatted datetime string.
	TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`

	// The time the configuration was updated. An RFC 3339 (https://tools.ietf.org/html/rfc3339)-formatted datetime string.
	TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
}

Configuration Details of the compartment-specific configuration.

func (Configuration) String

func (m Configuration) String() string

func (Configuration) ValidateEnumValue

func (m Configuration) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type CreateLicenseRecordDetails

type CreateLicenseRecordDetails struct {

	// License record name.
	DisplayName *string `mandatory:"true" json:"displayName"`

	// Specifies if the license record term is perpertual.
	IsPerpetual *bool `mandatory:"true" json:"isPerpetual"`

	// Specifies if the license count is unlimited.
	IsUnlimited *bool `mandatory:"true" json:"isUnlimited"`

	// The license record end date in RFC 3339 (https://tools.ietf.org/html/rfc3339)
	// date format.
	// Example: `2018-09-12`
	ExpirationDate *common.SDKTime `mandatory:"false" json:"expirationDate"`

	// The license record support end date in RFC 3339 (https://tools.ietf.org/html/rfc3339)
	// date format.
	// Example: `2018-09-12`
	SupportEndDate *common.SDKTime `mandatory:"false" json:"supportEndDate"`

	// The number of license units added by a user in a license record.
	// Default 1
	LicenseCount *int `mandatory:"false" json:"licenseCount"`

	// The license record product ID.
	ProductId *string `mandatory:"false" json:"productId"`

	// Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only.
	// Example: `{"bar-key": "value"}`
	FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

	// Defined tags for this resource. Each key is predefined and scoped to a namespace.
	// Example: `{"foo-namespace": {"bar-key": "value"}}`
	DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}

CreateLicenseRecordDetails The details about the new license record.

func (CreateLicenseRecordDetails) String

func (CreateLicenseRecordDetails) ValidateEnumValue

func (m CreateLicenseRecordDetails) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type CreateLicenseRecordRequest

type CreateLicenseRecordRequest struct {

	// Details needed to create a new license record.
	CreateLicenseRecordDetails `contributesTo:"body"`

	// Unique product license identifier.
	ProductLicenseId *string `mandatory:"true" contributesTo:"query" name:"productLicenseId"`

	// The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
	// particular request, please provide the request ID.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// A token that uniquely identifies a request so it can be retried in case of a timeout or server error without
	// risk of executing 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 purged 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
}

CreateLicenseRecordRequest wrapper for the CreateLicenseRecord operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/CreateLicenseRecord.go.html to see an example of how to use CreateLicenseRecordRequest.

func (CreateLicenseRecordRequest) BinaryRequestBody

func (request CreateLicenseRecordRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (CreateLicenseRecordRequest) HTTPRequest

func (request CreateLicenseRecordRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (CreateLicenseRecordRequest) RetryPolicy

func (request CreateLicenseRecordRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (CreateLicenseRecordRequest) String

func (request CreateLicenseRecordRequest) String() string

func (CreateLicenseRecordRequest) ValidateEnumValue

func (request CreateLicenseRecordRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type CreateLicenseRecordResponse

type CreateLicenseRecordResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// The LicenseRecord instance
	LicenseRecord `presentIn:"body"`

	// For optimistic concurrency control. See `if-match`.
	Etag *string `presentIn:"header" name:"etag"`

	// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query the status of the asynchronous operation.
	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"`

	// Location of the resource.
	Location *string `presentIn:"header" name:"location"`
}

CreateLicenseRecordResponse wrapper for the CreateLicenseRecord operation

func (CreateLicenseRecordResponse) HTTPResponse

func (response CreateLicenseRecordResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (CreateLicenseRecordResponse) String

func (response CreateLicenseRecordResponse) String() string

type CreateProductLicenseDetails

type CreateProductLicenseDetails struct {

	// The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) where product licenses are created.
	CompartmentId *string `mandatory:"true" json:"compartmentId"`

	// Specifies if the product license vendor is Oracle or a third party.
	IsVendorOracle *bool `mandatory:"true" json:"isVendorOracle"`

	// Name of the product license.
	DisplayName *string `mandatory:"true" json:"displayName"`

	// The product license unit.
	LicenseUnit LicenseUnitEnum `mandatory:"true" json:"licenseUnit"`

	// The product license vendor name, for example: Microsoft, RHEL, and so on.
	VendorName *string `mandatory:"false" json:"vendorName"`

	// The image details associated with the product license.
	Images []ImageDetails `mandatory:"false" json:"images"`

	// Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only.
	// Example: `{"bar-key": "value"}`
	FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

	// Defined tags for this resource. Each key is predefined and scoped to a namespace.
	// Example: `{"foo-namespace": {"bar-key": "value"}}`
	DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}

CreateProductLicenseDetails Details for creating a new product license.

func (CreateProductLicenseDetails) String

func (CreateProductLicenseDetails) ValidateEnumValue

func (m CreateProductLicenseDetails) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type CreateProductLicenseRequest

type CreateProductLicenseRequest struct {

	// Details for creating a new product license.
	CreateProductLicenseDetails `contributesTo:"body"`

	// The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
	// particular request, please provide the request ID.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// A token that uniquely identifies a request so it can be retried in case of a timeout or server error without
	// risk of executing 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 purged 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
}

CreateProductLicenseRequest wrapper for the CreateProductLicense operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/CreateProductLicense.go.html to see an example of how to use CreateProductLicenseRequest.

func (CreateProductLicenseRequest) BinaryRequestBody

func (request CreateProductLicenseRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (CreateProductLicenseRequest) HTTPRequest

func (request CreateProductLicenseRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (CreateProductLicenseRequest) RetryPolicy

func (request CreateProductLicenseRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (CreateProductLicenseRequest) String

func (request CreateProductLicenseRequest) String() string

func (CreateProductLicenseRequest) ValidateEnumValue

func (request CreateProductLicenseRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type CreateProductLicenseResponse

type CreateProductLicenseResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// The ProductLicense instance
	ProductLicense `presentIn:"body"`

	// For optimistic concurrency control. See `if-match`.
	Etag *string `presentIn:"header" name:"etag"`

	// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query the status of the asynchronous operation.
	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"`

	// Location of the resource.
	Location *string `presentIn:"header" name:"location"`
}

CreateProductLicenseResponse wrapper for the CreateProductLicense operation

func (CreateProductLicenseResponse) HTTPResponse

func (response CreateProductLicenseResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (CreateProductLicenseResponse) String

func (response CreateProductLicenseResponse) String() string

type DeleteLicenseRecordRequest

type DeleteLicenseRecordRequest struct {

	// Unique license record identifier.
	LicenseRecordId *string `mandatory:"true" contributesTo:"path" name:"licenseRecordId"`

	// The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
	// particular request, please provide the request ID.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
	// parameter to the value of the etag from a previous GET or POST response for that resource.  The resource
	// will be updated or deleted only if the etag you provide matches the resource's current etag value.
	IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

	// 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
}

DeleteLicenseRecordRequest wrapper for the DeleteLicenseRecord operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/DeleteLicenseRecord.go.html to see an example of how to use DeleteLicenseRecordRequest.

func (DeleteLicenseRecordRequest) BinaryRequestBody

func (request DeleteLicenseRecordRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (DeleteLicenseRecordRequest) HTTPRequest

func (request DeleteLicenseRecordRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (DeleteLicenseRecordRequest) RetryPolicy

func (request DeleteLicenseRecordRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (DeleteLicenseRecordRequest) String

func (request DeleteLicenseRecordRequest) String() string

func (DeleteLicenseRecordRequest) ValidateEnumValue

func (request DeleteLicenseRecordRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type DeleteLicenseRecordResponse

type DeleteLicenseRecordResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query the status of the asynchronous operation.
	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"`

	// Location of the resource.
	Location *string `presentIn:"header" name:"location"`
}

DeleteLicenseRecordResponse wrapper for the DeleteLicenseRecord operation

func (DeleteLicenseRecordResponse) HTTPResponse

func (response DeleteLicenseRecordResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (DeleteLicenseRecordResponse) String

func (response DeleteLicenseRecordResponse) String() string

type DeleteProductLicenseRequest

type DeleteProductLicenseRequest struct {

	// Unique product license identifier.
	ProductLicenseId *string `mandatory:"true" contributesTo:"path" name:"productLicenseId"`

	// The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
	// particular request, please provide the request ID.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
	// parameter to the value of the etag from a previous GET or POST response for that resource.  The resource
	// will be updated or deleted only if the etag you provide matches the resource's current etag value.
	IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

	// 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
}

DeleteProductLicenseRequest wrapper for the DeleteProductLicense operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/DeleteProductLicense.go.html to see an example of how to use DeleteProductLicenseRequest.

func (DeleteProductLicenseRequest) BinaryRequestBody

func (request DeleteProductLicenseRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (DeleteProductLicenseRequest) HTTPRequest

func (request DeleteProductLicenseRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (DeleteProductLicenseRequest) RetryPolicy

func (request DeleteProductLicenseRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (DeleteProductLicenseRequest) String

func (request DeleteProductLicenseRequest) String() string

func (DeleteProductLicenseRequest) ValidateEnumValue

func (request DeleteProductLicenseRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type DeleteProductLicenseResponse

type DeleteProductLicenseResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query the status of the asynchronous operation.
	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"`

	// Location of the resource.
	Location *string `presentIn:"header" name:"location"`
}

DeleteProductLicenseResponse wrapper for the DeleteProductLicense operation

func (DeleteProductLicenseResponse) HTTPResponse

func (response DeleteProductLicenseResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (DeleteProductLicenseResponse) String

func (response DeleteProductLicenseResponse) String() string

type GetBulkUploadTemplateRequest

type GetBulkUploadTemplateRequest struct {

	// The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
	// particular request, please provide the request ID.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// Metadata about the request. This information will not be transmitted to the service, but
	// represents information that the SDK will consume to drive retry behavior.
	RequestMetadata common.RequestMetadata
}

GetBulkUploadTemplateRequest wrapper for the GetBulkUploadTemplate operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/GetBulkUploadTemplate.go.html to see an example of how to use GetBulkUploadTemplateRequest.

func (GetBulkUploadTemplateRequest) BinaryRequestBody

func (request GetBulkUploadTemplateRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (GetBulkUploadTemplateRequest) HTTPRequest

func (request GetBulkUploadTemplateRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (GetBulkUploadTemplateRequest) RetryPolicy

func (request GetBulkUploadTemplateRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (GetBulkUploadTemplateRequest) String

func (request GetBulkUploadTemplateRequest) String() string

func (GetBulkUploadTemplateRequest) ValidateEnumValue

func (request GetBulkUploadTemplateRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type GetBulkUploadTemplateResponse

type GetBulkUploadTemplateResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// The BulkUploadTemplate instance
	BulkUploadTemplate `presentIn:"body"`

	// Unique Oracle-assigned identifier for the request. If you need to contact
	// Oracle about a particular request, please provide the request ID.
	OpcRequestId *string `presentIn:"header" name:"opc-request-id"`

	// For pagination of a list of items. When paging through a list, if this header appears in the response,
	// then a partial list might have been returned. Include this value as the `page` parameter for the
	// subsequent GET request to get the next batch of items.
	OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}

GetBulkUploadTemplateResponse wrapper for the GetBulkUploadTemplate operation

func (GetBulkUploadTemplateResponse) HTTPResponse

func (response GetBulkUploadTemplateResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (GetBulkUploadTemplateResponse) String

func (response GetBulkUploadTemplateResponse) String() string

type GetConfigurationRequest

type GetConfigurationRequest struct {

	// The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) used for the license record, product license, and configuration.
	CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`

	// The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
	// particular request, please provide the request ID.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// Metadata about the request. This information will not be transmitted to the service, but
	// represents information that the SDK will consume to drive retry behavior.
	RequestMetadata common.RequestMetadata
}

GetConfigurationRequest wrapper for the GetConfiguration operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/GetConfiguration.go.html to see an example of how to use GetConfigurationRequest.

func (GetConfigurationRequest) BinaryRequestBody

func (request GetConfigurationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (GetConfigurationRequest) HTTPRequest

func (request GetConfigurationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (GetConfigurationRequest) RetryPolicy

func (request GetConfigurationRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (GetConfigurationRequest) String

func (request GetConfigurationRequest) String() string

func (GetConfigurationRequest) ValidateEnumValue

func (request GetConfigurationRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type GetConfigurationResponse

type GetConfigurationResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// The Configuration instance
	Configuration `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"`
}

GetConfigurationResponse wrapper for the GetConfiguration operation

func (GetConfigurationResponse) HTTPResponse

func (response GetConfigurationResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (GetConfigurationResponse) String

func (response GetConfigurationResponse) String() string

type GetLicenseMetricRequest

type GetLicenseMetricRequest struct {

	// The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) used for the license record, product license, and configuration.
	CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`

	// The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
	// particular request, please provide the request ID.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// Indicates if the given compartment is the root compartment.
	IsCompartmentIdInSubtree *bool `mandatory:"false" contributesTo:"query" name:"isCompartmentIdInSubtree"`

	// 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
}

GetLicenseMetricRequest wrapper for the GetLicenseMetric operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/GetLicenseMetric.go.html to see an example of how to use GetLicenseMetricRequest.

func (GetLicenseMetricRequest) BinaryRequestBody

func (request GetLicenseMetricRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (GetLicenseMetricRequest) HTTPRequest

func (request GetLicenseMetricRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (GetLicenseMetricRequest) RetryPolicy

func (request GetLicenseMetricRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (GetLicenseMetricRequest) String

func (request GetLicenseMetricRequest) String() string

func (GetLicenseMetricRequest) ValidateEnumValue

func (request GetLicenseMetricRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type GetLicenseMetricResponse

type GetLicenseMetricResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// The LicenseMetric instance
	LicenseMetric `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"`
}

GetLicenseMetricResponse wrapper for the GetLicenseMetric operation

func (GetLicenseMetricResponse) HTTPResponse

func (response GetLicenseMetricResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (GetLicenseMetricResponse) String

func (response GetLicenseMetricResponse) String() string

type GetLicenseRecordRequest

type GetLicenseRecordRequest struct {

	// Unique license record identifier.
	LicenseRecordId *string `mandatory:"true" contributesTo:"path" name:"licenseRecordId"`

	// The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
	// particular request, please provide the request ID.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// Metadata about the request. This information will not be transmitted to the service, but
	// represents information that the SDK will consume to drive retry behavior.
	RequestMetadata common.RequestMetadata
}

GetLicenseRecordRequest wrapper for the GetLicenseRecord operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/GetLicenseRecord.go.html to see an example of how to use GetLicenseRecordRequest.

func (GetLicenseRecordRequest) BinaryRequestBody

func (request GetLicenseRecordRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (GetLicenseRecordRequest) HTTPRequest

func (request GetLicenseRecordRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (GetLicenseRecordRequest) RetryPolicy

func (request GetLicenseRecordRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (GetLicenseRecordRequest) String

func (request GetLicenseRecordRequest) String() string

func (GetLicenseRecordRequest) ValidateEnumValue

func (request GetLicenseRecordRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type GetLicenseRecordResponse

type GetLicenseRecordResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// The LicenseRecord instance
	LicenseRecord `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"`
}

GetLicenseRecordResponse wrapper for the GetLicenseRecord operation

func (GetLicenseRecordResponse) HTTPResponse

func (response GetLicenseRecordResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (GetLicenseRecordResponse) String

func (response GetLicenseRecordResponse) String() string

type GetProductLicenseRequest

type GetProductLicenseRequest struct {

	// Unique product license identifier.
	ProductLicenseId *string `mandatory:"true" contributesTo:"path" name:"productLicenseId"`

	// The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
	// particular request, please provide the request ID.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// Metadata about the request. This information will not be transmitted to the service, but
	// represents information that the SDK will consume to drive retry behavior.
	RequestMetadata common.RequestMetadata
}

GetProductLicenseRequest wrapper for the GetProductLicense operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/GetProductLicense.go.html to see an example of how to use GetProductLicenseRequest.

func (GetProductLicenseRequest) BinaryRequestBody

func (request GetProductLicenseRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (GetProductLicenseRequest) HTTPRequest

func (request GetProductLicenseRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (GetProductLicenseRequest) RetryPolicy

func (request GetProductLicenseRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (GetProductLicenseRequest) String

func (request GetProductLicenseRequest) String() string

func (GetProductLicenseRequest) ValidateEnumValue

func (request GetProductLicenseRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type GetProductLicenseResponse

type GetProductLicenseResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// The ProductLicense instance
	ProductLicense `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"`
}

GetProductLicenseResponse wrapper for the GetProductLicense operation

func (GetProductLicenseResponse) HTTPResponse

func (response GetProductLicenseResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (GetProductLicenseResponse) String

func (response GetProductLicenseResponse) String() string

type ImageDetails

type ImageDetails struct {

	// Marketplace image listing ID.
	ListingId *string `mandatory:"true" json:"listingId"`

	// Image package version.
	PackageVersion *string `mandatory:"true" json:"packageVersion"`
}

ImageDetails Image details associated with the product license.

func (ImageDetails) String

func (m ImageDetails) String() string

func (ImageDetails) ValidateEnumValue

func (m ImageDetails) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type ImageResponse

type ImageResponse struct {

	// The image ID associated with the product license.
	Id *string `mandatory:"false" json:"id"`

	// The listing name associated with the product license.
	ListingName *string `mandatory:"false" json:"listingName"`

	// The image publisher.
	Publisher *string `mandatory:"false" json:"publisher"`

	// The image listing ID.
	ListingId *string `mandatory:"false" json:"listingId"`

	// The image package version.
	PackageVersion *string `mandatory:"false" json:"packageVersion"`
}

ImageResponse The collection of image details for the product license.

func (ImageResponse) String

func (m ImageResponse) String() string

func (ImageResponse) ValidateEnumValue

func (m ImageResponse) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type LicenseManagerClient

type LicenseManagerClient struct {
	common.BaseClient
	// contains filtered or unexported fields
}

LicenseManagerClient a client for LicenseManager

func NewLicenseManagerClientWithConfigurationProvider

func NewLicenseManagerClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client LicenseManagerClient, err error)

NewLicenseManagerClientWithConfigurationProvider Creates a new default LicenseManager client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region

func NewLicenseManagerClientWithOboToken

func NewLicenseManagerClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client LicenseManagerClient, err error)

NewLicenseManagerClientWithOboToken Creates a new default LicenseManager 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 (LicenseManagerClient) BulkUploadLicenseRecords

func (client LicenseManagerClient) BulkUploadLicenseRecords(ctx context.Context, request BulkUploadLicenseRecordsRequest) (response BulkUploadLicenseRecordsResponse, err error)

BulkUploadLicenseRecords Bulk upload the product licenses and license records for a given compartment.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/BulkUploadLicenseRecords.go.html to see an example of how to use BulkUploadLicenseRecords API. A default retry strategy applies to this operation BulkUploadLicenseRecords()

func (*LicenseManagerClient) ConfigurationProvider

func (client *LicenseManagerClient) ConfigurationProvider() *common.ConfigurationProvider

ConfigurationProvider the ConfigurationProvider used in this client, or null if none set

func (LicenseManagerClient) CreateLicenseRecord

func (client LicenseManagerClient) CreateLicenseRecord(ctx context.Context, request CreateLicenseRecordRequest) (response CreateLicenseRecordResponse, err error)

CreateLicenseRecord Creates a new license record for the given product license ID.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/CreateLicenseRecord.go.html to see an example of how to use CreateLicenseRecord API. A default retry strategy applies to this operation CreateLicenseRecord()

func (LicenseManagerClient) CreateProductLicense

func (client LicenseManagerClient) CreateProductLicense(ctx context.Context, request CreateProductLicenseRequest) (response CreateProductLicenseResponse, err error)

CreateProductLicense Creates a new product license.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/CreateProductLicense.go.html to see an example of how to use CreateProductLicense API. A default retry strategy applies to this operation CreateProductLicense()

func (LicenseManagerClient) DeleteLicenseRecord

func (client LicenseManagerClient) DeleteLicenseRecord(ctx context.Context, request DeleteLicenseRecordRequest) (response DeleteLicenseRecordResponse, err error)

DeleteLicenseRecord Removes a license record.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/DeleteLicenseRecord.go.html to see an example of how to use DeleteLicenseRecord API. A default retry strategy applies to this operation DeleteLicenseRecord()

func (LicenseManagerClient) DeleteProductLicense

func (client LicenseManagerClient) DeleteProductLicense(ctx context.Context, request DeleteProductLicenseRequest) (response DeleteProductLicenseResponse, err error)

DeleteProductLicense Removes a product license.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/DeleteProductLicense.go.html to see an example of how to use DeleteProductLicense API. A default retry strategy applies to this operation DeleteProductLicense()

func (LicenseManagerClient) GetBulkUploadTemplate

func (client LicenseManagerClient) GetBulkUploadTemplate(ctx context.Context, request GetBulkUploadTemplateRequest) (response GetBulkUploadTemplateResponse, err error)

GetBulkUploadTemplate Provides the bulk upload file template.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/GetBulkUploadTemplate.go.html to see an example of how to use GetBulkUploadTemplate API. A default retry strategy applies to this operation GetBulkUploadTemplate()

func (LicenseManagerClient) GetConfiguration

func (client LicenseManagerClient) GetConfiguration(ctx context.Context, request GetConfigurationRequest) (response GetConfigurationResponse, err error)

GetConfiguration Retrieves configuration for a compartment.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/GetConfiguration.go.html to see an example of how to use GetConfiguration API. A default retry strategy applies to this operation GetConfiguration()

func (LicenseManagerClient) GetLicenseMetric

func (client LicenseManagerClient) GetLicenseMetric(ctx context.Context, request GetLicenseMetricRequest) (response GetLicenseMetricResponse, err error)

GetLicenseMetric Retrieves the license metrics for a given compartment.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/GetLicenseMetric.go.html to see an example of how to use GetLicenseMetric API. A default retry strategy applies to this operation GetLicenseMetric()

func (LicenseManagerClient) GetLicenseRecord

func (client LicenseManagerClient) GetLicenseRecord(ctx context.Context, request GetLicenseRecordRequest) (response GetLicenseRecordResponse, err error)

GetLicenseRecord Retrieves license record details by the license record ID in a given compartment.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/GetLicenseRecord.go.html to see an example of how to use GetLicenseRecord API. A default retry strategy applies to this operation GetLicenseRecord()

func (LicenseManagerClient) GetProductLicense

func (client LicenseManagerClient) GetProductLicense(ctx context.Context, request GetProductLicenseRequest) (response GetProductLicenseResponse, err error)

GetProductLicense Retrieves product license details by product license ID in a given compartment.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/GetProductLicense.go.html to see an example of how to use GetProductLicense API. A default retry strategy applies to this operation GetProductLicense()

func (LicenseManagerClient) ListLicenseRecords

func (client LicenseManagerClient) ListLicenseRecords(ctx context.Context, request ListLicenseRecordsRequest) (response ListLicenseRecordsResponse, err error)

ListLicenseRecords Retrieves all license records for a given product license ID.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/ListLicenseRecords.go.html to see an example of how to use ListLicenseRecords API. A default retry strategy applies to this operation ListLicenseRecords()

func (LicenseManagerClient) ListProductLicenseConsumers

func (client LicenseManagerClient) ListProductLicenseConsumers(ctx context.Context, request ListProductLicenseConsumersRequest) (response ListProductLicenseConsumersResponse, err error)

ListProductLicenseConsumers Retrieves the product license consumers for a particular product license ID.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/ListProductLicenseConsumers.go.html to see an example of how to use ListProductLicenseConsumers API. A default retry strategy applies to this operation ListProductLicenseConsumers()

func (LicenseManagerClient) ListProductLicenses

func (client LicenseManagerClient) ListProductLicenses(ctx context.Context, request ListProductLicensesRequest) (response ListProductLicensesResponse, err error)

ListProductLicenses Retrieves all the product licenses from a given compartment.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/ListProductLicenses.go.html to see an example of how to use ListProductLicenses API. A default retry strategy applies to this operation ListProductLicenses()

func (LicenseManagerClient) ListTopUtilizedProductLicenses

func (client LicenseManagerClient) ListTopUtilizedProductLicenses(ctx context.Context, request ListTopUtilizedProductLicensesRequest) (response ListTopUtilizedProductLicensesResponse, err error)

ListTopUtilizedProductLicenses Retrieves the top utilized product licenses for a given compartment.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/ListTopUtilizedProductLicenses.go.html to see an example of how to use ListTopUtilizedProductLicenses API. A default retry strategy applies to this operation ListTopUtilizedProductLicenses()

func (LicenseManagerClient) ListTopUtilizedResources

func (client LicenseManagerClient) ListTopUtilizedResources(ctx context.Context, request ListTopUtilizedResourcesRequest) (response ListTopUtilizedResourcesResponse, err error)

ListTopUtilizedResources Retrieves the top utilized resources for a given compartment.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/ListTopUtilizedResources.go.html to see an example of how to use ListTopUtilizedResources API. A default retry strategy applies to this operation ListTopUtilizedResources()

func (*LicenseManagerClient) SetRegion

func (client *LicenseManagerClient) SetRegion(region string)

SetRegion overrides the region of this client.

func (LicenseManagerClient) UpdateConfiguration

func (client LicenseManagerClient) UpdateConfiguration(ctx context.Context, request UpdateConfigurationRequest) (response UpdateConfigurationResponse, err error)

UpdateConfiguration Updates the configuration for the compartment.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/UpdateConfiguration.go.html to see an example of how to use UpdateConfiguration API. A default retry strategy applies to this operation UpdateConfiguration()

func (LicenseManagerClient) UpdateLicenseRecord

func (client LicenseManagerClient) UpdateLicenseRecord(ctx context.Context, request UpdateLicenseRecordRequest) (response UpdateLicenseRecordResponse, err error)

UpdateLicenseRecord Updates license record entity details.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/UpdateLicenseRecord.go.html to see an example of how to use UpdateLicenseRecord API. A default retry strategy applies to this operation UpdateLicenseRecord()

func (LicenseManagerClient) UpdateProductLicense

func (client LicenseManagerClient) UpdateProductLicense(ctx context.Context, request UpdateProductLicenseRequest) (response UpdateProductLicenseResponse, err error)

UpdateProductLicense Updates the list of images for a product license.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/UpdateProductLicense.go.html to see an example of how to use UpdateProductLicense API. A default retry strategy applies to this operation UpdateProductLicense()

type LicenseMetric

type LicenseMetric struct {

	// Total number of product licenses in a particular compartment.
	TotalProductLicenseCount *int `mandatory:"true" json:"totalProductLicenseCount"`

	// Total number of BYOL instances in a particular compartment.
	TotalByolInstanceCount *int `mandatory:"true" json:"totalByolInstanceCount"`

	// Total number of License Included (LI) instances in a particular compartment.
	TotalLicenseIncludedInstanceCount *int `mandatory:"true" json:"totalLicenseIncludedInstanceCount"`

	// Total number of license records that will expire within 90 days in a particular compartment.
	LicenseRecordExpiringSoonCount *int `mandatory:"true" json:"licenseRecordExpiringSoonCount"`
}

LicenseMetric Overview of product license and resources usage.

func (LicenseMetric) String

func (m LicenseMetric) String() string

func (LicenseMetric) ValidateEnumValue

func (m LicenseMetric) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type LicenseRecord

type LicenseRecord struct {

	// The license record OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
	Id *string `mandatory:"true" json:"id"`

	// The license record display name. Avoid entering confidential information.
	DisplayName *string `mandatory:"true" json:"displayName"`

	// Specifies if the license count is unlimited.
	IsUnlimited *bool `mandatory:"true" json:"isUnlimited"`

	// Specifies if the license record term is perpertual.
	IsPerpetual *bool `mandatory:"true" json:"isPerpetual"`

	// The current license record state.
	LifecycleState LifeCycleStateEnum `mandatory:"true" json:"lifecycleState"`

	// The product license OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) with which the license record is associated.
	ProductLicenseId *string `mandatory:"false" json:"productLicenseId"`

	// The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) where the license record is created.
	CompartmentId *string `mandatory:"false" json:"compartmentId"`

	// The license record product ID.
	ProductId *string `mandatory:"false" json:"productId"`

	// The number of license units added by the user for the given license record.
	// Default 1
	LicenseCount *int `mandatory:"false" json:"licenseCount"`

	// The license record end date in RFC 3339 (https://tools.ietf.org/html/rfc3339)
	// date format.
	// Example: `2018-09-12`
	ExpirationDate *common.SDKTime `mandatory:"false" json:"expirationDate"`

	// The license record support end date in RFC 3339 (https://tools.ietf.org/html/rfc3339)
	// date format.
	// Example: `2018-09-12`
	SupportEndDate *common.SDKTime `mandatory:"false" json:"supportEndDate"`

	// The time the license record was created. An RFC 3339 (https://tools.ietf.org/html/rfc3339)-formatted datetime string.
	TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`

	// The time the license record was updated. An RFC 3339 (https://tools.ietf.org/html/rfc3339)-formatted datetime string.
	TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

	// The product license unit.
	LicenseUnit LicenseUnitEnum `mandatory:"false" json:"licenseUnit,omitempty"`

	// The product license name with which the license record is associated.
	ProductLicense *string `mandatory:"false" json:"productLicense"`

	// Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only.
	// Example: `{"bar-key": "value"}`
	FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

	// Defined tags for this resource. Each key is predefined and scoped to a namespace.
	// Example: `{"foo-namespace": {"bar-key": "value"}}`
	DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`

	// Usage of system tag keys. These predefined keys are scoped to namespaces.
	// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
	SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}

LicenseRecord License record summary.

func (LicenseRecord) String

func (m LicenseRecord) String() string

func (LicenseRecord) ValidateEnumValue

func (m LicenseRecord) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type LicenseRecordCollection

type LicenseRecordCollection struct {

	// The license record summary collection.
	Items []LicenseRecordSummary `mandatory:"true" json:"items"`
}

LicenseRecordCollection The license record summary collection.

func (LicenseRecordCollection) String

func (m LicenseRecordCollection) String() string

func (LicenseRecordCollection) ValidateEnumValue

func (m LicenseRecordCollection) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type LicenseRecordSummary

type LicenseRecordSummary struct {

	// The license record OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
	Id *string `mandatory:"true" json:"id"`

	// License record display name. Avoid entering confidential information.
	DisplayName *string `mandatory:"true" json:"displayName"`

	// Specifies if the license count is unlimited.
	IsUnlimited *bool `mandatory:"true" json:"isUnlimited"`

	// Specifies if the license record term is perpertual.
	IsPerpetual *bool `mandatory:"true" json:"isPerpetual"`

	// The product license OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) with which the license record is associated.
	ProductLicenseId *string `mandatory:"false" json:"productLicenseId"`

	// The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) where the license record is created.
	CompartmentId *string `mandatory:"false" json:"compartmentId"`

	// The license record product ID.
	ProductId *string `mandatory:"false" json:"productId"`

	// The number of license record units added by the user for the given license record.
	// Default 1
	LicenseCount *int `mandatory:"false" json:"licenseCount"`

	// The license record end date in RFC 3339 (https://tools.ietf.org/html/rfc3339) format.
	// date format.
	// Example: `2018-09-12`
	ExpirationDate *common.SDKTime `mandatory:"false" json:"expirationDate"`

	// The license record support end date in RFC 3339 (https://tools.ietf.org/html/rfc3339) format.
	// date format.
	// Example: `2018-09-12`
	SupportEndDate *common.SDKTime `mandatory:"false" json:"supportEndDate"`

	// The time the license record was created. An RFC 3339 (https://tools.ietf.org/html/rfc3339)-formatted datetime string.
	TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`

	// The time the license record was updated. An RFC 3339 (https://tools.ietf.org/html/rfc3339)-formatted datetime string.
	TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

	// The current license record state.
	LifecycleState LifeCycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"`

	// The product license unit.
	LicenseUnit LicenseUnitEnum `mandatory:"false" json:"licenseUnit,omitempty"`

	// The product license name with which the license record is associated.
	ProductLicense *string `mandatory:"false" json:"productLicense"`

	// Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only.
	// Example: `{"bar-key": "value"}`
	FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

	// Defined tags for this resource. Each key is predefined and scoped to a namespace.
	// Example: `{"foo-namespace": {"bar-key": "value"}}`
	DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`

	// Usage of system tag keys. These predefined keys are scoped to namespaces.
	// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
	SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}

LicenseRecordSummary The license record summary.

func (LicenseRecordSummary) String

func (m LicenseRecordSummary) String() string

func (LicenseRecordSummary) ValidateEnumValue

func (m LicenseRecordSummary) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type LicenseUnitEnum

type LicenseUnitEnum string

LicenseUnitEnum Enum with underlying type: string

const (
	LicenseUnitOcpu          LicenseUnitEnum = "OCPU"
	LicenseUnitNamedUserPlus LicenseUnitEnum = "NAMED_USER_PLUS"
	LicenseUnitProcessors    LicenseUnitEnum = "PROCESSORS"
)

Set of constants representing the allowable values for LicenseUnitEnum

func GetLicenseUnitEnumValues

func GetLicenseUnitEnumValues() []LicenseUnitEnum

GetLicenseUnitEnumValues Enumerates the set of values for LicenseUnitEnum

func GetMappingLicenseUnitEnum

func GetMappingLicenseUnitEnum(val string) (LicenseUnitEnum, bool)

GetMappingLicenseUnitEnum performs case Insensitive comparison on enum value and return the desired enum

type LifeCycleStateEnum

type LifeCycleStateEnum string

LifeCycleStateEnum Enum with underlying type: string

const (
	LifeCycleStateActive   LifeCycleStateEnum = "ACTIVE"
	LifeCycleStateInactive LifeCycleStateEnum = "INACTIVE"
	LifeCycleStateDeleted  LifeCycleStateEnum = "DELETED"
)

Set of constants representing the allowable values for LifeCycleStateEnum

func GetLifeCycleStateEnumValues

func GetLifeCycleStateEnumValues() []LifeCycleStateEnum

GetLifeCycleStateEnumValues Enumerates the set of values for LifeCycleStateEnum

func GetMappingLifeCycleStateEnum

func GetMappingLifeCycleStateEnum(val string) (LifeCycleStateEnum, bool)

GetMappingLifeCycleStateEnum performs case Insensitive comparison on enum value and return the desired enum

type ListLicenseRecordsRequest

type ListLicenseRecordsRequest struct {

	// Unique product license identifier.
	ProductLicenseId *string `mandatory:"true" contributesTo:"query" name:"productLicenseId"`

	// The maximum number of items to return.
	Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

	// A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
	Page *string `mandatory:"false" contributesTo:"query" name:"page"`

	// The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
	// particular request, please provide the request ID.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// The sort order to use, whether `ASC` or `DESC`.
	SortOrder ListLicenseRecordsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`

	// Specifies the attribute with which to sort the rules.
	// Default: `expirationDate`
	// * **expirationDate:** Sorts by expiration date of the license record.
	SortBy ListLicenseRecordsSortByEnum `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
}

ListLicenseRecordsRequest wrapper for the ListLicenseRecords operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/ListLicenseRecords.go.html to see an example of how to use ListLicenseRecordsRequest.

func (ListLicenseRecordsRequest) BinaryRequestBody

func (request ListLicenseRecordsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (ListLicenseRecordsRequest) HTTPRequest

func (request ListLicenseRecordsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ListLicenseRecordsRequest) RetryPolicy

func (request ListLicenseRecordsRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (ListLicenseRecordsRequest) String

func (request ListLicenseRecordsRequest) String() string

func (ListLicenseRecordsRequest) ValidateEnumValue

func (request ListLicenseRecordsRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type ListLicenseRecordsResponse

type ListLicenseRecordsResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// A list of LicenseRecordCollection instances
	LicenseRecordCollection `presentIn:"body"`

	// Unique Oracle-assigned identifier for the request. If you need to contact
	// Oracle about a particular request, please provide the request ID.
	OpcRequestId *string `presentIn:"header" name:"opc-request-id"`

	// For pagination of a list of items. When paging through a list, if this header appears in the response,
	// then a partial list might have been returned. Include this value as the `page` parameter for the
	// subsequent GET request to get the next batch of items.
	OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}

ListLicenseRecordsResponse wrapper for the ListLicenseRecords operation

func (ListLicenseRecordsResponse) HTTPResponse

func (response ListLicenseRecordsResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (ListLicenseRecordsResponse) String

func (response ListLicenseRecordsResponse) String() string

type ListLicenseRecordsSortByEnum

type ListLicenseRecordsSortByEnum string

ListLicenseRecordsSortByEnum Enum with underlying type: string

const (
	ListLicenseRecordsSortByExpirationdate ListLicenseRecordsSortByEnum = "expirationDate"
)

Set of constants representing the allowable values for ListLicenseRecordsSortByEnum

func GetListLicenseRecordsSortByEnumValues

func GetListLicenseRecordsSortByEnumValues() []ListLicenseRecordsSortByEnum

GetListLicenseRecordsSortByEnumValues Enumerates the set of values for ListLicenseRecordsSortByEnum

func GetMappingListLicenseRecordsSortByEnum

func GetMappingListLicenseRecordsSortByEnum(val string) (ListLicenseRecordsSortByEnum, bool)

GetMappingListLicenseRecordsSortByEnum performs case Insensitive comparison on enum value and return the desired enum

type ListLicenseRecordsSortOrderEnum

type ListLicenseRecordsSortOrderEnum string

ListLicenseRecordsSortOrderEnum Enum with underlying type: string

const (
	ListLicenseRecordsSortOrderAsc  ListLicenseRecordsSortOrderEnum = "ASC"
	ListLicenseRecordsSortOrderDesc ListLicenseRecordsSortOrderEnum = "DESC"
)

Set of constants representing the allowable values for ListLicenseRecordsSortOrderEnum

func GetListLicenseRecordsSortOrderEnumValues

func GetListLicenseRecordsSortOrderEnumValues() []ListLicenseRecordsSortOrderEnum

GetListLicenseRecordsSortOrderEnumValues Enumerates the set of values for ListLicenseRecordsSortOrderEnum

func GetMappingListLicenseRecordsSortOrderEnum

func GetMappingListLicenseRecordsSortOrderEnum(val string) (ListLicenseRecordsSortOrderEnum, bool)

GetMappingListLicenseRecordsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum

type ListProductLicenseConsumersRequest

type ListProductLicenseConsumersRequest struct {

	// Unique product license identifier.
	ProductLicenseId *string `mandatory:"true" contributesTo:"query" name:"productLicenseId"`

	// The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) used for the license record, product license, and configuration.
	CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`

	// The maximum number of items to return.
	Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

	// A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
	Page *string `mandatory:"false" contributesTo:"query" name:"page"`

	// The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
	// particular request, please provide the request ID.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// Indicates if the given compartment is the root compartment.
	IsCompartmentIdInSubtree *bool `mandatory:"false" contributesTo:"query" name:"isCompartmentIdInSubtree"`

	// The sort order to use, whether `ASC` or `DESC`.
	SortOrder ListProductLicenseConsumersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`

	// Specifies the attribute with which to sort the rules.
	// Default: `licenseUnitsRequired`
	// * **licenseUnitsRequired:** Sorts by licenseUnitsRequired of the Resource.
	SortBy ListProductLicenseConsumersSortByEnum `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
}

ListProductLicenseConsumersRequest wrapper for the ListProductLicenseConsumers operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/ListProductLicenseConsumers.go.html to see an example of how to use ListProductLicenseConsumersRequest.

func (ListProductLicenseConsumersRequest) BinaryRequestBody

func (request ListProductLicenseConsumersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (ListProductLicenseConsumersRequest) HTTPRequest

func (request ListProductLicenseConsumersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ListProductLicenseConsumersRequest) RetryPolicy

func (request ListProductLicenseConsumersRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (ListProductLicenseConsumersRequest) String

func (request ListProductLicenseConsumersRequest) String() string

func (ListProductLicenseConsumersRequest) ValidateEnumValue

func (request ListProductLicenseConsumersRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type ListProductLicenseConsumersResponse

type ListProductLicenseConsumersResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// A list of ProductLicenseConsumerCollection instances
	ProductLicenseConsumerCollection `presentIn:"body"`

	// Unique Oracle-assigned identifier for the request. If you need to contact
	// Oracle about a particular request, please provide the request ID.
	OpcRequestId *string `presentIn:"header" name:"opc-request-id"`

	// For pagination of a list of items. When paging through a list, if this header appears in the response,
	// then a partial list might have been returned. Include this value as the `page` parameter for the
	// subsequent GET request to get the next batch of items.
	OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}

ListProductLicenseConsumersResponse wrapper for the ListProductLicenseConsumers operation

func (ListProductLicenseConsumersResponse) HTTPResponse

func (response ListProductLicenseConsumersResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (ListProductLicenseConsumersResponse) String

func (response ListProductLicenseConsumersResponse) String() string

type ListProductLicenseConsumersSortByEnum

type ListProductLicenseConsumersSortByEnum string

ListProductLicenseConsumersSortByEnum Enum with underlying type: string

const (
	ListProductLicenseConsumersSortByLicenseunitsrequired ListProductLicenseConsumersSortByEnum = "licenseUnitsRequired"
)

Set of constants representing the allowable values for ListProductLicenseConsumersSortByEnum

func GetListProductLicenseConsumersSortByEnumValues

func GetListProductLicenseConsumersSortByEnumValues() []ListProductLicenseConsumersSortByEnum

GetListProductLicenseConsumersSortByEnumValues Enumerates the set of values for ListProductLicenseConsumersSortByEnum

func GetMappingListProductLicenseConsumersSortByEnum

func GetMappingListProductLicenseConsumersSortByEnum(val string) (ListProductLicenseConsumersSortByEnum, bool)

GetMappingListProductLicenseConsumersSortByEnum performs case Insensitive comparison on enum value and return the desired enum

type ListProductLicenseConsumersSortOrderEnum

type ListProductLicenseConsumersSortOrderEnum string

ListProductLicenseConsumersSortOrderEnum Enum with underlying type: string

const (
	ListProductLicenseConsumersSortOrderAsc  ListProductLicenseConsumersSortOrderEnum = "ASC"
	ListProductLicenseConsumersSortOrderDesc ListProductLicenseConsumersSortOrderEnum = "DESC"
)

Set of constants representing the allowable values for ListProductLicenseConsumersSortOrderEnum

func GetListProductLicenseConsumersSortOrderEnumValues

func GetListProductLicenseConsumersSortOrderEnumValues() []ListProductLicenseConsumersSortOrderEnum

GetListProductLicenseConsumersSortOrderEnumValues Enumerates the set of values for ListProductLicenseConsumersSortOrderEnum

func GetMappingListProductLicenseConsumersSortOrderEnum

func GetMappingListProductLicenseConsumersSortOrderEnum(val string) (ListProductLicenseConsumersSortOrderEnum, bool)

GetMappingListProductLicenseConsumersSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum

type ListProductLicensesRequest

type ListProductLicensesRequest struct {

	// The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) used for the license record, product license, and configuration.
	CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`

	// The maximum number of items to return.
	Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

	// A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
	Page *string `mandatory:"false" contributesTo:"query" name:"page"`

	// The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
	// particular request, please provide the request ID.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// Indicates if the given compartment is the root compartment.
	IsCompartmentIdInSubtree *bool `mandatory:"false" contributesTo:"query" name:"isCompartmentIdInSubtree"`

	// The sort order to use, whether `ASC` or `DESC`.
	SortOrder ListProductLicensesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`

	// Specifies the attribute with which to sort the rules.
	// Default: `totalLicenseUnitsConsumed`
	// * **totalLicenseUnitsConsumed:** Sorts by totalLicenseUnitsConsumed of ProductLicense.
	SortBy ListProductLicensesSortByEnum `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
}

ListProductLicensesRequest wrapper for the ListProductLicenses operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/ListProductLicenses.go.html to see an example of how to use ListProductLicensesRequest.

func (ListProductLicensesRequest) BinaryRequestBody

func (request ListProductLicensesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (ListProductLicensesRequest) HTTPRequest

func (request ListProductLicensesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ListProductLicensesRequest) RetryPolicy

func (request ListProductLicensesRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (ListProductLicensesRequest) String

func (request ListProductLicensesRequest) String() string

func (ListProductLicensesRequest) ValidateEnumValue

func (request ListProductLicensesRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type ListProductLicensesResponse

type ListProductLicensesResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// A list of ProductLicenseCollection instances
	ProductLicenseCollection `presentIn:"body"`

	// Unique Oracle-assigned identifier for the request. If you need to contact
	// Oracle about a particular request, please provide the request ID.
	OpcRequestId *string `presentIn:"header" name:"opc-request-id"`

	// For pagination of a list of items. When paging through a list, if this header appears in the response,
	// then a partial list might have been returned. Include this value as the `page` parameter for the
	// subsequent GET request to get the next batch of items.
	OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}

ListProductLicensesResponse wrapper for the ListProductLicenses operation

func (ListProductLicensesResponse) HTTPResponse

func (response ListProductLicensesResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (ListProductLicensesResponse) String

func (response ListProductLicensesResponse) String() string

type ListProductLicensesSortByEnum

type ListProductLicensesSortByEnum string

ListProductLicensesSortByEnum Enum with underlying type: string

const (
	ListProductLicensesSortByTotallicenseunitsconsumed ListProductLicensesSortByEnum = "totalLicenseUnitsConsumed"
)

Set of constants representing the allowable values for ListProductLicensesSortByEnum

func GetListProductLicensesSortByEnumValues

func GetListProductLicensesSortByEnumValues() []ListProductLicensesSortByEnum

GetListProductLicensesSortByEnumValues Enumerates the set of values for ListProductLicensesSortByEnum

func GetMappingListProductLicensesSortByEnum

func GetMappingListProductLicensesSortByEnum(val string) (ListProductLicensesSortByEnum, bool)

GetMappingListProductLicensesSortByEnum performs case Insensitive comparison on enum value and return the desired enum

type ListProductLicensesSortOrderEnum

type ListProductLicensesSortOrderEnum string

ListProductLicensesSortOrderEnum Enum with underlying type: string

const (
	ListProductLicensesSortOrderAsc  ListProductLicensesSortOrderEnum = "ASC"
	ListProductLicensesSortOrderDesc ListProductLicensesSortOrderEnum = "DESC"
)

Set of constants representing the allowable values for ListProductLicensesSortOrderEnum

func GetListProductLicensesSortOrderEnumValues

func GetListProductLicensesSortOrderEnumValues() []ListProductLicensesSortOrderEnum

GetListProductLicensesSortOrderEnumValues Enumerates the set of values for ListProductLicensesSortOrderEnum

func GetMappingListProductLicensesSortOrderEnum

func GetMappingListProductLicensesSortOrderEnum(val string) (ListProductLicensesSortOrderEnum, bool)

GetMappingListProductLicensesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum

type ListTopUtilizedProductLicensesRequest

type ListTopUtilizedProductLicensesRequest struct {

	// The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) used for the license record, product license, and configuration.
	CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`

	// The maximum number of items to return.
	Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

	// A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
	Page *string `mandatory:"false" contributesTo:"query" name:"page"`

	// The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
	// particular request, please provide the request ID.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// Indicates if the given compartment is the root compartment.
	IsCompartmentIdInSubtree *bool `mandatory:"false" contributesTo:"query" name:"isCompartmentIdInSubtree"`

	// The sort order to use, whether `ASC` or `DESC`.
	SortOrder ListTopUtilizedProductLicensesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`

	// Specifies the attribute with which to sort the rules.
	// Default: `totalLicenseUnitsConsumed`
	// * **totalLicenseUnitsConsumed:** Sorts by totalLicenseUnitsConsumed of ProductLicense.
	SortBy ListTopUtilizedProductLicensesSortByEnum `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
}

ListTopUtilizedProductLicensesRequest wrapper for the ListTopUtilizedProductLicenses operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/ListTopUtilizedProductLicenses.go.html to see an example of how to use ListTopUtilizedProductLicensesRequest.

func (ListTopUtilizedProductLicensesRequest) BinaryRequestBody

func (request ListTopUtilizedProductLicensesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (ListTopUtilizedProductLicensesRequest) HTTPRequest

func (request ListTopUtilizedProductLicensesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ListTopUtilizedProductLicensesRequest) RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (ListTopUtilizedProductLicensesRequest) String

func (ListTopUtilizedProductLicensesRequest) ValidateEnumValue

func (request ListTopUtilizedProductLicensesRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type ListTopUtilizedProductLicensesResponse

type ListTopUtilizedProductLicensesResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// A list of TopUtilizedProductLicenseCollection instances
	TopUtilizedProductLicenseCollection `presentIn:"body"`

	// Unique Oracle-assigned identifier for the request. If you need to contact
	// Oracle about a particular request, please provide the request ID.
	OpcRequestId *string `presentIn:"header" name:"opc-request-id"`

	// For pagination of a list of items. When paging through a list, if this header appears in the response,
	// then a partial list might have been returned. Include this value as the `page` parameter for the
	// subsequent GET request to get the next batch of items.
	OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}

ListTopUtilizedProductLicensesResponse wrapper for the ListTopUtilizedProductLicenses operation

func (ListTopUtilizedProductLicensesResponse) HTTPResponse

func (response ListTopUtilizedProductLicensesResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (ListTopUtilizedProductLicensesResponse) String

type ListTopUtilizedProductLicensesSortByEnum

type ListTopUtilizedProductLicensesSortByEnum string

ListTopUtilizedProductLicensesSortByEnum Enum with underlying type: string

const (
	ListTopUtilizedProductLicensesSortByTotallicenseunitsconsumed ListTopUtilizedProductLicensesSortByEnum = "totalLicenseUnitsConsumed"
)

Set of constants representing the allowable values for ListTopUtilizedProductLicensesSortByEnum

func GetListTopUtilizedProductLicensesSortByEnumValues

func GetListTopUtilizedProductLicensesSortByEnumValues() []ListTopUtilizedProductLicensesSortByEnum

GetListTopUtilizedProductLicensesSortByEnumValues Enumerates the set of values for ListTopUtilizedProductLicensesSortByEnum

func GetMappingListTopUtilizedProductLicensesSortByEnum

func GetMappingListTopUtilizedProductLicensesSortByEnum(val string) (ListTopUtilizedProductLicensesSortByEnum, bool)

GetMappingListTopUtilizedProductLicensesSortByEnum performs case Insensitive comparison on enum value and return the desired enum

type ListTopUtilizedProductLicensesSortOrderEnum

type ListTopUtilizedProductLicensesSortOrderEnum string

ListTopUtilizedProductLicensesSortOrderEnum Enum with underlying type: string

const (
	ListTopUtilizedProductLicensesSortOrderAsc  ListTopUtilizedProductLicensesSortOrderEnum = "ASC"
	ListTopUtilizedProductLicensesSortOrderDesc ListTopUtilizedProductLicensesSortOrderEnum = "DESC"
)

Set of constants representing the allowable values for ListTopUtilizedProductLicensesSortOrderEnum

func GetListTopUtilizedProductLicensesSortOrderEnumValues

func GetListTopUtilizedProductLicensesSortOrderEnumValues() []ListTopUtilizedProductLicensesSortOrderEnum

GetListTopUtilizedProductLicensesSortOrderEnumValues Enumerates the set of values for ListTopUtilizedProductLicensesSortOrderEnum

func GetMappingListTopUtilizedProductLicensesSortOrderEnum

func GetMappingListTopUtilizedProductLicensesSortOrderEnum(val string) (ListTopUtilizedProductLicensesSortOrderEnum, bool)

GetMappingListTopUtilizedProductLicensesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum

type ListTopUtilizedResourcesRequest

type ListTopUtilizedResourcesRequest struct {

	// The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) used for the license record, product license, and configuration.
	CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`

	// The maximum number of items to return.
	Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

	// A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
	Page *string `mandatory:"false" contributesTo:"query" name:"page"`

	// The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
	// particular request, please provide the request ID.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// Indicates if the given compartment is the root compartment.
	IsCompartmentIdInSubtree *bool `mandatory:"false" contributesTo:"query" name:"isCompartmentIdInSubtree"`

	// A filter to return only resources whose unit matches the given resource unit.
	ResourceUnitType ListTopUtilizedResourcesResourceUnitTypeEnum `mandatory:"false" contributesTo:"query" name:"resourceUnitType" omitEmpty:"true"`

	// The sort order to use, whether `ASC` or `DESC`.
	SortOrder ListTopUtilizedResourcesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`

	// Specifies the attribute with which to sort the rules.
	// Default: `totalUnits`
	// * **totalUnits:** Sorts by totalUnits consumed by resource.
	SortBy ListTopUtilizedResourcesSortByEnum `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
}

ListTopUtilizedResourcesRequest wrapper for the ListTopUtilizedResources operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/ListTopUtilizedResources.go.html to see an example of how to use ListTopUtilizedResourcesRequest.

func (ListTopUtilizedResourcesRequest) BinaryRequestBody

func (request ListTopUtilizedResourcesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (ListTopUtilizedResourcesRequest) HTTPRequest

func (request ListTopUtilizedResourcesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ListTopUtilizedResourcesRequest) RetryPolicy

func (request ListTopUtilizedResourcesRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (ListTopUtilizedResourcesRequest) String

func (request ListTopUtilizedResourcesRequest) String() string

func (ListTopUtilizedResourcesRequest) ValidateEnumValue

func (request ListTopUtilizedResourcesRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type ListTopUtilizedResourcesResourceUnitTypeEnum

type ListTopUtilizedResourcesResourceUnitTypeEnum string

ListTopUtilizedResourcesResourceUnitTypeEnum Enum with underlying type: string

const (
	ListTopUtilizedResourcesResourceUnitTypeOcpu ListTopUtilizedResourcesResourceUnitTypeEnum = "OCPU"
	ListTopUtilizedResourcesResourceUnitTypeEcpu ListTopUtilizedResourcesResourceUnitTypeEnum = "ECPU"
)

Set of constants representing the allowable values for ListTopUtilizedResourcesResourceUnitTypeEnum

func GetListTopUtilizedResourcesResourceUnitTypeEnumValues

func GetListTopUtilizedResourcesResourceUnitTypeEnumValues() []ListTopUtilizedResourcesResourceUnitTypeEnum

GetListTopUtilizedResourcesResourceUnitTypeEnumValues Enumerates the set of values for ListTopUtilizedResourcesResourceUnitTypeEnum

func GetMappingListTopUtilizedResourcesResourceUnitTypeEnum

func GetMappingListTopUtilizedResourcesResourceUnitTypeEnum(val string) (ListTopUtilizedResourcesResourceUnitTypeEnum, bool)

GetMappingListTopUtilizedResourcesResourceUnitTypeEnum performs case Insensitive comparison on enum value and return the desired enum

type ListTopUtilizedResourcesResponse

type ListTopUtilizedResourcesResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// A list of TopUtilizedResourceCollection instances
	TopUtilizedResourceCollection `presentIn:"body"`

	// Unique Oracle-assigned identifier for the request. If you need to contact
	// Oracle about a particular request, please provide the request ID.
	OpcRequestId *string `presentIn:"header" name:"opc-request-id"`

	// For pagination of a list of items. When paging through a list, if this header appears in the response,
	// then a partial list might have been returned. Include this value as the `page` parameter for the
	// subsequent GET request to get the next batch of items.
	OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}

ListTopUtilizedResourcesResponse wrapper for the ListTopUtilizedResources operation

func (ListTopUtilizedResourcesResponse) HTTPResponse

func (response ListTopUtilizedResourcesResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (ListTopUtilizedResourcesResponse) String

func (response ListTopUtilizedResourcesResponse) String() string

type ListTopUtilizedResourcesSortByEnum

type ListTopUtilizedResourcesSortByEnum string

ListTopUtilizedResourcesSortByEnum Enum with underlying type: string

const (
	ListTopUtilizedResourcesSortByTotalunits ListTopUtilizedResourcesSortByEnum = "totalUnits"
)

Set of constants representing the allowable values for ListTopUtilizedResourcesSortByEnum

func GetListTopUtilizedResourcesSortByEnumValues

func GetListTopUtilizedResourcesSortByEnumValues() []ListTopUtilizedResourcesSortByEnum

GetListTopUtilizedResourcesSortByEnumValues Enumerates the set of values for ListTopUtilizedResourcesSortByEnum

func GetMappingListTopUtilizedResourcesSortByEnum

func GetMappingListTopUtilizedResourcesSortByEnum(val string) (ListTopUtilizedResourcesSortByEnum, bool)

GetMappingListTopUtilizedResourcesSortByEnum performs case Insensitive comparison on enum value and return the desired enum

type ListTopUtilizedResourcesSortOrderEnum

type ListTopUtilizedResourcesSortOrderEnum string

ListTopUtilizedResourcesSortOrderEnum Enum with underlying type: string

const (
	ListTopUtilizedResourcesSortOrderAsc  ListTopUtilizedResourcesSortOrderEnum = "ASC"
	ListTopUtilizedResourcesSortOrderDesc ListTopUtilizedResourcesSortOrderEnum = "DESC"
)

Set of constants representing the allowable values for ListTopUtilizedResourcesSortOrderEnum

func GetListTopUtilizedResourcesSortOrderEnumValues

func GetListTopUtilizedResourcesSortOrderEnumValues() []ListTopUtilizedResourcesSortOrderEnum

GetListTopUtilizedResourcesSortOrderEnumValues Enumerates the set of values for ListTopUtilizedResourcesSortOrderEnum

func GetMappingListTopUtilizedResourcesSortOrderEnum

func GetMappingListTopUtilizedResourcesSortOrderEnum(val string) (ListTopUtilizedResourcesSortOrderEnum, bool)

GetMappingListTopUtilizedResourcesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum

type Product

type Product struct {

	// Name of the product.
	Name *string `mandatory:"true" json:"name"`

	// Units required for the missing product.
	Count *float64 `mandatory:"true" json:"count"`

	// Product category base or option.
	Category ProductCategoryEnum `mandatory:"true" json:"category"`
}

Product Details of product.

func (Product) String

func (m Product) String() string

func (Product) ValidateEnumValue

func (m Product) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type ProductCategoryEnum

type ProductCategoryEnum string

ProductCategoryEnum Enum with underlying type: string

const (
	ProductCategoryBase   ProductCategoryEnum = "BASE"
	ProductCategoryOption ProductCategoryEnum = "OPTION"
)

Set of constants representing the allowable values for ProductCategoryEnum

func GetMappingProductCategoryEnum

func GetMappingProductCategoryEnum(val string) (ProductCategoryEnum, bool)

GetMappingProductCategoryEnum performs case Insensitive comparison on enum value and return the desired enum

func GetProductCategoryEnumValues

func GetProductCategoryEnumValues() []ProductCategoryEnum

GetProductCategoryEnumValues Enumerates the set of values for ProductCategoryEnum

type ProductLicense

type ProductLicense struct {

	// The product license OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
	Id *string `mandatory:"true" json:"id"`

	// The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) where the product license is created.
	CompartmentId *string `mandatory:"true" json:"compartmentId"`

	// The current product license status.
	Status StatusEnum `mandatory:"true" json:"status"`

	// The product license unit.
	LicenseUnit LicenseUnitEnum `mandatory:"true" json:"licenseUnit"`

	// Specifies whether the vendor is Oracle or a third party.
	IsVendorOracle *bool `mandatory:"true" json:"isVendorOracle"`

	// License record name
	DisplayName *string `mandatory:"true" json:"displayName"`

	// Status description for the current product license status.
	StatusDescription *string `mandatory:"false" json:"statusDescription"`

	// The total number of licenses available for the product license, calculated by adding up all the license counts for active license records associated with the product license.
	TotalActiveLicenseUnitCount *int `mandatory:"false" json:"totalActiveLicenseUnitCount"`

	// The current product license state.
	LifecycleState LifeCycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"`

	// The number of license units consumed. Updated after each allocation run.
	TotalLicenseUnitsConsumed *float64 `mandatory:"false" json:"totalLicenseUnitsConsumed"`

	// The number of license records associated with the product license.
	TotalLicenseRecordCount *int `mandatory:"false" json:"totalLicenseRecordCount"`

	// The number of active license records associated with the product license.
	ActiveLicenseRecordCount *int `mandatory:"false" json:"activeLicenseRecordCount"`

	// Specifies whether or not the product license is oversubscribed.
	IsOverSubscribed *bool `mandatory:"false" json:"isOverSubscribed"`

	// Specifies if the license unit count is unlimited.
	IsUnlimited *bool `mandatory:"false" json:"isUnlimited"`

	// The vendor of the ProductLicense
	VendorName *string `mandatory:"false" json:"vendorName"`

	// The time the product license was created. An RFC 3339 (https://tools.ietf.org/html/rfc3339)-formatted datetime string.
	TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`

	// The time the product license was updated. An RFC 3339 (https://tools.ietf.org/html/rfc3339)-formatted datetime string.
	TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

	// The images associated with the product license.
	Images []ImageResponse `mandatory:"false" json:"images"`

	// Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only.
	// Example: `{"bar-key": "value"}`
	FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

	// Defined tags for this resource. Each key is predefined and scoped to a namespace.
	// Example: `{"foo-namespace": {"bar-key": "value"}}`
	DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`

	// Usage of system tag keys. These predefined keys are scoped to namespaces.
	// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
	SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}

ProductLicense The product license details.

func (ProductLicense) String

func (m ProductLicense) String() string

func (ProductLicense) ValidateEnumValue

func (m ProductLicense) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type ProductLicenseCollection

type ProductLicenseCollection struct {

	// The product license summary collection.
	Items []ProductLicenseSummary `mandatory:"true" json:"items"`
}

ProductLicenseCollection The product license summary collection.

func (ProductLicenseCollection) String

func (m ProductLicenseCollection) String() string

func (ProductLicenseCollection) ValidateEnumValue

func (m ProductLicenseCollection) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type ProductLicenseConsumerCollection

type ProductLicenseConsumerCollection struct {

	// Collection of product license consumers.
	Items []ProductLicenseConsumerSummary `mandatory:"true" json:"items"`
}

ProductLicenseConsumerCollection Collection of resources which have consumed licenses.

func (ProductLicenseConsumerCollection) String

func (ProductLicenseConsumerCollection) ValidateEnumValue

func (m ProductLicenseConsumerCollection) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type ProductLicenseConsumerSummary

type ProductLicenseConsumerSummary struct {

	// The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource.
	ResourceId *string `mandatory:"true" json:"resourceId"`

	// The display name of the resource.
	ResourceName *string `mandatory:"true" json:"resourceName"`

	// The resource product name.
	ProductName *string `mandatory:"true" json:"productName"`

	// The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the resource.
	ResourceCompartmentId *string `mandatory:"true" json:"resourceCompartmentId"`

	// The display name of the compartment that contains the resource.
	ResourceCompartmentName *string `mandatory:"true" json:"resourceCompartmentName"`

	// The unit type for the resource.
	ResourceUnitType ResourceUnitEnum `mandatory:"true" json:"resourceUnitType"`

	// Number of units of the resource
	ResourceUnitCount *float64 `mandatory:"true" json:"resourceUnitCount"`

	// The product license unit.
	LicenseUnitType LicenseUnitEnum `mandatory:"true" json:"licenseUnitType"`

	// Number of license units consumed by the resource.
	LicenseUnitsConsumed *float64 `mandatory:"true" json:"licenseUnitsConsumed"`

	// Specifies if the base license is available.
	IsBaseLicenseAvailable *bool `mandatory:"true" json:"isBaseLicenseAvailable"`

	// Specifies if all options are available.
	AreAllOptionsAvailable *bool `mandatory:"true" json:"areAllOptionsAvailable"`

	// Collection of missing product licenses.
	MissingProducts []Product `mandatory:"true" json:"missingProducts"`
}

ProductLicenseConsumerSummary Details of a resource that is consuming a particular product license.

func (ProductLicenseConsumerSummary) String

func (ProductLicenseConsumerSummary) ValidateEnumValue

func (m ProductLicenseConsumerSummary) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type ProductLicenseSummary

type ProductLicenseSummary struct {

	// The product license OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
	Id *string `mandatory:"true" json:"id"`

	// The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) where the product license is created.
	CompartmentId *string `mandatory:"true" json:"compartmentId"`

	// The current product license status.
	Status StatusEnum `mandatory:"true" json:"status"`

	// The product license unit.
	LicenseUnit LicenseUnitEnum `mandatory:"true" json:"licenseUnit"`

	// Specifies whether the vendor is Oracle or a third party.
	IsVendorOracle *bool `mandatory:"true" json:"isVendorOracle"`

	// License record name
	DisplayName *string `mandatory:"true" json:"displayName"`

	// Status description for the current product license status.
	StatusDescription *string `mandatory:"false" json:"statusDescription"`

	// The current product license state.
	LifecycleState LifeCycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"`

	// The total number of licenses available for the product license, calculated by adding up all the license counts for active license records associated with the product license.
	TotalActiveLicenseUnitCount *int `mandatory:"false" json:"totalActiveLicenseUnitCount"`

	// The number of license units consumed. Updated after each allocation run.
	TotalLicenseUnitsConsumed *float64 `mandatory:"false" json:"totalLicenseUnitsConsumed"`

	// The number of license records associated with the product license.
	TotalLicenseRecordCount *int `mandatory:"false" json:"totalLicenseRecordCount"`

	// The number of active license records associated with the product license.
	ActiveLicenseRecordCount *int `mandatory:"false" json:"activeLicenseRecordCount"`

	// Specifies whether or not the product license is oversubscribed.
	IsOverSubscribed *bool `mandatory:"false" json:"isOverSubscribed"`

	// Specifies if the license unit count is unlimited.
	IsUnlimited *bool `mandatory:"false" json:"isUnlimited"`

	// The vendor of the ProductLicense
	VendorName *string `mandatory:"false" json:"vendorName"`

	// The time the product license was created. An RFC 3339 (https://tools.ietf.org/html/rfc3339)-formatted datetime string.
	TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`

	// The time the product license was updated. An RFC 3339 (https://tools.ietf.org/html/rfc3339)-formatted datetime string.
	TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

	// The images associated with the product license.
	Images []ImageResponse `mandatory:"false" json:"images"`

	// Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only.
	// Example: `{"bar-key": "value"}`
	FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

	// Defined tags for this resource. Each key is predefined and scoped to a namespace.
	// Example: `{"foo-namespace": {"bar-key": "value"}}`
	DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`

	// Usage of system tag keys. These predefined keys are scoped to namespaces.
	// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
	SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}

ProductLicenseSummary The product license summary.

func (ProductLicenseSummary) String

func (m ProductLicenseSummary) String() string

func (ProductLicenseSummary) ValidateEnumValue

func (m ProductLicenseSummary) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type ResourceUnitEnum

type ResourceUnitEnum string

ResourceUnitEnum Enum with underlying type: string

const (
	ResourceUnitOcpu ResourceUnitEnum = "OCPU"
	ResourceUnitEcpu ResourceUnitEnum = "ECPU"
)

Set of constants representing the allowable values for ResourceUnitEnum

func GetMappingResourceUnitEnum

func GetMappingResourceUnitEnum(val string) (ResourceUnitEnum, bool)

GetMappingResourceUnitEnum performs case Insensitive comparison on enum value and return the desired enum

func GetResourceUnitEnumValues

func GetResourceUnitEnumValues() []ResourceUnitEnum

GetResourceUnitEnumValues Enumerates the set of values for ResourceUnitEnum

type StatusEnum

type StatusEnum string

StatusEnum Enum with underlying type: string

const (
	StatusIncomplete  StatusEnum = "INCOMPLETE"
	StatusIssuesFound StatusEnum = "ISSUES_FOUND"
	StatusWarning     StatusEnum = "WARNING"
	StatusOk          StatusEnum = "OK"
)

Set of constants representing the allowable values for StatusEnum

func GetMappingStatusEnum

func GetMappingStatusEnum(val string) (StatusEnum, bool)

GetMappingStatusEnum performs case Insensitive comparison on enum value and return the desired enum

func GetStatusEnumValues

func GetStatusEnumValues() []StatusEnum

GetStatusEnumValues Enumerates the set of values for StatusEnum

type TopUtilizedProductLicenseCollection

type TopUtilizedProductLicenseCollection struct {

	// Collection of top utilized product licenses.
	Items []TopUtilizedProductLicenseSummary `mandatory:"true" json:"items"`
}

TopUtilizedProductLicenseCollection A collection of top utilized product licenses.

func (TopUtilizedProductLicenseCollection) String

func (TopUtilizedProductLicenseCollection) ValidateEnumValue

func (m TopUtilizedProductLicenseCollection) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type TopUtilizedProductLicenseSummary

type TopUtilizedProductLicenseSummary struct {

	// The product license OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
	ProductLicenseId *string `mandatory:"true" json:"productLicenseId"`

	// The product type.
	ProductType *string `mandatory:"true" json:"productType"`

	// The product license unit.
	UnitType LicenseUnitEnum `mandatory:"true" json:"unitType"`

	// Number of license units consumed.
	TotalUnitsConsumed *float64 `mandatory:"true" json:"totalUnitsConsumed"`

	// Total number of license units in the product license provided by the user.
	TotalLicenseUnitCount *int `mandatory:"true" json:"totalLicenseUnitCount"`

	// Specifies if the license unit count is unlimited.
	IsUnlimited *bool `mandatory:"true" json:"isUnlimited"`

	// The current product license status.
	Status StatusEnum `mandatory:"true" json:"status"`
}

TopUtilizedProductLicenseSummary A summary of the top utilized product licenses.

func (TopUtilizedProductLicenseSummary) String

func (TopUtilizedProductLicenseSummary) ValidateEnumValue

func (m TopUtilizedProductLicenseSummary) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type TopUtilizedResourceCollection

type TopUtilizedResourceCollection struct {

	// The top utilized resource summary collection.
	Items []TopUtilizedResourceSummary `mandatory:"true" json:"items"`
}

TopUtilizedResourceCollection The collection of top utilized resources.

func (TopUtilizedResourceCollection) String

func (TopUtilizedResourceCollection) ValidateEnumValue

func (m TopUtilizedResourceCollection) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type TopUtilizedResourceSummary

type TopUtilizedResourceSummary struct {

	// The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource.
	ResourceId *string `mandatory:"true" json:"resourceId"`

	// Resource canonical name.
	ResourceName *string `mandatory:"true" json:"resourceName"`

	// The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that contains the resource.
	ResourceCompartmentId *string `mandatory:"true" json:"resourceCompartmentId"`

	// The display name of the compartment that contains the resource.
	ResourceCompartmentName *string `mandatory:"true" json:"resourceCompartmentName"`

	// Number of license units consumed by the resource.
	TotalUnits *float64 `mandatory:"true" json:"totalUnits"`

	// The resource unit.
	UnitType ResourceUnitEnum `mandatory:"true" json:"unitType"`
}

TopUtilizedResourceSummary A summary of a top utlized resource.

func (TopUtilizedResourceSummary) String

func (TopUtilizedResourceSummary) ValidateEnumValue

func (m TopUtilizedResourceSummary) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type UpdateConfigurationDetails

type UpdateConfigurationDetails struct {

	// List of email IDs associated with the configuration.
	EmailIds []string `mandatory:"true" json:"emailIds"`
}

UpdateConfigurationDetails The compartment-specific configuration.

func (UpdateConfigurationDetails) String

func (UpdateConfigurationDetails) ValidateEnumValue

func (m UpdateConfigurationDetails) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type UpdateConfigurationRequest

type UpdateConfigurationRequest struct {

	// The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) used for the license record, product license, and configuration.
	CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`

	// Configuration details that need to be updated.
	UpdateConfigurationDetails `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"`

	// The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
	// particular request, please provide the request ID.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// Metadata about the request. This information will not be transmitted to the service, but
	// represents information that the SDK will consume to drive retry behavior.
	RequestMetadata common.RequestMetadata
}

UpdateConfigurationRequest wrapper for the UpdateConfiguration operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/UpdateConfiguration.go.html to see an example of how to use UpdateConfigurationRequest.

func (UpdateConfigurationRequest) BinaryRequestBody

func (request UpdateConfigurationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (UpdateConfigurationRequest) HTTPRequest

func (request UpdateConfigurationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (UpdateConfigurationRequest) RetryPolicy

func (request UpdateConfigurationRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (UpdateConfigurationRequest) String

func (request UpdateConfigurationRequest) String() string

func (UpdateConfigurationRequest) ValidateEnumValue

func (request UpdateConfigurationRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type UpdateConfigurationResponse

type UpdateConfigurationResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// The Configuration instance
	Configuration `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"`
}

UpdateConfigurationResponse wrapper for the UpdateConfiguration operation

func (UpdateConfigurationResponse) HTTPResponse

func (response UpdateConfigurationResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (UpdateConfigurationResponse) String

func (response UpdateConfigurationResponse) String() string

type UpdateLicenseRecordDetails

type UpdateLicenseRecordDetails struct {

	// License record name.
	DisplayName *string `mandatory:"true" json:"displayName"`

	// Specifies if the license record term is perpertual.
	IsPerpetual *bool `mandatory:"true" json:"isPerpetual"`

	// Specifies if the license count is unlimited.
	IsUnlimited *bool `mandatory:"true" json:"isUnlimited"`

	// The license record end date in RFC 3339 (https://tools.ietf.org/html/rfc3339)
	// date format.
	// Example: `2018-09-12`
	ExpirationDate *common.SDKTime `mandatory:"false" json:"expirationDate"`

	// The license record support end date in RFC 3339 (https://tools.ietf.org/html/rfc3339)
	// date format.
	// Example: `2018-09-12`
	SupportEndDate *common.SDKTime `mandatory:"false" json:"supportEndDate"`

	// The number of license units added by a user in a license record.
	// Default 1
	LicenseCount *int `mandatory:"false" json:"licenseCount"`

	// The license record product ID.
	ProductId *string `mandatory:"false" json:"productId"`

	// Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only.
	// Example: `{"bar-key": "value"}`
	FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

	// Defined tags for this resource. Each key is predefined and scoped to a namespace.
	// Example: `{"foo-namespace": {"bar-key": "value"}}`
	DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}

UpdateLicenseRecordDetails The details about updates in the license record.

func (UpdateLicenseRecordDetails) String

func (UpdateLicenseRecordDetails) ValidateEnumValue

func (m UpdateLicenseRecordDetails) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type UpdateLicenseRecordRequest

type UpdateLicenseRecordRequest struct {

	// Unique license record identifier.
	LicenseRecordId *string `mandatory:"true" contributesTo:"path" name:"licenseRecordId"`

	// Details to update a license record entity.
	UpdateLicenseRecordDetails `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"`

	// The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
	// particular request, please provide the request ID.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// Metadata about the request. This information will not be transmitted to the service, but
	// represents information that the SDK will consume to drive retry behavior.
	RequestMetadata common.RequestMetadata
}

UpdateLicenseRecordRequest wrapper for the UpdateLicenseRecord operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/UpdateLicenseRecord.go.html to see an example of how to use UpdateLicenseRecordRequest.

func (UpdateLicenseRecordRequest) BinaryRequestBody

func (request UpdateLicenseRecordRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (UpdateLicenseRecordRequest) HTTPRequest

func (request UpdateLicenseRecordRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (UpdateLicenseRecordRequest) RetryPolicy

func (request UpdateLicenseRecordRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (UpdateLicenseRecordRequest) String

func (request UpdateLicenseRecordRequest) String() string

func (UpdateLicenseRecordRequest) ValidateEnumValue

func (request UpdateLicenseRecordRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type UpdateLicenseRecordResponse

type UpdateLicenseRecordResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// The LicenseRecord instance
	LicenseRecord `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"`
}

UpdateLicenseRecordResponse wrapper for the UpdateLicenseRecord operation

func (UpdateLicenseRecordResponse) HTTPResponse

func (response UpdateLicenseRecordResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (UpdateLicenseRecordResponse) String

func (response UpdateLicenseRecordResponse) String() string

type UpdateProductLicenseDetails

type UpdateProductLicenseDetails struct {

	// The image details associated with the product license.
	Images []ImageDetails `mandatory:"true" json:"images"`

	// Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only.
	// Example: `{"bar-key": "value"}`
	FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

	// Defined tags for this resource. Each key is predefined and scoped to a namespace.
	// Example: `{"foo-namespace": {"bar-key": "value"}}`
	DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}

UpdateProductLicenseDetails Updates the product license object (only allows image updates).

func (UpdateProductLicenseDetails) String

func (UpdateProductLicenseDetails) ValidateEnumValue

func (m UpdateProductLicenseDetails) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type UpdateProductLicenseRequest

type UpdateProductLicenseRequest struct {

	// Unique product license identifier.
	ProductLicenseId *string `mandatory:"true" contributesTo:"path" name:"productLicenseId"`

	// The list of images that needs to be updated.
	UpdateProductLicenseDetails `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"`

	// The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
	// particular request, please provide the request ID.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// Metadata about the request. This information will not be transmitted to the service, but
	// represents information that the SDK will consume to drive retry behavior.
	RequestMetadata common.RequestMetadata
}

UpdateProductLicenseRequest wrapper for the UpdateProductLicense operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/licensemanager/UpdateProductLicense.go.html to see an example of how to use UpdateProductLicenseRequest.

func (UpdateProductLicenseRequest) BinaryRequestBody

func (request UpdateProductLicenseRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (UpdateProductLicenseRequest) HTTPRequest

func (request UpdateProductLicenseRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (UpdateProductLicenseRequest) RetryPolicy

func (request UpdateProductLicenseRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (UpdateProductLicenseRequest) String

func (request UpdateProductLicenseRequest) String() string

func (UpdateProductLicenseRequest) ValidateEnumValue

func (request UpdateProductLicenseRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type UpdateProductLicenseResponse

type UpdateProductLicenseResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// The ProductLicense instance
	ProductLicense `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"`
}

UpdateProductLicenseResponse wrapper for the UpdateProductLicense operation

func (UpdateProductLicenseResponse) HTTPResponse

func (response UpdateProductLicenseResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (UpdateProductLicenseResponse) String

func (response UpdateProductLicenseResponse) String() string

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL