github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/cse/dedicated/v4/services/results.go (about)

     1  package services
     2  
     3  // CreateResp is the structure that represents the response of the API request.
     4  type CreateResp struct {
     5  	// Microservice ID.
     6  	ID string `json:"serviceId"`
     7  }
     8  
     9  // ServiceResp is an object that specifies the microservice configuration details.
    10  type ServiceResp struct {
    11  	// Microservice name, which must be unique in an application. The value contains 1 to 128 characters.
    12  	// Regular expression: ^[a-zA-Z0-9]*$|^[a-zA-Z0-9][a-zA-Z0-9_\-.]*[a-zA-Z0-9]$
    13  	Name string `json:"serviceName" required:"true"`
    14  	// Application ID, which must be unique. The value contains 1 to 160 characters.
    15  	// Regular expression: ^[a-zA-Z0-9]*$|^[a-zA-Z0-9][a-zA-Z0-9_\-.]*[a-zA-Z0-9]$
    16  	AppId string `json:"appId" required:"true"`
    17  	// Microservice version. The value contains 1 to 64 characters. Regular expression: ^[0-9]$|^[0-9]+(.[0-9]+)$
    18  	Version string `json:"version" required:"true"`
    19  	// Microservice ID, which must be unique. The value contains 1 to 64 characters. Regular expression: ^.*$
    20  	ID string `json:"serviceId,omitempty"`
    21  	// Service stage. Value: development, testing, acceptance, or production.
    22  	// Only when the value is development, testing, or acceptance, you can use the API for uploading schemas in batches
    23  	// to add or modify an existing schema. Default value: development.
    24  	Environment string `json:"environment,omitempty"`
    25  	// Microservice description. The value contains a maximum of 256 characters.
    26  	Description string `json:"description,omitempty"`
    27  	// Microservice level. Value: FRONT, MIDDLE, or BACK.
    28  	Level string `json:"level,omitempty"`
    29  	// Microservice registration mode. Value: SDK, PLATFORM, SIDECAR, or UNKNOWN.
    30  	RegisterBy string `json:"registerBy,omitempty"`
    31  	// Foreign key ID of a microservice access schema. The array length supports a maximum of 100 schemas.
    32  	Schemas []string `json:"schemas,omitempty"`
    33  	// Microservice status. Value: UP or DOWN. Default value: UP.
    34  	Status string `json:"status,omitempty"`
    35  	// Microservice registration time.
    36  	Timestamp string `json:"timestamp,omitempty"`
    37  	// Latest modification time (UTC).
    38  	ModTimestamp string `json:"modTimestamp,omitempty"`
    39  	// Development framework.
    40  	Framework Framework `json:"framework,omitempty"`
    41  	// Service path.
    42  	Paths []ServicePath `json:"paths,omitempty"`
    43  }