Skip to content

Commit

Permalink
APIBot: SDK update based on recent changes in Atlas API (#388)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: wtrocki <[email protected]>
  • Loading branch information
3 people authored Sep 17, 2024
1 parent ac05b5d commit 1ea686c
Show file tree
Hide file tree
Showing 11 changed files with 349 additions and 295 deletions.
116 changes: 0 additions & 116 deletions admin/model_proxy_info.go

This file was deleted.

37 changes: 0 additions & 37 deletions admin/model_streams_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ type StreamsConnection struct {
// A map of Kafka key-value pairs for optional configuration. This is a flat object, and keys can have '.' characters.
Config *map[string]string `json:"config,omitempty"`
Networking *StreamsKafkaNetworking `json:"networking,omitempty"`
ProxyInfo *ProxyInfo `json:"proxyInfo,omitempty"`
Security *StreamsKafkaSecurity `json:"security,omitempty"`
}

Expand Down Expand Up @@ -342,39 +341,6 @@ func (o *StreamsConnection) SetNetworking(v StreamsKafkaNetworking) {
o.Networking = &v
}

// GetProxyInfo returns the ProxyInfo field value if set, zero value otherwise
func (o *StreamsConnection) GetProxyInfo() ProxyInfo {
if o == nil || IsNil(o.ProxyInfo) {
var ret ProxyInfo
return ret
}
return *o.ProxyInfo
}

// GetProxyInfoOk returns a tuple with the ProxyInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *StreamsConnection) GetProxyInfoOk() (*ProxyInfo, bool) {
if o == nil || IsNil(o.ProxyInfo) {
return nil, false
}

return o.ProxyInfo, true
}

// HasProxyInfo returns a boolean if a field has been set.
func (o *StreamsConnection) HasProxyInfo() bool {
if o != nil && !IsNil(o.ProxyInfo) {
return true
}

return false
}

// SetProxyInfo gets a reference to the given ProxyInfo and assigns it to the ProxyInfo field.
func (o *StreamsConnection) SetProxyInfo(v ProxyInfo) {
o.ProxyInfo = &v
}

// GetSecurity returns the Security field value if set, zero value otherwise
func (o *StreamsConnection) GetSecurity() StreamsKafkaSecurity {
if o == nil || IsNil(o.Security) {
Expand Down Expand Up @@ -441,9 +407,6 @@ func (o StreamsConnection) ToMap() (map[string]interface{}, error) {
if !IsNil(o.Networking) {
toSerialize["networking"] = o.Networking
}
if !IsNil(o.ProxyInfo) {
toSerialize["proxyInfo"] = o.ProxyInfo
}
if !IsNil(o.Security) {
toSerialize["security"] = o.Security
}
Expand Down
4 changes: 2 additions & 2 deletions admin/model_streams_kafka_networking_access.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ type StreamsKafkaNetworkingAccess struct {
// List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships.
// Read only field.
Links *[]Link `json:"links,omitempty"`
// Id of the vpc peer when the type is VPC.
// Reserved. Will be used by PRIVATE_LINK connection type.
Name *string `json:"name,omitempty"`
// Selected networking type. Either PUBLIC or VPC. Defaults to PUBLIC
// Selected networking type. Either PUBLIC, VPC or PRIVATE_LINK. Defaults to PUBLIC. For VPC, ensure that VPC peering exists and connectivity has been established between Atlas VPC and the VPC where Kafka cluster is hosted for the connection to function properly. PRIVATE_LINK support is coming soon.
Type *string `json:"type,omitempty"`
}

Expand Down
1 change: 0 additions & 1 deletion docs/doc_last_reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,6 @@ Class | Method | HTTP request | Description |
- [PrivateLinkEndpoint](./docs/PrivateLinkEndpoint.md)
- [PrivateNetworkEndpointIdEntry](./docs/PrivateNetworkEndpointIdEntry.md)
- [ProjectSettingItem](./docs/ProjectSettingItem.md)
- [ProxyInfo](./docs/ProxyInfo.md)
- [PublicApiUsageDetailsLineItem](./docs/PublicApiUsageDetailsLineItem.md)
- [PushBasedLogExportProject](./docs/PushBasedLogExportProject.md)
- [Raw](./docs/Raw.md)
Expand Down
80 changes: 0 additions & 80 deletions docs/docs/ProxyInfo.md

This file was deleted.

25 changes: 0 additions & 25 deletions docs/docs/StreamsConnection.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Name | Type | Description | Notes
**BootstrapServers** | Pointer to **string** | Comma separated list of server addresses. | [optional]
**Config** | Pointer to **map[string]string** | A map of Kafka key-value pairs for optional configuration. This is a flat object, and keys can have &#39;.&#39; characters. | [optional]
**Networking** | Pointer to [**StreamsKafkaNetworking**](StreamsKafkaNetworking.md) | | [optional]
**ProxyInfo** | Pointer to [**ProxyInfo**](ProxyInfo.md) | | [optional]
**Security** | Pointer to [**StreamsKafkaSecurity**](StreamsKafkaSecurity.md) | | [optional]

## Methods
Expand Down Expand Up @@ -251,30 +250,6 @@ SetNetworking sets Networking field to given value.
`func (o *StreamsConnection) HasNetworking() bool`

HasNetworking returns a boolean if a field has been set.
### GetProxyInfo

`func (o *StreamsConnection) GetProxyInfo() ProxyInfo`

GetProxyInfo returns the ProxyInfo field if non-nil, zero value otherwise.

### GetProxyInfoOk

`func (o *StreamsConnection) GetProxyInfoOk() (*ProxyInfo, bool)`

GetProxyInfoOk returns a tuple with the ProxyInfo field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetProxyInfo

`func (o *StreamsConnection) SetProxyInfo(v ProxyInfo)`

SetProxyInfo sets ProxyInfo field to given value.

### HasProxyInfo

`func (o *StreamsConnection) HasProxyInfo() bool`

HasProxyInfo returns a boolean if a field has been set.
### GetSecurity

`func (o *StreamsConnection) GetSecurity() StreamsKafkaSecurity`
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/StreamsKafkaNetworkingAccess.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly]
**Name** | Pointer to **string** | Id of the vpc peer when the type is VPC. | [optional]
**Type** | Pointer to **string** | Selected networking type. Either PUBLIC or VPC. Defaults to PUBLIC | [optional]
**Name** | Pointer to **string** | Reserved. Will be used by PRIVATE_LINK connection type. | [optional]
**Type** | Pointer to **string** | Selected networking type. Either PUBLIC, VPC or PRIVATE_LINK. Defaults to PUBLIC. For VPC, ensure that VPC peering exists and connectivity has been established between Atlas VPC and the VPC where Kafka cluster is hosted for the connection to function properly. PRIVATE_LINK support is coming soon. | [optional]

## Methods

Expand Down
2 changes: 1 addition & 1 deletion internal/core/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package core
// For more information please see: https://github.com/mongodb/atlas-sdk-go/blob/main/docs/doc_1_concepts.md
const (
// SDK release tag version.
Version = "v20240805004.0.0"
Version = "v20240805004.1.0"
// Resource Version.
Resource = "20240805"
)
Loading

0 comments on commit 1ea686c

Please sign in to comment.