diff --git a/ipam/api/openapi.yaml b/ipam/api/openapi.yaml index 6ec4bbf..cd0fc77 100644 --- a/ipam/api/openapi.yaml +++ b/ipam/api/openapi.yaml @@ -5727,7 +5727,6 @@ components: id: id ddns_ttl_percent: 1.4658129 header_option_server_address: header_option_server_address - federation: federation address: address ddns_client_update: ddns_client_update federated_realms: @@ -5965,6 +5964,7 @@ components: comment: comment inheritance_parent: inheritance_parent ddns_update_on_renew: true + delegation: delegation dhcp_utilization: dhcp_free: dhcp_free dhcp_used: dhcp_used @@ -6082,6 +6082,10 @@ components: Defaults to _true_. format: boolean type: boolean + delegation: + description: The ID of the delegation associated with the address block. + readOnly: true + type: string dhcp_config: $ref: '#/components/schemas/ipamsvcDHCPConfig' dhcp_options: @@ -6112,10 +6116,6 @@ components: items: type: string type: array - federation: - description: Reserved for future use. - readOnly: true - type: string header_option_filename: description: The configuration for header option filename field. type: string @@ -6766,7 +6766,6 @@ components: id: id ddns_ttl_percent: 1.4658129 header_option_server_address: header_option_server_address - federation: federation address: address ddns_client_update: ddns_client_update federated_realms: @@ -7004,6 +7003,7 @@ components: comment: comment inheritance_parent: inheritance_parent ddns_update_on_renew: true + delegation: delegation dhcp_utilization: dhcp_free: dhcp_free dhcp_used: dhcp_used @@ -7648,7 +7648,6 @@ components: id: id ddns_ttl_percent: 1.4658129 header_option_server_address: header_option_server_address - federation: federation address: address ddns_client_update: ddns_client_update federated_realms: @@ -7886,6 +7885,7 @@ components: comment: comment inheritance_parent: inheritance_parent ddns_update_on_renew: true + delegation: delegation dhcp_utilization: dhcp_free: dhcp_free dhcp_used: dhcp_used @@ -7950,7 +7950,6 @@ components: id: id ddns_ttl_percent: 1.4658129 header_option_server_address: header_option_server_address - federation: federation address: address ddns_client_update: ddns_client_update federated_realms: @@ -8188,6 +8187,7 @@ components: comment: comment inheritance_parent: inheritance_parent ddns_update_on_renew: true + delegation: delegation dhcp_utilization: dhcp_free: dhcp_free dhcp_used: dhcp_used @@ -8392,7 +8392,6 @@ components: - config_profiles disable_dhcp: true rebind_time: 2 - federation: federation address: address ddns_client_update: ddns_client_update federated_realms: @@ -8607,6 +8606,7 @@ components: renew_time: 7 comment: comment inheritance_parent: inheritance_parent + delegation: delegation dhcp_host: dhcp_host dhcp_utilization: dhcp_free: dhcp_free @@ -8708,7 +8708,6 @@ components: - config_profiles disable_dhcp: true rebind_time: 2 - federation: federation address: address ddns_client_update: ddns_client_update federated_realms: @@ -8923,6 +8922,7 @@ components: renew_time: 7 comment: comment inheritance_parent: inheritance_parent + delegation: delegation dhcp_host: dhcp_host dhcp_utilization: dhcp_free: dhcp_free @@ -9653,7 +9653,6 @@ components: - config_profiles disable_dhcp: true rebind_time: 2 - federation: federation address: address ddns_client_update: ddns_client_update federated_realms: @@ -9868,6 +9867,7 @@ components: renew_time: 7 comment: comment inheritance_parent: inheritance_parent + delegation: delegation dhcp_host: dhcp_host dhcp_utilization: dhcp_free: dhcp_free @@ -12085,7 +12085,6 @@ components: - config_profiles disable_dhcp: true rebind_time: 2 - federation: federation address: address ddns_client_update: ddns_client_update federated_realms: @@ -12300,6 +12299,7 @@ components: renew_time: 7 comment: comment inheritance_parent: inheritance_parent + delegation: delegation dhcp_host: dhcp_host dhcp_utilization: dhcp_free: dhcp_free @@ -12401,7 +12401,6 @@ components: - config_profiles disable_dhcp: true rebind_time: 2 - federation: federation address: address ddns_client_update: ddns_client_update federated_realms: @@ -12616,6 +12615,7 @@ components: renew_time: 7 comment: comment inheritance_parent: inheritance_parent + delegation: delegation dhcp_host: dhcp_host dhcp_utilization: dhcp_free: dhcp_free @@ -14356,7 +14356,6 @@ components: id: id ddns_ttl_percent: 1.4658129 header_option_server_address: header_option_server_address - federation: federation address: address ddns_client_update: ddns_client_update federated_realms: @@ -14594,6 +14593,7 @@ components: comment: comment inheritance_parent: inheritance_parent ddns_update_on_renew: true + delegation: delegation dhcp_utilization: dhcp_free: dhcp_free dhcp_used: dhcp_used @@ -14658,7 +14658,6 @@ components: id: id ddns_ttl_percent: 1.4658129 header_option_server_address: header_option_server_address - federation: federation address: address ddns_client_update: ddns_client_update federated_realms: @@ -14896,6 +14895,7 @@ components: comment: comment inheritance_parent: inheritance_parent ddns_update_on_renew: true + delegation: delegation dhcp_utilization: dhcp_free: dhcp_free dhcp_used: dhcp_used @@ -18325,7 +18325,6 @@ components: - config_profiles disable_dhcp: true rebind_time: 2 - federation: federation address: address ddns_client_update: ddns_client_update federated_realms: @@ -18540,6 +18539,7 @@ components: renew_time: 7 comment: comment inheritance_parent: inheritance_parent + delegation: delegation dhcp_host: dhcp_host dhcp_utilization: dhcp_free: dhcp_free @@ -18641,7 +18641,6 @@ components: - config_profiles disable_dhcp: true rebind_time: 2 - federation: federation address: address ddns_client_update: ddns_client_update federated_realms: @@ -18856,6 +18855,7 @@ components: renew_time: 7 comment: comment inheritance_parent: inheritance_parent + delegation: delegation dhcp_host: dhcp_host dhcp_utilization: dhcp_free: dhcp_free @@ -19074,7 +19074,6 @@ components: id: id ddns_ttl_percent: 1.4658129 header_option_server_address: header_option_server_address - federation: federation address: address ddns_client_update: ddns_client_update federated_realms: @@ -19312,6 +19311,7 @@ components: comment: comment inheritance_parent: inheritance_parent ddns_update_on_renew: true + delegation: delegation dhcp_utilization: dhcp_free: dhcp_free dhcp_used: dhcp_used @@ -19376,7 +19376,6 @@ components: id: id ddns_ttl_percent: 1.4658129 header_option_server_address: header_option_server_address - federation: federation address: address ddns_client_update: ddns_client_update federated_realms: @@ -19614,6 +19613,7 @@ components: comment: comment inheritance_parent: inheritance_parent ddns_update_on_renew: true + delegation: delegation dhcp_utilization: dhcp_free: dhcp_free dhcp_used: dhcp_used @@ -19818,7 +19818,6 @@ components: - config_profiles disable_dhcp: true rebind_time: 2 - federation: federation address: address ddns_client_update: ddns_client_update federated_realms: @@ -20033,6 +20032,7 @@ components: renew_time: 7 comment: comment inheritance_parent: inheritance_parent + delegation: delegation dhcp_host: dhcp_host dhcp_utilization: dhcp_free: dhcp_free @@ -20134,7 +20134,6 @@ components: - config_profiles disable_dhcp: true rebind_time: 2 - federation: federation address: address ddns_client_update: ddns_client_update federated_realms: @@ -20349,6 +20348,7 @@ components: renew_time: 7 comment: comment inheritance_parent: inheritance_parent + delegation: delegation dhcp_host: dhcp_host dhcp_utilization: dhcp_free: dhcp_free @@ -21062,7 +21062,6 @@ components: id: id ddns_ttl_percent: 1.4658129 header_option_server_address: header_option_server_address - federation: federation address: address ddns_client_update: ddns_client_update federated_realms: @@ -21300,6 +21299,7 @@ components: comment: comment inheritance_parent: inheritance_parent ddns_update_on_renew: true + delegation: delegation dhcp_utilization: dhcp_free: dhcp_free dhcp_used: dhcp_used @@ -22826,7 +22826,6 @@ components: - config_profiles disable_dhcp: true rebind_time: 2 - federation: federation address: address ddns_client_update: ddns_client_update federated_realms: @@ -23041,6 +23040,7 @@ components: renew_time: 7 comment: comment inheritance_parent: inheritance_parent + delegation: delegation dhcp_host: dhcp_host dhcp_utilization: dhcp_free: dhcp_free @@ -24188,7 +24188,6 @@ components: - config_profiles disable_dhcp: true rebind_time: 2 - federation: federation address: address ddns_client_update: ddns_client_update federated_realms: @@ -24403,6 +24402,7 @@ components: renew_time: 7 comment: comment inheritance_parent: inheritance_parent + delegation: delegation dhcp_host: dhcp_host dhcp_utilization: dhcp_free: dhcp_free @@ -24526,6 +24526,10 @@ components: Defaults to _true_. format: boolean type: boolean + delegation: + description: The ID of the delegation associated with the subnet. + readOnly: true + type: string dhcp_config: $ref: '#/components/schemas/ipamsvcDHCPConfig' dhcp_host: @@ -24565,10 +24569,6 @@ components: items: type: string type: array - federation: - description: Reserved for future use. - readOnly: true - type: string header_option_filename: description: The configuration for header option filename field. type: string @@ -24773,7 +24773,6 @@ components: id: id ddns_ttl_percent: 1.4658129 header_option_server_address: header_option_server_address - federation: federation address: address ddns_client_update: ddns_client_update federated_realms: @@ -25011,6 +25010,7 @@ components: comment: comment inheritance_parent: inheritance_parent ddns_update_on_renew: true + delegation: delegation dhcp_utilization: dhcp_free: dhcp_free dhcp_used: dhcp_used @@ -26492,7 +26492,6 @@ components: - config_profiles disable_dhcp: true rebind_time: 2 - federation: federation address: address ddns_client_update: ddns_client_update federated_realms: @@ -26707,6 +26706,7 @@ components: renew_time: 7 comment: comment inheritance_parent: inheritance_parent + delegation: delegation dhcp_host: dhcp_host dhcp_utilization: dhcp_free: dhcp_free diff --git a/ipam/docs/AddressBlock.md b/ipam/docs/AddressBlock.md index 4c4abfd..d6a47e7 100644 --- a/ipam/docs/AddressBlock.md +++ b/ipam/docs/AddressBlock.md @@ -20,6 +20,7 @@ Name | Type | Description | Notes **DdnsTtlPercent** | Pointer to **float32** | DDNS TTL value - to be calculated as a simple percentage of the lease's lifetime, using the parameter's value as the percentage. It is specified as a percentage (e.g. 25, 75). Defaults to unspecified. | [optional] **DdnsUpdateOnRenew** | Pointer to **bool** | Instructs the DHCP server to always update the DNS information when a lease is renewed even if its DNS information has not changed. Defaults to _false_. | [optional] **DdnsUseConflictResolution** | Pointer to **bool** | When true, DHCP server will apply conflict resolution, as described in RFC 4703, when attempting to fulfill the update request. When false, DHCP server will simply attempt to update the DNS entries per the request, regardless of whether or not they conflict with existing entries owned by other DHCP4 clients. Defaults to _true_. | [optional] +**Delegation** | Pointer to **string** | The ID of the delegation associated with the address block. | [optional] [readonly] **DhcpConfig** | Pointer to [**DHCPConfig**](DHCPConfig.md) | The shared DHCP configuration that controls how leases are issued for the address block. | [optional] **DhcpOptions** | Pointer to [**[]OptionItem**](OptionItem.md) | The list of DHCP options for the address block. May be either a specific option or a group of options. | [optional] **DhcpUtilization** | Pointer to [**DHCPUtilization**](DHCPUtilization.md) | The utilization of IP addresses within the DHCP ranges of the address block. | [optional] [readonly] @@ -27,7 +28,6 @@ Name | Type | Description | Notes **DiscoveryMetadata** | Pointer to **map[string]interface{}** | The discovery metadata for this address block in JSON format. | [optional] [readonly] **ExternalKeys** | Pointer to **map[string]interface{}** | The external keys (source key) for this address block in JSON format. | [optional] **FederatedRealms** | Pointer to **[]string** | Reserved for future use. | [optional] -**Federation** | Pointer to **string** | Reserved for future use. | [optional] [readonly] **HeaderOptionFilename** | Pointer to **string** | The configuration for header option filename field. | [optional] **HeaderOptionServerAddress** | Pointer to **string** | The configuration for header option server address field. | [optional] **HeaderOptionServerName** | Pointer to **string** | The configuration for header option server name field. | [optional] @@ -467,6 +467,31 @@ SetDdnsUseConflictResolution sets DdnsUseConflictResolution field to given value HasDdnsUseConflictResolution returns a boolean if a field has been set. +### GetDelegation + +`func (o *AddressBlock) GetDelegation() string` + +GetDelegation returns the Delegation field if non-nil, zero value otherwise. + +### GetDelegationOk + +`func (o *AddressBlock) GetDelegationOk() (*string, bool)` + +GetDelegationOk returns a tuple with the Delegation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDelegation + +`func (o *AddressBlock) SetDelegation(v string)` + +SetDelegation sets Delegation field to given value. + +### HasDelegation + +`func (o *AddressBlock) HasDelegation() bool` + +HasDelegation returns a boolean if a field has been set. + ### GetDhcpConfig `func (o *AddressBlock) GetDhcpConfig() DHCPConfig` @@ -642,31 +667,6 @@ SetFederatedRealms sets FederatedRealms field to given value. HasFederatedRealms returns a boolean if a field has been set. -### GetFederation - -`func (o *AddressBlock) GetFederation() string` - -GetFederation returns the Federation field if non-nil, zero value otherwise. - -### GetFederationOk - -`func (o *AddressBlock) GetFederationOk() (*string, bool)` - -GetFederationOk returns a tuple with the Federation field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFederation - -`func (o *AddressBlock) SetFederation(v string)` - -SetFederation sets Federation field to given value. - -### HasFederation - -`func (o *AddressBlock) HasFederation() bool` - -HasFederation returns a boolean if a field has been set. - ### GetHeaderOptionFilename `func (o *AddressBlock) GetHeaderOptionFilename() string` diff --git a/ipam/docs/Subnet.md b/ipam/docs/Subnet.md index 13d2eb6..ec415fd 100644 --- a/ipam/docs/Subnet.md +++ b/ipam/docs/Subnet.md @@ -21,6 +21,7 @@ Name | Type | Description | Notes **DdnsTtlPercent** | Pointer to **float32** | DDNS TTL value - to be calculated as a simple percentage of the lease's lifetime, using the parameter's value as the percentage. It is specified as a percentage (e.g. 25, 75). Defaults to unspecified. | [optional] **DdnsUpdateOnRenew** | Pointer to **bool** | Instructs the DHCP server to always update the DNS information when a lease is renewed even if its DNS information has not changed. Defaults to _false_. | [optional] **DdnsUseConflictResolution** | Pointer to **bool** | When true, DHCP server will apply conflict resolution, as described in RFC 4703, when attempting to fulfill the update request. When false, DHCP server will simply attempt to update the DNS entries per the request, regardless of whether or not they conflict with existing entries owned by other DHCP4 clients. Defaults to _true_. | [optional] +**Delegation** | Pointer to **string** | The ID of the delegation associated with the subnet. | [optional] [readonly] **DhcpConfig** | Pointer to [**DHCPConfig**](DHCPConfig.md) | The DHCP configuration of the subnet that controls how leases are issued. | [optional] **DhcpHost** | Pointer to **string** | The resource identifier. | [optional] **DhcpOptions** | Pointer to [**[]OptionItem**](OptionItem.md) | The DHCP options of the subnet. This can either be a specific option or a group of options. | [optional] @@ -30,7 +31,6 @@ Name | Type | Description | Notes **DiscoveryMetadata** | Pointer to **map[string]interface{}** | The discovery metadata for this subnet in JSON format. | [optional] [readonly] **ExternalKeys** | Pointer to **map[string]interface{}** | The external keys (source key) for this subnet in JSON format. | [optional] **FederatedRealms** | Pointer to **[]string** | Reserved for future use. | [optional] -**Federation** | Pointer to **string** | Reserved for future use. | [optional] [readonly] **HeaderOptionFilename** | Pointer to **string** | The configuration for header option filename field. | [optional] **HeaderOptionServerAddress** | Pointer to **string** | The configuration for header option server address field. | [optional] **HeaderOptionServerName** | Pointer to **string** | The configuration for header option server name field. | [optional] @@ -498,6 +498,31 @@ SetDdnsUseConflictResolution sets DdnsUseConflictResolution field to given value HasDdnsUseConflictResolution returns a boolean if a field has been set. +### GetDelegation + +`func (o *Subnet) GetDelegation() string` + +GetDelegation returns the Delegation field if non-nil, zero value otherwise. + +### GetDelegationOk + +`func (o *Subnet) GetDelegationOk() (*string, bool)` + +GetDelegationOk returns a tuple with the Delegation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDelegation + +`func (o *Subnet) SetDelegation(v string)` + +SetDelegation sets Delegation field to given value. + +### HasDelegation + +`func (o *Subnet) HasDelegation() bool` + +HasDelegation returns a boolean if a field has been set. + ### GetDhcpConfig `func (o *Subnet) GetDhcpConfig() DHCPConfig` @@ -723,31 +748,6 @@ SetFederatedRealms sets FederatedRealms field to given value. HasFederatedRealms returns a boolean if a field has been set. -### GetFederation - -`func (o *Subnet) GetFederation() string` - -GetFederation returns the Federation field if non-nil, zero value otherwise. - -### GetFederationOk - -`func (o *Subnet) GetFederationOk() (*string, bool)` - -GetFederationOk returns a tuple with the Federation field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFederation - -`func (o *Subnet) SetFederation(v string)` - -SetFederation sets Federation field to given value. - -### HasFederation - -`func (o *Subnet) HasFederation() bool` - -HasFederation returns a boolean if a field has been set. - ### GetHeaderOptionFilename `func (o *Subnet) GetHeaderOptionFilename() string` diff --git a/ipam/model_address_block.go b/ipam/model_address_block.go index c2358bc..7f1782f 100644 --- a/ipam/model_address_block.go +++ b/ipam/model_address_block.go @@ -52,6 +52,8 @@ type AddressBlock struct { DdnsUpdateOnRenew *bool `json:"ddns_update_on_renew,omitempty"` // When true, DHCP server will apply conflict resolution, as described in RFC 4703, when attempting to fulfill the update request. When false, DHCP server will simply attempt to update the DNS entries per the request, regardless of whether or not they conflict with existing entries owned by other DHCP4 clients. Defaults to _true_. DdnsUseConflictResolution *bool `json:"ddns_use_conflict_resolution,omitempty"` + // The ID of the delegation associated with the address block. + Delegation *string `json:"delegation,omitempty"` // The shared DHCP configuration that controls how leases are issued for the address block. DhcpConfig *DHCPConfig `json:"dhcp_config,omitempty"` // The list of DHCP options for the address block. May be either a specific option or a group of options. @@ -66,8 +68,6 @@ type AddressBlock struct { ExternalKeys map[string]interface{} `json:"external_keys,omitempty"` // Reserved for future use. FederatedRealms []string `json:"federated_realms,omitempty"` - // Reserved for future use. - Federation *string `json:"federation,omitempty"` // The configuration for header option filename field. HeaderOptionFilename *string `json:"header_option_filename,omitempty"` // The configuration for header option server address field. @@ -640,6 +640,38 @@ func (o *AddressBlock) SetDdnsUseConflictResolution(v bool) { o.DdnsUseConflictResolution = &v } +// GetDelegation returns the Delegation field value if set, zero value otherwise. +func (o *AddressBlock) GetDelegation() string { + if o == nil || IsNil(o.Delegation) { + var ret string + return ret + } + return *o.Delegation +} + +// GetDelegationOk returns a tuple with the Delegation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddressBlock) GetDelegationOk() (*string, bool) { + if o == nil || IsNil(o.Delegation) { + return nil, false + } + return o.Delegation, true +} + +// HasDelegation returns a boolean if a field has been set. +func (o *AddressBlock) HasDelegation() bool { + if o != nil && !IsNil(o.Delegation) { + return true + } + + return false +} + +// SetDelegation gets a reference to the given string and assigns it to the Delegation field. +func (o *AddressBlock) SetDelegation(v string) { + o.Delegation = &v +} + // GetDhcpConfig returns the DhcpConfig field value if set, zero value otherwise. func (o *AddressBlock) GetDhcpConfig() DHCPConfig { if o == nil || IsNil(o.DhcpConfig) { @@ -864,38 +896,6 @@ func (o *AddressBlock) SetFederatedRealms(v []string) { o.FederatedRealms = v } -// GetFederation returns the Federation field value if set, zero value otherwise. -func (o *AddressBlock) GetFederation() string { - if o == nil || IsNil(o.Federation) { - var ret string - return ret - } - return *o.Federation -} - -// GetFederationOk returns a tuple with the Federation field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AddressBlock) GetFederationOk() (*string, bool) { - if o == nil || IsNil(o.Federation) { - return nil, false - } - return o.Federation, true -} - -// HasFederation returns a boolean if a field has been set. -func (o *AddressBlock) HasFederation() bool { - if o != nil && !IsNil(o.Federation) { - return true - } - - return false -} - -// SetFederation gets a reference to the given string and assigns it to the Federation field. -func (o *AddressBlock) SetFederation(v string) { - o.Federation = &v -} - // GetHeaderOptionFilename returns the HeaderOptionFilename field value if set, zero value otherwise. func (o *AddressBlock) GetHeaderOptionFilename() string { if o == nil || IsNil(o.HeaderOptionFilename) { @@ -1562,6 +1562,9 @@ func (o AddressBlock) ToMap() (map[string]interface{}, error) { if !IsNil(o.DdnsUseConflictResolution) { toSerialize["ddns_use_conflict_resolution"] = o.DdnsUseConflictResolution } + if !IsNil(o.Delegation) { + toSerialize["delegation"] = o.Delegation + } if !IsNil(o.DhcpConfig) { toSerialize["dhcp_config"] = o.DhcpConfig } @@ -1583,9 +1586,6 @@ func (o AddressBlock) ToMap() (map[string]interface{}, error) { if !IsNil(o.FederatedRealms) { toSerialize["federated_realms"] = o.FederatedRealms } - if !IsNil(o.Federation) { - toSerialize["federation"] = o.Federation - } if !IsNil(o.HeaderOptionFilename) { toSerialize["header_option_filename"] = o.HeaderOptionFilename } @@ -1681,6 +1681,7 @@ func (o *AddressBlock) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "ddns_ttl_percent") delete(additionalProperties, "ddns_update_on_renew") delete(additionalProperties, "ddns_use_conflict_resolution") + delete(additionalProperties, "delegation") delete(additionalProperties, "dhcp_config") delete(additionalProperties, "dhcp_options") delete(additionalProperties, "dhcp_utilization") @@ -1688,7 +1689,6 @@ func (o *AddressBlock) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "discovery_metadata") delete(additionalProperties, "external_keys") delete(additionalProperties, "federated_realms") - delete(additionalProperties, "federation") delete(additionalProperties, "header_option_filename") delete(additionalProperties, "header_option_server_address") delete(additionalProperties, "header_option_server_name") diff --git a/ipam/model_subnet.go b/ipam/model_subnet.go index 095c88c..79166b0 100644 --- a/ipam/model_subnet.go +++ b/ipam/model_subnet.go @@ -54,6 +54,8 @@ type Subnet struct { DdnsUpdateOnRenew *bool `json:"ddns_update_on_renew,omitempty"` // When true, DHCP server will apply conflict resolution, as described in RFC 4703, when attempting to fulfill the update request. When false, DHCP server will simply attempt to update the DNS entries per the request, regardless of whether or not they conflict with existing entries owned by other DHCP4 clients. Defaults to _true_. DdnsUseConflictResolution *bool `json:"ddns_use_conflict_resolution,omitempty"` + // The ID of the delegation associated with the subnet. + Delegation *string `json:"delegation,omitempty"` // The DHCP configuration of the subnet that controls how leases are issued. DhcpConfig *DHCPConfig `json:"dhcp_config,omitempty"` // The resource identifier. @@ -72,8 +74,6 @@ type Subnet struct { ExternalKeys map[string]interface{} `json:"external_keys,omitempty"` // Reserved for future use. FederatedRealms []string `json:"federated_realms,omitempty"` - // Reserved for future use. - Federation *string `json:"federation,omitempty"` // The configuration for header option filename field. HeaderOptionFilename *string `json:"header_option_filename,omitempty"` // The configuration for header option server address field. @@ -684,6 +684,38 @@ func (o *Subnet) SetDdnsUseConflictResolution(v bool) { o.DdnsUseConflictResolution = &v } +// GetDelegation returns the Delegation field value if set, zero value otherwise. +func (o *Subnet) GetDelegation() string { + if o == nil || IsNil(o.Delegation) { + var ret string + return ret + } + return *o.Delegation +} + +// GetDelegationOk returns a tuple with the Delegation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subnet) GetDelegationOk() (*string, bool) { + if o == nil || IsNil(o.Delegation) { + return nil, false + } + return o.Delegation, true +} + +// HasDelegation returns a boolean if a field has been set. +func (o *Subnet) HasDelegation() bool { + if o != nil && !IsNil(o.Delegation) { + return true + } + + return false +} + +// SetDelegation gets a reference to the given string and assigns it to the Delegation field. +func (o *Subnet) SetDelegation(v string) { + o.Delegation = &v +} + // GetDhcpConfig returns the DhcpConfig field value if set, zero value otherwise. func (o *Subnet) GetDhcpConfig() DHCPConfig { if o == nil || IsNil(o.DhcpConfig) { @@ -972,38 +1004,6 @@ func (o *Subnet) SetFederatedRealms(v []string) { o.FederatedRealms = v } -// GetFederation returns the Federation field value if set, zero value otherwise. -func (o *Subnet) GetFederation() string { - if o == nil || IsNil(o.Federation) { - var ret string - return ret - } - return *o.Federation -} - -// GetFederationOk returns a tuple with the Federation field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Subnet) GetFederationOk() (*string, bool) { - if o == nil || IsNil(o.Federation) { - return nil, false - } - return o.Federation, true -} - -// HasFederation returns a boolean if a field has been set. -func (o *Subnet) HasFederation() bool { - if o != nil && !IsNil(o.Federation) { - return true - } - - return false -} - -// SetFederation gets a reference to the given string and assigns it to the Federation field. -func (o *Subnet) SetFederation(v string) { - o.Federation = &v -} - // GetHeaderOptionFilename returns the HeaderOptionFilename field value if set, zero value otherwise. func (o *Subnet) GetHeaderOptionFilename() string { if o == nil || IsNil(o.HeaderOptionFilename) { @@ -1769,6 +1769,9 @@ func (o Subnet) ToMap() (map[string]interface{}, error) { if !IsNil(o.DdnsUseConflictResolution) { toSerialize["ddns_use_conflict_resolution"] = o.DdnsUseConflictResolution } + if !IsNil(o.Delegation) { + toSerialize["delegation"] = o.Delegation + } if !IsNil(o.DhcpConfig) { toSerialize["dhcp_config"] = o.DhcpConfig } @@ -1796,9 +1799,6 @@ func (o Subnet) ToMap() (map[string]interface{}, error) { if !IsNil(o.FederatedRealms) { toSerialize["federated_realms"] = o.FederatedRealms } - if !IsNil(o.Federation) { - toSerialize["federation"] = o.Federation - } if !IsNil(o.HeaderOptionFilename) { toSerialize["header_option_filename"] = o.HeaderOptionFilename } @@ -1904,6 +1904,7 @@ func (o *Subnet) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "ddns_ttl_percent") delete(additionalProperties, "ddns_update_on_renew") delete(additionalProperties, "ddns_use_conflict_resolution") + delete(additionalProperties, "delegation") delete(additionalProperties, "dhcp_config") delete(additionalProperties, "dhcp_host") delete(additionalProperties, "dhcp_options") @@ -1913,7 +1914,6 @@ func (o *Subnet) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "discovery_metadata") delete(additionalProperties, "external_keys") delete(additionalProperties, "federated_realms") - delete(additionalProperties, "federation") delete(additionalProperties, "header_option_filename") delete(additionalProperties, "header_option_server_address") delete(additionalProperties, "header_option_server_name")