Skip to content

Commit 455306b

Browse files
author
DEXREQ Automation
committed
Merge pull request #2513 in SDK/oci-go-sdk from merge_to_github2023-08-31 to github
Releasing Version 65.49.0 Squashed commit of the following: commit 2b1a64ba8f3ae2234c2eb090361eeb0987f596bf Author: oci-dex-release-bot <oci-dex-releases-bot_ww@oracle.com> Date: Thu Aug 31 17:47:33 2023 +0000 Releasing version 65 49 0
1 parent 215dc9b commit 455306b

File tree

169 files changed

+3254
-956
lines changed

Some content is hidden

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

169 files changed

+3254
-956
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,24 @@ 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+
## 65.49.0 - 2023-09-05
8+
### Added
9+
- Support for queue channels in the Queue Service
10+
- Support for entity lineage retrieval and asynchronous glossary export in the Data Catalog service
11+
- Support for filtering and sorting while listing work requests in the Container Instances service
12+
- Support for the ability to create support requests for various support ticket types (TECH,LIMIT, ACCOUNT) in the Customer Incident Management Service
13+
- Endpoint changed from https://incidentmanagement.{region}.{domainAndTopLevelDomain} to https://incidentmanagement.{region}.oci.{domainAndTopLevelDomain} (e.g. https://incidentmanagement.us-phoenix-1.oraclecloud.com to https://incidentmanagement.us-phoenix-1.oci.oraclecloud.com) in the Customer Incident Management Service
14+
15+
### Breaking Changes
16+
- The type of property `Region` was changed from `RegionEnum` to `*string` in the models `Resource` and `CreateResourceDetails` in the Customer Incident Management Service
17+
- The models `AvailabilityDomain`, `RegionEnum`, `CreateUserRequest`, and `UserClient` were removed from the Customer Incident Management Service
18+
- The type of property `ProblemType` was changed from `string` to `ProblemType` in the `ValidateUserRequest` model in the Customer Incident Management Service
19+
- The property `Source` was removed from the model `GetStatusRequest` in the Customer Incident Management Service
20+
- The property `ProblemType` was renamed to `Problemtype` in the model `GetIncidentRequest` in the Customer Incident Management Service
21+
- The property `AvailabilityDomain` was removed from the models `Resource` and `CreateResourceDetails` in the Customer Incident Management Service
22+
- The property `Country` was removed from the model `CreateUserDetails` in the Customer Incident Management Service
23+
24+
725
## 65.48.0 - 2023-08-29
826
### Added
927
- Support for creating and updating network monitors in the Application Performance Monitoring Synthetics service

cims/account_item.go

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved.
2+
// 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.
3+
// Code generated. DO NOT EDIT.
4+
5+
// Support Management API
6+
//
7+
// Use the Support Management API to manage support requests.
8+
// For more information, see Getting Help and Contacting Support (https://docs.cloud.oracle.com/iaas/Content/GSG/Tasks/contactingsupport.htm).
9+
// **Note**: Before you can create service requests with this API,
10+
// you need to have an Oracle Single Sign On (SSO) account,
11+
// and you need to register your Customer Support Identifier (CSI) with My Oracle Support.
12+
//
13+
14+
package cims
15+
16+
import (
17+
"encoding/json"
18+
"fmt"
19+
"github.com/oracle/oci-go-sdk/v65/common"
20+
"strings"
21+
)
22+
23+
// AccountItem Details about the AccountItem object.
24+
type AccountItem struct {
25+
26+
// Unique identifier for the item.
27+
ItemKey *string `mandatory:"true" json:"itemKey"`
28+
29+
// The display name of the item. Avoid entering confidential information.
30+
Name *string `mandatory:"false" json:"name"`
31+
32+
Category *Category `mandatory:"false" json:"category"`
33+
34+
SubCategory *SubCategory `mandatory:"false" json:"subCategory"`
35+
36+
IssueType *IssueType `mandatory:"false" json:"issueType"`
37+
}
38+
39+
//GetItemKey returns ItemKey
40+
func (m AccountItem) GetItemKey() *string {
41+
return m.ItemKey
42+
}
43+
44+
//GetName returns Name
45+
func (m AccountItem) GetName() *string {
46+
return m.Name
47+
}
48+
49+
//GetCategory returns Category
50+
func (m AccountItem) GetCategory() *Category {
51+
return m.Category
52+
}
53+
54+
//GetSubCategory returns SubCategory
55+
func (m AccountItem) GetSubCategory() *SubCategory {
56+
return m.SubCategory
57+
}
58+
59+
//GetIssueType returns IssueType
60+
func (m AccountItem) GetIssueType() *IssueType {
61+
return m.IssueType
62+
}
63+
64+
func (m AccountItem) String() string {
65+
return common.PointerString(m)
66+
}
67+
68+
// ValidateEnumValue returns an error when providing an unsupported enum value
69+
// This function is being called during constructing API request process
70+
// Not recommended for calling this function directly
71+
func (m AccountItem) ValidateEnumValue() (bool, error) {
72+
errMessage := []string{}
73+
74+
if len(errMessage) > 0 {
75+
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
76+
}
77+
return false, nil
78+
}
79+
80+
// MarshalJSON marshals to json representation
81+
func (m AccountItem) MarshalJSON() (buff []byte, e error) {
82+
type MarshalTypeAccountItem AccountItem
83+
s := struct {
84+
DiscriminatorParam string `json:"type"`
85+
MarshalTypeAccountItem
86+
}{
87+
"account",
88+
(MarshalTypeAccountItem)(m),
89+
}
90+
91+
return json.Marshal(&s)
92+
}

cims/activity_item.go

Lines changed: 123 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44

55
// Support Management API
66
//
7-
// 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.
7+
// Use the Support Management API to manage support requests.
8+
// For more information, see Getting Help and Contacting Support (https://docs.cloud.oracle.com/iaas/Content/GSG/Tasks/contactingsupport.htm).
9+
// **Note**: Before you can create service requests with this API,
10+
// you need to have an Oracle Single Sign On (SSO) account,
11+
// and you need to register your Customer Support Identifier (CSI) with My Oracle Support.
812
//
913

1014
package cims
@@ -22,7 +26,16 @@ type ActivityItem struct {
2226
// Unique identifier for the item.
2327
ItemKey *string `mandatory:"true" json:"itemKey"`
2428

25-
// The display name of the item.
29+
// Comments added with the activity on the support ticket.
30+
Comments *string `mandatory:"true" json:"comments"`
31+
32+
// The time when the activity was created, in milliseconds since epoch time.
33+
TimeCreated *int `mandatory:"true" json:"timeCreated"`
34+
35+
// The time when the activity was updated, in milliseconds since epoch time.
36+
TimeUpdated *int `mandatory:"true" json:"timeUpdated"`
37+
38+
// The display name of the item. Avoid entering confidential information.
2639
Name *string `mandatory:"false" json:"name"`
2740

2841
Category *Category `mandatory:"false" json:"category"`
@@ -31,20 +44,15 @@ type ActivityItem struct {
3144

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

34-
// Comments added with the activity on the support ticket.
35-
Comments *string `mandatory:"false" json:"comments"`
36-
37-
// The time when the activity was created, in milliseconds since epoch time.
38-
TimeCreated *int `mandatory:"false" json:"timeCreated"`
47+
// The type of activity occuring on the support ticket.
48+
ActivityType ActivityItemActivityTypeEnum `mandatory:"true" json:"activityType"`
3949

40-
// The time when the activity was updated, in milliseconds since epoch time.
41-
TimeUpdated *int `mandatory:"false" json:"timeUpdated"`
50+
ActivityAuthor ActivityItemActivityAuthorEnum `mandatory:"true" json:"activityAuthor"`
4251

43-
// The type of activity occuring on the support ticket.
44-
ActivityType ActivityItemActivityTypeEnum `mandatory:"false" json:"activityType,omitempty"`
52+
ItemType ActivityItemItemTypeEnum `mandatory:"false" json:"itemType,omitempty"`
4553

46-
// The person who updates the activity on the support ticket.
47-
ActivityAuthor ActivityItemActivityAuthorEnum `mandatory:"false" json:"activityAuthor,omitempty"`
54+
// Who updates the activity on the support ticket.
55+
ItemStatus ActivityItemItemStatusEnum `mandatory:"false" json:"itemStatus,omitempty"`
4856
}
4957

5058
//GetItemKey returns ItemKey
@@ -87,6 +95,12 @@ func (m ActivityItem) ValidateEnumValue() (bool, error) {
8795
if _, ok := GetMappingActivityItemActivityAuthorEnum(string(m.ActivityAuthor)); !ok && m.ActivityAuthor != "" {
8896
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ActivityAuthor: %s. Supported values are: %s.", m.ActivityAuthor, strings.Join(GetActivityItemActivityAuthorEnumStringValues(), ",")))
8997
}
98+
if _, ok := GetMappingActivityItemItemTypeEnum(string(m.ItemType)); !ok && m.ItemType != "" {
99+
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ItemType: %s. Supported values are: %s.", m.ItemType, strings.Join(GetActivityItemItemTypeEnumStringValues(), ",")))
100+
}
101+
if _, ok := GetMappingActivityItemItemStatusEnum(string(m.ItemStatus)); !ok && m.ItemStatus != "" {
102+
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ItemStatus: %s. Supported values are: %s.", m.ItemStatus, strings.Join(GetActivityItemItemStatusEnumStringValues(), ",")))
103+
}
90104

91105
if len(errMessage) > 0 {
92106
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
@@ -117,20 +131,23 @@ const (
117131
ActivityItemActivityTypeProblemDescription ActivityItemActivityTypeEnum = "PROBLEM_DESCRIPTION"
118132
ActivityItemActivityTypeUpdate ActivityItemActivityTypeEnum = "UPDATE"
119133
ActivityItemActivityTypeClose ActivityItemActivityTypeEnum = "CLOSE"
134+
ActivityItemActivityTypeReopen ActivityItemActivityTypeEnum = "REOPEN"
120135
)
121136

122137
var mappingActivityItemActivityTypeEnum = map[string]ActivityItemActivityTypeEnum{
123138
"NOTES": ActivityItemActivityTypeNotes,
124139
"PROBLEM_DESCRIPTION": ActivityItemActivityTypeProblemDescription,
125140
"UPDATE": ActivityItemActivityTypeUpdate,
126141
"CLOSE": ActivityItemActivityTypeClose,
142+
"REOPEN": ActivityItemActivityTypeReopen,
127143
}
128144

129145
var mappingActivityItemActivityTypeEnumLowerCase = map[string]ActivityItemActivityTypeEnum{
130146
"notes": ActivityItemActivityTypeNotes,
131147
"problem_description": ActivityItemActivityTypeProblemDescription,
132148
"update": ActivityItemActivityTypeUpdate,
133149
"close": ActivityItemActivityTypeClose,
150+
"reopen": ActivityItemActivityTypeReopen,
134151
}
135152

136153
// GetActivityItemActivityTypeEnumValues Enumerates the set of values for ActivityItemActivityTypeEnum
@@ -149,6 +166,7 @@ func GetActivityItemActivityTypeEnumStringValues() []string {
149166
"PROBLEM_DESCRIPTION",
150167
"UPDATE",
151168
"CLOSE",
169+
"REOPEN",
152170
}
153171
}
154172

@@ -199,3 +217,95 @@ func GetMappingActivityItemActivityAuthorEnum(val string) (ActivityItemActivityA
199217
enum, ok := mappingActivityItemActivityAuthorEnumLowerCase[strings.ToLower(val)]
200218
return enum, ok
201219
}
220+
221+
// ActivityItemItemTypeEnum Enum with underlying type: string
222+
type ActivityItemItemTypeEnum string
223+
224+
// Set of constants representing the allowable values for ActivityItemItemTypeEnum
225+
const (
226+
ActivityItemItemTypeAttachments ActivityItemItemTypeEnum = "ATTACHMENTS"
227+
ActivityItemItemTypeComments ActivityItemItemTypeEnum = "COMMENTS"
228+
)
229+
230+
var mappingActivityItemItemTypeEnum = map[string]ActivityItemItemTypeEnum{
231+
"ATTACHMENTS": ActivityItemItemTypeAttachments,
232+
"COMMENTS": ActivityItemItemTypeComments,
233+
}
234+
235+
var mappingActivityItemItemTypeEnumLowerCase = map[string]ActivityItemItemTypeEnum{
236+
"attachments": ActivityItemItemTypeAttachments,
237+
"comments": ActivityItemItemTypeComments,
238+
}
239+
240+
// GetActivityItemItemTypeEnumValues Enumerates the set of values for ActivityItemItemTypeEnum
241+
func GetActivityItemItemTypeEnumValues() []ActivityItemItemTypeEnum {
242+
values := make([]ActivityItemItemTypeEnum, 0)
243+
for _, v := range mappingActivityItemItemTypeEnum {
244+
values = append(values, v)
245+
}
246+
return values
247+
}
248+
249+
// GetActivityItemItemTypeEnumStringValues Enumerates the set of values in String for ActivityItemItemTypeEnum
250+
func GetActivityItemItemTypeEnumStringValues() []string {
251+
return []string{
252+
"ATTACHMENTS",
253+
"COMMENTS",
254+
}
255+
}
256+
257+
// GetMappingActivityItemItemTypeEnum performs case Insensitive comparison on enum value and return the desired enum
258+
func GetMappingActivityItemItemTypeEnum(val string) (ActivityItemItemTypeEnum, bool) {
259+
enum, ok := mappingActivityItemItemTypeEnumLowerCase[strings.ToLower(val)]
260+
return enum, ok
261+
}
262+
263+
// ActivityItemItemStatusEnum Enum with underlying type: string
264+
type ActivityItemItemStatusEnum string
265+
266+
// Set of constants representing the allowable values for ActivityItemItemStatusEnum
267+
const (
268+
ActivityItemItemStatusProcessing ActivityItemItemStatusEnum = "PROCESSING"
269+
ActivityItemItemStatusAttached ActivityItemItemStatusEnum = "ATTACHED"
270+
ActivityItemItemStatusRemoved ActivityItemItemStatusEnum = "REMOVED"
271+
ActivityItemItemStatusFailed ActivityItemItemStatusEnum = "FAILED"
272+
)
273+
274+
var mappingActivityItemItemStatusEnum = map[string]ActivityItemItemStatusEnum{
275+
"PROCESSING": ActivityItemItemStatusProcessing,
276+
"ATTACHED": ActivityItemItemStatusAttached,
277+
"REMOVED": ActivityItemItemStatusRemoved,
278+
"FAILED": ActivityItemItemStatusFailed,
279+
}
280+
281+
var mappingActivityItemItemStatusEnumLowerCase = map[string]ActivityItemItemStatusEnum{
282+
"processing": ActivityItemItemStatusProcessing,
283+
"attached": ActivityItemItemStatusAttached,
284+
"removed": ActivityItemItemStatusRemoved,
285+
"failed": ActivityItemItemStatusFailed,
286+
}
287+
288+
// GetActivityItemItemStatusEnumValues Enumerates the set of values for ActivityItemItemStatusEnum
289+
func GetActivityItemItemStatusEnumValues() []ActivityItemItemStatusEnum {
290+
values := make([]ActivityItemItemStatusEnum, 0)
291+
for _, v := range mappingActivityItemItemStatusEnum {
292+
values = append(values, v)
293+
}
294+
return values
295+
}
296+
297+
// GetActivityItemItemStatusEnumStringValues Enumerates the set of values in String for ActivityItemItemStatusEnum
298+
func GetActivityItemItemStatusEnumStringValues() []string {
299+
return []string{
300+
"PROCESSING",
301+
"ATTACHED",
302+
"REMOVED",
303+
"FAILED",
304+
}
305+
}
306+
307+
// GetMappingActivityItemItemStatusEnum performs case Insensitive comparison on enum value and return the desired enum
308+
func GetMappingActivityItemItemStatusEnum(val string) (ActivityItemItemStatusEnum, bool) {
309+
enum, ok := mappingActivityItemItemStatusEnumLowerCase[strings.ToLower(val)]
310+
return enum, ok
311+
}

0 commit comments

Comments
 (0)