diff --git a/CHANGELOG.md b/CHANGELOG.md index 78d8082c4..8ec0d0b75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ ## Release (2025-XX-YY) -- `scf`: [v0.3.0](services/scf/CHANGELOG.md#v030) - - **Feature:** Add new model `IsolationSegment` and `IsolationSegmentsList` +- `scf`: + - [v0.4.0](services/scf/CHANGELOG.md#v040) + - **Feature:** Add new model structs `SpaceWithIsolationSegment` and `SpaceWithIsolationSegmentAllOf` + - [v0.3.0](services/scf/CHANGELOG.md#v030) + - **Feature:** Add new model `IsolationSegment` and `IsolationSegmentsList` - `iaas`: - [v1.3.0](services/iaas/CHANGELOG.md#v130) - **Feature:** Add `CreateIsolatedNetwork` functionality diff --git a/services/scf/CHANGELOG.md b/services/scf/CHANGELOG.md index d68c682c4..38cec3e04 100644 --- a/services/scf/CHANGELOG.md +++ b/services/scf/CHANGELOG.md @@ -1,3 +1,6 @@ +## v0.4.0 +- **Feature:** Add new model structs `SpaceWithIsolationSegment` and `SpaceWithIsolationSegmentAllOf` + ## v0.3.0 - **Feature:** Add new model `IsolationSegment` and `IsolationSegmentsList` @@ -15,4 +18,4 @@ - **Feature:** Add new model `OrganizationCreateBffResponse` and `SpaceCreatedBffResponse` ## v0.1.0 -- **New:** STACKIT Cloud Foundry module \ No newline at end of file +- **New:** STACKIT Cloud Foundry module diff --git a/services/scf/VERSION b/services/scf/VERSION index d4dfa5639..fb7a04cff 100644 --- a/services/scf/VERSION +++ b/services/scf/VERSION @@ -1 +1 @@ -v0.3.0 \ No newline at end of file +v0.4.0 diff --git a/services/scf/model_space_with_isolation_segment.go b/services/scf/model_space_with_isolation_segment.go new file mode 100644 index 000000000..d9af0bf93 --- /dev/null +++ b/services/scf/model_space_with_isolation_segment.go @@ -0,0 +1,481 @@ +/* +STACKIT Cloud Foundry API + +API endpoints for managing STACKIT Cloud Foundry + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package scf + +import ( + "encoding/json" + "time" +) + +// checks if the SpaceWithIsolationSegment type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SpaceWithIsolationSegment{} + +/* + types and functions for createdAt +*/ + +// isDateTime +type SpaceWithIsolationSegmentGetCreatedAtAttributeType = *time.Time +type SpaceWithIsolationSegmentGetCreatedAtArgType = time.Time +type SpaceWithIsolationSegmentGetCreatedAtRetType = time.Time + +func getSpaceWithIsolationSegmentGetCreatedAtAttributeTypeOk(arg SpaceWithIsolationSegmentGetCreatedAtAttributeType) (ret SpaceWithIsolationSegmentGetCreatedAtRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setSpaceWithIsolationSegmentGetCreatedAtAttributeType(arg *SpaceWithIsolationSegmentGetCreatedAtAttributeType, val SpaceWithIsolationSegmentGetCreatedAtRetType) { + *arg = &val +} + +/* + types and functions for guid +*/ + +// isNotNullableString +type SpaceWithIsolationSegmentGetGuidAttributeType = *string + +func getSpaceWithIsolationSegmentGetGuidAttributeTypeOk(arg SpaceWithIsolationSegmentGetGuidAttributeType) (ret SpaceWithIsolationSegmentGetGuidRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setSpaceWithIsolationSegmentGetGuidAttributeType(arg *SpaceWithIsolationSegmentGetGuidAttributeType, val SpaceWithIsolationSegmentGetGuidRetType) { + *arg = &val +} + +type SpaceWithIsolationSegmentGetGuidArgType = string +type SpaceWithIsolationSegmentGetGuidRetType = string + +/* + types and functions for name +*/ + +// isNotNullableString +type SpaceWithIsolationSegmentGetNameAttributeType = *string + +func getSpaceWithIsolationSegmentGetNameAttributeTypeOk(arg SpaceWithIsolationSegmentGetNameAttributeType) (ret SpaceWithIsolationSegmentGetNameRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setSpaceWithIsolationSegmentGetNameAttributeType(arg *SpaceWithIsolationSegmentGetNameAttributeType, val SpaceWithIsolationSegmentGetNameRetType) { + *arg = &val +} + +type SpaceWithIsolationSegmentGetNameArgType = string +type SpaceWithIsolationSegmentGetNameRetType = string + +/* + types and functions for orgId +*/ + +// isNotNullableString +type SpaceWithIsolationSegmentGetOrgIdAttributeType = *string + +func getSpaceWithIsolationSegmentGetOrgIdAttributeTypeOk(arg SpaceWithIsolationSegmentGetOrgIdAttributeType) (ret SpaceWithIsolationSegmentGetOrgIdRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setSpaceWithIsolationSegmentGetOrgIdAttributeType(arg *SpaceWithIsolationSegmentGetOrgIdAttributeType, val SpaceWithIsolationSegmentGetOrgIdRetType) { + *arg = &val +} + +type SpaceWithIsolationSegmentGetOrgIdArgType = string +type SpaceWithIsolationSegmentGetOrgIdRetType = string + +/* + types and functions for platformId +*/ + +// isNotNullableString +type SpaceWithIsolationSegmentGetPlatformIdAttributeType = *string + +func getSpaceWithIsolationSegmentGetPlatformIdAttributeTypeOk(arg SpaceWithIsolationSegmentGetPlatformIdAttributeType) (ret SpaceWithIsolationSegmentGetPlatformIdRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setSpaceWithIsolationSegmentGetPlatformIdAttributeType(arg *SpaceWithIsolationSegmentGetPlatformIdAttributeType, val SpaceWithIsolationSegmentGetPlatformIdRetType) { + *arg = &val +} + +type SpaceWithIsolationSegmentGetPlatformIdArgType = string +type SpaceWithIsolationSegmentGetPlatformIdRetType = string + +/* + types and functions for projectId +*/ + +// isNotNullableString +type SpaceWithIsolationSegmentGetProjectIdAttributeType = *string + +func getSpaceWithIsolationSegmentGetProjectIdAttributeTypeOk(arg SpaceWithIsolationSegmentGetProjectIdAttributeType) (ret SpaceWithIsolationSegmentGetProjectIdRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setSpaceWithIsolationSegmentGetProjectIdAttributeType(arg *SpaceWithIsolationSegmentGetProjectIdAttributeType, val SpaceWithIsolationSegmentGetProjectIdRetType) { + *arg = &val +} + +type SpaceWithIsolationSegmentGetProjectIdArgType = string +type SpaceWithIsolationSegmentGetProjectIdRetType = string + +/* + types and functions for region +*/ + +// isNotNullableString +type SpaceWithIsolationSegmentGetRegionAttributeType = *string + +func getSpaceWithIsolationSegmentGetRegionAttributeTypeOk(arg SpaceWithIsolationSegmentGetRegionAttributeType) (ret SpaceWithIsolationSegmentGetRegionRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setSpaceWithIsolationSegmentGetRegionAttributeType(arg *SpaceWithIsolationSegmentGetRegionAttributeType, val SpaceWithIsolationSegmentGetRegionRetType) { + *arg = &val +} + +type SpaceWithIsolationSegmentGetRegionArgType = string +type SpaceWithIsolationSegmentGetRegionRetType = string + +/* + types and functions for updatedAt +*/ + +// isDateTime +type SpaceWithIsolationSegmentGetUpdatedAtAttributeType = *time.Time +type SpaceWithIsolationSegmentGetUpdatedAtArgType = time.Time +type SpaceWithIsolationSegmentGetUpdatedAtRetType = time.Time + +func getSpaceWithIsolationSegmentGetUpdatedAtAttributeTypeOk(arg SpaceWithIsolationSegmentGetUpdatedAtAttributeType) (ret SpaceWithIsolationSegmentGetUpdatedAtRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setSpaceWithIsolationSegmentGetUpdatedAtAttributeType(arg *SpaceWithIsolationSegmentGetUpdatedAtAttributeType, val SpaceWithIsolationSegmentGetUpdatedAtRetType) { + *arg = &val +} + +/* + types and functions for isolationSegmentId +*/ + +// isNotNullableString +type SpaceWithIsolationSegmentGetIsolationSegmentIdAttributeType = *string + +func getSpaceWithIsolationSegmentGetIsolationSegmentIdAttributeTypeOk(arg SpaceWithIsolationSegmentGetIsolationSegmentIdAttributeType) (ret SpaceWithIsolationSegmentGetIsolationSegmentIdRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setSpaceWithIsolationSegmentGetIsolationSegmentIdAttributeType(arg *SpaceWithIsolationSegmentGetIsolationSegmentIdAttributeType, val SpaceWithIsolationSegmentGetIsolationSegmentIdRetType) { + *arg = &val +} + +type SpaceWithIsolationSegmentGetIsolationSegmentIdArgType = string +type SpaceWithIsolationSegmentGetIsolationSegmentIdRetType = string + +// SpaceWithIsolationSegment A Space resource that includes its assigned Isolation Segment details. +type SpaceWithIsolationSegment struct { + // REQUIRED + CreatedAt SpaceWithIsolationSegmentGetCreatedAtAttributeType `json:"createdAt" required:"true"` + // REQUIRED + Guid SpaceWithIsolationSegmentGetGuidAttributeType `json:"guid" required:"true"` + // REQUIRED + Name SpaceWithIsolationSegmentGetNameAttributeType `json:"name" required:"true"` + // REQUIRED + OrgId SpaceWithIsolationSegmentGetOrgIdAttributeType `json:"orgId" required:"true"` + // REQUIRED + PlatformId SpaceWithIsolationSegmentGetPlatformIdAttributeType `json:"platformId" required:"true"` + // REQUIRED + ProjectId SpaceWithIsolationSegmentGetProjectIdAttributeType `json:"projectId" required:"true"` + // REQUIRED + Region SpaceWithIsolationSegmentGetRegionAttributeType `json:"region" required:"true"` + // REQUIRED + UpdatedAt SpaceWithIsolationSegmentGetUpdatedAtAttributeType `json:"updatedAt" required:"true"` + IsolationSegmentId SpaceWithIsolationSegmentGetIsolationSegmentIdAttributeType `json:"isolationSegmentId,omitempty"` +} + +type _SpaceWithIsolationSegment SpaceWithIsolationSegment + +// NewSpaceWithIsolationSegment instantiates a new SpaceWithIsolationSegment 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 NewSpaceWithIsolationSegment(createdAt SpaceWithIsolationSegmentGetCreatedAtArgType, guid SpaceWithIsolationSegmentGetGuidArgType, name SpaceWithIsolationSegmentGetNameArgType, orgId SpaceWithIsolationSegmentGetOrgIdArgType, platformId SpaceWithIsolationSegmentGetPlatformIdArgType, projectId SpaceWithIsolationSegmentGetProjectIdArgType, region SpaceWithIsolationSegmentGetRegionArgType, updatedAt SpaceWithIsolationSegmentGetUpdatedAtArgType) *SpaceWithIsolationSegment { + this := SpaceWithIsolationSegment{} + setSpaceWithIsolationSegmentGetCreatedAtAttributeType(&this.CreatedAt, createdAt) + setSpaceWithIsolationSegmentGetGuidAttributeType(&this.Guid, guid) + setSpaceWithIsolationSegmentGetNameAttributeType(&this.Name, name) + setSpaceWithIsolationSegmentGetOrgIdAttributeType(&this.OrgId, orgId) + setSpaceWithIsolationSegmentGetPlatformIdAttributeType(&this.PlatformId, platformId) + setSpaceWithIsolationSegmentGetProjectIdAttributeType(&this.ProjectId, projectId) + setSpaceWithIsolationSegmentGetRegionAttributeType(&this.Region, region) + setSpaceWithIsolationSegmentGetUpdatedAtAttributeType(&this.UpdatedAt, updatedAt) + return &this +} + +// NewSpaceWithIsolationSegmentWithDefaults instantiates a new SpaceWithIsolationSegment 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 NewSpaceWithIsolationSegmentWithDefaults() *SpaceWithIsolationSegment { + this := SpaceWithIsolationSegment{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value +func (o *SpaceWithIsolationSegment) GetCreatedAt() (ret SpaceWithIsolationSegmentGetCreatedAtRetType) { + ret, _ = o.GetCreatedAtOk() + return ret +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *SpaceWithIsolationSegment) GetCreatedAtOk() (ret SpaceWithIsolationSegmentGetCreatedAtRetType, ok bool) { + return getSpaceWithIsolationSegmentGetCreatedAtAttributeTypeOk(o.CreatedAt) +} + +// SetCreatedAt sets field value +func (o *SpaceWithIsolationSegment) SetCreatedAt(v SpaceWithIsolationSegmentGetCreatedAtRetType) { + setSpaceWithIsolationSegmentGetCreatedAtAttributeType(&o.CreatedAt, v) +} + +// GetGuid returns the Guid field value +func (o *SpaceWithIsolationSegment) GetGuid() (ret SpaceWithIsolationSegmentGetGuidRetType) { + ret, _ = o.GetGuidOk() + return ret +} + +// GetGuidOk returns a tuple with the Guid field value +// and a boolean to check if the value has been set. +func (o *SpaceWithIsolationSegment) GetGuidOk() (ret SpaceWithIsolationSegmentGetGuidRetType, ok bool) { + return getSpaceWithIsolationSegmentGetGuidAttributeTypeOk(o.Guid) +} + +// SetGuid sets field value +func (o *SpaceWithIsolationSegment) SetGuid(v SpaceWithIsolationSegmentGetGuidRetType) { + setSpaceWithIsolationSegmentGetGuidAttributeType(&o.Guid, v) +} + +// GetName returns the Name field value +func (o *SpaceWithIsolationSegment) GetName() (ret SpaceWithIsolationSegmentGetNameRetType) { + ret, _ = o.GetNameOk() + return ret +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *SpaceWithIsolationSegment) GetNameOk() (ret SpaceWithIsolationSegmentGetNameRetType, ok bool) { + return getSpaceWithIsolationSegmentGetNameAttributeTypeOk(o.Name) +} + +// SetName sets field value +func (o *SpaceWithIsolationSegment) SetName(v SpaceWithIsolationSegmentGetNameRetType) { + setSpaceWithIsolationSegmentGetNameAttributeType(&o.Name, v) +} + +// GetOrgId returns the OrgId field value +func (o *SpaceWithIsolationSegment) GetOrgId() (ret SpaceWithIsolationSegmentGetOrgIdRetType) { + ret, _ = o.GetOrgIdOk() + return ret +} + +// GetOrgIdOk returns a tuple with the OrgId field value +// and a boolean to check if the value has been set. +func (o *SpaceWithIsolationSegment) GetOrgIdOk() (ret SpaceWithIsolationSegmentGetOrgIdRetType, ok bool) { + return getSpaceWithIsolationSegmentGetOrgIdAttributeTypeOk(o.OrgId) +} + +// SetOrgId sets field value +func (o *SpaceWithIsolationSegment) SetOrgId(v SpaceWithIsolationSegmentGetOrgIdRetType) { + setSpaceWithIsolationSegmentGetOrgIdAttributeType(&o.OrgId, v) +} + +// GetPlatformId returns the PlatformId field value +func (o *SpaceWithIsolationSegment) GetPlatformId() (ret SpaceWithIsolationSegmentGetPlatformIdRetType) { + ret, _ = o.GetPlatformIdOk() + return ret +} + +// GetPlatformIdOk returns a tuple with the PlatformId field value +// and a boolean to check if the value has been set. +func (o *SpaceWithIsolationSegment) GetPlatformIdOk() (ret SpaceWithIsolationSegmentGetPlatformIdRetType, ok bool) { + return getSpaceWithIsolationSegmentGetPlatformIdAttributeTypeOk(o.PlatformId) +} + +// SetPlatformId sets field value +func (o *SpaceWithIsolationSegment) SetPlatformId(v SpaceWithIsolationSegmentGetPlatformIdRetType) { + setSpaceWithIsolationSegmentGetPlatformIdAttributeType(&o.PlatformId, v) +} + +// GetProjectId returns the ProjectId field value +func (o *SpaceWithIsolationSegment) GetProjectId() (ret SpaceWithIsolationSegmentGetProjectIdRetType) { + ret, _ = o.GetProjectIdOk() + return ret +} + +// GetProjectIdOk returns a tuple with the ProjectId field value +// and a boolean to check if the value has been set. +func (o *SpaceWithIsolationSegment) GetProjectIdOk() (ret SpaceWithIsolationSegmentGetProjectIdRetType, ok bool) { + return getSpaceWithIsolationSegmentGetProjectIdAttributeTypeOk(o.ProjectId) +} + +// SetProjectId sets field value +func (o *SpaceWithIsolationSegment) SetProjectId(v SpaceWithIsolationSegmentGetProjectIdRetType) { + setSpaceWithIsolationSegmentGetProjectIdAttributeType(&o.ProjectId, v) +} + +// GetRegion returns the Region field value +func (o *SpaceWithIsolationSegment) GetRegion() (ret SpaceWithIsolationSegmentGetRegionRetType) { + ret, _ = o.GetRegionOk() + return ret +} + +// GetRegionOk returns a tuple with the Region field value +// and a boolean to check if the value has been set. +func (o *SpaceWithIsolationSegment) GetRegionOk() (ret SpaceWithIsolationSegmentGetRegionRetType, ok bool) { + return getSpaceWithIsolationSegmentGetRegionAttributeTypeOk(o.Region) +} + +// SetRegion sets field value +func (o *SpaceWithIsolationSegment) SetRegion(v SpaceWithIsolationSegmentGetRegionRetType) { + setSpaceWithIsolationSegmentGetRegionAttributeType(&o.Region, v) +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *SpaceWithIsolationSegment) GetUpdatedAt() (ret SpaceWithIsolationSegmentGetUpdatedAtRetType) { + ret, _ = o.GetUpdatedAtOk() + return ret +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *SpaceWithIsolationSegment) GetUpdatedAtOk() (ret SpaceWithIsolationSegmentGetUpdatedAtRetType, ok bool) { + return getSpaceWithIsolationSegmentGetUpdatedAtAttributeTypeOk(o.UpdatedAt) +} + +// SetUpdatedAt sets field value +func (o *SpaceWithIsolationSegment) SetUpdatedAt(v SpaceWithIsolationSegmentGetUpdatedAtRetType) { + setSpaceWithIsolationSegmentGetUpdatedAtAttributeType(&o.UpdatedAt, v) +} + +// GetIsolationSegmentId returns the IsolationSegmentId field value if set, zero value otherwise. +func (o *SpaceWithIsolationSegment) GetIsolationSegmentId() (res SpaceWithIsolationSegmentGetIsolationSegmentIdRetType) { + res, _ = o.GetIsolationSegmentIdOk() + return +} + +// GetIsolationSegmentIdOk returns a tuple with the IsolationSegmentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SpaceWithIsolationSegment) GetIsolationSegmentIdOk() (ret SpaceWithIsolationSegmentGetIsolationSegmentIdRetType, ok bool) { + return getSpaceWithIsolationSegmentGetIsolationSegmentIdAttributeTypeOk(o.IsolationSegmentId) +} + +// HasIsolationSegmentId returns a boolean if a field has been set. +func (o *SpaceWithIsolationSegment) HasIsolationSegmentId() bool { + _, ok := o.GetIsolationSegmentIdOk() + return ok +} + +// SetIsolationSegmentId gets a reference to the given string and assigns it to the IsolationSegmentId field. +func (o *SpaceWithIsolationSegment) SetIsolationSegmentId(v SpaceWithIsolationSegmentGetIsolationSegmentIdRetType) { + setSpaceWithIsolationSegmentGetIsolationSegmentIdAttributeType(&o.IsolationSegmentId, v) +} + +func (o SpaceWithIsolationSegment) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if val, ok := getSpaceWithIsolationSegmentGetCreatedAtAttributeTypeOk(o.CreatedAt); ok { + toSerialize["CreatedAt"] = val + } + if val, ok := getSpaceWithIsolationSegmentGetGuidAttributeTypeOk(o.Guid); ok { + toSerialize["Guid"] = val + } + if val, ok := getSpaceWithIsolationSegmentGetNameAttributeTypeOk(o.Name); ok { + toSerialize["Name"] = val + } + if val, ok := getSpaceWithIsolationSegmentGetOrgIdAttributeTypeOk(o.OrgId); ok { + toSerialize["OrgId"] = val + } + if val, ok := getSpaceWithIsolationSegmentGetPlatformIdAttributeTypeOk(o.PlatformId); ok { + toSerialize["PlatformId"] = val + } + if val, ok := getSpaceWithIsolationSegmentGetProjectIdAttributeTypeOk(o.ProjectId); ok { + toSerialize["ProjectId"] = val + } + if val, ok := getSpaceWithIsolationSegmentGetRegionAttributeTypeOk(o.Region); ok { + toSerialize["Region"] = val + } + if val, ok := getSpaceWithIsolationSegmentGetUpdatedAtAttributeTypeOk(o.UpdatedAt); ok { + toSerialize["UpdatedAt"] = val + } + if val, ok := getSpaceWithIsolationSegmentGetIsolationSegmentIdAttributeTypeOk(o.IsolationSegmentId); ok { + toSerialize["IsolationSegmentId"] = val + } + return toSerialize, nil +} + +type NullableSpaceWithIsolationSegment struct { + value *SpaceWithIsolationSegment + isSet bool +} + +func (v NullableSpaceWithIsolationSegment) Get() *SpaceWithIsolationSegment { + return v.value +} + +func (v *NullableSpaceWithIsolationSegment) Set(val *SpaceWithIsolationSegment) { + v.value = val + v.isSet = true +} + +func (v NullableSpaceWithIsolationSegment) IsSet() bool { + return v.isSet +} + +func (v *NullableSpaceWithIsolationSegment) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSpaceWithIsolationSegment(val *SpaceWithIsolationSegment) *NullableSpaceWithIsolationSegment { + return &NullableSpaceWithIsolationSegment{value: val, isSet: true} +} + +func (v NullableSpaceWithIsolationSegment) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSpaceWithIsolationSegment) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/scf/model_space_with_isolation_segment_all_of.go b/services/scf/model_space_with_isolation_segment_all_of.go new file mode 100644 index 000000000..f8044bb88 --- /dev/null +++ b/services/scf/model_space_with_isolation_segment_all_of.go @@ -0,0 +1,128 @@ +/* +STACKIT Cloud Foundry API + +API endpoints for managing STACKIT Cloud Foundry + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package scf + +import ( + "encoding/json" +) + +// checks if the SpaceWithIsolationSegmentAllOf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SpaceWithIsolationSegmentAllOf{} + +/* + types and functions for isolationSegmentId +*/ + +// isNotNullableString +type SpaceWithIsolationSegmentAllOfGetIsolationSegmentIdAttributeType = *string + +func getSpaceWithIsolationSegmentAllOfGetIsolationSegmentIdAttributeTypeOk(arg SpaceWithIsolationSegmentAllOfGetIsolationSegmentIdAttributeType) (ret SpaceWithIsolationSegmentAllOfGetIsolationSegmentIdRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setSpaceWithIsolationSegmentAllOfGetIsolationSegmentIdAttributeType(arg *SpaceWithIsolationSegmentAllOfGetIsolationSegmentIdAttributeType, val SpaceWithIsolationSegmentAllOfGetIsolationSegmentIdRetType) { + *arg = &val +} + +type SpaceWithIsolationSegmentAllOfGetIsolationSegmentIdArgType = string +type SpaceWithIsolationSegmentAllOfGetIsolationSegmentIdRetType = string + +// SpaceWithIsolationSegmentAllOf struct for SpaceWithIsolationSegmentAllOf +type SpaceWithIsolationSegmentAllOf struct { + IsolationSegmentId SpaceWithIsolationSegmentAllOfGetIsolationSegmentIdAttributeType `json:"isolationSegmentId,omitempty"` +} + +// NewSpaceWithIsolationSegmentAllOf instantiates a new SpaceWithIsolationSegmentAllOf 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 NewSpaceWithIsolationSegmentAllOf() *SpaceWithIsolationSegmentAllOf { + this := SpaceWithIsolationSegmentAllOf{} + return &this +} + +// NewSpaceWithIsolationSegmentAllOfWithDefaults instantiates a new SpaceWithIsolationSegmentAllOf 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 NewSpaceWithIsolationSegmentAllOfWithDefaults() *SpaceWithIsolationSegmentAllOf { + this := SpaceWithIsolationSegmentAllOf{} + return &this +} + +// GetIsolationSegmentId returns the IsolationSegmentId field value if set, zero value otherwise. +func (o *SpaceWithIsolationSegmentAllOf) GetIsolationSegmentId() (res SpaceWithIsolationSegmentAllOfGetIsolationSegmentIdRetType) { + res, _ = o.GetIsolationSegmentIdOk() + return +} + +// GetIsolationSegmentIdOk returns a tuple with the IsolationSegmentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SpaceWithIsolationSegmentAllOf) GetIsolationSegmentIdOk() (ret SpaceWithIsolationSegmentAllOfGetIsolationSegmentIdRetType, ok bool) { + return getSpaceWithIsolationSegmentAllOfGetIsolationSegmentIdAttributeTypeOk(o.IsolationSegmentId) +} + +// HasIsolationSegmentId returns a boolean if a field has been set. +func (o *SpaceWithIsolationSegmentAllOf) HasIsolationSegmentId() bool { + _, ok := o.GetIsolationSegmentIdOk() + return ok +} + +// SetIsolationSegmentId gets a reference to the given string and assigns it to the IsolationSegmentId field. +func (o *SpaceWithIsolationSegmentAllOf) SetIsolationSegmentId(v SpaceWithIsolationSegmentAllOfGetIsolationSegmentIdRetType) { + setSpaceWithIsolationSegmentAllOfGetIsolationSegmentIdAttributeType(&o.IsolationSegmentId, v) +} + +func (o SpaceWithIsolationSegmentAllOf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if val, ok := getSpaceWithIsolationSegmentAllOfGetIsolationSegmentIdAttributeTypeOk(o.IsolationSegmentId); ok { + toSerialize["IsolationSegmentId"] = val + } + return toSerialize, nil +} + +type NullableSpaceWithIsolationSegmentAllOf struct { + value *SpaceWithIsolationSegmentAllOf + isSet bool +} + +func (v NullableSpaceWithIsolationSegmentAllOf) Get() *SpaceWithIsolationSegmentAllOf { + return v.value +} + +func (v *NullableSpaceWithIsolationSegmentAllOf) Set(val *SpaceWithIsolationSegmentAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableSpaceWithIsolationSegmentAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableSpaceWithIsolationSegmentAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSpaceWithIsolationSegmentAllOf(val *SpaceWithIsolationSegmentAllOf) *NullableSpaceWithIsolationSegmentAllOf { + return &NullableSpaceWithIsolationSegmentAllOf{value: val, isSet: true} +} + +func (v NullableSpaceWithIsolationSegmentAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSpaceWithIsolationSegmentAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/scf/model_space_with_isolation_segment_all_of_test.go b/services/scf/model_space_with_isolation_segment_all_of_test.go new file mode 100644 index 000000000..d96cdf0fe --- /dev/null +++ b/services/scf/model_space_with_isolation_segment_all_of_test.go @@ -0,0 +1,11 @@ +/* +STACKIT Cloud Foundry API + +API endpoints for managing STACKIT Cloud Foundry + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package scf diff --git a/services/scf/model_space_with_isolation_segment_test.go b/services/scf/model_space_with_isolation_segment_test.go new file mode 100644 index 000000000..d96cdf0fe --- /dev/null +++ b/services/scf/model_space_with_isolation_segment_test.go @@ -0,0 +1,11 @@ +/* +STACKIT Cloud Foundry API + +API endpoints for managing STACKIT Cloud Foundry + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package scf