Skip to content

Commit 5de764b

Browse files
committed
bump to spec v1.4.0
1 parent 39b4955 commit 5de764b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+129
-61
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ analytics.
1010
## Overview
1111
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.
1212

13-
- API version: 1.2.1
13+
- API version: 1.4.0
1414
- Package version: 0.1.0
1515
- Build package: org.openapitools.codegen.languages.GoClientCodegen
1616
For more information, please visit [https://docs.ionos.com/support/general-information/contact-information](https://docs.ionos.com/support/general-information/contact-information)

api_clusters.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api_topics.go

Lines changed: 37 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api_users.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configuration.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/api/TopicsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ import (
286286

287287
func main() {
288288
clusterId := "e69b22a5-8fee-56b1-b6fb-4a07e4205ead" // string | The ID (UUID) of the Cluster.
289-
topicCreate := *openapiclient.NewTopicCreate(*openapiclient.NewTopic("my-kafka-cluster-topic", int32(3), int32(3), *openapiclient.NewTopicLogRetention(int32(86400000), int32(1073741824)))) // TopicCreate | Topic to create.
289+
topicCreate := *openapiclient.NewTopicCreate(*openapiclient.NewTopic("my-kafka-cluster-topic")) // TopicCreate | Topic to create.
290290

291291
configuration := ionoscloud.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
292292
apiClient := ionoscloud.NewAPIClient(configuration)

docs/models/Topic.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
|Name | Type | Description | Notes|
66
|------------ | ------------- | ------------- | -------------|
77
|**Name** | **string** | The name of the Kafka cluster topic. Must be 63 characters or less and must begin and end with an alphanumeric character (`[a-z0-9A-Z]`) with dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between. | |
8-
|**ReplicationFactor** | **int32** | The number of replicas of the topic. The replication factor determines how many copies of the topic are stored on different brokers. The replication factor must be less than or equal to the number of brokers in the Kafka cluster. | |
9-
|**NumberOfPartitions** | **int32** | The number of partitions of the topic. Partitions allow for parallel processing of messages. The partition count must be greater than or equal to the replication factor. | |
10-
|**LogRetention** | [**TopicLogRetention**](TopicLogRetention.md) | | |
8+
|**ReplicationFactor** | Pointer to **int32** | The number of replicas of the topic. The replication factor determines how many copies of the topic are stored on different brokers. The replication factor must be less than or equal to the number of brokers in the Kafka cluster. | [optional] [default to 3]|
9+
|**NumberOfPartitions** | Pointer to **int32** | The number of partitions of the topic. Partitions allow for parallel processing of messages. | [optional] [default to 3]|
10+
|**LogRetention** | Pointer to [**TopicLogRetention**](TopicLogRetention.md) | | [optional] |
1111

1212
## Methods
1313

1414
### NewTopic
1515

16-
`func NewTopic(name string, replicationFactor int32, numberOfPartitions int32, logRetention TopicLogRetention, ) *Topic`
16+
`func NewTopic(name string, ) *Topic`
1717

1818
NewTopic instantiates a new Topic object
1919
This constructor will assign default values to properties that have it defined,
@@ -67,6 +67,11 @@ and a boolean to check if the value has been set.
6767

6868
SetReplicationFactor sets ReplicationFactor field to given value.
6969

70+
### HasReplicationFactor
71+
72+
`func (o *Topic) HasReplicationFactor() bool`
73+
74+
HasReplicationFactor returns a boolean if a field has been set.
7075

7176
### GetNumberOfPartitions
7277

@@ -87,6 +92,11 @@ and a boolean to check if the value has been set.
8792

8893
SetNumberOfPartitions sets NumberOfPartitions field to given value.
8994

95+
### HasNumberOfPartitions
96+
97+
`func (o *Topic) HasNumberOfPartitions() bool`
98+
99+
HasNumberOfPartitions returns a boolean if a field has been set.
90100

91101
### GetLogRetention
92102

@@ -107,5 +117,10 @@ and a boolean to check if the value has been set.
107117

108118
SetLogRetention sets LogRetention field to given value.
109119

120+
### HasLogRetention
121+
122+
`func (o *Topic) HasLogRetention() bool`
123+
124+
HasLogRetention returns a boolean if a field has been set.
110125

111126

docs/models/TopicLogRetention.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
|Name | Type | Description | Notes|
66
|------------ | ------------- | ------------- | -------------|
7-
|**RetentionTime** | **int32** | The time in milliseconds that a message is retained in the topic log. Messages older than the retention time are deleted. If value is `0`, messages are retained indefinitely unless other retention is set. | [default to 0]|
8-
|**SegmentBytes** | **int32** | The maximum size in bytes that the topic log can grow to. When the log reaches this size, the oldest messages are deleted. If value is `0`, messages are retained indefinitely unless other retention is set. | [default to 0]|
7+
|**RetentionTime** | Pointer to **int32** | This configuration controls the maximum time we will retain a log before we will discard old log segments to free up space. This represents an SLA on how soon consumers must read their data. If set to -1, no time limit is applied. | [optional] [default to 604800000]|
8+
|**SegmentBytes** | Pointer to **int32** | This configuration controls the segment file size for the log. Retention and cleaning is always done a file at a time so a larger segment size means fewer files but less granular control over retention. | [optional] [default to 1073741824]|
99

1010
## Methods
1111

1212
### NewTopicLogRetention
1313

14-
`func NewTopicLogRetention(retentionTime int32, segmentBytes int32, ) *TopicLogRetention`
14+
`func NewTopicLogRetention() *TopicLogRetention`
1515

1616
NewTopicLogRetention instantiates a new TopicLogRetention object
1717
This constructor will assign default values to properties that have it defined,
@@ -45,6 +45,11 @@ and a boolean to check if the value has been set.
4545

4646
SetRetentionTime sets RetentionTime field to given value.
4747

48+
### HasRetentionTime
49+
50+
`func (o *TopicLogRetention) HasRetentionTime() bool`
51+
52+
HasRetentionTime returns a boolean if a field has been set.
4853

4954
### GetSegmentBytes
5055

@@ -65,5 +70,10 @@ and a boolean to check if the value has been set.
6570

6671
SetSegmentBytes sets SegmentBytes field to given value.
6772

73+
### HasSegmentBytes
74+
75+
`func (o *TopicLogRetention) HasSegmentBytes() bool`
76+
77+
HasSegmentBytes returns a boolean if a field has been set.
6878

6979

logger.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)