Skip to content

Commit a7988bf

Browse files
authored
GO SDK 5.2.0 Release
GO SDK 5.2.0 Release
2 parents 070cae6 + 187d5da commit a7988bf

37 files changed

+331
-64
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+
## 5.2.0 - 2019-04-02
8+
### Added
9+
- Support for provider service key names on virtual circuits in the FastConnect service
10+
- Support for customer reference names on cross connects and cross connect groups in the FastConnect service
11+
712
## 5.1.0 - 2019-03-26
813
### Added
914
- Support for glob patterns and exclusions for object lifecycle management in the Object Storage 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/attach_paravirtualized_volume_details.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type AttachParavirtualizedVolumeDetails struct {
3131
// Whether the attachment was created in read-only mode.
3232
IsReadOnly *bool `mandatory:"false" json:"isReadOnly"`
3333

34-
// Whether to enable encryption in transit for the PV data volume attachment. Defaults to false.
34+
// Whether to enable in-transit encryption for the data volume's paravirtualized attachment. The default value is false.
3535
IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"`
3636
}
3737

core/boot_volume_attachment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type BootVolumeAttachment struct {
4545
// Example: `My boot volume`
4646
DisplayName *string `mandatory:"false" json:"displayName"`
4747

48-
// Whether the enable encryption in transit for the PV volume attachment is on or not.
48+
// Whether in-transit encryption for the boot volume's paravirtualized attachment is enabled or not.
4949
IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"`
5050
}
5151

core/core_compute_client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ func (client ComputeClient) createAppCatalogSubscription(ctx context.Context, re
319319
// use ImageSourceViaObjectStorageTupleDetails.
320320
// When importing an image based on the Object Storage URL, use
321321
// ImageSourceViaObjectStorageUriDetails.
322-
// See Object Storage URLs (https://docs.cloud.oracle.com/Content/Compute/Tasks/imageimportexport.htm#URLs) and pre-authenticated requests (https://docs.cloud.oracle.com/Content/Object/Tasks/managingaccess.htm#pre-auth)
322+
// See Object Storage URLs (https://docs.cloud.oracle.com/Content/Compute/Tasks/imageimportexport.htm#URLs) and Using Pre-Authenticated Requests (https://docs.cloud.oracle.com/Content/Object/Tasks/usingpreauthenticatedrequests.htm)
323323
// for constructing URLs for image import/export.
324324
// For more information about importing exported images, see
325325
// Image Import/Export (https://docs.cloud.oracle.com/Content/Compute/Tasks/imageimportexport.htm).
@@ -733,7 +733,7 @@ func (client ComputeClient) detachVolume(ctx context.Context, request common.OCI
733733
// For more information about exporting images, see Image Import/Export (https://docs.cloud.oracle.com/Content/Compute/Tasks/imageimportexport.htm).
734734
// To perform an image export, you need write access to the Object Storage bucket for the image,
735735
// see Let Users Write Objects to Object Storage Buckets (https://docs.cloud.oracle.com/Content/Identity/Concepts/commonpolicies.htm#Let4).
736-
// See Object Storage URLs (https://docs.cloud.oracle.com/Content/Compute/Tasks/imageimportexport.htm#URLs) and pre-authenticated requests (https://docs.cloud.oracle.com/Content/Object/Tasks/managingaccess.htm#pre-auth)
736+
// See Object Storage URLs (https://docs.cloud.oracle.com/Content/Compute/Tasks/imageimportexport.htm#URLs) and Using Pre-Authenticated Requests (https://docs.cloud.oracle.com/Content/Object/Tasks/usingpreauthenticatedrequests.htm)
737737
// for constructing URLs for image import/export.
738738
func (client ComputeClient) ExportImage(ctx context.Context, request ExportImageRequest) (response ExportImageResponse, err error) {
739739
var ociResponse common.OCIResponse

core/core_virtualnetwork_client.go

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2666,6 +2666,48 @@ func (client VirtualNetworkClient) getFastConnectProviderService(ctx context.Con
26662666
return response, err
26672667
}
26682668

2669+
// GetFastConnectProviderServiceKey Gets the specified provider service key's information.
2670+
func (client VirtualNetworkClient) GetFastConnectProviderServiceKey(ctx context.Context, request GetFastConnectProviderServiceKeyRequest) (response GetFastConnectProviderServiceKeyResponse, err error) {
2671+
var ociResponse common.OCIResponse
2672+
policy := common.NoRetryPolicy()
2673+
if request.RetryPolicy() != nil {
2674+
policy = *request.RetryPolicy()
2675+
}
2676+
ociResponse, err = common.Retry(ctx, request, client.getFastConnectProviderServiceKey, policy)
2677+
if err != nil {
2678+
if ociResponse != nil {
2679+
response = GetFastConnectProviderServiceKeyResponse{RawResponse: ociResponse.HTTPResponse()}
2680+
}
2681+
return
2682+
}
2683+
if convertedResponse, ok := ociResponse.(GetFastConnectProviderServiceKeyResponse); ok {
2684+
response = convertedResponse
2685+
} else {
2686+
err = fmt.Errorf("failed to convert OCIResponse into GetFastConnectProviderServiceKeyResponse")
2687+
}
2688+
return
2689+
}
2690+
2691+
// getFastConnectProviderServiceKey implements the OCIOperation interface (enables retrying operations)
2692+
func (client VirtualNetworkClient) getFastConnectProviderServiceKey(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) {
2693+
httpRequest, err := request.HTTPRequest(http.MethodGet, "/fastConnectProviderServices/{providerServiceId}/providerServiceKeys/{providerServiceKeyName}")
2694+
if err != nil {
2695+
return nil, err
2696+
}
2697+
2698+
var response GetFastConnectProviderServiceKeyResponse
2699+
var httpResponse *http.Response
2700+
httpResponse, err = client.Call(ctx, &httpRequest)
2701+
defer common.CloseBodyIfValid(httpResponse)
2702+
response.RawResponse = httpResponse
2703+
if err != nil {
2704+
return response, err
2705+
}
2706+
2707+
err = common.UnmarshalResponse(httpResponse, &response)
2708+
return response, err
2709+
}
2710+
26692711
// GetIPSecConnection Gets the specified IPSec connection's basic information, including the static routes for the
26702712
// on-premises router. If you want the status of the connection (whether it's up or down), use
26712713
// GetIPSecConnectionDeviceStatus.

core/create_cross_connect_details.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ type CreateCrossConnectDetails struct {
4646
// location, and you want this new cross-connect to be on the same router, provide the
4747
// OCID of that existing cross-connect or cross-connect group.
4848
NearCrossConnectOrCrossConnectGroupId *string `mandatory:"false" json:"nearCrossConnectOrCrossConnectGroupId"`
49+
50+
// A reference name or identifier for the physical fiber connection that this cross-connect
51+
// uses.
52+
CustomerReferenceName *string `mandatory:"false" json:"customerReferenceName"`
4953
}
5054

5155
func (m CreateCrossConnectDetails) String() string {

core/create_cross_connect_group_details.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ type CreateCrossConnectGroupDetails struct {
2121
// A user-friendly name. Does not have to be unique, and it's changeable.
2222
// Avoid entering confidential information.
2323
DisplayName *string `mandatory:"false" json:"displayName"`
24+
25+
// A reference name or identifier for the physical fiber connection that this cross-connect
26+
// group uses.
27+
CustomerReferenceName *string `mandatory:"false" json:"customerReferenceName"`
2428
}
2529

2630
func (m CreateCrossConnectGroupDetails) String() string {

core/create_image_details.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ type CreateImageDetails struct {
4343
InstanceId *string `mandatory:"false" json:"instanceId"`
4444

4545
// Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are:
46-
// * `NATIVE` - VM instances launch with iSCSI boot and VFIO devices. The default value for Oracle-provided images.
46+
// * `NATIVE` - VM instances launch with paravirtualized boot and VFIO devices. The default value for Oracle-provided images.
4747
// * `EMULATED` - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller.
4848
// * `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using virtio drivers.
4949
// * `CUSTOM` - VM instances launch with custom configuration settings specified in the `LaunchOptions` parameter.

core/create_virtual_circuit_details.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ type CreateVirtualCircuitDetails struct {
5555
// ListFastConnectProviderServices.
5656
ProviderServiceId *string `mandatory:"false" json:"providerServiceId"`
5757

58+
// The service key name offered by the provider (if the customer is connecting via a provider).
59+
ProviderServiceKeyName *string `mandatory:"false" json:"providerServiceKeyName"`
60+
5861
// Deprecated. Instead use `providerServiceId`.
5962
// To get a list of the provider names, see
6063
// ListFastConnectProviderServices.

0 commit comments

Comments
 (0)