terraform-provider-stackitp.../pkg/certificatesbeta/model_list_certificates_response.go
Marcel S. Henselin 9f41c4da7f
Some checks failed
Publish / Check GoReleaser config (push) Successful in 4s
Release / goreleaser (push) Failing after 29s
Publish / Publish provider (push) Failing after 4m24s
feat: auto generated files and new structure (#4)
## Description

<!-- **Please link some issue here describing what you are trying to achieve.**

In case there is no issue present for your PR, please consider creating one.
At least please give us some description what you are trying to achieve and why your change is needed. -->

relates to #1234

## Checklist

- [ ] Issue was linked above
- [ ] Code format was applied: `make fmt`
- [ ] Examples were added / adjusted (see `examples/` directory)
- [x] Docs are up-to-date: `make generate-docs` (will be checked by CI)
- [ ] Unit tests got implemented or updated
- [ ] Acceptance tests got implemented or updated (see e.g. [here](f5f99d1709/stackit/internal/services/dns/dns_acc_test.go))
- [x] Unit tests are passing: `make test` (will be checked by CI)
- [x] No linter issues: `make lint` (will be checked by CI)

Reviewed-on: #4
Reviewed-by: Andre_Harms <andre.harms@stackit.cloud>
Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
Co-committed-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
2026-01-29 14:10:25 +00:00

176 lines
6.2 KiB
Go

/*
STACKIT Application Load Balancer Certificates API
### DEPRECATED! This API offers the ability to store TLS certificates, which can be used by load balancing servers in STACKIT. They can be between consumer and load balancing server and/or between load balancing server and endpoint server.
API version: 2beta.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package certificatesbeta
import (
"encoding/json"
)
// checks if the ListCertificatesResponse type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ListCertificatesResponse{}
/*
types and functions for items
*/
// isArray
type ListCertificatesResponseGetItemsAttributeType = *[]GetCertificateResponse
type ListCertificatesResponseGetItemsArgType = []GetCertificateResponse
type ListCertificatesResponseGetItemsRetType = []GetCertificateResponse
func getListCertificatesResponseGetItemsAttributeTypeOk(arg ListCertificatesResponseGetItemsAttributeType) (ret ListCertificatesResponseGetItemsRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setListCertificatesResponseGetItemsAttributeType(arg *ListCertificatesResponseGetItemsAttributeType, val ListCertificatesResponseGetItemsRetType) {
*arg = &val
}
/*
types and functions for nextPageId
*/
// isNotNullableString
type ListCertificatesResponseGetNextPageIdAttributeType = *string
func getListCertificatesResponseGetNextPageIdAttributeTypeOk(arg ListCertificatesResponseGetNextPageIdAttributeType) (ret ListCertificatesResponseGetNextPageIdRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setListCertificatesResponseGetNextPageIdAttributeType(arg *ListCertificatesResponseGetNextPageIdAttributeType, val ListCertificatesResponseGetNextPageIdRetType) {
*arg = &val
}
type ListCertificatesResponseGetNextPageIdArgType = string
type ListCertificatesResponseGetNextPageIdRetType = string
// ListCertificatesResponse ListCertificateResponse returns a list of certificate responses
type ListCertificatesResponse struct {
Items ListCertificatesResponseGetItemsAttributeType `json:"items,omitempty"`
// Continue token from the ListCertificatesResponse with Limit option
NextPageId ListCertificatesResponseGetNextPageIdAttributeType `json:"nextPageId,omitempty"`
}
// NewListCertificatesResponse instantiates a new ListCertificatesResponse object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewListCertificatesResponse() *ListCertificatesResponse {
this := ListCertificatesResponse{}
return &this
}
// NewListCertificatesResponseWithDefaults instantiates a new ListCertificatesResponse object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewListCertificatesResponseWithDefaults() *ListCertificatesResponse {
this := ListCertificatesResponse{}
return &this
}
// GetItems returns the Items field value if set, zero value otherwise.
func (o *ListCertificatesResponse) GetItems() (res ListCertificatesResponseGetItemsRetType) {
res, _ = o.GetItemsOk()
return
}
// GetItemsOk returns a tuple with the Items field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListCertificatesResponse) GetItemsOk() (ret ListCertificatesResponseGetItemsRetType, ok bool) {
return getListCertificatesResponseGetItemsAttributeTypeOk(o.Items)
}
// HasItems returns a boolean if a field has been set.
func (o *ListCertificatesResponse) HasItems() bool {
_, ok := o.GetItemsOk()
return ok
}
// SetItems gets a reference to the given []GetCertificateResponse and assigns it to the Items field.
func (o *ListCertificatesResponse) SetItems(v ListCertificatesResponseGetItemsRetType) {
setListCertificatesResponseGetItemsAttributeType(&o.Items, v)
}
// GetNextPageId returns the NextPageId field value if set, zero value otherwise.
func (o *ListCertificatesResponse) GetNextPageId() (res ListCertificatesResponseGetNextPageIdRetType) {
res, _ = o.GetNextPageIdOk()
return
}
// GetNextPageIdOk returns a tuple with the NextPageId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ListCertificatesResponse) GetNextPageIdOk() (ret ListCertificatesResponseGetNextPageIdRetType, ok bool) {
return getListCertificatesResponseGetNextPageIdAttributeTypeOk(o.NextPageId)
}
// HasNextPageId returns a boolean if a field has been set.
func (o *ListCertificatesResponse) HasNextPageId() bool {
_, ok := o.GetNextPageIdOk()
return ok
}
// SetNextPageId gets a reference to the given string and assigns it to the NextPageId field.
func (o *ListCertificatesResponse) SetNextPageId(v ListCertificatesResponseGetNextPageIdRetType) {
setListCertificatesResponseGetNextPageIdAttributeType(&o.NextPageId, v)
}
func (o ListCertificatesResponse) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getListCertificatesResponseGetItemsAttributeTypeOk(o.Items); ok {
toSerialize["Items"] = val
}
if val, ok := getListCertificatesResponseGetNextPageIdAttributeTypeOk(o.NextPageId); ok {
toSerialize["NextPageId"] = val
}
return toSerialize, nil
}
type NullableListCertificatesResponse struct {
value *ListCertificatesResponse
isSet bool
}
func (v NullableListCertificatesResponse) Get() *ListCertificatesResponse {
return v.value
}
func (v *NullableListCertificatesResponse) Set(val *ListCertificatesResponse) {
v.value = val
v.isSet = true
}
func (v NullableListCertificatesResponse) IsSet() bool {
return v.isSet
}
func (v *NullableListCertificatesResponse) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableListCertificatesResponse(val *ListCertificatesResponse) *NullableListCertificatesResponse {
return &NullableListCertificatesResponse{value: val, isSet: true}
}
func (v NullableListCertificatesResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableListCertificatesResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}