Skip to content

Commit 17bf0dc

Browse files
authored
Releasing version 17.4.0
Releasing version 17.4.0
2 parents 932166f + 00e8033 commit 17bf0dc

34 files changed

+262
-101
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+
## 17.4.0 - 2020-04-14
8+
### Added
9+
- Support for access types on instances in the Content and Experience service
10+
- Support for identity contexts in the Search service
11+
712
## 17.3.0 - 2020-04-07
813
### Added
914
- Support for changing compartments of runs and applications in the Data Flow service

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

datacatalog/get_job_definition_request_response.go

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -94,21 +94,21 @@ const (
9494
)
9595

9696
var mappingGetJobDefinitionFields = map[string]GetJobDefinitionFieldsEnum{
97-
"key": GetJobDefinitionFieldsKey,
98-
"displayName": GetJobDefinitionFieldsDisplayname,
99-
"description": GetJobDefinitionFieldsDescription,
100-
"catalogId": GetJobDefinitionFieldsCatalogid,
101-
"jobType": GetJobDefinitionFieldsJobtype,
102-
"isIncremental": GetJobDefinitionFieldsIsincremental,
103-
"dataAssetKey": GetJobDefinitionFieldsDataassetkey,
104-
"connectionKey": GetJobDefinitionFieldsConnectionkey,
105-
"internalVersion": GetJobDefinitionFieldsInternalversion,
106-
"lifecycleState": GetJobDefinitionFieldsLifecyclestate,
107-
"timeCreated": GetJobDefinitionFieldsTimecreated,
108-
"timeUpdated": GetJobDefinitionFieldsTimeupdated,
109-
"createdById": GetJobDefinitionFieldsCreatedbyid,
110-
"updatedById": GetJobDefinitionFieldsUpdatedbyid,
111-
"uri": GetJobDefinitionFieldsUri,
97+
"key": GetJobDefinitionFieldsKey,
98+
"displayName": GetJobDefinitionFieldsDisplayname,
99+
"description": GetJobDefinitionFieldsDescription,
100+
"catalogId": GetJobDefinitionFieldsCatalogid,
101+
"jobType": GetJobDefinitionFieldsJobtype,
102+
"isIncremental": GetJobDefinitionFieldsIsincremental,
103+
"dataAssetKey": GetJobDefinitionFieldsDataassetkey,
104+
"connectionKey": GetJobDefinitionFieldsConnectionkey,
105+
"internalVersion": GetJobDefinitionFieldsInternalversion,
106+
"lifecycleState": GetJobDefinitionFieldsLifecyclestate,
107+
"timeCreated": GetJobDefinitionFieldsTimecreated,
108+
"timeUpdated": GetJobDefinitionFieldsTimeupdated,
109+
"createdById": GetJobDefinitionFieldsCreatedbyid,
110+
"updatedById": GetJobDefinitionFieldsUpdatedbyid,
111+
"uri": GetJobDefinitionFieldsUri,
112112
"isSampleDataExtracted": GetJobDefinitionFieldsIssampledataextracted,
113113
"sampleDataSizeInMBs": GetJobDefinitionFieldsSampledatasizeinmbs,
114114
"properties": GetJobDefinitionFieldsProperties,

datacatalog/get_term_request_response.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -103,18 +103,18 @@ var mappingGetTermFields = map[string]GetTermFieldsEnum{
103103
"glossaryKey": GetTermFieldsGlossarykey,
104104
"parentTermKey": GetTermFieldsParenttermkey,
105105
"isAllowedToHaveChildTerms": GetTermFieldsIsallowedtohavechildterms,
106-
"path": GetTermFieldsPath,
107-
"lifecycleState": GetTermFieldsLifecyclestate,
108-
"timeCreated": GetTermFieldsTimecreated,
109-
"timeUpdated": GetTermFieldsTimeupdated,
110-
"createdById": GetTermFieldsCreatedbyid,
111-
"updatedById": GetTermFieldsUpdatedbyid,
112-
"owner": GetTermFieldsOwner,
113-
"workflowStatus": GetTermFieldsWorkflowstatus,
114-
"uri": GetTermFieldsUri,
115-
"relatedTerms": GetTermFieldsRelatedterms,
116-
"associatedObjectCount": GetTermFieldsAssociatedobjectcount,
117-
"associatedObjects": GetTermFieldsAssociatedobjects,
106+
"path": GetTermFieldsPath,
107+
"lifecycleState": GetTermFieldsLifecyclestate,
108+
"timeCreated": GetTermFieldsTimecreated,
109+
"timeUpdated": GetTermFieldsTimeupdated,
110+
"createdById": GetTermFieldsCreatedbyid,
111+
"updatedById": GetTermFieldsUpdatedbyid,
112+
"owner": GetTermFieldsOwner,
113+
"workflowStatus": GetTermFieldsWorkflowstatus,
114+
"uri": GetTermFieldsUri,
115+
"relatedTerms": GetTermFieldsRelatedterms,
116+
"associatedObjectCount": GetTermFieldsAssociatedobjectcount,
117+
"associatedObjects": GetTermFieldsAssociatedobjects,
118118
}
119119

120120
// GetGetTermFieldsEnumValues Enumerates the set of values for GetTermFieldsEnum

datacatalog/list_job_definitions_request_response.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ var mappingListJobDefinitionsFields = map[string]ListJobDefinitionsFieldsEnum{
135135
"lifecycleState": ListJobDefinitionsFieldsLifecyclestate,
136136
"timeCreated": ListJobDefinitionsFieldsTimecreated,
137137
"isSampleDataExtracted": ListJobDefinitionsFieldsIssampledataextracted,
138-
"uri": ListJobDefinitionsFieldsUri,
138+
"uri": ListJobDefinitionsFieldsUri,
139139
}
140140

141141
// GetListJobDefinitionsFieldsEnumValues Enumerates the set of values for ListJobDefinitionsFieldsEnum

datacatalog/list_tags_request_response.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ var mappingListTagsFields = map[string]ListTagsFieldsEnum{
109109
"glossaryKey": ListTagsFieldsGlossarykey,
110110
"parentTermKey": ListTagsFieldsParenttermkey,
111111
"isAllowedToHaveChildTerms": ListTagsFieldsIsallowedtohavechildterms,
112-
"path": ListTagsFieldsPath,
113-
"lifecycleState": ListTagsFieldsLifecyclestate,
114-
"timeCreated": ListTagsFieldsTimecreated,
115-
"workflowStatus": ListTagsFieldsWorkflowstatus,
116-
"associatedObjectCount": ListTagsFieldsAssociatedobjectcount,
117-
"uri": ListTagsFieldsUri,
112+
"path": ListTagsFieldsPath,
113+
"lifecycleState": ListTagsFieldsLifecyclestate,
114+
"timeCreated": ListTagsFieldsTimecreated,
115+
"workflowStatus": ListTagsFieldsWorkflowstatus,
116+
"associatedObjectCount": ListTagsFieldsAssociatedobjectcount,
117+
"uri": ListTagsFieldsUri,
118118
}
119119

120120
// GetListTagsFieldsEnumValues Enumerates the set of values for ListTagsFieldsEnum

datacatalog/list_terms_request_response.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,12 @@ var mappingListTermsFields = map[string]ListTermsFieldsEnum{
124124
"glossaryKey": ListTermsFieldsGlossarykey,
125125
"parentTermKey": ListTermsFieldsParenttermkey,
126126
"isAllowedToHaveChildTerms": ListTermsFieldsIsallowedtohavechildterms,
127-
"path": ListTermsFieldsPath,
128-
"lifecycleState": ListTermsFieldsLifecyclestate,
129-
"timeCreated": ListTermsFieldsTimecreated,
130-
"workflowStatus": ListTermsFieldsWorkflowstatus,
131-
"associatedObjectCount": ListTermsFieldsAssociatedobjectcount,
132-
"uri": ListTermsFieldsUri,
127+
"path": ListTermsFieldsPath,
128+
"lifecycleState": ListTermsFieldsLifecyclestate,
129+
"timeCreated": ListTermsFieldsTimecreated,
130+
"workflowStatus": ListTermsFieldsWorkflowstatus,
131+
"associatedObjectCount": ListTermsFieldsAssociatedobjectcount,
132+
"uri": ListTermsFieldsUri,
133133
}
134134

135135
// GetListTermsFieldsEnumValues Enumerates the set of values for ListTermsFieldsEnum

example/example_cluster_network_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func createClusterNetwork(ctx context.Context, client core.ComputeManagementClie
120120
PlacementConfiguration: &placementConfigurationDetails,
121121
InstancePools: []core.CreateClusterNetworkInstancePoolDetails{
122122
{
123-
Size: &size,
123+
Size: &size,
124124
InstanceConfigurationId: &instanceConfigurationId,
125125
},
126126
},

example/example_containerengine_test.go

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ package example
77
import (
88
"context"
99
"fmt"
10+
"github.com/oracle/oci-go-sdk/core"
1011
"strings"
1112

1213
"github.com/oracle/oci-go-sdk/common"
@@ -88,6 +89,9 @@ func ExampleNodePoolCRUD() {
8889
c, clerr := containerengine.NewContainerEngineClientWithConfigurationProvider(common.DefaultConfigProvider())
8990
helpers.FatalIfError(clerr)
9091

92+
compute, err := core.NewComputeClientWithConfigurationProvider(common.DefaultConfigProvider())
93+
helpers.FatalIfError(err)
94+
9195
identityClient, err := identity.NewIdentityClientWithConfigurationProvider(common.DefaultConfigProvider())
9296
helpers.FatalIfError(err)
9397
req := identity.ListAvailabilityDomainsRequest{}
@@ -107,13 +111,16 @@ func ExampleNodePoolCRUD() {
107111
fmt.Println("cluster created")
108112
clusterID := getResourceID(workReqResp.Resources, containerengine.WorkRequestResourceActionTypeCreated, "CLUSTER")
109113

114+
// get Image Id
115+
image := getImageID(ctx, compute)
116+
110117
// create NodePool
111118
createNodePoolReq := containerengine.CreateNodePoolRequest{}
112119
createNodePoolReq.CompartmentId = helpers.CompartmentID()
113120
createNodePoolReq.Name = common.String("GOSDK_SAMPLE_NP")
114121
createNodePoolReq.ClusterId = clusterID
115122
createNodePoolReq.KubernetesVersion = common.String(kubeVersion)
116-
createNodePoolReq.NodeImageName = common.String("Oracle-Linux-7.4")
123+
createNodePoolReq.NodeSourceDetails = containerengine.NodeSourceViaImageDetails{ImageId: image.Id}
117124
createNodePoolReq.NodeShape = common.String("VM.Standard1.1")
118125
createNodePoolReq.InitialNodeLabels = []containerengine.KeyValue{{Key: common.String("foo"), Value: common.String("bar")}}
119126
createNodePoolReq.NodeConfigDetails = &containerengine.CreateNodePoolNodeConfigDetails{
@@ -180,8 +187,6 @@ func ExampleKubeConfig() {
180187
ClusterId: clusterID,
181188
}
182189

183-
req.Expiration = common.Int(360)
184-
185190
_, err := c.CreateKubeconfig(ctx, req)
186191
helpers.FatalIfError(err)
187192
fmt.Println("create kubeconfig")
@@ -321,3 +326,16 @@ func getResourceID(resources []containerengine.WorkRequestResource, actionType c
321326
fmt.Println("cannot find matched resources")
322327
return nil
323328
}
329+
330+
func getImageID(ctx context.Context, c core.ComputeClient) core.Image {
331+
request := core.ListImagesRequest{
332+
CompartmentId: helpers.CompartmentID(),
333+
OperatingSystem: common.String("Oracle Linux"),
334+
Shape: common.String("VM.Standard1.1"),
335+
}
336+
337+
r, err := c.ListImages(ctx, request)
338+
helpers.FatalIfError(err)
339+
340+
return r.Items[0]
341+
}

example/example_core_test.go

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"context"
1010
"fmt"
1111
"log"
12+
"time"
1213

1314
"github.com/oracle/oci-go-sdk/common"
1415
"github.com/oracle/oci-go-sdk/core"
@@ -20,6 +21,7 @@ const (
2021
subnetDisplayName1 = "OCI-GOSDK-Sample-Subnet1"
2122
subnetDisplayName2 = "OCI-GOSDK-Sample-Subnet2"
2223
subnetDisplayName3 = "OCI-GOSDK-Sample-Subnet3"
24+
instanceShape = "VM.Standard2.1"
2325

2426
// replace following variables with your instance info
2527
// this is used by ExampleCreateImageDetails_Polymorphic
@@ -43,17 +45,15 @@ func ExampleLaunchInstance() {
4345
// create a subnet or get the one already created
4446
subnet := CreateOrGetSubnet()
4547
fmt.Println("subnet created")
46-
request.SubnetId = subnet.Id
48+
request.CreateVnicDetails = &core.CreateVnicDetails{SubnetId: subnet.Id}
4749

4850
// get a image
49-
image := listImages(ctx, c)[30]
51+
image := listImages(ctx, c)[0]
5052
fmt.Println("list images")
51-
request.ImageId = image.Id
53+
request.SourceDetails = core.InstanceSourceViaImageDetails{ImageId: image.Id}
5254

53-
// get all the shapes and filter the list by compatibility with the image
54-
shapes := listShapes(ctx, c, request.ImageId)
55-
fmt.Println("list shapes")
56-
request.Shape = shapes[1].Shape
55+
// use VM.Standard2.1 to create instance
56+
request.Shape = common.String(instanceShape)
5757

5858
// default retry policy will retry on non-200 response
5959
request.RequestMetadata = helpers.GetRequestMetadataWithDefaultRetryPolicy()
@@ -97,6 +97,16 @@ func ExampleLaunchInstance() {
9797
helpers.FatalIfError(err)
9898
fmt.Println("vnic attached")
9999

100+
vnicState := attachVnicResponse.VnicAttachment.LifecycleState
101+
for vnicState != core.VnicAttachmentLifecycleStateAttached {
102+
time.Sleep(15 * time.Second)
103+
getVnicAttachmentRequest, err := c.GetVnicAttachment(context.Background(), core.GetVnicAttachmentRequest{
104+
VnicAttachmentId: attachVnicResponse.Id,
105+
})
106+
helpers.FatalIfError(err)
107+
vnicState = getVnicAttachmentRequest.VnicAttachment.LifecycleState
108+
}
109+
100110
_, err = c.DetachVnic(context.Background(), core.DetachVnicRequest{
101111
VnicAttachmentId: attachVnicResponse.Id,
102112
})
@@ -303,7 +313,9 @@ func listSubnets(ctx context.Context, c core.VirtualNetworkClient) []core.Subnet
303313
// ListImages lists the available images in the specified compartment.
304314
func listImages(ctx context.Context, c core.ComputeClient) []core.Image {
305315
request := core.ListImagesRequest{
306-
CompartmentId: helpers.CompartmentID(),
316+
CompartmentId: helpers.CompartmentID(),
317+
OperatingSystem: common.String("Oracle Linux"),
318+
Shape: common.String(instanceShape),
307319
}
308320

309321
r, err := c.ListImages(ctx, request)

example/example_dns_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func ExampleDnsZone() {
3030
ctx := context.Background()
3131

3232
// Create a new zone
33-
zoneName := common.String(helpers.GetRandomString(15))
33+
zoneName := common.String("testdomain." + helpers.GetRandomString(15))
3434
createReq := dns.CreateZoneRequest{
3535
CreateZoneDetails: dns.CreateZoneDetails{
3636
CompartmentId: helpers.CompartmentID(),

example/example_functions_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ func createOrGetRouteTable(c core.VirtualNetworkClient, gatewayID, VcnID *string
312312
}
313313

314314
updateRTRequest := core.UpdateRouteTableRequest{
315-
RtId: listRTResponse.Items[0].Id,
315+
RtId: listRTResponse.Items[0].Id,
316316
UpdateRouteTableDetails: updateRTDetails,
317317
}
318318

example/example_healthchecks_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func exampleCreateHttpMonitor(ctx context.Context, client healthchecks.HealthChe
4646
CompartmentId: compartmentId,
4747
DisplayName: common.String("Monitor Name"),
4848
Targets: []string{"example.com"},
49-
Protocol: healthchecks.CreateHttpMonitorDetailsProtocolHttps,
49+
Protocol: healthchecks.HttpProbeProtocolHttps,
5050
Port: common.Int(443),
5151
Path: common.String("/"),
5252
IsEnabled: common.Bool(false),
@@ -179,7 +179,7 @@ func exampleCreatePingMonitor(ctx context.Context, client healthchecks.HealthChe
179179
CompartmentId: compartmentId,
180180
DisplayName: common.String("Monitor Name"),
181181
Targets: []string{"example.com"},
182-
Protocol: healthchecks.CreatePingMonitorDetailsProtocolIcmp,
182+
Protocol: healthchecks.PingProbeProtocolIcmp,
183183
IsEnabled: common.Bool(false),
184184
IntervalInSeconds: common.Int(30),
185185
TimeoutInSeconds: common.Int(30),

example/example_keymanagement_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ func changeVaultCompartment(ctx context.Context, client keymanagement.KmsVaultCl
281281
}
282282

283283
request := keymanagement.ChangeVaultCompartmentRequest{
284-
VaultId: vaultId,
284+
VaultId: vaultId,
285285
ChangeVaultCompartmentDetails: changeVaultCompartmentDetails,
286286
}
287287

@@ -311,7 +311,7 @@ func changeKeyCompartment(ctx context.Context, client keymanagement.KmsManagemen
311311
}
312312

313313
request := keymanagement.ChangeKeyCompartmentRequest{
314-
KeyId: keyId,
314+
KeyId: keyId,
315315
ChangeKeyCompartmentDetails: changeKeyCompartmentDetails,
316316
}
317317

@@ -325,7 +325,7 @@ func createVault(ctx context.Context, c keymanagement.KmsVaultClient, vaultName
325325
vaultDetails := keymanagement.CreateVaultDetails{
326326
CompartmentId: helpers.CompartmentID(),
327327
DisplayName: &vaultName,
328-
VaultType: keymanagement.CreateVaultDetailsVaultTypeVirtualPrivate,
328+
VaultType: keymanagement.CreateVaultDetailsVaultTypeDefault,
329329
}
330330
request := keymanagement.CreateVaultRequest{}
331331
request.CreateVaultDetails = vaultDetails

example/example_loadbalancer_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ func ExampleCreateLoadbalancer() {
128128
listeners := map[string]loadbalancer.ListenerDetails{
129129
listenerDisplayName: {
130130
DefaultBackendSetName: common.String(backendSetOneName),
131-
Port: common.Int(80),
132-
Protocol: common.String("HTTP"),
133-
RuleSetNames: []string{rulesetOneName},
131+
Port: common.Int(80),
132+
Protocol: common.String("HTTP"),
133+
RuleSetNames: []string{rulesetOneName},
134134
},
135135
}
136136

example/example_objectstorage_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func ExampleObjectStorage_UploadManager_UploadFile() {
7979
BucketName: common.String(bname),
8080
ObjectName: common.String(objectName),
8181
//PartSize: common.Int(10000000),
82-
CallBack: callBack,
82+
CallBack: callBack,
8383
EnableMultipartChecksumVerification: common.Bool(true),
8484
},
8585
FilePath: filepath,

loadbalancer/health_check_result.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const (
5252
)
5353

5454
var mappingHealthCheckResultHealthCheckStatus = map[string]HealthCheckResultHealthCheckStatusEnum{
55-
"OK": HealthCheckResultHealthCheckStatusOk,
55+
"OK": HealthCheckResultHealthCheckStatusOk,
5656
"INVALID_STATUS_CODE": HealthCheckResultHealthCheckStatusInvalidStatusCode,
5757
"TIMED_OUT": HealthCheckResultHealthCheckStatusTimedOut,
5858
"REGEX_MISMATCH": HealthCheckResultHealthCheckStatusRegexMismatch,

loadbalancer/rule.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ var mappingRuleAction = map[string]RuleActionEnum{
116116
"ADD_HTTP_RESPONSE_HEADER": RuleActionAddHttpResponseHeader,
117117
"EXTEND_HTTP_RESPONSE_HEADER_VALUE": RuleActionExtendHttpResponseHeaderValue,
118118
"REMOVE_HTTP_RESPONSE_HEADER": RuleActionRemoveHttpResponseHeader,
119-
"ALLOW": RuleActionAllow,
119+
"ALLOW": RuleActionAllow,
120120
"CONTROL_ACCESS_USING_HTTP_METHODS": RuleActionControlAccessUsingHttpMethods,
121121
"REDIRECT": RuleActionRedirect,
122122
}

0 commit comments

Comments
 (0)