|
| 1 | +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. |
| 2 | +// Code generated. DO NOT EDIT. |
| 3 | + |
| 4 | +// Core Services API |
| 5 | +// |
| 6 | +// APIs for Networking Service, Compute Service, and Block Volume Service. |
| 7 | +// |
| 8 | + |
| 9 | +package core |
| 10 | + |
| 11 | +import ( |
| 12 | + "github.com/oracle/oci-go-sdk/common" |
| 13 | +) |
| 14 | + |
| 15 | +// AppCatalogListingResourceVersion Listing Resource Version |
| 16 | +type AppCatalogListingResourceVersion struct { |
| 17 | + |
| 18 | + // The OCID of the listing this resource version belongs to. |
| 19 | + ListingId *string `mandatory:"false" json:"listingId"` |
| 20 | + |
| 21 | + // Date and time the listing resource version was published, in RFC3339 format. |
| 22 | + // Example: `2018-03-20T12:32:53.532Z` |
| 23 | + TimePublished *common.SDKTime `mandatory:"false" json:"timePublished"` |
| 24 | + |
| 25 | + // OCID of the listing resource. |
| 26 | + ListingResourceId *string `mandatory:"false" json:"listingResourceId"` |
| 27 | + |
| 28 | + // Resource Version. |
| 29 | + ListingResourceVersion *string `mandatory:"false" json:"listingResourceVersion"` |
| 30 | + |
| 31 | + // List of regions that this listing resource version is available. |
| 32 | + // For information about Regions, see |
| 33 | + // Regions (https://docs.us-phoenix-1.oraclecloud.comGeneral/Concepts/regions.htm). |
| 34 | + // Example: `["us-ashburn-1", "us-phoenix-1"]` |
| 35 | + AvailableRegions []string `mandatory:"false" json:"availableRegions"` |
| 36 | + |
| 37 | + // Array of shapes compatible with this resource. |
| 38 | + // You may enumerate all available shapes by calling listShapes. |
| 39 | + // Example: `["VM.Standard1.1", "VM.Standard1.2"]` |
| 40 | + CompatibleShapes []string `mandatory:"false" json:"compatibleShapes"` |
| 41 | + |
| 42 | + // List of accessible ports for instances launched with this listing resource version. |
| 43 | + AccessiblePorts []int `mandatory:"false" json:"accessiblePorts"` |
| 44 | + |
| 45 | + // Allowed actions for the listing resource. |
| 46 | + AllowedActions []AppCatalogListingResourceVersionAllowedActionsEnum `mandatory:"false" json:"allowedActions,omitempty"` |
| 47 | +} |
| 48 | + |
| 49 | +func (m AppCatalogListingResourceVersion) String() string { |
| 50 | + return common.PointerString(m) |
| 51 | +} |
| 52 | + |
| 53 | +// AppCatalogListingResourceVersionAllowedActionsEnum Enum with underlying type: string |
| 54 | +type AppCatalogListingResourceVersionAllowedActionsEnum string |
| 55 | + |
| 56 | +// Set of constants representing the allowable values for AppCatalogListingResourceVersionAllowedActions |
| 57 | +const ( |
| 58 | + AppCatalogListingResourceVersionAllowedActionsSnapshot AppCatalogListingResourceVersionAllowedActionsEnum = "SNAPSHOT" |
| 59 | + AppCatalogListingResourceVersionAllowedActionsBootVolumeDetach AppCatalogListingResourceVersionAllowedActionsEnum = "BOOT_VOLUME_DETACH" |
| 60 | + AppCatalogListingResourceVersionAllowedActionsPreserveBootVolume AppCatalogListingResourceVersionAllowedActionsEnum = "PRESERVE_BOOT_VOLUME" |
| 61 | + AppCatalogListingResourceVersionAllowedActionsSerialConsoleAccess AppCatalogListingResourceVersionAllowedActionsEnum = "SERIAL_CONSOLE_ACCESS" |
| 62 | + AppCatalogListingResourceVersionAllowedActionsBootRecovery AppCatalogListingResourceVersionAllowedActionsEnum = "BOOT_RECOVERY" |
| 63 | + AppCatalogListingResourceVersionAllowedActionsBackupBootVolume AppCatalogListingResourceVersionAllowedActionsEnum = "BACKUP_BOOT_VOLUME" |
| 64 | + AppCatalogListingResourceVersionAllowedActionsCaptureConsoleHistory AppCatalogListingResourceVersionAllowedActionsEnum = "CAPTURE_CONSOLE_HISTORY" |
| 65 | +) |
| 66 | + |
| 67 | +var mappingAppCatalogListingResourceVersionAllowedActions = map[string]AppCatalogListingResourceVersionAllowedActionsEnum{ |
| 68 | + "SNAPSHOT": AppCatalogListingResourceVersionAllowedActionsSnapshot, |
| 69 | + "BOOT_VOLUME_DETACH": AppCatalogListingResourceVersionAllowedActionsBootVolumeDetach, |
| 70 | + "PRESERVE_BOOT_VOLUME": AppCatalogListingResourceVersionAllowedActionsPreserveBootVolume, |
| 71 | + "SERIAL_CONSOLE_ACCESS": AppCatalogListingResourceVersionAllowedActionsSerialConsoleAccess, |
| 72 | + "BOOT_RECOVERY": AppCatalogListingResourceVersionAllowedActionsBootRecovery, |
| 73 | + "BACKUP_BOOT_VOLUME": AppCatalogListingResourceVersionAllowedActionsBackupBootVolume, |
| 74 | + "CAPTURE_CONSOLE_HISTORY": AppCatalogListingResourceVersionAllowedActionsCaptureConsoleHistory, |
| 75 | +} |
| 76 | + |
| 77 | +// GetAppCatalogListingResourceVersionAllowedActionsEnumValues Enumerates the set of values for AppCatalogListingResourceVersionAllowedActions |
| 78 | +func GetAppCatalogListingResourceVersionAllowedActionsEnumValues() []AppCatalogListingResourceVersionAllowedActionsEnum { |
| 79 | + values := make([]AppCatalogListingResourceVersionAllowedActionsEnum, 0) |
| 80 | + for _, v := range mappingAppCatalogListingResourceVersionAllowedActions { |
| 81 | + values = append(values, v) |
| 82 | + } |
| 83 | + return values |
| 84 | +} |
0 commit comments