Skip to content

Commit 5eb388c

Browse files
authored
GO SDK 15.4.0 Release
Squashed commit of the following: commit 685a2986b824ba209c2c5f8ae6f42463710e2757 Author: Sun Yan <[email protected]> Date: Mon Feb 3 22:17:45 2020 +0000 Releasing version 15 4 0
1 parent a9ea689 commit 5eb388c

File tree

81 files changed

+5585
-28
lines changed

Some content is hidden

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

81 files changed

+5585
-28
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ 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+
## 15.4.0 - 2020-02-04
8+
## Added
9+
- Support for the Data Science service
10+
- Support for calling Oracle Cloud Infrastructure services in the ap-osaka-1 and ap-melbourne-1 regions
11+
712
## 15.3.0 - 2020-01-28
813
## Added
914
- Support for the Application Migration service

Makefile

Lines changed: 1 addition & 1 deletion
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 workrequests functions limits events dts oce oda analytics integration osmanagement marketplace apigateway applicationmigration datacatalog dataflow ##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 functions limits events dts oce oda analytics integration osmanagement marketplace apigateway applicationmigration datacatalog dataflow datascience ##SPECNAME##
44
NON_GEN_TARGETS = common common/auth objectstorage/transfer example
55
TARGETS = $(NON_GEN_TARGETS) $(GEN_TARGETS)
66

common/common.go

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,14 @@ const (
2626
RegionLHR Region = "uk-london-1"
2727
//RegionAPTokyo1 region for tokyo
2828
RegionAPTokyo1 Region = "ap-tokyo-1"
29+
//RegionAPOsaka1 region for Osaka
30+
RegionAPOsaka1 Region = "ap-osaka-1"
2931
//RegionAPSeoul1 region for seoul
3032
RegionAPSeoul1 Region = "ap-seoul-1"
3133
//RegionAPMumbai1 region for mumbai
3234
RegionAPMumbai1 Region = "ap-mumbai-1"
35+
//RegionAPMelbourne1 region for Melbourne
36+
RegionAPMelbourne1 Region = "ap-melbourne-1"
3337
//RegionEUZurich1 region for Zurich
3438
RegionEUZurich1 Region = "eu-zurich-1"
3539
//RegionSASaopaulo1 region for Sao Paulo
@@ -59,17 +63,19 @@ var realm = map[string]string{
5963
}
6064

6165
var regionRealm = map[Region]string{
62-
RegionPHX: "oc1",
63-
RegionIAD: "oc1",
64-
RegionFRA: "oc1",
65-
RegionLHR: "oc1",
66-
RegionCAToronto1: "oc1",
67-
RegionAPTokyo1: "oc1",
68-
RegionAPSeoul1: "oc1",
69-
RegionAPSydney1: "oc1",
70-
RegionAPMumbai1: "oc1",
71-
RegionEUZurich1: "oc1",
72-
RegionSASaopaulo1: "oc1",
66+
RegionPHX: "oc1",
67+
RegionIAD: "oc1",
68+
RegionFRA: "oc1",
69+
RegionLHR: "oc1",
70+
RegionCAToronto1: "oc1",
71+
RegionAPTokyo1: "oc1",
72+
RegionAPOsaka1: "oc1",
73+
RegionAPSeoul1: "oc1",
74+
RegionAPSydney1: "oc1",
75+
RegionAPMumbai1: "oc1",
76+
RegionAPMelbourne1: "oc1",
77+
RegionEUZurich1: "oc1",
78+
RegionSASaopaulo1: "oc1",
7379

7480
RegionUSLangley1: "oc2",
7581
RegionUSLuke1: "oc2",
@@ -130,10 +136,14 @@ func StringToRegion(stringRegion string) (r Region) {
130136
r = RegionLHR
131137
case "nrt", "ap-tokyo-1":
132138
r = RegionAPTokyo1
139+
case "kix", "ap-osaka-1":
140+
r = RegionAPOsaka1
133141
case "icn", "ap-seoul-1":
134142
r = RegionAPSeoul1
135143
case "bom", "ap-mumbai-1":
136144
r = RegionAPMumbai1
145+
case "mel", "ap-melbourne-1":
146+
r = RegionAPMelbourne1
137147
case "zrh", "eu-zurich-1":
138148
r = RegionEUZurich1
139149
case "gru", "sa-saopaulo-1":

common/common_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,18 @@ func TestStringToRegion(t *testing.T) {
103103
region = StringToRegion("nrt")
104104
assert.Equal(t, RegionAPTokyo1, region)
105105

106+
region = StringToRegion("kix")
107+
assert.Equal(t, RegionAPOsaka1, region)
108+
106109
region = StringToRegion("gru")
107110
assert.Equal(t, RegionSASaopaulo1, region)
108111

109112
region = StringToRegion("syd")
110113
assert.Equal(t, RegionAPSydney1, region)
111114

115+
region = StringToRegion("mel")
116+
assert.Equal(t, RegionAPMelbourne1, region)
117+
112118
region = StringToRegion("uk-gov-london-1")
113119
assert.Equal(t, RegionUKGovLondon1, region)
114120

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/volume_backup_schedule.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ const (
223223
)
224224

225225
var mappingVolumeBackupScheduleTimeZone = map[string]VolumeBackupScheduleTimeZoneEnum{
226-
"UTC": VolumeBackupScheduleTimeZoneUtc,
226+
"UTC": VolumeBackupScheduleTimeZoneUtc,
227227
"REGIONAL_DATA_CENTER_TIME": VolumeBackupScheduleTimeZoneRegionalDataCenterTime,
228228
}
229229

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved.
2+
// Code generated. DO NOT EDIT.
3+
4+
package datascience
5+
6+
import (
7+
"github.com/oracle/oci-go-sdk/common"
8+
"net/http"
9+
)
10+
11+
// ActivateModelRequest wrapper for the ActivateModel operation
12+
type ActivateModelRequest struct {
13+
14+
// The OCID (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/identifiers.htm) of the model.
15+
ModelId *string `mandatory:"true" contributesTo:"path" name:"modelId"`
16+
17+
// For optimistic concurrency control. In the PUT or DELETE call
18+
// for a resource, set the `if-match` parameter to the value of the
19+
// etag from a previous GET or POST response for that resource.
20+
// The resource will be updated or deleted only if the `etag` you
21+
// provide matches the resource's current `etag` value.
22+
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
23+
24+
// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
25+
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
26+
27+
// Metadata about the request. This information will not be transmitted to the service, but
28+
// represents information that the SDK will consume to drive retry behavior.
29+
RequestMetadata common.RequestMetadata
30+
}
31+
32+
func (request ActivateModelRequest) String() string {
33+
return common.PointerString(request)
34+
}
35+
36+
// HTTPRequest implements the OCIRequest interface
37+
func (request ActivateModelRequest) HTTPRequest(method, path string) (http.Request, error) {
38+
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
39+
}
40+
41+
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
42+
func (request ActivateModelRequest) RetryPolicy() *common.RetryPolicy {
43+
return request.RequestMetadata.RetryPolicy
44+
}
45+
46+
// ActivateModelResponse wrapper for the ActivateModel operation
47+
type ActivateModelResponse struct {
48+
49+
// The underlying http response
50+
RawResponse *http.Response
51+
52+
// The Model instance
53+
Model `presentIn:"body"`
54+
55+
// For optimistic concurrency control. See ETags for Optimistic Concurrency Control (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven).
56+
Etag *string `presentIn:"header" name:"etag"`
57+
58+
// Unique Oracle-assigned identifier for the request. If you need to contact
59+
// Oracle about a particular request, please provide the request ID.
60+
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
61+
}
62+
63+
func (response ActivateModelResponse) String() string {
64+
return common.PointerString(response)
65+
}
66+
67+
// HTTPResponse implements the OCIResponse interface
68+
func (response ActivateModelResponse) HTTPResponse() *http.Response {
69+
return response.RawResponse
70+
}
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved.
2+
// Code generated. DO NOT EDIT.
3+
4+
package datascience
5+
6+
import (
7+
"github.com/oracle/oci-go-sdk/common"
8+
"net/http"
9+
)
10+
11+
// ActivateNotebookSessionRequest wrapper for the ActivateNotebookSession operation
12+
type ActivateNotebookSessionRequest struct {
13+
14+
// The OCID (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/identifiers.htm) of the notebook session.
15+
NotebookSessionId *string `mandatory:"true" contributesTo:"path" name:"notebookSessionId"`
16+
17+
// For optimistic concurrency control. In the PUT or DELETE call
18+
// for a resource, set the `if-match` parameter to the value of the
19+
// etag from a previous GET or POST response for that resource.
20+
// The resource will be updated or deleted only if the `etag` you
21+
// provide matches the resource's current `etag` value.
22+
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
23+
24+
// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
25+
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
26+
27+
// Metadata about the request. This information will not be transmitted to the service, but
28+
// represents information that the SDK will consume to drive retry behavior.
29+
RequestMetadata common.RequestMetadata
30+
}
31+
32+
func (request ActivateNotebookSessionRequest) String() string {
33+
return common.PointerString(request)
34+
}
35+
36+
// HTTPRequest implements the OCIRequest interface
37+
func (request ActivateNotebookSessionRequest) HTTPRequest(method, path string) (http.Request, error) {
38+
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
39+
}
40+
41+
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
42+
func (request ActivateNotebookSessionRequest) RetryPolicy() *common.RetryPolicy {
43+
return request.RequestMetadata.RetryPolicy
44+
}
45+
46+
// ActivateNotebookSessionResponse wrapper for the ActivateNotebookSession operation
47+
type ActivateNotebookSessionResponse struct {
48+
49+
// The underlying http response
50+
RawResponse *http.Response
51+
52+
// The OCID (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest)
53+
// with this ID to track the status of the request.
54+
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
55+
56+
// Unique Oracle-assigned identifier for the request. If you need to contact
57+
// Oracle about a particular request, please provide the request ID.
58+
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
59+
}
60+
61+
func (response ActivateNotebookSessionResponse) String() string {
62+
return common.PointerString(response)
63+
}
64+
65+
// HTTPResponse implements the OCIResponse interface
66+
func (response ActivateNotebookSessionResponse) HTTPResponse() *http.Response {
67+
return response.RawResponse
68+
}
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved.
2+
// Code generated. DO NOT EDIT.
3+
4+
package datascience
5+
6+
import (
7+
"github.com/oracle/oci-go-sdk/common"
8+
"net/http"
9+
)
10+
11+
// CancelWorkRequestRequest wrapper for the CancelWorkRequest operation
12+
type CancelWorkRequestRequest struct {
13+
14+
// The OCID (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/identifiers.htm) of the work request.
15+
WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"`
16+
17+
// For optimistic concurrency control. In the PUT or DELETE call
18+
// for a resource, set the `if-match` parameter to the value of the
19+
// etag from a previous GET or POST response for that resource.
20+
// The resource will be updated or deleted only if the `etag` you
21+
// provide matches the resource's current `etag` value.
22+
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
23+
24+
// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
25+
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
26+
27+
// Metadata about the request. This information will not be transmitted to the service, but
28+
// represents information that the SDK will consume to drive retry behavior.
29+
RequestMetadata common.RequestMetadata
30+
}
31+
32+
func (request CancelWorkRequestRequest) String() string {
33+
return common.PointerString(request)
34+
}
35+
36+
// HTTPRequest implements the OCIRequest interface
37+
func (request CancelWorkRequestRequest) HTTPRequest(method, path string) (http.Request, error) {
38+
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
39+
}
40+
41+
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
42+
func (request CancelWorkRequestRequest) RetryPolicy() *common.RetryPolicy {
43+
return request.RequestMetadata.RetryPolicy
44+
}
45+
46+
// CancelWorkRequestResponse wrapper for the CancelWorkRequest operation
47+
type CancelWorkRequestResponse struct {
48+
49+
// The underlying http response
50+
RawResponse *http.Response
51+
52+
// Unique Oracle-assigned identifier for the request. If you need to contact
53+
// Oracle about a particular request, please provide the request ID.
54+
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
55+
}
56+
57+
func (response CancelWorkRequestResponse) String() string {
58+
return common.PointerString(response)
59+
}
60+
61+
// HTTPResponse implements the OCIResponse interface
62+
func (response CancelWorkRequestResponse) HTTPResponse() *http.Response {
63+
return response.RawResponse
64+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved.
2+
// Code generated. DO NOT EDIT.
3+
4+
// Data Science API
5+
//
6+
// Use the Data Science APIs to organize your data science work, access data and computing resources, and build, train, deploy, and manage models on Oracle Cloud.
7+
//
8+
9+
package datascience
10+
11+
import (
12+
"github.com/oracle/oci-go-sdk/common"
13+
)
14+
15+
// ChangeModelCompartmentDetails Details for changing the compartment of a model.
16+
type ChangeModelCompartmentDetails struct {
17+
18+
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment where the resource should be moved.
19+
CompartmentId *string `mandatory:"true" json:"compartmentId"`
20+
}
21+
22+
func (m ChangeModelCompartmentDetails) String() string {
23+
return common.PointerString(m)
24+
}

0 commit comments

Comments
 (0)