Skip to content

Commit 93e2278

Browse files
authored
Merge pull request #205 from oracle/release_2019-12-10
Releasing version 13.1.0
2 parents 273c156 + e48a58b commit 93e2278

File tree

114 files changed

+2807
-196
lines changed

Some content is hidden

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

114 files changed

+2807
-196
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ 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+
## 13.1.0 - 2019-12-10
8+
### Added
9+
- Support for etags on results of the List Objects API in the Object Storage service
10+
- Support for OCIDs on buckets in the Object Storage service
11+
- Support for content-disposition and cache-control headers on objects in the Object Storage service
12+
- Support for recovering deleted compartments in the Identity service
13+
- Support for sharing volumes across multiple instances in the Block Storage service
14+
- Support for connect harnesses and stream pools in the Streaming service
15+
- Support for associating file storage mount targets with network security groups in the File Storage service
16+
- Support for calling Oracle Cloud Infrastructure services in the uk-gov-london-1 region
17+
718
## 13.0.0 - 2019-11-26
819
### Added
920
- Support for maintenance windows on autonomous databases in the Database service

autoscaling/auto_scaling_configuration.go

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,22 @@ func (m *AutoScalingConfiguration) UnmarshalJSON(data []byte) (e error) {
7979
if e != nil {
8080
return
8181
}
82+
var nn interface{}
8283
m.DefinedTags = model.DefinedTags
84+
8385
m.DisplayName = model.DisplayName
86+
8487
m.FreeformTags = model.FreeformTags
88+
8589
m.CoolDownInSeconds = model.CoolDownInSeconds
90+
8691
m.IsEnabled = model.IsEnabled
92+
8793
m.CompartmentId = model.CompartmentId
94+
8895
m.Id = model.Id
89-
nn, e := model.Resource.UnmarshalPolymorphicJSON(model.Resource.JsonData)
96+
97+
nn, e = model.Resource.UnmarshalPolymorphicJSON(model.Resource.JsonData)
9098
if e != nil {
9199
return
92100
}
@@ -95,18 +103,20 @@ func (m *AutoScalingConfiguration) UnmarshalJSON(data []byte) (e error) {
95103
} else {
96104
m.Resource = nil
97105
}
106+
98107
m.Policies = make([]AutoScalingPolicy, len(model.Policies))
99108
for i, n := range model.Policies {
100-
nn, err := n.UnmarshalPolymorphicJSON(n.JsonData)
101-
if err != nil {
102-
return err
109+
nn, e = n.UnmarshalPolymorphicJSON(n.JsonData)
110+
if e != nil {
111+
return e
103112
}
104113
if nn != nil {
105114
m.Policies[i] = nn.(AutoScalingPolicy)
106115
} else {
107116
m.Policies[i] = nil
108117
}
109118
}
119+
110120
m.TimeCreated = model.TimeCreated
111121
return
112122
}

autoscaling/auto_scaling_configuration_summary.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,14 @@ func (m *AutoScalingConfigurationSummary) UnmarshalJSON(data []byte) (e error) {
7272
if e != nil {
7373
return
7474
}
75+
var nn interface{}
7576
m.DisplayName = model.DisplayName
77+
7678
m.CoolDownInSeconds = model.CoolDownInSeconds
79+
7780
m.IsEnabled = model.IsEnabled
78-
nn, e := model.Resource.UnmarshalPolymorphicJSON(model.Resource.JsonData)
81+
82+
nn, e = model.Resource.UnmarshalPolymorphicJSON(model.Resource.JsonData)
7983
if e != nil {
8084
return
8185
}
@@ -84,10 +88,15 @@ func (m *AutoScalingConfigurationSummary) UnmarshalJSON(data []byte) (e error) {
8488
} else {
8589
m.Resource = nil
8690
}
91+
8792
m.DefinedTags = model.DefinedTags
93+
8894
m.FreeformTags = model.FreeformTags
95+
8996
m.CompartmentId = model.CompartmentId
97+
9098
m.Id = model.Id
99+
91100
m.TimeCreated = model.TimeCreated
92101
return
93102
}

autoscaling/create_auto_scaling_configuration_details.go

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,25 +66,33 @@ func (m *CreateAutoScalingConfigurationDetails) UnmarshalJSON(data []byte) (e er
6666
if e != nil {
6767
return
6868
}
69+
var nn interface{}
6970
m.DefinedTags = model.DefinedTags
71+
7072
m.DisplayName = model.DisplayName
73+
7174
m.FreeformTags = model.FreeformTags
75+
7276
m.CoolDownInSeconds = model.CoolDownInSeconds
77+
7378
m.IsEnabled = model.IsEnabled
79+
7480
m.CompartmentId = model.CompartmentId
81+
7582
m.Policies = make([]CreateAutoScalingPolicyDetails, len(model.Policies))
7683
for i, n := range model.Policies {
77-
nn, err := n.UnmarshalPolymorphicJSON(n.JsonData)
78-
if err != nil {
79-
return err
84+
nn, e = n.UnmarshalPolymorphicJSON(n.JsonData)
85+
if e != nil {
86+
return e
8087
}
8188
if nn != nil {
8289
m.Policies[i] = nn.(CreateAutoScalingPolicyDetails)
8390
} else {
8491
m.Policies[i] = nil
8592
}
8693
}
87-
nn, e := model.Resource.UnmarshalPolymorphicJSON(model.Resource.JsonData)
94+
95+
nn, e = model.Resource.UnmarshalPolymorphicJSON(model.Resource.JsonData)
8896
if e != nil {
8997
return
9098
}

common/version.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/attach_emulated_volume_details.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ type AttachEmulatedVolumeDetails struct {
3434

3535
// Whether the attachment was created in read-only mode.
3636
IsReadOnly *bool `mandatory:"false" json:"isReadOnly"`
37+
38+
// Whether the attachment should be created in shareable mode. If an attachment
39+
// is created in shareable mode, then other instances can attach the same volume, provided
40+
// that they also create their attachments in shareable mode. Only certain volume types can
41+
// be attached in shareable mode. Defaults to false if not specified.
42+
IsShareable *bool `mandatory:"false" json:"isShareable"`
3743
}
3844

3945
//GetDevice returns Device
@@ -56,6 +62,11 @@ func (m AttachEmulatedVolumeDetails) GetIsReadOnly() *bool {
5662
return m.IsReadOnly
5763
}
5864

65+
//GetIsShareable returns IsShareable
66+
func (m AttachEmulatedVolumeDetails) GetIsShareable() *bool {
67+
return m.IsShareable
68+
}
69+
5970
//GetVolumeId returns VolumeId
6071
func (m AttachEmulatedVolumeDetails) GetVolumeId() *string {
6172
return m.VolumeId

core/attach_i_scsi_volume_details.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ type AttachIScsiVolumeDetails struct {
3535
// Whether the attachment was created in read-only mode.
3636
IsReadOnly *bool `mandatory:"false" json:"isReadOnly"`
3737

38+
// Whether the attachment should be created in shareable mode. If an attachment
39+
// is created in shareable mode, then other instances can attach the same volume, provided
40+
// that they also create their attachments in shareable mode. Only certain volume types can
41+
// be attached in shareable mode. Defaults to false if not specified.
42+
IsShareable *bool `mandatory:"false" json:"isShareable"`
43+
3844
// Whether to use CHAP authentication for the volume attachment. Defaults to false.
3945
UseChap *bool `mandatory:"false" json:"useChap"`
4046
}
@@ -59,6 +65,11 @@ func (m AttachIScsiVolumeDetails) GetIsReadOnly() *bool {
5965
return m.IsReadOnly
6066
}
6167

68+
//GetIsShareable returns IsShareable
69+
func (m AttachIScsiVolumeDetails) GetIsShareable() *bool {
70+
return m.IsShareable
71+
}
72+
6273
//GetVolumeId returns VolumeId
6374
func (m AttachIScsiVolumeDetails) GetVolumeId() *string {
6475
return m.VolumeId

core/attach_paravirtualized_volume_details.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ type AttachParavirtualizedVolumeDetails struct {
3535
// Whether the attachment was created in read-only mode.
3636
IsReadOnly *bool `mandatory:"false" json:"isReadOnly"`
3737

38+
// Whether the attachment should be created in shareable mode. If an attachment
39+
// is created in shareable mode, then other instances can attach the same volume, provided
40+
// that they also create their attachments in shareable mode. Only certain volume types can
41+
// be attached in shareable mode. Defaults to false if not specified.
42+
IsShareable *bool `mandatory:"false" json:"isShareable"`
43+
3844
// Whether to enable in-transit encryption for the data volume's paravirtualized attachment. The default value is false.
3945
IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"`
4046
}
@@ -59,6 +65,11 @@ func (m AttachParavirtualizedVolumeDetails) GetIsReadOnly() *bool {
5965
return m.IsReadOnly
6066
}
6167

68+
//GetIsShareable returns IsShareable
69+
func (m AttachParavirtualizedVolumeDetails) GetIsShareable() *bool {
70+
return m.IsShareable
71+
}
72+
6273
//GetVolumeId returns VolumeId
6374
func (m AttachParavirtualizedVolumeDetails) GetVolumeId() *string {
6475
return m.VolumeId

core/attach_service_determined_volume_details.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ type AttachServiceDeterminedVolumeDetails struct {
3434

3535
// Whether the attachment was created in read-only mode.
3636
IsReadOnly *bool `mandatory:"false" json:"isReadOnly"`
37+
38+
// Whether the attachment should be created in shareable mode. If an attachment
39+
// is created in shareable mode, then other instances can attach the same volume, provided
40+
// that they also create their attachments in shareable mode. Only certain volume types can
41+
// be attached in shareable mode. Defaults to false if not specified.
42+
IsShareable *bool `mandatory:"false" json:"isShareable"`
3743
}
3844

3945
//GetDevice returns Device
@@ -56,6 +62,11 @@ func (m AttachServiceDeterminedVolumeDetails) GetIsReadOnly() *bool {
5662
return m.IsReadOnly
5763
}
5864

65+
//GetIsShareable returns IsShareable
66+
func (m AttachServiceDeterminedVolumeDetails) GetIsShareable() *bool {
67+
return m.IsShareable
68+
}
69+
5970
//GetVolumeId returns VolumeId
6071
func (m AttachServiceDeterminedVolumeDetails) GetVolumeId() *string {
6172
return m.VolumeId

core/attach_volume_details.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ type AttachVolumeDetails interface {
3434

3535
// Whether the attachment was created in read-only mode.
3636
GetIsReadOnly() *bool
37+
38+
// Whether the attachment should be created in shareable mode. If an attachment
39+
// is created in shareable mode, then other instances can attach the same volume, provided
40+
// that they also create their attachments in shareable mode. Only certain volume types can
41+
// be attached in shareable mode. Defaults to false if not specified.
42+
GetIsShareable() *bool
3743
}
3844

3945
type attachvolumedetails struct {
@@ -43,6 +49,7 @@ type attachvolumedetails struct {
4349
Device *string `mandatory:"false" json:"device"`
4450
DisplayName *string `mandatory:"false" json:"displayName"`
4551
IsReadOnly *bool `mandatory:"false" json:"isReadOnly"`
52+
IsShareable *bool `mandatory:"false" json:"isShareable"`
4653
Type string `json:"type"`
4754
}
4855

@@ -62,6 +69,7 @@ func (m *attachvolumedetails) UnmarshalJSON(data []byte) error {
6269
m.Device = s.Model.Device
6370
m.DisplayName = s.Model.DisplayName
6471
m.IsReadOnly = s.Model.IsReadOnly
72+
m.IsShareable = s.Model.IsShareable
6573
m.Type = s.Model.Type
6674

6775
return err
@@ -122,6 +130,11 @@ func (m attachvolumedetails) GetIsReadOnly() *bool {
122130
return m.IsReadOnly
123131
}
124132

133+
//GetIsShareable returns IsShareable
134+
func (m attachvolumedetails) GetIsShareable() *bool {
135+
return m.IsShareable
136+
}
137+
125138
func (m attachvolumedetails) String() string {
126139
return common.PointerString(m)
127140
}

core/boot_volume.go

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,24 @@ func (m *BootVolume) UnmarshalJSON(data []byte) (e error) {
117117
if e != nil {
118118
return
119119
}
120+
var nn interface{}
120121
m.DefinedTags = model.DefinedTags
122+
121123
m.SystemTags = model.SystemTags
124+
122125
m.DisplayName = model.DisplayName
126+
123127
m.FreeformTags = model.FreeformTags
128+
124129
m.ImageId = model.ImageId
130+
125131
m.IsHydrated = model.IsHydrated
132+
126133
m.VpusPerGB = model.VpusPerGB
134+
127135
m.SizeInGBs = model.SizeInGBs
128-
nn, e := model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData)
136+
137+
nn, e = model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData)
129138
if e != nil {
130139
return
131140
}
@@ -134,13 +143,21 @@ func (m *BootVolume) UnmarshalJSON(data []byte) (e error) {
134143
} else {
135144
m.SourceDetails = nil
136145
}
146+
137147
m.VolumeGroupId = model.VolumeGroupId
148+
138149
m.KmsKeyId = model.KmsKeyId
150+
139151
m.AvailabilityDomain = model.AvailabilityDomain
152+
140153
m.CompartmentId = model.CompartmentId
154+
141155
m.Id = model.Id
156+
142157
m.LifecycleState = model.LifecycleState
158+
143159
m.SizeInMBs = model.SizeInMBs
160+
144161
m.TimeCreated = model.TimeCreated
145162
return
146163
}

core/create_boot_volume_details.go

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,26 @@ func (m *CreateBootVolumeDetails) UnmarshalJSON(data []byte) (e error) {
8282
if e != nil {
8383
return
8484
}
85+
var nn interface{}
8586
m.BackupPolicyId = model.BackupPolicyId
87+
8688
m.DefinedTags = model.DefinedTags
89+
8790
m.DisplayName = model.DisplayName
91+
8892
m.FreeformTags = model.FreeformTags
93+
8994
m.KmsKeyId = model.KmsKeyId
95+
9096
m.SizeInGBs = model.SizeInGBs
97+
9198
m.VpusPerGB = model.VpusPerGB
99+
92100
m.AvailabilityDomain = model.AvailabilityDomain
101+
93102
m.CompartmentId = model.CompartmentId
94-
nn, e := model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData)
103+
104+
nn, e = model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData)
95105
if e != nil {
96106
return
97107
}

core/create_dhcp_details.go

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,22 +62,28 @@ func (m *CreateDhcpDetails) UnmarshalJSON(data []byte) (e error) {
6262
if e != nil {
6363
return
6464
}
65+
var nn interface{}
6566
m.DefinedTags = model.DefinedTags
67+
6668
m.DisplayName = model.DisplayName
69+
6770
m.FreeformTags = model.FreeformTags
71+
6872
m.CompartmentId = model.CompartmentId
73+
6974
m.Options = make([]DhcpOption, len(model.Options))
7075
for i, n := range model.Options {
71-
nn, err := n.UnmarshalPolymorphicJSON(n.JsonData)
72-
if err != nil {
73-
return err
76+
nn, e = n.UnmarshalPolymorphicJSON(n.JsonData)
77+
if e != nil {
78+
return e
7479
}
7580
if nn != nil {
7681
m.Options[i] = nn.(DhcpOption)
7782
} else {
7883
m.Options[i] = nil
7984
}
8085
}
86+
8187
m.VcnId = model.VcnId
8288
return
8389
}

0 commit comments

Comments
 (0)