-
Notifications
You must be signed in to change notification settings - Fork 0
/
resource.go
34 lines (32 loc) · 1.2 KB
/
resource.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
package udm
const (
ACCESS_POLICY = "ACCESS_POLICY"
BACKEND_SERVICE = "BACKEND_SERVICE"
CLOUD_ORGANIZATION = "CLOUD_ORGANIZATION"
CLOUD_PROJECT = "CLOUD_PROJECT"
CLUSTER = "CLUSTER"
DATABASE = "DATABASE"
DATASET = "DATASET"
DEVICE = "DEVICE"
FIREWALL_RULE = "FIREWALL_RULE"
MAILBOX_FOLDER = "MAILBOX_FOLDER"
MUTEX = "MUTEX"
PIPE = "PIP"
SERVICE_ACOUNT = "SERVICE_ACCOUNT"
STORAGE_BUCKET = "STORAGE_BUCKET"
STORAGE_OBJECT = "STORAGE_OBJECT"
TABLE = "TABLE"
TASK = "TASK"
UNSPECIFIED = "UNSPECIFIED"
VIRTUAL_MACHINE = "VIRTUAL_MACHINE"
VPC_NETWORK = "VPC_NETWORK"
)
type Resource struct {
Attribute *Attribute `json:"attribute,omitempty"`
Name string `json:"name,omitempty"`
Parent string `json:"parent,omitempty"`
ProductObjectId string `json:"product_object_id,omitempty"`
ResourceSubtype string `json:"resource_subtype,omitempty"`
ResourceType string `json:"resource_type,omitempty"` // Enumerated constant
Type string `json:"type,omitempty"` // Enumerated and Depreciated
}