|
| 1 | +// Copyright (c) 2016, 2018, 2024, 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 | +// complete user registration at My Oracle Cloud Support |
| 11 | +// and then ask your tenancy administrator to provide you authorization for the related user groups. |
| 12 | +// |
| 13 | + |
| 14 | +package cims |
| 15 | + |
| 16 | +import ( |
| 17 | + "fmt" |
| 18 | + "github.com/oracle/oci-go-sdk/v65/common" |
| 19 | + "strings" |
| 20 | +) |
| 21 | + |
| 22 | +// CmosUserGroupInfo Identifier and name of the technical support request's user group (`userGroupId` and `userGroupName`). |
| 23 | +type CmosUserGroupInfo struct { |
| 24 | + |
| 25 | + // Technical support type (`TECH`) only: The identifier of the support request's user group in My Oracle Cloud Support portal. |
| 26 | + UserGroupId *string `mandatory:"false" json:"userGroupId"` |
| 27 | + |
| 28 | + // Technical support type (`TECH`) only: Name of the support request's user group in My Oracle Cloud Support portal. |
| 29 | + UserGroupName *string `mandatory:"false" json:"userGroupName"` |
| 30 | +} |
| 31 | + |
| 32 | +func (m CmosUserGroupInfo) String() string { |
| 33 | + return common.PointerString(m) |
| 34 | +} |
| 35 | + |
| 36 | +// ValidateEnumValue returns an error when providing an unsupported enum value |
| 37 | +// This function is being called during constructing API request process |
| 38 | +// Not recommended for calling this function directly |
| 39 | +func (m CmosUserGroupInfo) ValidateEnumValue() (bool, error) { |
| 40 | + errMessage := []string{} |
| 41 | + |
| 42 | + if len(errMessage) > 0 { |
| 43 | + return true, fmt.Errorf(strings.Join(errMessage, "\n")) |
| 44 | + } |
| 45 | + return false, nil |
| 46 | +} |
0 commit comments