github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/servicestage/v2/metadata/results.go (about)

     1  package metadata
     2  
     3  // Runtime is the structure that represents the detail of the ServiceStage runtime.
     4  type Runtime struct {
     5  	// Type.
     6  	Type string `json:"type_name"`
     7  	// Display name.
     8  	DisplayName string `json:"display_name"`
     9  	// Default container port.
    10  	ContainerDefaultPort int `json:"container_default_port"`
    11  	// Type description.
    12  	TypeDesc string `json:"type_desc"`
    13  }
    14  
    15  // Flavor is the structure that represents the detail of the ServiceStage flavor.
    16  type Flavor struct {
    17  	// Flavor ID.
    18  	ID string `json:"flavor_id"`
    19  	// Storage size.
    20  	StorageSize string `json:"storage_size"`
    21  	// CPU limit.
    22  	NumCpu string `json:"num_cpu"`
    23  	// Initial CPU value.
    24  	NumCpuInit string `json:"num_cpu_init"`
    25  	// Memory limit.
    26  	MemorySize string `json:"memory_size"`
    27  	// Initial memory value.
    28  	MemorySizeInit string `json:"memory_size_init"`
    29  	// Label.
    30  	Label string `json:"label"`
    31  	// Whether resource specifications are customized.
    32  	Custom bool `json:"custom"`
    33  }