1// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates.  All rights reserved.
2// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
3// Code generated. DO NOT EDIT.
4
5package keymanagement
6
7import (
8	"github.com/oracle/oci-go-sdk/common"
9	"net/http"
10)
11
12// GetVaultUsageRequest wrapper for the GetVaultUsage operation
13type GetVaultUsageRequest struct {
14
15	// The OCID of the vault.
16	VaultId *string `mandatory:"true" contributesTo:"path" name:"vaultId"`
17
18	// Unique identifier for the request. If provided, the returned request ID
19	// will include this value. Otherwise, a random request ID will be
20	// generated by the service.
21	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
22
23	// Metadata about the request. This information will not be transmitted to the service, but
24	// represents information that the SDK will consume to drive retry behavior.
25	RequestMetadata common.RequestMetadata
26}
27
28func (request GetVaultUsageRequest) String() string {
29	return common.PointerString(request)
30}
31
32// HTTPRequest implements the OCIRequest interface
33func (request GetVaultUsageRequest) HTTPRequest(method, path string) (http.Request, error) {
34	return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
35}
36
37// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
38func (request GetVaultUsageRequest) RetryPolicy() *common.RetryPolicy {
39	return request.RequestMetadata.RetryPolicy
40}
41
42// GetVaultUsageResponse wrapper for the GetVaultUsage operation
43type GetVaultUsageResponse struct {
44
45	// The underlying http response
46	RawResponse *http.Response
47
48	// The VaultUsage instance
49	VaultUsage `presentIn:"body"`
50
51	// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
52	// a particular request, please provide the request ID.
53	OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
54}
55
56func (response GetVaultUsageResponse) String() string {
57	return common.PointerString(response)
58}
59
60// HTTPResponse implements the OCIResponse interface
61func (response GetVaultUsageResponse) HTTPResponse() *http.Response {
62	return response.RawResponse
63}
64