Skip to content

Commit

Permalink
Releasing version 24.0.0 (#249)
Browse files Browse the repository at this point in the history
* Releasing Version 23.0.0

Squashed commit of the following:

commit 25ae0ac4bf76d081e52ea9783de4d7cf28073748
Author: pelliu <peng.p.liu@oracle.com>
Date:   Fri Jul 31 23:14:50 2020 +0000

    Releasing version 23 0 0

* Releasing Version 24.0.0

Squashed commit of the following:

commit 93094f46b07ca2220cd435e6889a724f43034e41
Author: pelliu <peng.p.liu@oracle.com>
Date:   Mon Aug 10 19:27:26 2020 +0000

    Releasing version 24 0 0

* Update the changelog to match github version.
  • Loading branch information
pelliu committed Aug 11, 2020
1 parent e23f597 commit 2fac26f
Show file tree
Hide file tree
Showing 117 changed files with 1,304 additions and 396 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)

## 24.0.0 - 2020-08-11
### Added
- Support for autonomous json databases in the Database service
- Support for cleaning up uncommitted multipart uploads in the Object Storage service
- Support for additional list API filters in the Data Catalog service
- Support for Go SDK logging to file
- Support for Go Modules

### Breaking changes
- Some unusable region enums were removed from the Support Management service
- `CreateIncidentRequest` parameter `OpcRetryToken` was removed from the Support Management service

## 23.0.0 - 2020-08-04
### Added
- Support for calling Oracle Cloud Infrastructure services in the uk-gov-cardiff-1 region
Expand Down
16 changes: 8 additions & 8 deletions cims/activity_item.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ import (
"github.com/oracle/oci-go-sdk/common"
)

// ActivityItem Details of Activity Item
// ActivityItem Details about the ActivityItem object.
type ActivityItem struct {

// Unique ID that identifies an Item
// Unique identifier for the item.
ItemKey *string `mandatory:"true" json:"itemKey"`

// Name of item
// The display name of the item.
Name *string `mandatory:"false" json:"name"`

Category *Category `mandatory:"false" json:"category"`
Expand All @@ -29,19 +29,19 @@ type ActivityItem struct {

IssueType *IssueType `mandatory:"false" json:"issueType"`

// Comments to update as part of Activity
// Comments added with the activity on the support ticket.
Comments *string `mandatory:"false" json:"comments"`

// Epoch time when activity was created
// The time when the activity was created, in milliseconds since epoch time.
TimeCreated *int `mandatory:"false" json:"timeCreated"`

// Epoch time when activity was updated
// The time when the activity was updated, in milliseconds since epoch time.
TimeUpdated *int `mandatory:"false" json:"timeUpdated"`

// Type of activity. eg: NOTES, UPDATE
// The type of activity occuring on the support ticket.
ActivityType ActivityItemActivityTypeEnum `mandatory:"false" json:"activityType,omitempty"`

// Person who updates the activity
// The person who updates the activity on the support ticket.
ActivityAuthor ActivityItemActivityAuthorEnum `mandatory:"false" json:"activityAuthor,omitempty"`
}

Expand Down
6 changes: 0 additions & 6 deletions cims/availability_domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ const (
AvailabilityDomainApSeoul1Ad1 AvailabilityDomainEnum = "AP_SEOUL_1_AD_1"
AvailabilityDomainApMumbai1Ad1 AvailabilityDomainEnum = "AP_MUMBAI_1_AD_1"
AvailabilityDomainSaSaopaulo1Ad1 AvailabilityDomainEnum = "SA_SAOPAULO_1_AD_1"
AvailabilityDomainUsLuke1Ad1 AvailabilityDomainEnum = "US_LUKE_1_AD_1"
AvailabilityDomainUsLangley1Ad1 AvailabilityDomainEnum = "US_LANGLEY_1_AD_1"
AvailabilityDomainMeJeddah1Ad1 AvailabilityDomainEnum = "ME_JEDDAH_1_AD_1"
AvailabilityDomainApOsaka1Ad1 AvailabilityDomainEnum = "AP_OSAKA_1_AD_1"
AvailabilityDomainApSydney1Ad1 AvailabilityDomainEnum = "AP_SYDNEY_1_AD_1"
Expand All @@ -51,7 +49,6 @@ const (
AvailabilityDomainCaMontreal1Ad1 AvailabilityDomainEnum = "CA_MONTREAL_1_AD_1"
AvailabilityDomainApHyderabad1Ad1 AvailabilityDomainEnum = "AP_HYDERABAD_1_AD_1"
AvailabilityDomainApChuncheon1Ad1 AvailabilityDomainEnum = "AP_CHUNCHEON_1_AD_1"
AvailabilityDomainUsTacoma1Ad1 AvailabilityDomainEnum = "US_TACOMA_1_AD_1"
AvailabilityDomainNoAd AvailabilityDomainEnum = "NO_AD"
)

Expand Down Expand Up @@ -82,8 +79,6 @@ var mappingAvailabilityDomain = map[string]AvailabilityDomainEnum{
"AP_SEOUL_1_AD_1": AvailabilityDomainApSeoul1Ad1,
"AP_MUMBAI_1_AD_1": AvailabilityDomainApMumbai1Ad1,
"SA_SAOPAULO_1_AD_1": AvailabilityDomainSaSaopaulo1Ad1,
"US_LUKE_1_AD_1": AvailabilityDomainUsLuke1Ad1,
"US_LANGLEY_1_AD_1": AvailabilityDomainUsLangley1Ad1,
"ME_JEDDAH_1_AD_1": AvailabilityDomainMeJeddah1Ad1,
"AP_OSAKA_1_AD_1": AvailabilityDomainApOsaka1Ad1,
"AP_SYDNEY_1_AD_1": AvailabilityDomainApSydney1Ad1,
Expand All @@ -93,7 +88,6 @@ var mappingAvailabilityDomain = map[string]AvailabilityDomainEnum{
"CA_MONTREAL_1_AD_1": AvailabilityDomainCaMontreal1Ad1,
"AP_HYDERABAD_1_AD_1": AvailabilityDomainApHyderabad1Ad1,
"AP_CHUNCHEON_1_AD_1": AvailabilityDomainApChuncheon1Ad1,
"US_TACOMA_1_AD_1": AvailabilityDomainUsTacoma1Ad1,
"NO_AD": AvailabilityDomainNoAd,
}

Expand Down
6 changes: 3 additions & 3 deletions cims/category.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ import (
"github.com/oracle/oci-go-sdk/common"
)

// Category Details of Category of the incident
// Category Details about the category associated with the support ticket.
type Category struct {

// Unique ID that identifies a Category
// Unique identifier for the category.
CategoryKey *string `mandatory:"false" json:"categoryKey"`

// Name of category. eg: Compute, Identity
// The name of the category. For example, `Compute` or `Identity`.
Name *string `mandatory:"false" json:"name"`
}

Expand Down
29 changes: 7 additions & 22 deletions cims/cims_incident_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,13 @@ func (client *IncidentClient) ConfigurationProvider() *common.ConfigurationProvi
return client.config
}

// CreateIncident This API enables the customer to Create an Incident
// CreateIncident Enables the customer to create an support ticket.
func (client IncidentClient) CreateIncident(ctx context.Context, request CreateIncidentRequest) (response CreateIncidentResponse, err error) {
var ociResponse common.OCIResponse
policy := common.NoRetryPolicy()
if request.RetryPolicy() != nil {
policy = *request.RetryPolicy()
}

if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") {
request.OpcRetryToken = common.String(common.RetryToken())
}

ociResponse, err = common.Retry(ctx, request, client.createIncident, policy)
if err != nil {
if ociResponse != nil {
Expand Down Expand Up @@ -127,7 +122,7 @@ func (client IncidentClient) createIncident(ctx context.Context, request common.
return response, err
}

// GetIncident This API fetches the details of a requested Incident
// GetIncident Gets the details of the support ticket.
func (client IncidentClient) GetIncident(ctx context.Context, request GetIncidentRequest) (response GetIncidentResponse, err error) {
var ociResponse common.OCIResponse
policy := common.NoRetryPolicy()
Expand Down Expand Up @@ -174,7 +169,7 @@ func (client IncidentClient) getIncident(ctx context.Context, request common.OCI
return response, err
}

// GetStatus GetStatus of the Service
// GetStatus Gets the status of the service.
func (client IncidentClient) GetStatus(ctx context.Context, request GetStatusRequest) (response GetStatusResponse, err error) {
var ociResponse common.OCIResponse
policy := common.NoRetryPolicy()
Expand Down Expand Up @@ -221,7 +216,7 @@ func (client IncidentClient) getStatus(ctx context.Context, request common.OCIRe
return response, err
}

// ListIncidentResourceTypes This API returns the list of all possible product that OCI supports, while creating an incident
// ListIncidentResourceTypes During support ticket creation, returns the list of all possible products that Oracle Cloud Infrastructure supports.
func (client IncidentClient) ListIncidentResourceTypes(ctx context.Context, request ListIncidentResourceTypesRequest) (response ListIncidentResourceTypesResponse, err error) {
var ociResponse common.OCIResponse
policy := common.NoRetryPolicy()
Expand Down Expand Up @@ -268,7 +263,7 @@ func (client IncidentClient) listIncidentResourceTypes(ctx context.Context, requ
return response, err
}

// ListIncidents This API returns the list of incidents raised by the tenant
// ListIncidents Returns the list of support tickets raised by the tenancy.
func (client IncidentClient) ListIncidents(ctx context.Context, request ListIncidentsRequest) (response ListIncidentsResponse, err error) {
var ociResponse common.OCIResponse
policy := common.NoRetryPolicy()
Expand Down Expand Up @@ -315,18 +310,13 @@ func (client IncidentClient) listIncidents(ctx context.Context, request common.O
return response, err
}

// UpdateIncident This API updates an existing incident
// UpdateIncident Updates the specified support ticket's information.
func (client IncidentClient) UpdateIncident(ctx context.Context, request UpdateIncidentRequest) (response UpdateIncidentResponse, err error) {
var ociResponse common.OCIResponse
policy := common.NoRetryPolicy()
if request.RetryPolicy() != nil {
policy = *request.RetryPolicy()
}

if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") {
request.OpcRetryToken = common.String(common.RetryToken())
}

ociResponse, err = common.Retry(ctx, request, client.updateIncident, policy)
if err != nil {
if ociResponse != nil {
Expand Down Expand Up @@ -367,18 +357,13 @@ func (client IncidentClient) updateIncident(ctx context.Context, request common.
return response, err
}

// ValidateUser ValidateUser
// ValidateUser Checks whether the requested user is valid.
func (client IncidentClient) ValidateUser(ctx context.Context, request ValidateUserRequest) (response ValidateUserResponse, err error) {
var ociResponse common.OCIResponse
policy := common.NoRetryPolicy()
if request.RetryPolicy() != nil {
policy = *request.RetryPolicy()
}

if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") {
request.OpcRetryToken = common.String(common.RetryToken())
}

ociResponse, err = common.Retry(ctx, request, client.validateUser, policy)
if err != nil {
if ociResponse != nil {
Expand Down
123 changes: 123 additions & 0 deletions cims/cims_user_client.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
// Code generated. DO NOT EDIT.

// Support Management API
//
// Use the Support Management API to manage support requests. For more information, see Getting Help and Contacting Support (https://docs.cloud.oracle.com/iaas/Content/GSG/Tasks/contactingsupport.htm). **Note**: Before you can create service requests with this API, you need to have an Oracle Single Sign On (SSO) account, and you need to register your Customer Support Identifier (CSI) with My Oracle Support.
//

package cims

import (
"context"
"fmt"
"github.com/oracle/oci-go-sdk/common"
"net/http"
)

//UserClient a client for User
type UserClient struct {
common.BaseClient
config *common.ConfigurationProvider
}

// NewUserClientWithConfigurationProvider Creates a new default User client with the given configuration provider.
// the configuration provider will be used for the default signer as well as reading the region
func NewUserClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client UserClient, err error) {
baseClient, err := common.NewClientWithConfig(configProvider)
if err != nil {
return
}

return newUserClientFromBaseClient(baseClient, configProvider)
}

// NewUserClientWithOboToken Creates a new default User client with the given configuration provider.
// The obotoken will be added to default headers and signed; the configuration provider will be used for the signer
// as well as reading the region
func NewUserClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client UserClient, err error) {
baseClient, err := common.NewClientWithOboToken(configProvider, oboToken)
if err != nil {
return
}

return newUserClientFromBaseClient(baseClient, configProvider)
}

func newUserClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client UserClient, err error) {
client = UserClient{BaseClient: baseClient}
client.BasePath = "20181231"
err = client.setConfigurationProvider(configProvider)
return
}

// SetRegion overrides the region of this client.
func (client *UserClient) SetRegion(region string) {
client.Host = common.StringToRegion(region).EndpointForTemplate("cims", "https://incidentmanagement.{region}.{secondLevelDomain}")
}

// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid
func (client *UserClient) setConfigurationProvider(configProvider common.ConfigurationProvider) error {
if ok, err := common.IsConfigurationProviderValid(configProvider); !ok {
return err
}

// Error has been checked already
region, _ := configProvider.Region()
client.SetRegion(region)
client.config = &configProvider
return nil
}

// ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (client *UserClient) ConfigurationProvider() *common.ConfigurationProvider {
return client.config
}

// CreateUser Create user to request Customer Support Identifier(CSI) to Customer User Administrator(CUA).
func (client UserClient) CreateUser(ctx context.Context, request CreateUserRequest) (response CreateUserResponse, err error) {
var ociResponse common.OCIResponse
policy := common.NoRetryPolicy()
if request.RetryPolicy() != nil {
policy = *request.RetryPolicy()
}
ociResponse, err = common.Retry(ctx, request, client.createUser, policy)
if err != nil {
if ociResponse != nil {
if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil {
opcRequestId := httpResponse.Header.Get("opc-request-id")
response = CreateUserResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId}
} else {
response = CreateUserResponse{}
}
}
return
}
if convertedResponse, ok := ociResponse.(CreateUserResponse); ok {
response = convertedResponse
} else {
err = fmt.Errorf("failed to convert OCIResponse into CreateUserResponse")
}
return
}

// createUser implements the OCIOperation interface (enables retrying operations)
func (client UserClient) createUser(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) {
httpRequest, err := request.HTTPRequest(http.MethodPost, "/v2/users")
if err != nil {
return nil, err
}

var response CreateUserResponse
var httpResponse *http.Response
httpResponse, err = client.Call(ctx, &httpRequest)
defer common.CloseBodyIfValid(httpResponse)
response.RawResponse = httpResponse
if err != nil {
return response, err
}

err = common.UnmarshalResponse(httpResponse, &response)
return response, err
}
16 changes: 8 additions & 8 deletions cims/classifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,28 @@ import (
"github.com/oracle/oci-go-sdk/common"
)

// Classifier Incident Classifier details
// Classifier Details about the incident classifier object.
type Classifier struct {

// Unique ID that identifies a classifier
// Unique identifier of the classifier.
Id *string `mandatory:"false" json:"id"`

// Name of classifier. eg: LIMIT Increase
// The display name of the classifier.
Name *string `mandatory:"false" json:"name"`

// Label of classifier
// The label associated with the classifier.
Label *string `mandatory:"false" json:"label"`

// Description of classifier
// The description of the classifier.
Description *string `mandatory:"false" json:"description"`

// List of Issues
// The list of issues.
IssueTypeList []IssueType `mandatory:"false" json:"issueTypeList"`

// Scope of Service category/resource
// The scope of the service category or resource.
Scope ClassifierScopeEnum `mandatory:"false" json:"scope,omitempty"`

// Unit to measure Service category/ resource
// The unit to use to measure the service category or resource.
Unit ClassifierUnitEnum `mandatory:"false" json:"unit,omitempty"`
}

Expand Down
10 changes: 5 additions & 5 deletions cims/contact.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ import (
"github.com/oracle/oci-go-sdk/common"
)

// Contact Contact Details of the Customer
// Contact Contact details for the customer.
type Contact struct {

// Contact person name
// The name of the contact person.
ContactName *string `mandatory:"false" json:"contactName"`

// Contact person email
// The email of the contact person.
ContactEmail *string `mandatory:"false" json:"contactEmail"`

// Contact person phone number
// The phone number of the contact person.
ContactPhone *string `mandatory:"false" json:"contactPhone"`

// ContactType enum. eg: MANAGER, PRIMARY
// The type of contact, such as primary or alternate.
ContactType ContactContactTypeEnum `mandatory:"false" json:"contactType,omitempty"`
}

Expand Down
Loading

0 comments on commit 2fac26f

Please sign in to comment.