-
Notifications
You must be signed in to change notification settings - Fork 82
/
time_zone.go
164 lines (154 loc) · 8.62 KB
/
time_zone.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
// Copyright (c) 2016, 2018, 2024, 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 (
"strings"
)
// TimeZoneEnum Enum with underlying type: string
type TimeZoneEnum string
// Set of constants representing the allowable values for TimeZoneEnum
const (
TimeZoneGreenwichMeanTime TimeZoneEnum = "GREENWICH_MEAN_TIME"
TimeZoneEuropeanCentralTime TimeZoneEnum = "EUROPEAN_CENTRAL_TIME"
TimeZoneEasternEuropeanTime TimeZoneEnum = "EASTERN_EUROPEAN_TIME"
TimeZoneEasternAfricanTime TimeZoneEnum = "EASTERN_AFRICAN_TIME"
TimeZoneMiddleEastTime TimeZoneEnum = "MIDDLE_EAST_TIME"
TimeZoneNearEastTime TimeZoneEnum = "NEAR_EAST_TIME"
TimeZonePakistanLahoreTime TimeZoneEnum = "PAKISTAN_LAHORE_TIME"
TimeZoneIndiaStandardTime TimeZoneEnum = "INDIA_STANDARD_TIME"
TimeZoneBangladeshStandardTime TimeZoneEnum = "BANGLADESH_STANDARD_TIME"
TimeZoneVietnamStandardTime TimeZoneEnum = "VIETNAM_STANDARD_TIME"
TimeZoneChinaTaiwanTime TimeZoneEnum = "CHINA_TAIWAN_TIME"
TimeZoneJapanStandardTime TimeZoneEnum = "JAPAN_STANDARD_TIME"
TimeZoneAustraliaCentralTime TimeZoneEnum = "AUSTRALIA_CENTRAL_TIME"
TimeZoneAustraliaEasternTime TimeZoneEnum = "AUSTRALIA_EASTERN_TIME"
TimeZoneSolomonStandardTime TimeZoneEnum = "SOLOMON_STANDARD_TIME"
TimeZoneNewZealandStandardTime TimeZoneEnum = "NEW_ZEALAND_STANDARD_TIME"
TimeZoneMidwayIslandsTime TimeZoneEnum = "MIDWAY_ISLANDS_TIME"
TimeZoneHawaiiStandardTime TimeZoneEnum = "HAWAII_STANDARD_TIME"
TimeZoneAlaskaStandardTime TimeZoneEnum = "ALASKA_STANDARD_TIME"
TimeZonePacificStandardTime TimeZoneEnum = "PACIFIC_STANDARD_TIME"
TimeZoneMountainStandardTime TimeZoneEnum = "MOUNTAIN_STANDARD_TIME"
TimeZoneCentralStandardTime TimeZoneEnum = "CENTRAL_STANDARD_TIME"
TimeZoneEasternStandardTime TimeZoneEnum = "EASTERN_STANDARD_TIME"
TimeZonePuertoRicoAndUsVirginIslandsTime TimeZoneEnum = "PUERTO_RICO_AND_US_VIRGIN_ISLANDS_TIME"
TimeZoneCanadaNewfoundlandTime TimeZoneEnum = "CANADA_NEWFOUNDLAND_TIME"
TimeZoneArgentinaStandardTime TimeZoneEnum = "ARGENTINA_STANDARD_TIME"
TimeZoneMidAtlanticTime TimeZoneEnum = "MID_ATLANTIC_TIME"
TimeZoneCentralAfricanTime TimeZoneEnum = "CENTRAL_AFRICAN_TIME"
)
var mappingTimeZoneEnum = map[string]TimeZoneEnum{
"GREENWICH_MEAN_TIME": TimeZoneGreenwichMeanTime,
"EUROPEAN_CENTRAL_TIME": TimeZoneEuropeanCentralTime,
"EASTERN_EUROPEAN_TIME": TimeZoneEasternEuropeanTime,
"EASTERN_AFRICAN_TIME": TimeZoneEasternAfricanTime,
"MIDDLE_EAST_TIME": TimeZoneMiddleEastTime,
"NEAR_EAST_TIME": TimeZoneNearEastTime,
"PAKISTAN_LAHORE_TIME": TimeZonePakistanLahoreTime,
"INDIA_STANDARD_TIME": TimeZoneIndiaStandardTime,
"BANGLADESH_STANDARD_TIME": TimeZoneBangladeshStandardTime,
"VIETNAM_STANDARD_TIME": TimeZoneVietnamStandardTime,
"CHINA_TAIWAN_TIME": TimeZoneChinaTaiwanTime,
"JAPAN_STANDARD_TIME": TimeZoneJapanStandardTime,
"AUSTRALIA_CENTRAL_TIME": TimeZoneAustraliaCentralTime,
"AUSTRALIA_EASTERN_TIME": TimeZoneAustraliaEasternTime,
"SOLOMON_STANDARD_TIME": TimeZoneSolomonStandardTime,
"NEW_ZEALAND_STANDARD_TIME": TimeZoneNewZealandStandardTime,
"MIDWAY_ISLANDS_TIME": TimeZoneMidwayIslandsTime,
"HAWAII_STANDARD_TIME": TimeZoneHawaiiStandardTime,
"ALASKA_STANDARD_TIME": TimeZoneAlaskaStandardTime,
"PACIFIC_STANDARD_TIME": TimeZonePacificStandardTime,
"MOUNTAIN_STANDARD_TIME": TimeZoneMountainStandardTime,
"CENTRAL_STANDARD_TIME": TimeZoneCentralStandardTime,
"EASTERN_STANDARD_TIME": TimeZoneEasternStandardTime,
"PUERTO_RICO_AND_US_VIRGIN_ISLANDS_TIME": TimeZonePuertoRicoAndUsVirginIslandsTime,
"CANADA_NEWFOUNDLAND_TIME": TimeZoneCanadaNewfoundlandTime,
"ARGENTINA_STANDARD_TIME": TimeZoneArgentinaStandardTime,
"MID_ATLANTIC_TIME": TimeZoneMidAtlanticTime,
"CENTRAL_AFRICAN_TIME": TimeZoneCentralAfricanTime,
}
var mappingTimeZoneEnumLowerCase = map[string]TimeZoneEnum{
"greenwich_mean_time": TimeZoneGreenwichMeanTime,
"european_central_time": TimeZoneEuropeanCentralTime,
"eastern_european_time": TimeZoneEasternEuropeanTime,
"eastern_african_time": TimeZoneEasternAfricanTime,
"middle_east_time": TimeZoneMiddleEastTime,
"near_east_time": TimeZoneNearEastTime,
"pakistan_lahore_time": TimeZonePakistanLahoreTime,
"india_standard_time": TimeZoneIndiaStandardTime,
"bangladesh_standard_time": TimeZoneBangladeshStandardTime,
"vietnam_standard_time": TimeZoneVietnamStandardTime,
"china_taiwan_time": TimeZoneChinaTaiwanTime,
"japan_standard_time": TimeZoneJapanStandardTime,
"australia_central_time": TimeZoneAustraliaCentralTime,
"australia_eastern_time": TimeZoneAustraliaEasternTime,
"solomon_standard_time": TimeZoneSolomonStandardTime,
"new_zealand_standard_time": TimeZoneNewZealandStandardTime,
"midway_islands_time": TimeZoneMidwayIslandsTime,
"hawaii_standard_time": TimeZoneHawaiiStandardTime,
"alaska_standard_time": TimeZoneAlaskaStandardTime,
"pacific_standard_time": TimeZonePacificStandardTime,
"mountain_standard_time": TimeZoneMountainStandardTime,
"central_standard_time": TimeZoneCentralStandardTime,
"eastern_standard_time": TimeZoneEasternStandardTime,
"puerto_rico_and_us_virgin_islands_time": TimeZonePuertoRicoAndUsVirginIslandsTime,
"canada_newfoundland_time": TimeZoneCanadaNewfoundlandTime,
"argentina_standard_time": TimeZoneArgentinaStandardTime,
"mid_atlantic_time": TimeZoneMidAtlanticTime,
"central_african_time": TimeZoneCentralAfricanTime,
}
// GetTimeZoneEnumValues Enumerates the set of values for TimeZoneEnum
func GetTimeZoneEnumValues() []TimeZoneEnum {
values := make([]TimeZoneEnum, 0)
for _, v := range mappingTimeZoneEnum {
values = append(values, v)
}
return values
}
// GetTimeZoneEnumStringValues Enumerates the set of values in String for TimeZoneEnum
func GetTimeZoneEnumStringValues() []string {
return []string{
"GREENWICH_MEAN_TIME",
"EUROPEAN_CENTRAL_TIME",
"EASTERN_EUROPEAN_TIME",
"EASTERN_AFRICAN_TIME",
"MIDDLE_EAST_TIME",
"NEAR_EAST_TIME",
"PAKISTAN_LAHORE_TIME",
"INDIA_STANDARD_TIME",
"BANGLADESH_STANDARD_TIME",
"VIETNAM_STANDARD_TIME",
"CHINA_TAIWAN_TIME",
"JAPAN_STANDARD_TIME",
"AUSTRALIA_CENTRAL_TIME",
"AUSTRALIA_EASTERN_TIME",
"SOLOMON_STANDARD_TIME",
"NEW_ZEALAND_STANDARD_TIME",
"MIDWAY_ISLANDS_TIME",
"HAWAII_STANDARD_TIME",
"ALASKA_STANDARD_TIME",
"PACIFIC_STANDARD_TIME",
"MOUNTAIN_STANDARD_TIME",
"CENTRAL_STANDARD_TIME",
"EASTERN_STANDARD_TIME",
"PUERTO_RICO_AND_US_VIRGIN_ISLANDS_TIME",
"CANADA_NEWFOUNDLAND_TIME",
"ARGENTINA_STANDARD_TIME",
"MID_ATLANTIC_TIME",
"CENTRAL_AFRICAN_TIME",
}
}
// GetMappingTimeZoneEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingTimeZoneEnum(val string) (TimeZoneEnum, bool) {
enum, ok := mappingTimeZoneEnumLowerCase[strings.ToLower(val)]
return enum, ok
}