/
model_kafka_request.go
74 lines (71 loc) · 4.53 KB
/
model_kafka_request.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
/*
* Kafka Management API
*
* Kafka Management API is a REST API to manage Kafka instances
*
* API version: 1.16.0
* Contact: rhosak-support@redhat.com
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package public
import (
"time"
)
// KafkaRequest struct for KafkaRequest
type KafkaRequest struct {
Id string `json:"id"`
Kind string `json:"kind"`
Href string `json:"href"`
// Values: [accepted, preparing, provisioning, ready, failed, deprovision, deleting, suspending, suspended, resuming]
Status string `json:"status,omitempty"`
// Name of Cloud used to deploy. For example AWS
CloudProvider string `json:"cloud_provider,omitempty"`
MultiAz bool `json:"multi_az"`
// Values will be regions of specific cloud provider. For example: us-east-1 for AWS
Region string `json:"region,omitempty"`
Owner string `json:"owner,omitempty"`
Name string `json:"name,omitempty"`
BootstrapServerHost string `json:"bootstrap_server_host,omitempty"`
// The kafka admin server url to perform kafka admin operations e.g acl management etc. The value will be available when the Kafka has been fully provisioned i.e it reaches a 'ready' state
AdminApiServerUrl string `json:"admin_api_server_url,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty"`
ExpiresAt *time.Time `json:"expires_at,omitempty"`
UpdatedAt time.Time `json:"updated_at,omitempty"`
FailedReason string `json:"failed_reason,omitempty"`
Version string `json:"version,omitempty"`
InstanceType string `json:"instance_type,omitempty"`
// This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead.
// Deprecated
DeprecatedInstanceTypeName string `json:"instance_type_name,omitempty"`
ReauthenticationEnabled bool `json:"reauthentication_enabled"`
MaxDataRetentionSize SupportedKafkaSizeBytesValueItem `json:"max_data_retention_size,omitempty"`
BrowserUrl string `json:"browser_url,omitempty"`
SizeId string `json:"size_id,omitempty"`
// This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead.
// Deprecated
DeprecatedIngressThroughputPerSec string `json:"ingress_throughput_per_sec,omitempty"`
// This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead.
// Deprecated
DeprecatedEgressThroughputPerSec string `json:"egress_throughput_per_sec,omitempty"`
// This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead.
// Deprecated
DeprecatedTotalMaxConnections int32 `json:"total_max_connections,omitempty"`
// This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead.
// Deprecated
DeprecatedMaxPartitions int32 `json:"max_partitions,omitempty"`
// This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead.
// Deprecated
DeprecatedMaxDataRetentionPeriod string `json:"max_data_retention_period,omitempty"`
// This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead.
// Deprecated
DeprecatedMaxConnectionAttemptsPerSec int32 `json:"max_connection_attempts_per_sec,omitempty"`
BillingCloudAccountId string `json:"billing_cloud_account_id,omitempty"`
Marketplace string `json:"marketplace,omitempty"`
BillingModel string `json:"billing_model,omitempty"`
// Status of the Kafka request promotion. Possible values: ['promoting', 'failed']. If unset it means no promotion is in progress.
PromotionStatus string `json:"promotion_status,omitempty"`
// The ID of the data plane where Kafka is deployed on. This information is only returned for kafka whose billing model is enterprise
ClusterId *string `json:"cluster_id,omitempty"`
// Details of the Kafka request promotion. It can be set when a Kafka request promotion is in progress or has failed
PromotionDetails string `json:"promotion_details,omitempty"`
}