chore: work save
This commit is contained in:
parent
3e3f13d36d
commit
9752d63f7e
19 changed files with 1003 additions and 209 deletions
|
|
@ -410,8 +410,7 @@ type Key struct {
|
|||
// This date is set when a key is pending deletion and refers to the scheduled date of deletion
|
||||
DeletionDate KeyGetDeletionDateAttributeType `json:"deletionDate,omitempty"`
|
||||
// A user chosen description to distinguish multiple keys.
|
||||
// REQUIRED
|
||||
Description KeyGetDescriptionAttributeType `json:"description" required:"true"`
|
||||
Description KeyGetDescriptionAttributeType `json:"description,omitempty"`
|
||||
// The display name to distinguish multiple keys.
|
||||
// REQUIRED
|
||||
DisplayName KeyGetDisplayNameAttributeType `json:"displayName" required:"true"`
|
||||
|
|
@ -439,13 +438,12 @@ type _Key Key
|
|||
// 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 NewKey(accessScope KeyGetAccessScopeArgType, algorithm KeyGetAlgorithmArgType, backend KeyGetBackendArgType, createdAt KeyGetCreatedAtArgType, description KeyGetDescriptionArgType, displayName KeyGetDisplayNameArgType, id KeyGetIdArgType, importOnly KeygetImportOnlyArgType, keyRingId KeyGetKeyRingIdArgType, protection KeyGetProtectionArgType, purpose KeyGetPurposeArgType, state KeyGetStateArgType) *Key {
|
||||
func NewKey(accessScope KeyGetAccessScopeArgType, algorithm KeyGetAlgorithmArgType, backend KeyGetBackendArgType, createdAt KeyGetCreatedAtArgType, displayName KeyGetDisplayNameArgType, id KeyGetIdArgType, importOnly KeygetImportOnlyArgType, keyRingId KeyGetKeyRingIdArgType, protection KeyGetProtectionArgType, purpose KeyGetPurposeArgType, state KeyGetStateArgType) *Key {
|
||||
this := Key{}
|
||||
setKeyGetAccessScopeAttributeType(&this.AccessScope, accessScope)
|
||||
setKeyGetAlgorithmAttributeType(&this.Algorithm, algorithm)
|
||||
setKeyGetBackendAttributeType(&this.Backend, backend)
|
||||
setKeyGetCreatedAtAttributeType(&this.CreatedAt, createdAt)
|
||||
setKeyGetDescriptionAttributeType(&this.Description, description)
|
||||
setKeyGetDisplayNameAttributeType(&this.DisplayName, displayName)
|
||||
setKeyGetIdAttributeType(&this.Id, id)
|
||||
setKeygetImportOnlyAttributeType(&this.ImportOnly, importOnly)
|
||||
|
|
@ -562,19 +560,25 @@ func (o *Key) SetDeletionDate(v KeyGetDeletionDateRetType) {
|
|||
setKeyGetDeletionDateAttributeType(&o.DeletionDate, v)
|
||||
}
|
||||
|
||||
// GetDescription returns the Description field value
|
||||
func (o *Key) GetDescription() (ret KeyGetDescriptionRetType) {
|
||||
ret, _ = o.GetDescriptionOk()
|
||||
return ret
|
||||
// GetDescription returns the Description field value if set, zero value otherwise.
|
||||
func (o *Key) GetDescription() (res KeyGetDescriptionRetType) {
|
||||
res, _ = o.GetDescriptionOk()
|
||||
return
|
||||
}
|
||||
|
||||
// GetDescriptionOk returns a tuple with the Description field value
|
||||
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Key) GetDescriptionOk() (ret KeyGetDescriptionRetType, ok bool) {
|
||||
return getKeyGetDescriptionAttributeTypeOk(o.Description)
|
||||
}
|
||||
|
||||
// SetDescription sets field value
|
||||
// HasDescription returns a boolean if a field has been set.
|
||||
func (o *Key) HasDescription() bool {
|
||||
_, ok := o.GetDescriptionOk()
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetDescription gets a reference to the given string and assigns it to the Description field.
|
||||
func (o *Key) SetDescription(v KeyGetDescriptionRetType) {
|
||||
setKeyGetDescriptionAttributeType(&o.Description, v)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -234,8 +234,7 @@ type KeyRing struct {
|
|||
// REQUIRED
|
||||
CreatedAt KeyRingGetCreatedAtAttributeType `json:"createdAt" required:"true"`
|
||||
// A user chosen description to distinguish multiple key rings.
|
||||
// REQUIRED
|
||||
Description KeyRingGetDescriptionAttributeType `json:"description" required:"true"`
|
||||
Description KeyRingGetDescriptionAttributeType `json:"description,omitempty"`
|
||||
// The display name to distinguish multiple key rings.
|
||||
// REQUIRED
|
||||
DisplayName KeyRingGetDisplayNameAttributeType `json:"displayName" required:"true"`
|
||||
|
|
@ -253,10 +252,9 @@ type _KeyRing KeyRing
|
|||
// 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 NewKeyRing(createdAt KeyRingGetCreatedAtArgType, description KeyRingGetDescriptionArgType, displayName KeyRingGetDisplayNameArgType, id KeyRingGetIdArgType, state KeyRingGetStateArgType) *KeyRing {
|
||||
func NewKeyRing(createdAt KeyRingGetCreatedAtArgType, displayName KeyRingGetDisplayNameArgType, id KeyRingGetIdArgType, state KeyRingGetStateArgType) *KeyRing {
|
||||
this := KeyRing{}
|
||||
setKeyRingGetCreatedAtAttributeType(&this.CreatedAt, createdAt)
|
||||
setKeyRingGetDescriptionAttributeType(&this.Description, description)
|
||||
setKeyRingGetDisplayNameAttributeType(&this.DisplayName, displayName)
|
||||
setKeyRingGetIdAttributeType(&this.Id, id)
|
||||
setKeyRingGetStateAttributeType(&this.State, state)
|
||||
|
|
@ -288,19 +286,25 @@ func (o *KeyRing) SetCreatedAt(v KeyRingGetCreatedAtRetType) {
|
|||
setKeyRingGetCreatedAtAttributeType(&o.CreatedAt, v)
|
||||
}
|
||||
|
||||
// GetDescription returns the Description field value
|
||||
func (o *KeyRing) GetDescription() (ret KeyRingGetDescriptionRetType) {
|
||||
ret, _ = o.GetDescriptionOk()
|
||||
return ret
|
||||
// GetDescription returns the Description field value if set, zero value otherwise.
|
||||
func (o *KeyRing) GetDescription() (res KeyRingGetDescriptionRetType) {
|
||||
res, _ = o.GetDescriptionOk()
|
||||
return
|
||||
}
|
||||
|
||||
// GetDescriptionOk returns a tuple with the Description field value
|
||||
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *KeyRing) GetDescriptionOk() (ret KeyRingGetDescriptionRetType, ok bool) {
|
||||
return getKeyRingGetDescriptionAttributeTypeOk(o.Description)
|
||||
}
|
||||
|
||||
// SetDescription sets field value
|
||||
// HasDescription returns a boolean if a field has been set.
|
||||
func (o *KeyRing) HasDescription() bool {
|
||||
_, ok := o.GetDescriptionOk()
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetDescription gets a reference to the given string and assigns it to the Description field.
|
||||
func (o *KeyRing) SetDescription(v KeyRingGetDescriptionRetType) {
|
||||
setKeyRingGetDescriptionAttributeType(&o.Description, v)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -407,8 +407,7 @@ type WrappingKey struct {
|
|||
// REQUIRED
|
||||
CreatedAt WrappingKeyGetCreatedAtAttributeType `json:"createdAt" required:"true"`
|
||||
// A user chosen description to distinguish multiple wrapping keys.
|
||||
// REQUIRED
|
||||
Description WrappingKeyGetDescriptionAttributeType `json:"description" required:"true"`
|
||||
Description WrappingKeyGetDescriptionAttributeType `json:"description,omitempty"`
|
||||
// The display name to distinguish multiple wrapping keys.
|
||||
// REQUIRED
|
||||
DisplayName WrappingKeyGetDisplayNameAttributeType `json:"displayName" required:"true"`
|
||||
|
|
@ -438,13 +437,12 @@ type _WrappingKey WrappingKey
|
|||
// 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 NewWrappingKey(accessScope WrappingKeyGetAccessScopeArgType, algorithm WrappingKeyGetAlgorithmArgType, backend WrappingKeyGetBackendArgType, createdAt WrappingKeyGetCreatedAtArgType, description WrappingKeyGetDescriptionArgType, displayName WrappingKeyGetDisplayNameArgType, expiresAt WrappingKeyGetExpiresAtArgType, id WrappingKeyGetIdArgType, keyRingId WrappingKeyGetKeyRingIdArgType, protection WrappingKeyGetProtectionArgType, purpose WrappingKeyGetPurposeArgType, state WrappingKeyGetStateArgType) *WrappingKey {
|
||||
func NewWrappingKey(accessScope WrappingKeyGetAccessScopeArgType, algorithm WrappingKeyGetAlgorithmArgType, backend WrappingKeyGetBackendArgType, createdAt WrappingKeyGetCreatedAtArgType, displayName WrappingKeyGetDisplayNameArgType, expiresAt WrappingKeyGetExpiresAtArgType, id WrappingKeyGetIdArgType, keyRingId WrappingKeyGetKeyRingIdArgType, protection WrappingKeyGetProtectionArgType, purpose WrappingKeyGetPurposeArgType, state WrappingKeyGetStateArgType) *WrappingKey {
|
||||
this := WrappingKey{}
|
||||
setWrappingKeyGetAccessScopeAttributeType(&this.AccessScope, accessScope)
|
||||
setWrappingKeyGetAlgorithmAttributeType(&this.Algorithm, algorithm)
|
||||
setWrappingKeyGetBackendAttributeType(&this.Backend, backend)
|
||||
setWrappingKeyGetCreatedAtAttributeType(&this.CreatedAt, createdAt)
|
||||
setWrappingKeyGetDescriptionAttributeType(&this.Description, description)
|
||||
setWrappingKeyGetDisplayNameAttributeType(&this.DisplayName, displayName)
|
||||
setWrappingKeyGetExpiresAtAttributeType(&this.ExpiresAt, expiresAt)
|
||||
setWrappingKeyGetIdAttributeType(&this.Id, id)
|
||||
|
|
@ -536,19 +534,25 @@ func (o *WrappingKey) SetCreatedAt(v WrappingKeyGetCreatedAtRetType) {
|
|||
setWrappingKeyGetCreatedAtAttributeType(&o.CreatedAt, v)
|
||||
}
|
||||
|
||||
// GetDescription returns the Description field value
|
||||
func (o *WrappingKey) GetDescription() (ret WrappingKeyGetDescriptionRetType) {
|
||||
ret, _ = o.GetDescriptionOk()
|
||||
return ret
|
||||
// GetDescription returns the Description field value if set, zero value otherwise.
|
||||
func (o *WrappingKey) GetDescription() (res WrappingKeyGetDescriptionRetType) {
|
||||
res, _ = o.GetDescriptionOk()
|
||||
return
|
||||
}
|
||||
|
||||
// GetDescriptionOk returns a tuple with the Description field value
|
||||
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *WrappingKey) GetDescriptionOk() (ret WrappingKeyGetDescriptionRetType, ok bool) {
|
||||
return getWrappingKeyGetDescriptionAttributeTypeOk(o.Description)
|
||||
}
|
||||
|
||||
// SetDescription sets field value
|
||||
// HasDescription returns a boolean if a field has been set.
|
||||
func (o *WrappingKey) HasDescription() bool {
|
||||
_, ok := o.GetDescriptionOk()
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetDescription gets a reference to the given string and assigns it to the Description field.
|
||||
func (o *WrappingKey) SetDescription(v WrappingKeyGetDescriptionRetType) {
|
||||
setWrappingKeyGetDescriptionAttributeType(&o.Description, v)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,6 +38,26 @@ func setGetInstanceResponseGetBackupScheduleAttributeType(arg *GetInstanceRespon
|
|||
type GetInstanceResponseGetBackupScheduleArgType = string
|
||||
type GetInstanceResponseGetBackupScheduleRetType = string
|
||||
|
||||
/*
|
||||
types and functions for connectionInfo
|
||||
*/
|
||||
|
||||
// isModel
|
||||
type GetInstanceResponseGetConnectionInfoAttributeType = *InstanceConnectionInfo
|
||||
type GetInstanceResponseGetConnectionInfoArgType = InstanceConnectionInfo
|
||||
type GetInstanceResponseGetConnectionInfoRetType = InstanceConnectionInfo
|
||||
|
||||
func getGetInstanceResponseGetConnectionInfoAttributeTypeOk(arg GetInstanceResponseGetConnectionInfoAttributeType) (ret GetInstanceResponseGetConnectionInfoRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetInstanceResponseGetConnectionInfoAttributeType(arg *GetInstanceResponseGetConnectionInfoAttributeType, val GetInstanceResponseGetConnectionInfoRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for encryption
|
||||
*/
|
||||
|
|
@ -267,6 +287,8 @@ type GetInstanceResponse struct {
|
|||
// The schedule for on what time and how often the database backup will be created. The schedule is written as a cron schedule.
|
||||
// REQUIRED
|
||||
BackupSchedule GetInstanceResponseGetBackupScheduleAttributeType `json:"backupSchedule" required:"true"`
|
||||
// REQUIRED
|
||||
ConnectionInfo GetInstanceResponseGetConnectionInfoAttributeType `json:"connectionInfo" required:"true"`
|
||||
Encryption GetInstanceResponseGetEncryptionAttributeType `json:"encryption,omitempty"`
|
||||
// The id of the instance flavor.
|
||||
// REQUIRED
|
||||
|
|
@ -303,9 +325,10 @@ type _GetInstanceResponse GetInstanceResponse
|
|||
// 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 NewGetInstanceResponse(backupSchedule GetInstanceResponseGetBackupScheduleArgType, flavorId GetInstanceResponseGetFlavorIdArgType, id GetInstanceResponseGetIdArgType, isDeletable GetInstanceResponsegetIsDeletableArgType, name GetInstanceResponseGetNameArgType, network GetInstanceResponseGetNetworkArgType, replicas GetInstanceResponseGetReplicasArgType, retentionDays GetInstanceResponseGetRetentionDaysArgType, status GetInstanceResponseGetStatusArgType, storage GetInstanceResponseGetStorageArgType, version GetInstanceResponseGetVersionArgType) *GetInstanceResponse {
|
||||
func NewGetInstanceResponse(backupSchedule GetInstanceResponseGetBackupScheduleArgType, connectionInfo GetInstanceResponseGetConnectionInfoArgType, flavorId GetInstanceResponseGetFlavorIdArgType, id GetInstanceResponseGetIdArgType, isDeletable GetInstanceResponsegetIsDeletableArgType, name GetInstanceResponseGetNameArgType, network GetInstanceResponseGetNetworkArgType, replicas GetInstanceResponseGetReplicasArgType, retentionDays GetInstanceResponseGetRetentionDaysArgType, status GetInstanceResponseGetStatusArgType, storage GetInstanceResponseGetStorageArgType, version GetInstanceResponseGetVersionArgType) *GetInstanceResponse {
|
||||
this := GetInstanceResponse{}
|
||||
setGetInstanceResponseGetBackupScheduleAttributeType(&this.BackupSchedule, backupSchedule)
|
||||
setGetInstanceResponseGetConnectionInfoAttributeType(&this.ConnectionInfo, connectionInfo)
|
||||
setGetInstanceResponseGetFlavorIdAttributeType(&this.FlavorId, flavorId)
|
||||
setGetInstanceResponseGetIdAttributeType(&this.Id, id)
|
||||
setGetInstanceResponsegetIsDeletableAttributeType(&this.IsDeletable, isDeletable)
|
||||
|
|
@ -344,6 +367,23 @@ func (o *GetInstanceResponse) SetBackupSchedule(v GetInstanceResponseGetBackupSc
|
|||
setGetInstanceResponseGetBackupScheduleAttributeType(&o.BackupSchedule, v)
|
||||
}
|
||||
|
||||
// GetConnectionInfo returns the ConnectionInfo field value
|
||||
func (o *GetInstanceResponse) GetConnectionInfo() (ret GetInstanceResponseGetConnectionInfoRetType) {
|
||||
ret, _ = o.GetConnectionInfoOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetConnectionInfoOk returns a tuple with the ConnectionInfo field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetInstanceResponse) GetConnectionInfoOk() (ret GetInstanceResponseGetConnectionInfoRetType, ok bool) {
|
||||
return getGetInstanceResponseGetConnectionInfoAttributeTypeOk(o.ConnectionInfo)
|
||||
}
|
||||
|
||||
// SetConnectionInfo sets field value
|
||||
func (o *GetInstanceResponse) SetConnectionInfo(v GetInstanceResponseGetConnectionInfoRetType) {
|
||||
setGetInstanceResponseGetConnectionInfoAttributeType(&o.ConnectionInfo, v)
|
||||
}
|
||||
|
||||
// GetEncryption returns the Encryption field value if set, zero value otherwise.
|
||||
func (o *GetInstanceResponse) GetEncryption() (res GetInstanceResponseGetEncryptionRetType) {
|
||||
res, _ = o.GetEncryptionOk()
|
||||
|
|
@ -542,6 +582,12 @@ func (o GetInstanceResponse) ToMap() (map[string]interface{}, error) {
|
|||
if val, ok := getGetInstanceResponseGetBackupScheduleAttributeTypeOk(o.BackupSchedule); ok {
|
||||
toSerialize["BackupSchedule"] = val
|
||||
}
|
||||
if val, ok := getGetInstanceResponseGetConnectionInfoAttributeTypeOk(o.ConnectionInfo); ok {
|
||||
toSerialize["ConnectionInfo"] = val
|
||||
}
|
||||
if val, ok := getGetInstanceResponseGetEncryptionAttributeTypeOk(o.Encryption); ok {
|
||||
toSerialize["Encryption"] = val
|
||||
}
|
||||
if val, ok := getGetInstanceResponseGetFlavorIdAttributeTypeOk(o.FlavorId); ok {
|
||||
toSerialize["FlavorId"] = val
|
||||
}
|
||||
|
|
|
|||
|
|
@ -354,6 +354,7 @@ type ApiGetVPNGatewayStatusRequest interface {
|
|||
}
|
||||
|
||||
type ApiListGatewayConnectionsRequest interface {
|
||||
LabelSelector(labelSelector map[string]string) ApiListGatewayConnectionsRequest
|
||||
Execute() (*ConnectionList, error)
|
||||
}
|
||||
|
||||
|
|
@ -1860,11 +1861,17 @@ func (a *APIClient) GetVPNGatewayStatusExecute(ctx context.Context, projectId st
|
|||
}
|
||||
|
||||
type ListGatewayConnectionsRequest struct {
|
||||
ctx context.Context
|
||||
apiService *DefaultApiService
|
||||
projectId string
|
||||
region Region
|
||||
gatewayName string
|
||||
ctx context.Context
|
||||
apiService *DefaultApiService
|
||||
projectId string
|
||||
region Region
|
||||
gatewayName string
|
||||
labelSelector *map[string]string
|
||||
}
|
||||
|
||||
func (r ListGatewayConnectionsRequest) LabelSelector(labelSelector map[string]string) ApiListGatewayConnectionsRequest {
|
||||
r.labelSelector = &labelSelector
|
||||
return r
|
||||
}
|
||||
|
||||
func (r ListGatewayConnectionsRequest) Execute() (*ConnectionList, error) {
|
||||
|
|
@ -1893,6 +1900,9 @@ func (r ListGatewayConnectionsRequest) Execute() (*ConnectionList, error) {
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
if r.labelSelector != nil {
|
||||
parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "")
|
||||
}
|
||||
// to determine the Content-Type header
|
||||
localVarHTTPContentTypes := []string{}
|
||||
|
||||
|
|
|
|||
|
|
@ -37,6 +37,26 @@ func setConnectiongetEnabledAttributeType(arg *ConnectiongetEnabledAttributeType
|
|||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for labels
|
||||
*/
|
||||
|
||||
// isContainer
|
||||
type ConnectionGetLabelsAttributeType = *map[string]string
|
||||
type ConnectionGetLabelsArgType = map[string]string
|
||||
type ConnectionGetLabelsRetType = map[string]string
|
||||
|
||||
func getConnectionGetLabelsAttributeTypeOk(arg ConnectionGetLabelsAttributeType) (ret ConnectionGetLabelsRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setConnectionGetLabelsAttributeType(arg *ConnectionGetLabelsAttributeType, val ConnectionGetLabelsRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for localSubnets
|
||||
*/
|
||||
|
|
@ -142,6 +162,8 @@ func setConnectionGetTunnel2AttributeType(arg *ConnectionGetTunnel2AttributeType
|
|||
type Connection struct {
|
||||
// This flag decides whether this connection should be enabled or disabled
|
||||
Enabled ConnectiongetEnabledAttributeType `json:"enabled,omitempty"`
|
||||
// Map of custom labels. Key and values must be max 63 chars, start/end with alphanumeric.
|
||||
Labels ConnectionGetLabelsAttributeType `json:"labels,omitempty"`
|
||||
// List of local subnets (IPv4 CIDR).
|
||||
// REQUIRED
|
||||
LocalSubnets ConnectionGetLocalSubnetsAttributeType `json:"localSubnets" required:"true"`
|
||||
|
|
@ -204,6 +226,29 @@ func (o *Connection) SetEnabled(v ConnectiongetEnabledRetType) {
|
|||
setConnectiongetEnabledAttributeType(&o.Enabled, v)
|
||||
}
|
||||
|
||||
// GetLabels returns the Labels field value if set, zero value otherwise.
|
||||
func (o *Connection) GetLabels() (res ConnectionGetLabelsRetType) {
|
||||
res, _ = o.GetLabelsOk()
|
||||
return
|
||||
}
|
||||
|
||||
// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Connection) GetLabelsOk() (ret ConnectionGetLabelsRetType, ok bool) {
|
||||
return getConnectionGetLabelsAttributeTypeOk(o.Labels)
|
||||
}
|
||||
|
||||
// HasLabels returns a boolean if a field has been set.
|
||||
func (o *Connection) HasLabels() bool {
|
||||
_, ok := o.GetLabelsOk()
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
|
||||
func (o *Connection) SetLabels(v ConnectionGetLabelsRetType) {
|
||||
setConnectionGetLabelsAttributeType(&o.Labels, v)
|
||||
}
|
||||
|
||||
// GetLocalSubnets returns the LocalSubnets field value
|
||||
func (o *Connection) GetLocalSubnets() (ret ConnectionGetLocalSubnetsRetType) {
|
||||
ret, _ = o.GetLocalSubnetsOk()
|
||||
|
|
@ -294,6 +339,9 @@ func (o Connection) ToMap() (map[string]interface{}, error) {
|
|||
if val, ok := getConnectiongetEnabledAttributeTypeOk(o.Enabled); ok {
|
||||
toSerialize["Enabled"] = val
|
||||
}
|
||||
if val, ok := getConnectionGetLabelsAttributeTypeOk(o.Labels); ok {
|
||||
toSerialize["Labels"] = val
|
||||
}
|
||||
if val, ok := getConnectionGetLocalSubnetsAttributeTypeOk(o.LocalSubnets); ok {
|
||||
toSerialize["LocalSubnets"] = val
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,6 +37,26 @@ func setConnectionRequestgetEnabledAttributeType(arg *ConnectionRequestgetEnable
|
|||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for labels
|
||||
*/
|
||||
|
||||
// isContainer
|
||||
type ConnectionRequestGetLabelsAttributeType = *map[string]string
|
||||
type ConnectionRequestGetLabelsArgType = map[string]string
|
||||
type ConnectionRequestGetLabelsRetType = map[string]string
|
||||
|
||||
func getConnectionRequestGetLabelsAttributeTypeOk(arg ConnectionRequestGetLabelsAttributeType) (ret ConnectionRequestGetLabelsRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setConnectionRequestGetLabelsAttributeType(arg *ConnectionRequestGetLabelsAttributeType, val ConnectionRequestGetLabelsRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for localSubnets
|
||||
*/
|
||||
|
|
@ -142,6 +162,8 @@ func setConnectionRequestGetTunnel2AttributeType(arg *ConnectionRequestGetTunnel
|
|||
type ConnectionRequest struct {
|
||||
// This flag decides whether this connection should be enabled or disabled
|
||||
Enabled ConnectionRequestgetEnabledAttributeType `json:"enabled,omitempty"`
|
||||
// Map of custom labels. Key and values must be max 63 chars, start/end with alphanumeric.
|
||||
Labels ConnectionRequestGetLabelsAttributeType `json:"labels,omitempty"`
|
||||
// List of local subnets (IPv4 CIDR).
|
||||
// REQUIRED
|
||||
LocalSubnets ConnectionRequestGetLocalSubnetsAttributeType `json:"localSubnets" required:"true"`
|
||||
|
|
@ -204,6 +226,29 @@ func (o *ConnectionRequest) SetEnabled(v ConnectionRequestgetEnabledRetType) {
|
|||
setConnectionRequestgetEnabledAttributeType(&o.Enabled, v)
|
||||
}
|
||||
|
||||
// GetLabels returns the Labels field value if set, zero value otherwise.
|
||||
func (o *ConnectionRequest) GetLabels() (res ConnectionRequestGetLabelsRetType) {
|
||||
res, _ = o.GetLabelsOk()
|
||||
return
|
||||
}
|
||||
|
||||
// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ConnectionRequest) GetLabelsOk() (ret ConnectionRequestGetLabelsRetType, ok bool) {
|
||||
return getConnectionRequestGetLabelsAttributeTypeOk(o.Labels)
|
||||
}
|
||||
|
||||
// HasLabels returns a boolean if a field has been set.
|
||||
func (o *ConnectionRequest) HasLabels() bool {
|
||||
_, ok := o.GetLabelsOk()
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
|
||||
func (o *ConnectionRequest) SetLabels(v ConnectionRequestGetLabelsRetType) {
|
||||
setConnectionRequestGetLabelsAttributeType(&o.Labels, v)
|
||||
}
|
||||
|
||||
// GetLocalSubnets returns the LocalSubnets field value
|
||||
func (o *ConnectionRequest) GetLocalSubnets() (ret ConnectionRequestGetLocalSubnetsRetType) {
|
||||
ret, _ = o.GetLocalSubnetsOk()
|
||||
|
|
@ -294,6 +339,9 @@ func (o ConnectionRequest) ToMap() (map[string]interface{}, error) {
|
|||
if val, ok := getConnectionRequestgetEnabledAttributeTypeOk(o.Enabled); ok {
|
||||
toSerialize["Enabled"] = val
|
||||
}
|
||||
if val, ok := getConnectionRequestGetLabelsAttributeTypeOk(o.Labels); ok {
|
||||
toSerialize["Labels"] = val
|
||||
}
|
||||
if val, ok := getConnectionRequestGetLocalSubnetsAttributeTypeOk(o.LocalSubnets); ok {
|
||||
toSerialize["LocalSubnets"] = val
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,6 +37,26 @@ func setCreateGatewayConnectionPayloadgetEnabledAttributeType(arg *CreateGateway
|
|||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for labels
|
||||
*/
|
||||
|
||||
// isContainer
|
||||
type CreateGatewayConnectionPayloadGetLabelsAttributeType = *map[string]string
|
||||
type CreateGatewayConnectionPayloadGetLabelsArgType = map[string]string
|
||||
type CreateGatewayConnectionPayloadGetLabelsRetType = map[string]string
|
||||
|
||||
func getCreateGatewayConnectionPayloadGetLabelsAttributeTypeOk(arg CreateGatewayConnectionPayloadGetLabelsAttributeType) (ret CreateGatewayConnectionPayloadGetLabelsRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateGatewayConnectionPayloadGetLabelsAttributeType(arg *CreateGatewayConnectionPayloadGetLabelsAttributeType, val CreateGatewayConnectionPayloadGetLabelsRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for localSubnets
|
||||
*/
|
||||
|
|
@ -142,6 +162,8 @@ func setCreateGatewayConnectionPayloadGetTunnel2AttributeType(arg *CreateGateway
|
|||
type CreateGatewayConnectionPayload struct {
|
||||
// This flag decides whether this connection should be enabled or disabled
|
||||
Enabled CreateGatewayConnectionPayloadgetEnabledAttributeType `json:"enabled,omitempty"`
|
||||
// Map of custom labels. Key and values must be max 63 chars, start/end with alphanumeric.
|
||||
Labels CreateGatewayConnectionPayloadGetLabelsAttributeType `json:"labels,omitempty"`
|
||||
// List of local subnets (IPv4 CIDR).
|
||||
// REQUIRED
|
||||
LocalSubnets CreateGatewayConnectionPayloadGetLocalSubnetsAttributeType `json:"localSubnets" required:"true"`
|
||||
|
|
@ -204,6 +226,29 @@ func (o *CreateGatewayConnectionPayload) SetEnabled(v CreateGatewayConnectionPay
|
|||
setCreateGatewayConnectionPayloadgetEnabledAttributeType(&o.Enabled, v)
|
||||
}
|
||||
|
||||
// GetLabels returns the Labels field value if set, zero value otherwise.
|
||||
func (o *CreateGatewayConnectionPayload) GetLabels() (res CreateGatewayConnectionPayloadGetLabelsRetType) {
|
||||
res, _ = o.GetLabelsOk()
|
||||
return
|
||||
}
|
||||
|
||||
// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateGatewayConnectionPayload) GetLabelsOk() (ret CreateGatewayConnectionPayloadGetLabelsRetType, ok bool) {
|
||||
return getCreateGatewayConnectionPayloadGetLabelsAttributeTypeOk(o.Labels)
|
||||
}
|
||||
|
||||
// HasLabels returns a boolean if a field has been set.
|
||||
func (o *CreateGatewayConnectionPayload) HasLabels() bool {
|
||||
_, ok := o.GetLabelsOk()
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
|
||||
func (o *CreateGatewayConnectionPayload) SetLabels(v CreateGatewayConnectionPayloadGetLabelsRetType) {
|
||||
setCreateGatewayConnectionPayloadGetLabelsAttributeType(&o.Labels, v)
|
||||
}
|
||||
|
||||
// GetLocalSubnets returns the LocalSubnets field value
|
||||
func (o *CreateGatewayConnectionPayload) GetLocalSubnets() (ret CreateGatewayConnectionPayloadGetLocalSubnetsRetType) {
|
||||
ret, _ = o.GetLocalSubnetsOk()
|
||||
|
|
@ -294,6 +339,9 @@ func (o CreateGatewayConnectionPayload) ToMap() (map[string]interface{}, error)
|
|||
if val, ok := getCreateGatewayConnectionPayloadgetEnabledAttributeTypeOk(o.Enabled); ok {
|
||||
toSerialize["Enabled"] = val
|
||||
}
|
||||
if val, ok := getCreateGatewayConnectionPayloadGetLabelsAttributeTypeOk(o.Labels); ok {
|
||||
toSerialize["Labels"] = val
|
||||
}
|
||||
if val, ok := getCreateGatewayConnectionPayloadGetLocalSubnetsAttributeTypeOk(o.LocalSubnets); ok {
|
||||
toSerialize["LocalSubnets"] = val
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,6 +37,26 @@ func setUpdateGatewayConnectionPayloadgetEnabledAttributeType(arg *UpdateGateway
|
|||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for labels
|
||||
*/
|
||||
|
||||
// isContainer
|
||||
type UpdateGatewayConnectionPayloadGetLabelsAttributeType = *map[string]string
|
||||
type UpdateGatewayConnectionPayloadGetLabelsArgType = map[string]string
|
||||
type UpdateGatewayConnectionPayloadGetLabelsRetType = map[string]string
|
||||
|
||||
func getUpdateGatewayConnectionPayloadGetLabelsAttributeTypeOk(arg UpdateGatewayConnectionPayloadGetLabelsAttributeType) (ret UpdateGatewayConnectionPayloadGetLabelsRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setUpdateGatewayConnectionPayloadGetLabelsAttributeType(arg *UpdateGatewayConnectionPayloadGetLabelsAttributeType, val UpdateGatewayConnectionPayloadGetLabelsRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for localSubnets
|
||||
*/
|
||||
|
|
@ -142,6 +162,8 @@ func setUpdateGatewayConnectionPayloadGetTunnel2AttributeType(arg *UpdateGateway
|
|||
type UpdateGatewayConnectionPayload struct {
|
||||
// This flag decides whether this connection should be enabled or disabled
|
||||
Enabled UpdateGatewayConnectionPayloadgetEnabledAttributeType `json:"enabled,omitempty"`
|
||||
// Map of custom labels. Key and values must be max 63 chars, start/end with alphanumeric.
|
||||
Labels UpdateGatewayConnectionPayloadGetLabelsAttributeType `json:"labels,omitempty"`
|
||||
// List of local subnets (IPv4 CIDR).
|
||||
// REQUIRED
|
||||
LocalSubnets UpdateGatewayConnectionPayloadGetLocalSubnetsAttributeType `json:"localSubnets" required:"true"`
|
||||
|
|
@ -204,6 +226,29 @@ func (o *UpdateGatewayConnectionPayload) SetEnabled(v UpdateGatewayConnectionPay
|
|||
setUpdateGatewayConnectionPayloadgetEnabledAttributeType(&o.Enabled, v)
|
||||
}
|
||||
|
||||
// GetLabels returns the Labels field value if set, zero value otherwise.
|
||||
func (o *UpdateGatewayConnectionPayload) GetLabels() (res UpdateGatewayConnectionPayloadGetLabelsRetType) {
|
||||
res, _ = o.GetLabelsOk()
|
||||
return
|
||||
}
|
||||
|
||||
// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *UpdateGatewayConnectionPayload) GetLabelsOk() (ret UpdateGatewayConnectionPayloadGetLabelsRetType, ok bool) {
|
||||
return getUpdateGatewayConnectionPayloadGetLabelsAttributeTypeOk(o.Labels)
|
||||
}
|
||||
|
||||
// HasLabels returns a boolean if a field has been set.
|
||||
func (o *UpdateGatewayConnectionPayload) HasLabels() bool {
|
||||
_, ok := o.GetLabelsOk()
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
|
||||
func (o *UpdateGatewayConnectionPayload) SetLabels(v UpdateGatewayConnectionPayloadGetLabelsRetType) {
|
||||
setUpdateGatewayConnectionPayloadGetLabelsAttributeType(&o.Labels, v)
|
||||
}
|
||||
|
||||
// GetLocalSubnets returns the LocalSubnets field value
|
||||
func (o *UpdateGatewayConnectionPayload) GetLocalSubnets() (ret UpdateGatewayConnectionPayloadGetLocalSubnetsRetType) {
|
||||
ret, _ = o.GetLocalSubnetsOk()
|
||||
|
|
@ -294,6 +339,9 @@ func (o UpdateGatewayConnectionPayload) ToMap() (map[string]interface{}, error)
|
|||
if val, ok := getUpdateGatewayConnectionPayloadgetEnabledAttributeTypeOk(o.Enabled); ok {
|
||||
toSerialize["Enabled"] = val
|
||||
}
|
||||
if val, ok := getUpdateGatewayConnectionPayloadGetLabelsAttributeTypeOk(o.Labels); ok {
|
||||
toSerialize["Labels"] = val
|
||||
}
|
||||
if val, ok := getUpdateGatewayConnectionPayloadGetLocalSubnetsAttributeTypeOk(o.LocalSubnets); ok {
|
||||
toSerialize["LocalSubnets"] = val
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue