1// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved.
2// Code generated. DO NOT EDIT.
3
4package core
5
6import (
7	"github.com/oracle/oci-go-sdk/common"
8	"net/http"
9)
10
11// UpdateVolumeGroupRequest wrapper for the UpdateVolumeGroup operation
12type UpdateVolumeGroupRequest struct {
13
14	// The Oracle Cloud ID (OCID) that uniquely identifies the volume group.
15	VolumeGroupId *string `mandatory:"true" contributesTo:"path" name:"volumeGroupId"`
16
17	// Update volume group's set of volumes and/or display name
18	UpdateVolumeGroupDetails `contributesTo:"body"`
19
20	// For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
21	// parameter to the value of the etag from a previous GET or POST response for that resource.  The resource
22	// will be updated or deleted only if the etag you provide matches the resource's current etag value.
23	IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
24
25	// Unique Oracle-assigned identifier for the request.
26	// If you need to contact Oracle about a particular request, please provide the request ID.
27	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
28
29	// Metadata about the request. This information will not be transmitted to the service, but
30	// represents information that the SDK will consume to drive retry behavior.
31	RequestMetadata common.RequestMetadata
32}
33
34func (request UpdateVolumeGroupRequest) String() string {
35	return common.PointerString(request)
36}
37
38// HTTPRequest implements the OCIRequest interface
39func (request UpdateVolumeGroupRequest) HTTPRequest(method, path string) (http.Request, error) {
40	return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
41}
42
43// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
44func (request UpdateVolumeGroupRequest) RetryPolicy() *common.RetryPolicy {
45	return request.RequestMetadata.RetryPolicy
46}
47
48// UpdateVolumeGroupResponse wrapper for the UpdateVolumeGroup operation
49type UpdateVolumeGroupResponse struct {
50
51	// The underlying http response
52	RawResponse *http.Response
53
54	// The VolumeGroup instance
55	VolumeGroup `presentIn:"body"`
56
57	// For optimistic concurrency control. See `if-match`.
58	Etag *string `presentIn:"header" name:"etag"`
59
60	// Unique Oracle-assigned identifier for the request. If you need to contact
61	// Oracle about a particular request, please provide the request ID.
62	OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
63}
64
65func (response UpdateVolumeGroupResponse) String() string {
66	return common.PointerString(response)
67}
68
69// HTTPResponse implements the OCIResponse interface
70func (response UpdateVolumeGroupResponse) HTTPResponse() *http.Response {
71	return response.RawResponse
72}
73