Skip to content

Commit b0a6005

Browse files
authored
GO SDK 5.8.0 Release
GO SDK 5.8.0 Release
2 parents 72941f7 + 07cae93 commit b0a6005

File tree

65 files changed

+1663
-37
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+1663
-37
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66

7+
## 5.8.0 - 2019-05-28
8+
### Added
9+
- Support for the Work Requests service, and tracking of a number of Core Services operations through work requests
10+
- Support for emulated volume attachments in Core Services
11+
- Support for changing the compartment of resources in the File Storage service
12+
- Support for tags in list operations in the File Storage service
13+
- Support for returning UI password creation dates in the Identity service
14+
715
## 5.7.0 - 2019-05-21
816
### Added
917
- Support for returning tags when listing instance configurations, instance pools, or autoscaling configurations in the Compute Autoscaling service

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
DOC_SERVER_URL=https:\/\/docs.cloud.oracle.com
22

3-
GEN_TARGETS = identity core objectstorage loadbalancer database audit dns filestorage email containerengine resourcesearch keymanagement announcementsservice healthchecks waas autoscaling streaming ons monitoring resourcemanager budget ##SPECNAME##
3+
GEN_TARGETS = identity core objectstorage loadbalancer database audit dns filestorage email containerengine resourcesearch keymanagement announcementsservice healthchecks waas autoscaling streaming ons monitoring resourcemanager budget workrequests ##SPECNAME##
44
NON_GEN_TARGETS = common common/auth objectstorage/transfer example
55
TARGETS = $(NON_GEN_TARGETS) $(GEN_TARGETS)
66

common/version.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved.
2+
// Code generated. DO NOT EDIT.
3+
4+
// Core Services API
5+
//
6+
// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm),
7+
// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and
8+
// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API
9+
// to manage resources such as virtual cloud networks (VCNs), compute instances, and
10+
// block storage volumes.
11+
//
12+
13+
package core
14+
15+
import (
16+
"encoding/json"
17+
"github.com/oracle/oci-go-sdk/common"
18+
)
19+
20+
// AttachEmulatedVolumeDetails The representation of AttachEmulatedVolumeDetails
21+
type AttachEmulatedVolumeDetails struct {
22+
23+
// The OCID of the instance.
24+
InstanceId *string `mandatory:"true" json:"instanceId"`
25+
26+
// The OCID of the volume.
27+
VolumeId *string `mandatory:"true" json:"volumeId"`
28+
29+
// The device name.
30+
Device *string `mandatory:"false" json:"device"`
31+
32+
// A user-friendly name. Does not have to be unique, and it cannot be changed. Avoid entering confidential information.
33+
DisplayName *string `mandatory:"false" json:"displayName"`
34+
35+
// Whether the attachment was created in read-only mode.
36+
IsReadOnly *bool `mandatory:"false" json:"isReadOnly"`
37+
}
38+
39+
//GetDevice returns Device
40+
func (m AttachEmulatedVolumeDetails) GetDevice() *string {
41+
return m.Device
42+
}
43+
44+
//GetDisplayName returns DisplayName
45+
func (m AttachEmulatedVolumeDetails) GetDisplayName() *string {
46+
return m.DisplayName
47+
}
48+
49+
//GetInstanceId returns InstanceId
50+
func (m AttachEmulatedVolumeDetails) GetInstanceId() *string {
51+
return m.InstanceId
52+
}
53+
54+
//GetIsReadOnly returns IsReadOnly
55+
func (m AttachEmulatedVolumeDetails) GetIsReadOnly() *bool {
56+
return m.IsReadOnly
57+
}
58+
59+
//GetVolumeId returns VolumeId
60+
func (m AttachEmulatedVolumeDetails) GetVolumeId() *string {
61+
return m.VolumeId
62+
}
63+
64+
func (m AttachEmulatedVolumeDetails) String() string {
65+
return common.PointerString(m)
66+
}
67+
68+
// MarshalJSON marshals to json representation
69+
func (m AttachEmulatedVolumeDetails) MarshalJSON() (buff []byte, e error) {
70+
type MarshalTypeAttachEmulatedVolumeDetails AttachEmulatedVolumeDetails
71+
s := struct {
72+
DiscriminatorParam string `json:"type"`
73+
MarshalTypeAttachEmulatedVolumeDetails
74+
}{
75+
"emulated",
76+
(MarshalTypeAttachEmulatedVolumeDetails)(m),
77+
}
78+
79+
return json.Marshal(&s)
80+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved.
2+
// Code generated. DO NOT EDIT.
3+
4+
// Core Services API
5+
//
6+
// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm),
7+
// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and
8+
// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API
9+
// to manage resources such as virtual cloud networks (VCNs), compute instances, and
10+
// block storage volumes.
11+
//
12+
13+
package core
14+
15+
import (
16+
"encoding/json"
17+
"github.com/oracle/oci-go-sdk/common"
18+
)
19+
20+
// AttachServiceDeterminedVolumeDetails The representation of AttachServiceDeterminedVolumeDetails
21+
type AttachServiceDeterminedVolumeDetails struct {
22+
23+
// The OCID of the instance.
24+
InstanceId *string `mandatory:"true" json:"instanceId"`
25+
26+
// The OCID of the volume.
27+
VolumeId *string `mandatory:"true" json:"volumeId"`
28+
29+
// The device name.
30+
Device *string `mandatory:"false" json:"device"`
31+
32+
// A user-friendly name. Does not have to be unique, and it cannot be changed. Avoid entering confidential information.
33+
DisplayName *string `mandatory:"false" json:"displayName"`
34+
35+
// Whether the attachment was created in read-only mode.
36+
IsReadOnly *bool `mandatory:"false" json:"isReadOnly"`
37+
}
38+
39+
//GetDevice returns Device
40+
func (m AttachServiceDeterminedVolumeDetails) GetDevice() *string {
41+
return m.Device
42+
}
43+
44+
//GetDisplayName returns DisplayName
45+
func (m AttachServiceDeterminedVolumeDetails) GetDisplayName() *string {
46+
return m.DisplayName
47+
}
48+
49+
//GetInstanceId returns InstanceId
50+
func (m AttachServiceDeterminedVolumeDetails) GetInstanceId() *string {
51+
return m.InstanceId
52+
}
53+
54+
//GetIsReadOnly returns IsReadOnly
55+
func (m AttachServiceDeterminedVolumeDetails) GetIsReadOnly() *bool {
56+
return m.IsReadOnly
57+
}
58+
59+
//GetVolumeId returns VolumeId
60+
func (m AttachServiceDeterminedVolumeDetails) GetVolumeId() *string {
61+
return m.VolumeId
62+
}
63+
64+
func (m AttachServiceDeterminedVolumeDetails) String() string {
65+
return common.PointerString(m)
66+
}
67+
68+
// MarshalJSON marshals to json representation
69+
func (m AttachServiceDeterminedVolumeDetails) MarshalJSON() (buff []byte, e error) {
70+
type MarshalTypeAttachServiceDeterminedVolumeDetails AttachServiceDeterminedVolumeDetails
71+
s := struct {
72+
DiscriminatorParam string `json:"type"`
73+
MarshalTypeAttachServiceDeterminedVolumeDetails
74+
}{
75+
"service_determined",
76+
(MarshalTypeAttachServiceDeterminedVolumeDetails)(m),
77+
}
78+
79+
return json.Marshal(&s)
80+
}

core/attach_volume_details.go

+8
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@ func (m *attachvolumedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}
7676

7777
var err error
7878
switch m.Type {
79+
case "service_determined":
80+
mm := AttachServiceDeterminedVolumeDetails{}
81+
err = json.Unmarshal(data, &mm)
82+
return mm, err
83+
case "emulated":
84+
mm := AttachEmulatedVolumeDetails{}
85+
err = json.Unmarshal(data, &mm)
86+
return mm, err
7987
case "iscsi":
8088
mm := AttachIScsiVolumeDetails{}
8189
err = json.Unmarshal(data, &mm)

core/create_image_request_response.go

+4
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ type CreateImageResponse struct {
5959
// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
6060
// a particular request, please provide the request ID.
6161
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
62+
63+
// The OCID of the work request. Use GetWorkRequest
64+
// with this ID to track the status of the request.
65+
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
6266
}
6367

6468
func (response CreateImageResponse) String() string {

core/emulated_volume_attachment.go

+132
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved.
2+
// Code generated. DO NOT EDIT.
3+
4+
// Core Services API
5+
//
6+
// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm),
7+
// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and
8+
// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API
9+
// to manage resources such as virtual cloud networks (VCNs), compute instances, and
10+
// block storage volumes.
11+
//
12+
13+
package core
14+
15+
import (
16+
"encoding/json"
17+
"github.com/oracle/oci-go-sdk/common"
18+
)
19+
20+
// EmulatedVolumeAttachment An Emulated volume attachment.
21+
type EmulatedVolumeAttachment struct {
22+
23+
// The availability domain of an instance.
24+
// Example: `Uocm:PHX-AD-1`
25+
AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"`
26+
27+
// The OCID of the compartment.
28+
CompartmentId *string `mandatory:"true" json:"compartmentId"`
29+
30+
// The OCID of the volume attachment.
31+
Id *string `mandatory:"true" json:"id"`
32+
33+
// The OCID of the instance the volume is attached to.
34+
InstanceId *string `mandatory:"true" json:"instanceId"`
35+
36+
// The date and time the volume was created, in the format defined by RFC3339.
37+
// Example: `2016-08-25T21:10:29.600Z`
38+
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
39+
40+
// The OCID of the volume.
41+
VolumeId *string `mandatory:"true" json:"volumeId"`
42+
43+
// The device name.
44+
Device *string `mandatory:"false" json:"device"`
45+
46+
// A user-friendly name. Does not have to be unique, and it cannot be changed.
47+
// Avoid entering confidential information.
48+
// Example: `My volume attachment`
49+
DisplayName *string `mandatory:"false" json:"displayName"`
50+
51+
// Whether the attachment was created in read-only mode.
52+
IsReadOnly *bool `mandatory:"false" json:"isReadOnly"`
53+
54+
// Whether in-transit encryption for the data volume's paravirtualized attachment is enabled or not.
55+
IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"`
56+
57+
// The current state of the volume attachment.
58+
LifecycleState VolumeAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
59+
}
60+
61+
//GetAvailabilityDomain returns AvailabilityDomain
62+
func (m EmulatedVolumeAttachment) GetAvailabilityDomain() *string {
63+
return m.AvailabilityDomain
64+
}
65+
66+
//GetCompartmentId returns CompartmentId
67+
func (m EmulatedVolumeAttachment) GetCompartmentId() *string {
68+
return m.CompartmentId
69+
}
70+
71+
//GetDevice returns Device
72+
func (m EmulatedVolumeAttachment) GetDevice() *string {
73+
return m.Device
74+
}
75+
76+
//GetDisplayName returns DisplayName
77+
func (m EmulatedVolumeAttachment) GetDisplayName() *string {
78+
return m.DisplayName
79+
}
80+
81+
//GetId returns Id
82+
func (m EmulatedVolumeAttachment) GetId() *string {
83+
return m.Id
84+
}
85+
86+
//GetInstanceId returns InstanceId
87+
func (m EmulatedVolumeAttachment) GetInstanceId() *string {
88+
return m.InstanceId
89+
}
90+
91+
//GetIsReadOnly returns IsReadOnly
92+
func (m EmulatedVolumeAttachment) GetIsReadOnly() *bool {
93+
return m.IsReadOnly
94+
}
95+
96+
//GetLifecycleState returns LifecycleState
97+
func (m EmulatedVolumeAttachment) GetLifecycleState() VolumeAttachmentLifecycleStateEnum {
98+
return m.LifecycleState
99+
}
100+
101+
//GetTimeCreated returns TimeCreated
102+
func (m EmulatedVolumeAttachment) GetTimeCreated() *common.SDKTime {
103+
return m.TimeCreated
104+
}
105+
106+
//GetVolumeId returns VolumeId
107+
func (m EmulatedVolumeAttachment) GetVolumeId() *string {
108+
return m.VolumeId
109+
}
110+
111+
//GetIsPvEncryptionInTransitEnabled returns IsPvEncryptionInTransitEnabled
112+
func (m EmulatedVolumeAttachment) GetIsPvEncryptionInTransitEnabled() *bool {
113+
return m.IsPvEncryptionInTransitEnabled
114+
}
115+
116+
func (m EmulatedVolumeAttachment) String() string {
117+
return common.PointerString(m)
118+
}
119+
120+
// MarshalJSON marshals to json representation
121+
func (m EmulatedVolumeAttachment) MarshalJSON() (buff []byte, e error) {
122+
type MarshalTypeEmulatedVolumeAttachment EmulatedVolumeAttachment
123+
s := struct {
124+
DiscriminatorParam string `json:"attachmentType"`
125+
MarshalTypeEmulatedVolumeAttachment
126+
}{
127+
"emulated",
128+
(MarshalTypeEmulatedVolumeAttachment)(m),
129+
}
130+
131+
return json.Marshal(&s)
132+
}

core/export_image_request_response.go

+4
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ type ExportImageResponse struct {
6767
// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
6868
// a particular request, please provide the request ID.
6969
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
70+
71+
// The OCID of the work request. Use GetWorkRequest
72+
// with this ID to track the status of the request.
73+
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
7074
}
7175

7276
func (response ExportImageResponse) String() string {

core/launch_instance_request_response.go

+4
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ type LaunchInstanceResponse struct {
5959
// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
6060
// a particular request, please provide the request ID.
6161
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
62+
63+
// The OCID of the work request. Use GetWorkRequest
64+
// with this ID to track the status of the request.
65+
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
6266
}
6367

6468
func (response LaunchInstanceResponse) String() string {

core/volume_attachment.go

+4
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ func (m *volumeattachment) UnmarshalPolymorphicJSON(data []byte) (interface{}, e
120120
mm := IScsiVolumeAttachment{}
121121
err = json.Unmarshal(data, &mm)
122122
return mm, err
123+
case "emulated":
124+
mm := EmulatedVolumeAttachment{}
125+
err = json.Unmarshal(data, &mm)
126+
return mm, err
123127
case "paravirtualized":
124128
mm := ParavirtualizedVolumeAttachment{}
125129
err = json.Unmarshal(data, &mm)

0 commit comments

Comments
 (0)