-
Notifications
You must be signed in to change notification settings - Fork 82
/
ineligibility_reason_enum.go
116 lines (106 loc) · 8.16 KB
/
ineligibility_reason_enum.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
// 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.
// Marketplace Service API
//
// Use the Marketplace API to manage applications in Oracle Cloud Infrastructure Marketplace. For more information, see Overview of Marketplace (https://docs.cloud.oracle.com/Content/Marketplace/Concepts/marketoverview.htm)
//
package marketplace
import (
"strings"
)
// IneligibilityReasonEnumEnum Enum with underlying type: string
type IneligibilityReasonEnumEnum string
// Set of constants representing the allowable values for IneligibilityReasonEnumEnum
const (
IneligibilityReasonEnumIneligibleAccountCountry IneligibilityReasonEnumEnum = "INELIGIBLE_ACCOUNT_COUNTRY"
IneligibilityReasonEnumIneligibleRegion IneligibilityReasonEnumEnum = "INELIGIBLE_REGION"
IneligibilityReasonEnumIneligibleAccountBlacklisted IneligibilityReasonEnumEnum = "INELIGIBLE_ACCOUNT_BLACKLISTED"
IneligibilityReasonEnumIneligibleAccountFeatureDisabled IneligibilityReasonEnumEnum = "INELIGIBLE_ACCOUNT_FEATURE_DISABLED"
IneligibilityReasonEnumIneligibleAccountCurrency IneligibilityReasonEnumEnum = "INELIGIBLE_ACCOUNT_CURRENCY"
IneligibilityReasonEnumIneligibleAccountNotPaid IneligibilityReasonEnumEnum = "INELIGIBLE_ACCOUNT_NOT_PAID"
IneligibilityReasonEnumIneligibleAccountInternal IneligibilityReasonEnumEnum = "INELIGIBLE_ACCOUNT_INTERNAL"
IneligibilityReasonEnumIneligibleAccountGovSubscription IneligibilityReasonEnumEnum = "INELIGIBLE_ACCOUNT_GOV_SUBSCRIPTION"
IneligibilityReasonEnumIneligiblePaidListingThrottled IneligibilityReasonEnumEnum = "INELIGIBLE_PAID_LISTING_THROTTLED"
IneligibilityReasonEnumIneligibleAccountNotAvailable IneligibilityReasonEnumEnum = "INELIGIBLE_ACCOUNT_NOT_AVAILABLE"
IneligibilityReasonEnumIneligibleAccountNotMonthlyInclusive IneligibilityReasonEnumEnum = "INELIGIBLE_ACCOUNT_NOT_MONTHLY_INCLUSIVE"
IneligibilityReasonEnumImageMetaDataSo IneligibilityReasonEnumEnum = "IMAGE_META_DATA_SO"
IneligibilityReasonEnumIneligibleAccountTenancyNotAllowedAccessImage IneligibilityReasonEnumEnum = "INELIGIBLE_ACCOUNT_TENANCY_NOT_ALLOWED_ACCESS_IMAGE"
IneligibilityReasonEnumIneligibleAccountGovLaunchNonGovListing IneligibilityReasonEnumEnum = "INELIGIBLE_ACCOUNT_GOV_LAUNCH_NON_GOV_LISTING"
IneligibilityReasonEnumAgreementNotAccepted IneligibilityReasonEnumEnum = "AGREEMENT_NOT_ACCEPTED"
IneligibilityReasonEnumNotAuthorized IneligibilityReasonEnumEnum = "NOT_AUTHORIZED"
IneligibilityReasonEnumEligible IneligibilityReasonEnumEnum = "ELIGIBLE"
)
var mappingIneligibilityReasonEnumEnum = map[string]IneligibilityReasonEnumEnum{
"INELIGIBLE_ACCOUNT_COUNTRY": IneligibilityReasonEnumIneligibleAccountCountry,
"INELIGIBLE_REGION": IneligibilityReasonEnumIneligibleRegion,
"INELIGIBLE_ACCOUNT_BLACKLISTED": IneligibilityReasonEnumIneligibleAccountBlacklisted,
"INELIGIBLE_ACCOUNT_FEATURE_DISABLED": IneligibilityReasonEnumIneligibleAccountFeatureDisabled,
"INELIGIBLE_ACCOUNT_CURRENCY": IneligibilityReasonEnumIneligibleAccountCurrency,
"INELIGIBLE_ACCOUNT_NOT_PAID": IneligibilityReasonEnumIneligibleAccountNotPaid,
"INELIGIBLE_ACCOUNT_INTERNAL": IneligibilityReasonEnumIneligibleAccountInternal,
"INELIGIBLE_ACCOUNT_GOV_SUBSCRIPTION": IneligibilityReasonEnumIneligibleAccountGovSubscription,
"INELIGIBLE_PAID_LISTING_THROTTLED": IneligibilityReasonEnumIneligiblePaidListingThrottled,
"INELIGIBLE_ACCOUNT_NOT_AVAILABLE": IneligibilityReasonEnumIneligibleAccountNotAvailable,
"INELIGIBLE_ACCOUNT_NOT_MONTHLY_INCLUSIVE": IneligibilityReasonEnumIneligibleAccountNotMonthlyInclusive,
"IMAGE_META_DATA_SO": IneligibilityReasonEnumImageMetaDataSo,
"INELIGIBLE_ACCOUNT_TENANCY_NOT_ALLOWED_ACCESS_IMAGE": IneligibilityReasonEnumIneligibleAccountTenancyNotAllowedAccessImage,
"INELIGIBLE_ACCOUNT_GOV_LAUNCH_NON_GOV_LISTING": IneligibilityReasonEnumIneligibleAccountGovLaunchNonGovListing,
"AGREEMENT_NOT_ACCEPTED": IneligibilityReasonEnumAgreementNotAccepted,
"NOT_AUTHORIZED": IneligibilityReasonEnumNotAuthorized,
"ELIGIBLE": IneligibilityReasonEnumEligible,
}
var mappingIneligibilityReasonEnumEnumLowerCase = map[string]IneligibilityReasonEnumEnum{
"ineligible_account_country": IneligibilityReasonEnumIneligibleAccountCountry,
"ineligible_region": IneligibilityReasonEnumIneligibleRegion,
"ineligible_account_blacklisted": IneligibilityReasonEnumIneligibleAccountBlacklisted,
"ineligible_account_feature_disabled": IneligibilityReasonEnumIneligibleAccountFeatureDisabled,
"ineligible_account_currency": IneligibilityReasonEnumIneligibleAccountCurrency,
"ineligible_account_not_paid": IneligibilityReasonEnumIneligibleAccountNotPaid,
"ineligible_account_internal": IneligibilityReasonEnumIneligibleAccountInternal,
"ineligible_account_gov_subscription": IneligibilityReasonEnumIneligibleAccountGovSubscription,
"ineligible_paid_listing_throttled": IneligibilityReasonEnumIneligiblePaidListingThrottled,
"ineligible_account_not_available": IneligibilityReasonEnumIneligibleAccountNotAvailable,
"ineligible_account_not_monthly_inclusive": IneligibilityReasonEnumIneligibleAccountNotMonthlyInclusive,
"image_meta_data_so": IneligibilityReasonEnumImageMetaDataSo,
"ineligible_account_tenancy_not_allowed_access_image": IneligibilityReasonEnumIneligibleAccountTenancyNotAllowedAccessImage,
"ineligible_account_gov_launch_non_gov_listing": IneligibilityReasonEnumIneligibleAccountGovLaunchNonGovListing,
"agreement_not_accepted": IneligibilityReasonEnumAgreementNotAccepted,
"not_authorized": IneligibilityReasonEnumNotAuthorized,
"eligible": IneligibilityReasonEnumEligible,
}
// GetIneligibilityReasonEnumEnumValues Enumerates the set of values for IneligibilityReasonEnumEnum
func GetIneligibilityReasonEnumEnumValues() []IneligibilityReasonEnumEnum {
values := make([]IneligibilityReasonEnumEnum, 0)
for _, v := range mappingIneligibilityReasonEnumEnum {
values = append(values, v)
}
return values
}
// GetIneligibilityReasonEnumEnumStringValues Enumerates the set of values in String for IneligibilityReasonEnumEnum
func GetIneligibilityReasonEnumEnumStringValues() []string {
return []string{
"INELIGIBLE_ACCOUNT_COUNTRY",
"INELIGIBLE_REGION",
"INELIGIBLE_ACCOUNT_BLACKLISTED",
"INELIGIBLE_ACCOUNT_FEATURE_DISABLED",
"INELIGIBLE_ACCOUNT_CURRENCY",
"INELIGIBLE_ACCOUNT_NOT_PAID",
"INELIGIBLE_ACCOUNT_INTERNAL",
"INELIGIBLE_ACCOUNT_GOV_SUBSCRIPTION",
"INELIGIBLE_PAID_LISTING_THROTTLED",
"INELIGIBLE_ACCOUNT_NOT_AVAILABLE",
"INELIGIBLE_ACCOUNT_NOT_MONTHLY_INCLUSIVE",
"IMAGE_META_DATA_SO",
"INELIGIBLE_ACCOUNT_TENANCY_NOT_ALLOWED_ACCESS_IMAGE",
"INELIGIBLE_ACCOUNT_GOV_LAUNCH_NON_GOV_LISTING",
"AGREEMENT_NOT_ACCEPTED",
"NOT_AUTHORIZED",
"ELIGIBLE",
}
}
// GetMappingIneligibilityReasonEnumEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingIneligibilityReasonEnumEnum(val string) (IneligibilityReasonEnumEnum, bool) {
enum, ok := mappingIneligibilityReasonEnumEnumLowerCase[strings.ToLower(val)]
return enum, ok
}