Skip to content

Commit 9ed9700

Browse files
authored
GO SDK 5.4.0 Release
GO SDK 5.4.0 Release
2 parents 8a0a958 + c8176a5 commit 9ed9700

File tree

65 files changed

+342
-131
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

+342
-131
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ 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.4.0 - 2019-04-16
8+
### Added
9+
- Support for tagging dynamic groups in the Identity service
10+
- Support for updating network ACLs and license types for autonomous databases and autonomous data warehouses in the Database service
11+
- Support for editing static routes and IPSec remote IDs in the Virtual Networking service
12+
713
## 5.3.0 - 2019-04-09
814
### Added
915
- Support for etag and if-match headers (for optimistic concurrency control) in the Email service

common/version.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/attach_load_balancer_details.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
// AttachLoadBalancerDetails Represents a load balancer that is to be attached to an instance pool.
1616
type AttachLoadBalancerDetails struct {
1717

18-
// The OCID of the load balancer to attach to the pool.
18+
// The OCID of the load balancer to attach to the instance pool.
1919
LoadBalancerId *string `mandatory:"true" json:"loadBalancerId"`
2020

2121
// The name of the backend set on the load balancer to add instances to.
@@ -24,7 +24,7 @@ type AttachLoadBalancerDetails struct {
2424
// The port value to use when creating the backend set.
2525
Port *int `mandatory:"true" json:"port"`
2626

27-
// Indicates which vnic on each instance in the pool should be used to associate with the load balancer. possible values are "PrimaryVnic" or the displayName of one of the secondary VNICs on the instance configuration that is associated to the instance pool.
27+
// Indicates which VNIC on each instance in the pool should be used to associate with the load balancer. Possible values are "PrimaryVnic" or the displayName of one of the secondary VNICs on the instance configuration that is associated with the instance pool.
2828
VnicSelection *string `mandatory:"true" json:"vnicSelection"`
2929
}
3030

core/core_computemanagement_client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func (client *ComputeManagementClient) ConfigurationProvider() *common.Configura
5858
return client.config
5959
}
6060

61-
// AttachLoadBalancer Attach load balancer to the instance pool.
61+
// AttachLoadBalancer Attach a load balancer to the instance pool.
6262
func (client ComputeManagementClient) AttachLoadBalancer(ctx context.Context, request AttachLoadBalancerRequest) (response AttachLoadBalancerResponse, err error) {
6363
var ociResponse common.OCIResponse
6464
policy := common.NoRetryPolicy()

core/core_virtualnetwork_client.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -2666,7 +2666,8 @@ func (client VirtualNetworkClient) getFastConnectProviderService(ctx context.Con
26662666
return response, err
26672667
}
26682668

2669-
// GetFastConnectProviderServiceKey Gets the specified provider service key's information.
2669+
// GetFastConnectProviderServiceKey Gets the specified provider service key's information. Use this operation to validate a
2670+
// provider service key. An invalid key returns a 404 error.
26702671
func (client VirtualNetworkClient) GetFastConnectProviderServiceKey(ctx context.Context, request GetFastConnectProviderServiceKeyRequest) (response GetFastConnectProviderServiceKeyResponse, err error) {
26712672
var ociResponse common.OCIResponse
26722673
policy := common.NoRetryPolicy()

core/create_ip_sec_connection_details.go

+38-2
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ type CreateIpSecConnectionDetails struct {
1818
// The OCID of the compartment to contain the IPSec connection.
1919
CompartmentId *string `mandatory:"true" json:"compartmentId"`
2020

21-
// The OCID of the CPE.
21+
// The OCID of the Cpe object.
2222
CpeId *string `mandatory:"true" json:"cpeId"`
2323

2424
// The OCID of the DRG.
2525
DrgId *string `mandatory:"true" json:"drgId"`
2626

27-
// Static routes to the CPE. At least one route must be included. The CIDR must not be a
27+
// Static routes to the CPE. At least one route must be included. A static route's CIDR must not be a
2828
// multicast address or class E address.
2929
// Example: `10.0.1.0/24`
3030
StaticRoutes []string `mandatory:"true" json:"staticRoutes"`
@@ -42,8 +42,44 @@ type CreateIpSecConnectionDetails struct {
4242
// Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
4343
// Example: `{"Department": "Finance"}`
4444
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
45+
46+
// Your identifier for your CPE device. Can be either an IP address or a hostname (specifically, the
47+
// fully qualified domain name (FQDN)). The type of identifier you provide here must correspond
48+
// to the value for `cpeLocalIdentifierType`.
49+
// If you don't provide a value, the `ipAddress` attribute for the Cpe
50+
// object specified by `cpeId` is used as the `cpeLocalIdentifier`.
51+
// Example IP address: `10.0.3.3`
52+
// Example hostname: `cpe.example.com`
53+
CpeLocalIdentifier *string `mandatory:"false" json:"cpeLocalIdentifier"`
54+
55+
// The type of identifier for your CPE device. The value you provide here must correspond to the value
56+
// for `cpeLocalIdentifier`.
57+
CpeLocalIdentifierType CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum `mandatory:"false" json:"cpeLocalIdentifierType,omitempty"`
4558
}
4659

4760
func (m CreateIpSecConnectionDetails) String() string {
4861
return common.PointerString(m)
4962
}
63+
64+
// CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum Enum with underlying type: string
65+
type CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum string
66+
67+
// Set of constants representing the allowable values for CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum
68+
const (
69+
CreateIpSecConnectionDetailsCpeLocalIdentifierTypeIpAddress CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum = "IP_ADDRESS"
70+
CreateIpSecConnectionDetailsCpeLocalIdentifierTypeHostname CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum = "HOSTNAME"
71+
)
72+
73+
var mappingCreateIpSecConnectionDetailsCpeLocalIdentifierType = map[string]CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum{
74+
"IP_ADDRESS": CreateIpSecConnectionDetailsCpeLocalIdentifierTypeIpAddress,
75+
"HOSTNAME": CreateIpSecConnectionDetailsCpeLocalIdentifierTypeHostname,
76+
}
77+
78+
// GetCreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnumValues Enumerates the set of values for CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum
79+
func GetCreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnumValues() []CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum {
80+
values := make([]CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum, 0)
81+
for _, v := range mappingCreateIpSecConnectionDetailsCpeLocalIdentifierType {
82+
values = append(values, v)
83+
}
84+
return values
85+
}

core/create_subnet_details.go

+10-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,15 @@ type CreateSubnetDetails struct {
2525
// The OCID of the VCN to contain the subnet.
2626
VcnId *string `mandatory:"true" json:"vcnId"`
2727

28-
// The availability domain to contain the subnet.
28+
// Controls whether the subnet is regional or specific to an availability domain. Oracle
29+
// recommends creating regional subnets because they're more flexible and make it easier to
30+
// implement failover across availability domains. Originally, AD-specific subnets were the
31+
// only kind available to use.
32+
// To create a regional subnet, omit this attribute. Then any resources later created in this
33+
// subnet (such as a Compute instance) can be created in any availability domain in the region.
34+
// To instead create an AD-specific subnet, set this attribute to the availability domain you
35+
// want this subnet to be in. Then any resources later created in this subnet can only be
36+
// created in that availability domain.
2937
// Example: `Uocm:PHX-AD-1`
3038
AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"`
3139

@@ -68,6 +76,7 @@ type CreateSubnetDetails struct {
6876
// If `prohibitPublicIpOnVnic` is set to true, VNICs created in this
6977
// subnet cannot have public IP addresses (that is, it's a private
7078
// subnet).
79+
//
7180
// Example: `true`
7281
ProhibitPublicIpOnVnic *bool `mandatory:"false" json:"prohibitPublicIpOnVnic"`
7382

core/delete_instance_console_connection_request_response.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
// DeleteInstanceConsoleConnectionRequest wrapper for the DeleteInstanceConsoleConnection operation
1212
type DeleteInstanceConsoleConnectionRequest struct {
1313

14-
// The OCID of the intance console connection
14+
// The OCID of the instance console connection.
1515
InstanceConsoleConnectionId *string `mandatory:"true" contributesTo:"path" name:"instanceConsoleConnectionId"`
1616

1717
// For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`

core/detach_load_balancer_details.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ import (
1515
// DetachLoadBalancerDetails Represents a load balancer that is to be detached from an instance pool.
1616
type DetachLoadBalancerDetails struct {
1717

18-
// The OCID of the load balancer to detach from the pool.
18+
// The OCID of the load balancer to detach from the instance pool.
1919
LoadBalancerId *string `mandatory:"true" json:"loadBalancerId"`
2020

21-
// The name of the backend set on the load balancer to detach from the pool.
21+
// The name of the backend set on the load balancer to detach from the instance pool.
2222
BackendSetName *string `mandatory:"true" json:"backendSetName"`
2323
}
2424

core/fast_connect_provider_service.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ type FastConnectProviderService struct {
4747
// Provider service type.
4848
Type FastConnectProviderServiceTypeEnum `mandatory:"true" json:"type"`
4949

50-
// A description of the service offered by the provider.
50+
// The location of the provider's website or portal. This portal is where you can get information
51+
// about the provider service, create a virtual circuit connection from the provider to Oracle
52+
// Cloud Infrastructure, and retrieve your provider service key for that virtual circuit connection.
53+
// Example: `https://example.com`
5154
Description *string `mandatory:"false" json:"description"`
5255

5356
// An array of virtual circuit types supported by this service.

core/fast_connect_provider_service_key.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ import (
1616
// virtual circuit.
1717
type FastConnectProviderServiceKey struct {
1818

19-
// The name of the service key offered by the provider.
19+
// The service key that the provider gives you when you set up a virtual circuit connection
20+
// from the provider to Oracle Cloud Infrastructure. Use this value as the `providerServiceKeyName`
21+
// query parameter for
22+
// GetFastConnectProviderServiceKey.
2023
Name *string `mandatory:"false" json:"name"`
2124

2225
// The provisioned data rate of the connection. To get a list of the

core/get_fast_connect_provider_service_key_request_response.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ type GetFastConnectProviderServiceKeyRequest struct {
1414
// The OCID of the provider service.
1515
ProviderServiceId *string `mandatory:"true" contributesTo:"path" name:"providerServiceId"`
1616

17-
// The provider service key name.
17+
// The provider service key that the provider gives you when you set up a virtual circuit connection
18+
// from the provider to Oracle Cloud Infrastructure. You can set up that connection and get your
19+
// provider service key at the provider's website or portal. For the portal location, see the `description`
20+
// attribute of the FastConnectProviderService.
1821
ProviderServiceKeyName *string `mandatory:"true" contributesTo:"path" name:"providerServiceKeyName"`
1922

2023
// Unique Oracle-assigned identifier for the request.

core/get_instance_console_connection_request_response.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
// GetInstanceConsoleConnectionRequest wrapper for the GetInstanceConsoleConnection operation
1212
type GetInstanceConsoleConnectionRequest struct {
1313

14-
// The OCID of the intance console connection
14+
// The OCID of the instance console connection.
1515
InstanceConsoleConnectionId *string `mandatory:"true" contributesTo:"path" name:"instanceConsoleConnectionId"`
1616

1717
// Unique Oracle-assigned identifier for the request.

core/instance_pool.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ import (
1515
// InstancePool Instance Pool
1616
type InstancePool struct {
1717

18-
// The OCID of the instance pool
18+
// The OCID of the instance pool.
1919
Id *string `mandatory:"true" json:"id"`
2020

21-
// The OCID of the compartment containing the instance pool
21+
// The OCID of the compartment containing the instance pool.
2222
CompartmentId *string `mandatory:"true" json:"compartmentId"`
2323

24-
// The OCID of the instance configuration associated to the intance pool.
24+
// The OCID of the instance configuration associated with the instance pool.
2525
InstanceConfigurationId *string `mandatory:"true" json:"instanceConfigurationId"`
2626

2727
// The current state of the instance pool.

core/instance_pool_instance_load_balancer_backend.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
// InstancePoolInstanceLoadBalancerBackend Represents the load balancer Backend that is configured for an instance pool instance.
1616
type InstancePoolInstanceLoadBalancerBackend struct {
1717

18-
// The OCID of the load balancer attached to the pool.
18+
// The OCID of the load balancer attached to the instance pool.
1919
LoadBalancerId *string `mandatory:"true" json:"loadBalancerId"`
2020

2121
// The name of the backend set on the load balancer.

core/instance_pool_load_balancer_attachment.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type InstancePoolLoadBalancerAttachment struct {
2121
// The OCID of the instance pool of the load balancer attachment.
2222
InstancePoolId *string `mandatory:"true" json:"instancePoolId"`
2323

24-
// The OCID of the load balancer attached to the pool.
24+
// The OCID of the load balancer attached to the instance pool.
2525
LoadBalancerId *string `mandatory:"true" json:"loadBalancerId"`
2626

2727
// The name of the backend set on the load balancer.
@@ -30,10 +30,10 @@ type InstancePoolLoadBalancerAttachment struct {
3030
// The port value used for the backends.
3131
Port *int `mandatory:"true" json:"port"`
3232

33-
// Indicates which vnic on each instance in the pool should be used to associate with the load balancer. possible values are "PrimaryVnic" or the displayName of one of the secondary VNICs on the instance configuration that is associated to the instance pool.
33+
// Indicates which VNIC on each instance in the instance pool should be used to associate with the load balancer. Possible values are "PrimaryVnic" or the displayName of one of the secondary VNICs on the instance configuration that is associated with the instance pool.
3434
VnicSelection *string `mandatory:"true" json:"vnicSelection"`
3535

36-
// The status of the interaction between the pool and the load balancer.
36+
// The status of the interaction between the instance pool and the load balancer.
3737
LifecycleState InstancePoolLoadBalancerAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
3838
}
3939

core/instance_pool_summary.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type InstancePoolSummary struct {
2121
// The OCID of the compartment containing the instance pool
2222
CompartmentId *string `mandatory:"true" json:"compartmentId"`
2323

24-
// The OCID of the instance configuration associated to the intance pool.
24+
// The OCID of the instance configuration associated with the instance pool.
2525
InstanceConfigurationId *string `mandatory:"true" json:"instanceConfigurationId"`
2626

2727
// The current state of the instance pool.

core/instance_summary.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
// InstanceSummary Condensed instance data when listing instances in an instance pool.
1616
type InstanceSummary struct {
1717

18-
// The OCID of the instance
18+
// The OCID of the instance.
1919
Id *string `mandatory:"true" json:"id"`
2020

2121
// The availability domain the instance is running in.
@@ -48,7 +48,7 @@ type InstanceSummary struct {
4848
// You can enumerate all available shapes by calling ListShapes.
4949
Shape *string `mandatory:"false" json:"shape"`
5050

51-
// The load balancer backends configured for the instance pool instance.
51+
// The load balancer backends that are configured for the instance pool instance.
5252
LoadBalancerBackends []InstancePoolInstanceLoadBalancerBackend `mandatory:"false" json:"loadBalancerBackends"`
5353
}
5454

core/ip_sec_connection.go

+38-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
// IpSecConnection A connection between a DRG and CPE. This connection consists of multiple IPSec
1616
// tunnels. Creating this connection is one of the steps required when setting up
1717
// an IPSec VPN. For more information, see
18-
// Overview of the Networking Service (https://docs.cloud.oracle.com/Content/Network/Concepts/overview.htm).
18+
// IPSec VPN (https://docs.cloud.oracle.com/Content/Network/Tasks/managingIPsec.htm).
1919
// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized,
2020
// talk to an administrator. If you're an administrator who needs to write policies to give users access, see
2121
// Getting Started with Policies (https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm).
@@ -26,7 +26,7 @@ type IpSecConnection struct {
2626
// The OCID of the compartment containing the IPSec connection.
2727
CompartmentId *string `mandatory:"true" json:"compartmentId"`
2828

29-
// The OCID of the CPE.
29+
// The OCID of the Cpe object.
3030
CpeId *string `mandatory:"true" json:"cpeId"`
3131

3232
// The OCID of the DRG.
@@ -58,6 +58,19 @@ type IpSecConnection struct {
5858
// Example: `{"Department": "Finance"}`
5959
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
6060

61+
// Your identifier for your CPE device. Can be either an IP address or a hostname (specifically,
62+
// the fully qualified domain name (FQDN)). The type of identifier here must correspond
63+
// to the value for `cpeLocalIdentifierType`.
64+
// If you don't provide a value when creating the IPSec connection, the `ipAddress` attribute
65+
// for the Cpe object specified by `cpeId` is used as the `cpeLocalIdentifier`.
66+
// Example IP address: `10.0.3.3`
67+
// Example hostname: `cpe.example.com`
68+
CpeLocalIdentifier *string `mandatory:"false" json:"cpeLocalIdentifier"`
69+
70+
// The type of identifier for your CPE device. The value here must correspond to the value
71+
// for `cpeLocalIdentifier`.
72+
CpeLocalIdentifierType IpSecConnectionCpeLocalIdentifierTypeEnum `mandatory:"false" json:"cpeLocalIdentifierType,omitempty"`
73+
6174
// The date and time the IPSec connection was created, in the format defined by RFC3339.
6275
// Example: `2016-08-25T21:10:29.600Z`
6376
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
@@ -93,3 +106,26 @@ func GetIpSecConnectionLifecycleStateEnumValues() []IpSecConnectionLifecycleStat
93106
}
94107
return values
95108
}
109+
110+
// IpSecConnectionCpeLocalIdentifierTypeEnum Enum with underlying type: string
111+
type IpSecConnectionCpeLocalIdentifierTypeEnum string
112+
113+
// Set of constants representing the allowable values for IpSecConnectionCpeLocalIdentifierTypeEnum
114+
const (
115+
IpSecConnectionCpeLocalIdentifierTypeIpAddress IpSecConnectionCpeLocalIdentifierTypeEnum = "IP_ADDRESS"
116+
IpSecConnectionCpeLocalIdentifierTypeHostname IpSecConnectionCpeLocalIdentifierTypeEnum = "HOSTNAME"
117+
)
118+
119+
var mappingIpSecConnectionCpeLocalIdentifierType = map[string]IpSecConnectionCpeLocalIdentifierTypeEnum{
120+
"IP_ADDRESS": IpSecConnectionCpeLocalIdentifierTypeIpAddress,
121+
"HOSTNAME": IpSecConnectionCpeLocalIdentifierTypeHostname,
122+
}
123+
124+
// GetIpSecConnectionCpeLocalIdentifierTypeEnumValues Enumerates the set of values for IpSecConnectionCpeLocalIdentifierTypeEnum
125+
func GetIpSecConnectionCpeLocalIdentifierTypeEnumValues() []IpSecConnectionCpeLocalIdentifierTypeEnum {
126+
values := make([]IpSecConnectionCpeLocalIdentifierTypeEnum, 0)
127+
for _, v := range mappingIpSecConnectionCpeLocalIdentifierType {
128+
values = append(values, v)
129+
}
130+
return values
131+
}

core/private_ip.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ import (
3939
// supply string values using the API.
4040
type PrivateIp struct {
4141

42-
// The private IP's availability domain.
42+
// The private IP's availability domain. This attribute will be null if this is a *secondary*
43+
// private IP assigned to a VNIC that is in a *regional* subnet.
4344
// Example: `Uocm:PHX-AD-1`
4445
AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"`
4546

core/subnet.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ type Subnet struct {
5151
// Example: `00:00:17:B6:4D:DD`
5252
VirtualRouterMac *string `mandatory:"true" json:"virtualRouterMac"`
5353

54-
// The subnet's availability domain.
54+
// The subnet's availability domain. This attribute will be null if this is a regional subnet
55+
// instead of an AD-specific subnet. Oracle recommends creating regional subnets.
5556
// Example: `Uocm:PHX-AD-1`
5657
AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"`
5758

core/update_instance_pool_details.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type UpdateInstancePoolDetails struct {
2929
// Example: `{"Department": "Finance"}`
3030
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
3131

32-
// The OCID of the instance configuration associated to the intance pool.
32+
// The OCID of the instance configuration associated with the instance pool.
3333
InstanceConfigurationId *string `mandatory:"false" json:"instanceConfigurationId"`
3434

3535
// The placement configurations for the instance pool.

0 commit comments

Comments
 (0)