diff --git a/services/scf/model_org_role_create_bff_request.go b/services/scf/model_org_role_create_bff_request.go deleted file mode 100644 index 66e908987..000000000 --- a/services/scf/model_org_role_create_bff_request.go +++ /dev/null @@ -1,149 +0,0 @@ -/* -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. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package scf - -import ( - "encoding/json" -) - -// checks if the OrgRoleCreateBffRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &OrgRoleCreateBffRequest{} - -/* - types and functions for type -*/ - -// isEnumRef -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type OrgRoleCreateBffRequestGetTypeAttributeType = *OrgRoleType - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type OrgRoleCreateBffRequestGetTypeArgType = OrgRoleType - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type OrgRoleCreateBffRequestGetTypeRetType = OrgRoleType - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getOrgRoleCreateBffRequestGetTypeAttributeTypeOk(arg OrgRoleCreateBffRequestGetTypeAttributeType) (ret OrgRoleCreateBffRequestGetTypeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setOrgRoleCreateBffRequestGetTypeAttributeType(arg *OrgRoleCreateBffRequestGetTypeAttributeType, val OrgRoleCreateBffRequestGetTypeRetType) { - *arg = &val -} - -// OrgRoleCreateBffRequest struct for OrgRoleCreateBffRequest -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type OrgRoleCreateBffRequest struct { - // REQUIRED - Type OrgRoleCreateBffRequestGetTypeAttributeType `json:"type" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _OrgRoleCreateBffRequest OrgRoleCreateBffRequest - -// NewOrgRoleCreateBffRequest instantiates a new OrgRoleCreateBffRequest 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewOrgRoleCreateBffRequest(types OrgRoleCreateBffRequestGetTypeArgType) *OrgRoleCreateBffRequest { - this := OrgRoleCreateBffRequest{} - setOrgRoleCreateBffRequestGetTypeAttributeType(&this.Type, types) - return &this -} - -// NewOrgRoleCreateBffRequestWithDefaults instantiates a new OrgRoleCreateBffRequest 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewOrgRoleCreateBffRequestWithDefaults() *OrgRoleCreateBffRequest { - this := OrgRoleCreateBffRequest{} - return &this -} - -// GetType returns the Type field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *OrgRoleCreateBffRequest) GetType() (ret OrgRoleCreateBffRequestGetTypeRetType) { - ret, _ = o.GetTypeOk() - return ret -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *OrgRoleCreateBffRequest) GetTypeOk() (ret OrgRoleCreateBffRequestGetTypeRetType, ok bool) { - return getOrgRoleCreateBffRequestGetTypeAttributeTypeOk(o.Type) -} - -// SetType sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *OrgRoleCreateBffRequest) SetType(v OrgRoleCreateBffRequestGetTypeRetType) { - setOrgRoleCreateBffRequestGetTypeAttributeType(&o.Type, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o OrgRoleCreateBffRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getOrgRoleCreateBffRequestGetTypeAttributeTypeOk(o.Type); ok { - toSerialize["Type"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableOrgRoleCreateBffRequest struct { - value *OrgRoleCreateBffRequest - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableOrgRoleCreateBffRequest) Get() *OrgRoleCreateBffRequest { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableOrgRoleCreateBffRequest) Set(val *OrgRoleCreateBffRequest) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableOrgRoleCreateBffRequest) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableOrgRoleCreateBffRequest) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableOrgRoleCreateBffRequest(val *OrgRoleCreateBffRequest) *NullableOrgRoleCreateBffRequest { - return &NullableOrgRoleCreateBffRequest{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableOrgRoleCreateBffRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableOrgRoleCreateBffRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/scf/model_org_role_create_bff_request_test.go b/services/scf/model_org_role_create_bff_request_test.go deleted file mode 100644 index d96cdf0fe..000000000 --- a/services/scf/model_org_role_create_bff_request_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -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_organization_create_bff_response.go b/services/scf/model_organization_create_bff_response.go deleted file mode 100644 index ec8533229..000000000 --- a/services/scf/model_organization_create_bff_response.go +++ /dev/null @@ -1,202 +0,0 @@ -/* -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. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package scf - -import ( - "encoding/json" -) - -// checks if the OrganizationCreateBffResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &OrganizationCreateBffResponse{} - -/* - types and functions for org -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type OrganizationCreateBffResponseGetOrgAttributeType = *OrganizationCreateResponse - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type OrganizationCreateBffResponseGetOrgArgType = OrganizationCreateResponse - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type OrganizationCreateBffResponseGetOrgRetType = OrganizationCreateResponse - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getOrganizationCreateBffResponseGetOrgAttributeTypeOk(arg OrganizationCreateBffResponseGetOrgAttributeType) (ret OrganizationCreateBffResponseGetOrgRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setOrganizationCreateBffResponseGetOrgAttributeType(arg *OrganizationCreateBffResponseGetOrgAttributeType, val OrganizationCreateBffResponseGetOrgRetType) { - *arg = &val -} - -/* - types and functions for roles -*/ - -// isContainer -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type OrganizationCreateBffResponseGetRolesAttributeType = *map[string]OrgRoleResponse - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type OrganizationCreateBffResponseGetRolesArgType = map[string]OrgRoleResponse - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type OrganizationCreateBffResponseGetRolesRetType = map[string]OrgRoleResponse - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getOrganizationCreateBffResponseGetRolesAttributeTypeOk(arg OrganizationCreateBffResponseGetRolesAttributeType) (ret OrganizationCreateBffResponseGetRolesRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setOrganizationCreateBffResponseGetRolesAttributeType(arg *OrganizationCreateBffResponseGetRolesAttributeType, val OrganizationCreateBffResponseGetRolesRetType) { - *arg = &val -} - -// OrganizationCreateBffResponse struct for OrganizationCreateBffResponse -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type OrganizationCreateBffResponse struct { - // REQUIRED - Org OrganizationCreateBffResponseGetOrgAttributeType `json:"org" required:"true"` - // REQUIRED - Roles OrganizationCreateBffResponseGetRolesAttributeType `json:"roles" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _OrganizationCreateBffResponse OrganizationCreateBffResponse - -// NewOrganizationCreateBffResponse instantiates a new OrganizationCreateBffResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewOrganizationCreateBffResponse(org OrganizationCreateBffResponseGetOrgArgType, roles OrganizationCreateBffResponseGetRolesArgType) *OrganizationCreateBffResponse { - this := OrganizationCreateBffResponse{} - setOrganizationCreateBffResponseGetOrgAttributeType(&this.Org, org) - setOrganizationCreateBffResponseGetRolesAttributeType(&this.Roles, roles) - return &this -} - -// NewOrganizationCreateBffResponseWithDefaults instantiates a new OrganizationCreateBffResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewOrganizationCreateBffResponseWithDefaults() *OrganizationCreateBffResponse { - this := OrganizationCreateBffResponse{} - return &this -} - -// GetOrg returns the Org field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *OrganizationCreateBffResponse) GetOrg() (ret OrganizationCreateBffResponseGetOrgRetType) { - ret, _ = o.GetOrgOk() - return ret -} - -// GetOrgOk returns a tuple with the Org field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *OrganizationCreateBffResponse) GetOrgOk() (ret OrganizationCreateBffResponseGetOrgRetType, ok bool) { - return getOrganizationCreateBffResponseGetOrgAttributeTypeOk(o.Org) -} - -// SetOrg sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *OrganizationCreateBffResponse) SetOrg(v OrganizationCreateBffResponseGetOrgRetType) { - setOrganizationCreateBffResponseGetOrgAttributeType(&o.Org, v) -} - -// GetRoles returns the Roles field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *OrganizationCreateBffResponse) GetRoles() (ret OrganizationCreateBffResponseGetRolesRetType) { - ret, _ = o.GetRolesOk() - return ret -} - -// GetRolesOk returns a tuple with the Roles field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *OrganizationCreateBffResponse) GetRolesOk() (ret OrganizationCreateBffResponseGetRolesRetType, ok bool) { - return getOrganizationCreateBffResponseGetRolesAttributeTypeOk(o.Roles) -} - -// SetRoles sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *OrganizationCreateBffResponse) SetRoles(v OrganizationCreateBffResponseGetRolesRetType) { - setOrganizationCreateBffResponseGetRolesAttributeType(&o.Roles, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o OrganizationCreateBffResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getOrganizationCreateBffResponseGetOrgAttributeTypeOk(o.Org); ok { - toSerialize["Org"] = val - } - if val, ok := getOrganizationCreateBffResponseGetRolesAttributeTypeOk(o.Roles); ok { - toSerialize["Roles"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableOrganizationCreateBffResponse struct { - value *OrganizationCreateBffResponse - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableOrganizationCreateBffResponse) Get() *OrganizationCreateBffResponse { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableOrganizationCreateBffResponse) Set(val *OrganizationCreateBffResponse) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableOrganizationCreateBffResponse) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableOrganizationCreateBffResponse) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableOrganizationCreateBffResponse(val *OrganizationCreateBffResponse) *NullableOrganizationCreateBffResponse { - return &NullableOrganizationCreateBffResponse{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableOrganizationCreateBffResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableOrganizationCreateBffResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/scf/model_organization_create_bff_response_test.go b/services/scf/model_organization_create_bff_response_test.go deleted file mode 100644 index d96cdf0fe..000000000 --- a/services/scf/model_organization_create_bff_response_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -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_created_bff_response.go b/services/scf/model_space_created_bff_response.go deleted file mode 100644 index 04442cc39..000000000 --- a/services/scf/model_space_created_bff_response.go +++ /dev/null @@ -1,260 +0,0 @@ -/* -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. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package scf - -import ( - "encoding/json" -) - -// checks if the SpaceCreatedBffResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SpaceCreatedBffResponse{} - -/* - types and functions for orgRole -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type SpaceCreatedBffResponseGetOrgRoleAttributeType = *OrgRoleResponse - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type SpaceCreatedBffResponseGetOrgRoleArgType = OrgRoleResponse - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type SpaceCreatedBffResponseGetOrgRoleRetType = OrgRoleResponse - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getSpaceCreatedBffResponseGetOrgRoleAttributeTypeOk(arg SpaceCreatedBffResponseGetOrgRoleAttributeType) (ret SpaceCreatedBffResponseGetOrgRoleRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setSpaceCreatedBffResponseGetOrgRoleAttributeType(arg *SpaceCreatedBffResponseGetOrgRoleAttributeType, val SpaceCreatedBffResponseGetOrgRoleRetType) { - *arg = &val -} - -/* - types and functions for space -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type SpaceCreatedBffResponseGetSpaceAttributeType = *Space - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type SpaceCreatedBffResponseGetSpaceArgType = Space - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type SpaceCreatedBffResponseGetSpaceRetType = Space - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getSpaceCreatedBffResponseGetSpaceAttributeTypeOk(arg SpaceCreatedBffResponseGetSpaceAttributeType) (ret SpaceCreatedBffResponseGetSpaceRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setSpaceCreatedBffResponseGetSpaceAttributeType(arg *SpaceCreatedBffResponseGetSpaceAttributeType, val SpaceCreatedBffResponseGetSpaceRetType) { - *arg = &val -} - -/* - types and functions for spaceRole -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type SpaceCreatedBffResponseGetSpaceRoleAttributeType = *SpaceRoleCreateResponse - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type SpaceCreatedBffResponseGetSpaceRoleArgType = SpaceRoleCreateResponse - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type SpaceCreatedBffResponseGetSpaceRoleRetType = SpaceRoleCreateResponse - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getSpaceCreatedBffResponseGetSpaceRoleAttributeTypeOk(arg SpaceCreatedBffResponseGetSpaceRoleAttributeType) (ret SpaceCreatedBffResponseGetSpaceRoleRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setSpaceCreatedBffResponseGetSpaceRoleAttributeType(arg *SpaceCreatedBffResponseGetSpaceRoleAttributeType, val SpaceCreatedBffResponseGetSpaceRoleRetType) { - *arg = &val -} - -// SpaceCreatedBffResponse struct for SpaceCreatedBffResponse -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type SpaceCreatedBffResponse struct { - OrgRole SpaceCreatedBffResponseGetOrgRoleAttributeType `json:"orgRole,omitempty"` - // REQUIRED - Space SpaceCreatedBffResponseGetSpaceAttributeType `json:"space" required:"true"` - // REQUIRED - SpaceRole SpaceCreatedBffResponseGetSpaceRoleAttributeType `json:"spaceRole" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _SpaceCreatedBffResponse SpaceCreatedBffResponse - -// NewSpaceCreatedBffResponse instantiates a new SpaceCreatedBffResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewSpaceCreatedBffResponse(space SpaceCreatedBffResponseGetSpaceArgType, spaceRole SpaceCreatedBffResponseGetSpaceRoleArgType) *SpaceCreatedBffResponse { - this := SpaceCreatedBffResponse{} - setSpaceCreatedBffResponseGetSpaceAttributeType(&this.Space, space) - setSpaceCreatedBffResponseGetSpaceRoleAttributeType(&this.SpaceRole, spaceRole) - return &this -} - -// NewSpaceCreatedBffResponseWithDefaults instantiates a new SpaceCreatedBffResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewSpaceCreatedBffResponseWithDefaults() *SpaceCreatedBffResponse { - this := SpaceCreatedBffResponse{} - return &this -} - -// GetOrgRole returns the OrgRole field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *SpaceCreatedBffResponse) GetOrgRole() (res SpaceCreatedBffResponseGetOrgRoleRetType) { - res, _ = o.GetOrgRoleOk() - return -} - -// GetOrgRoleOk returns a tuple with the OrgRole field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *SpaceCreatedBffResponse) GetOrgRoleOk() (ret SpaceCreatedBffResponseGetOrgRoleRetType, ok bool) { - return getSpaceCreatedBffResponseGetOrgRoleAttributeTypeOk(o.OrgRole) -} - -// HasOrgRole returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *SpaceCreatedBffResponse) HasOrgRole() bool { - _, ok := o.GetOrgRoleOk() - return ok -} - -// SetOrgRole gets a reference to the given OrgRoleResponse and assigns it to the OrgRole field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *SpaceCreatedBffResponse) SetOrgRole(v SpaceCreatedBffResponseGetOrgRoleRetType) { - setSpaceCreatedBffResponseGetOrgRoleAttributeType(&o.OrgRole, v) -} - -// GetSpace returns the Space field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *SpaceCreatedBffResponse) GetSpace() (ret SpaceCreatedBffResponseGetSpaceRetType) { - ret, _ = o.GetSpaceOk() - return ret -} - -// GetSpaceOk returns a tuple with the Space field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *SpaceCreatedBffResponse) GetSpaceOk() (ret SpaceCreatedBffResponseGetSpaceRetType, ok bool) { - return getSpaceCreatedBffResponseGetSpaceAttributeTypeOk(o.Space) -} - -// SetSpace sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *SpaceCreatedBffResponse) SetSpace(v SpaceCreatedBffResponseGetSpaceRetType) { - setSpaceCreatedBffResponseGetSpaceAttributeType(&o.Space, v) -} - -// GetSpaceRole returns the SpaceRole field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *SpaceCreatedBffResponse) GetSpaceRole() (ret SpaceCreatedBffResponseGetSpaceRoleRetType) { - ret, _ = o.GetSpaceRoleOk() - return ret -} - -// GetSpaceRoleOk returns a tuple with the SpaceRole field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *SpaceCreatedBffResponse) GetSpaceRoleOk() (ret SpaceCreatedBffResponseGetSpaceRoleRetType, ok bool) { - return getSpaceCreatedBffResponseGetSpaceRoleAttributeTypeOk(o.SpaceRole) -} - -// SetSpaceRole sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *SpaceCreatedBffResponse) SetSpaceRole(v SpaceCreatedBffResponseGetSpaceRoleRetType) { - setSpaceCreatedBffResponseGetSpaceRoleAttributeType(&o.SpaceRole, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o SpaceCreatedBffResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getSpaceCreatedBffResponseGetOrgRoleAttributeTypeOk(o.OrgRole); ok { - toSerialize["OrgRole"] = val - } - if val, ok := getSpaceCreatedBffResponseGetSpaceAttributeTypeOk(o.Space); ok { - toSerialize["Space"] = val - } - if val, ok := getSpaceCreatedBffResponseGetSpaceRoleAttributeTypeOk(o.SpaceRole); ok { - toSerialize["SpaceRole"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableSpaceCreatedBffResponse struct { - value *SpaceCreatedBffResponse - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableSpaceCreatedBffResponse) Get() *SpaceCreatedBffResponse { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableSpaceCreatedBffResponse) Set(val *SpaceCreatedBffResponse) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableSpaceCreatedBffResponse) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableSpaceCreatedBffResponse) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableSpaceCreatedBffResponse(val *SpaceCreatedBffResponse) *NullableSpaceCreatedBffResponse { - return &NullableSpaceCreatedBffResponse{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableSpaceCreatedBffResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableSpaceCreatedBffResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/scf/model_space_created_bff_response_test.go b/services/scf/model_space_created_bff_response_test.go deleted file mode 100644 index d96cdf0fe..000000000 --- a/services/scf/model_space_created_bff_response_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -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_role_create_bff_request.go b/services/scf/model_space_role_create_bff_request.go deleted file mode 100644 index 141673bd1..000000000 --- a/services/scf/model_space_role_create_bff_request.go +++ /dev/null @@ -1,149 +0,0 @@ -/* -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. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package scf - -import ( - "encoding/json" -) - -// checks if the SpaceRoleCreateBffRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SpaceRoleCreateBffRequest{} - -/* - types and functions for type -*/ - -// isEnumRef -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type SpaceRoleCreateBffRequestGetTypeAttributeType = *SpaceRoleType - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type SpaceRoleCreateBffRequestGetTypeArgType = SpaceRoleType - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type SpaceRoleCreateBffRequestGetTypeRetType = SpaceRoleType - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getSpaceRoleCreateBffRequestGetTypeAttributeTypeOk(arg SpaceRoleCreateBffRequestGetTypeAttributeType) (ret SpaceRoleCreateBffRequestGetTypeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setSpaceRoleCreateBffRequestGetTypeAttributeType(arg *SpaceRoleCreateBffRequestGetTypeAttributeType, val SpaceRoleCreateBffRequestGetTypeRetType) { - *arg = &val -} - -// SpaceRoleCreateBffRequest struct for SpaceRoleCreateBffRequest -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type SpaceRoleCreateBffRequest struct { - // REQUIRED - Type SpaceRoleCreateBffRequestGetTypeAttributeType `json:"type" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _SpaceRoleCreateBffRequest SpaceRoleCreateBffRequest - -// NewSpaceRoleCreateBffRequest instantiates a new SpaceRoleCreateBffRequest 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewSpaceRoleCreateBffRequest(types SpaceRoleCreateBffRequestGetTypeArgType) *SpaceRoleCreateBffRequest { - this := SpaceRoleCreateBffRequest{} - setSpaceRoleCreateBffRequestGetTypeAttributeType(&this.Type, types) - return &this -} - -// NewSpaceRoleCreateBffRequestWithDefaults instantiates a new SpaceRoleCreateBffRequest 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewSpaceRoleCreateBffRequestWithDefaults() *SpaceRoleCreateBffRequest { - this := SpaceRoleCreateBffRequest{} - return &this -} - -// GetType returns the Type field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *SpaceRoleCreateBffRequest) GetType() (ret SpaceRoleCreateBffRequestGetTypeRetType) { - ret, _ = o.GetTypeOk() - return ret -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *SpaceRoleCreateBffRequest) GetTypeOk() (ret SpaceRoleCreateBffRequestGetTypeRetType, ok bool) { - return getSpaceRoleCreateBffRequestGetTypeAttributeTypeOk(o.Type) -} - -// SetType sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *SpaceRoleCreateBffRequest) SetType(v SpaceRoleCreateBffRequestGetTypeRetType) { - setSpaceRoleCreateBffRequestGetTypeAttributeType(&o.Type, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o SpaceRoleCreateBffRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getSpaceRoleCreateBffRequestGetTypeAttributeTypeOk(o.Type); ok { - toSerialize["Type"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableSpaceRoleCreateBffRequest struct { - value *SpaceRoleCreateBffRequest - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableSpaceRoleCreateBffRequest) Get() *SpaceRoleCreateBffRequest { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableSpaceRoleCreateBffRequest) Set(val *SpaceRoleCreateBffRequest) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableSpaceRoleCreateBffRequest) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableSpaceRoleCreateBffRequest) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableSpaceRoleCreateBffRequest(val *SpaceRoleCreateBffRequest) *NullableSpaceRoleCreateBffRequest { - return &NullableSpaceRoleCreateBffRequest{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableSpaceRoleCreateBffRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableSpaceRoleCreateBffRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/scf/model_space_role_create_bff_request_test.go b/services/scf/model_space_role_create_bff_request_test.go deleted file mode 100644 index d96cdf0fe..000000000 --- a/services/scf/model_space_role_create_bff_request_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -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_role_create_bff_response.go b/services/scf/model_space_role_create_bff_response.go deleted file mode 100644 index 6cde0eb2c..000000000 --- a/services/scf/model_space_role_create_bff_response.go +++ /dev/null @@ -1,207 +0,0 @@ -/* -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. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package scf - -import ( - "encoding/json" -) - -// checks if the SpaceRoleCreateBffResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SpaceRoleCreateBffResponse{} - -/* - types and functions for orgRole -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type SpaceRoleCreateBffResponseGetOrgRoleAttributeType = *OrgRoleResponse - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type SpaceRoleCreateBffResponseGetOrgRoleArgType = OrgRoleResponse - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type SpaceRoleCreateBffResponseGetOrgRoleRetType = OrgRoleResponse - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getSpaceRoleCreateBffResponseGetOrgRoleAttributeTypeOk(arg SpaceRoleCreateBffResponseGetOrgRoleAttributeType) (ret SpaceRoleCreateBffResponseGetOrgRoleRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setSpaceRoleCreateBffResponseGetOrgRoleAttributeType(arg *SpaceRoleCreateBffResponseGetOrgRoleAttributeType, val SpaceRoleCreateBffResponseGetOrgRoleRetType) { - *arg = &val -} - -/* - types and functions for spaceRole -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type SpaceRoleCreateBffResponseGetSpaceRoleAttributeType = *SpaceRoleCreateResponse - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type SpaceRoleCreateBffResponseGetSpaceRoleArgType = SpaceRoleCreateResponse - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type SpaceRoleCreateBffResponseGetSpaceRoleRetType = SpaceRoleCreateResponse - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getSpaceRoleCreateBffResponseGetSpaceRoleAttributeTypeOk(arg SpaceRoleCreateBffResponseGetSpaceRoleAttributeType) (ret SpaceRoleCreateBffResponseGetSpaceRoleRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setSpaceRoleCreateBffResponseGetSpaceRoleAttributeType(arg *SpaceRoleCreateBffResponseGetSpaceRoleAttributeType, val SpaceRoleCreateBffResponseGetSpaceRoleRetType) { - *arg = &val -} - -// SpaceRoleCreateBffResponse struct for SpaceRoleCreateBffResponse -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type SpaceRoleCreateBffResponse struct { - OrgRole SpaceRoleCreateBffResponseGetOrgRoleAttributeType `json:"orgRole,omitempty"` - // REQUIRED - SpaceRole SpaceRoleCreateBffResponseGetSpaceRoleAttributeType `json:"spaceRole" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _SpaceRoleCreateBffResponse SpaceRoleCreateBffResponse - -// NewSpaceRoleCreateBffResponse instantiates a new SpaceRoleCreateBffResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewSpaceRoleCreateBffResponse(spaceRole SpaceRoleCreateBffResponseGetSpaceRoleArgType) *SpaceRoleCreateBffResponse { - this := SpaceRoleCreateBffResponse{} - setSpaceRoleCreateBffResponseGetSpaceRoleAttributeType(&this.SpaceRole, spaceRole) - return &this -} - -// NewSpaceRoleCreateBffResponseWithDefaults instantiates a new SpaceRoleCreateBffResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewSpaceRoleCreateBffResponseWithDefaults() *SpaceRoleCreateBffResponse { - this := SpaceRoleCreateBffResponse{} - return &this -} - -// GetOrgRole returns the OrgRole field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *SpaceRoleCreateBffResponse) GetOrgRole() (res SpaceRoleCreateBffResponseGetOrgRoleRetType) { - res, _ = o.GetOrgRoleOk() - return -} - -// GetOrgRoleOk returns a tuple with the OrgRole field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *SpaceRoleCreateBffResponse) GetOrgRoleOk() (ret SpaceRoleCreateBffResponseGetOrgRoleRetType, ok bool) { - return getSpaceRoleCreateBffResponseGetOrgRoleAttributeTypeOk(o.OrgRole) -} - -// HasOrgRole returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *SpaceRoleCreateBffResponse) HasOrgRole() bool { - _, ok := o.GetOrgRoleOk() - return ok -} - -// SetOrgRole gets a reference to the given OrgRoleResponse and assigns it to the OrgRole field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *SpaceRoleCreateBffResponse) SetOrgRole(v SpaceRoleCreateBffResponseGetOrgRoleRetType) { - setSpaceRoleCreateBffResponseGetOrgRoleAttributeType(&o.OrgRole, v) -} - -// GetSpaceRole returns the SpaceRole field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *SpaceRoleCreateBffResponse) GetSpaceRole() (ret SpaceRoleCreateBffResponseGetSpaceRoleRetType) { - ret, _ = o.GetSpaceRoleOk() - return ret -} - -// GetSpaceRoleOk returns a tuple with the SpaceRole field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *SpaceRoleCreateBffResponse) GetSpaceRoleOk() (ret SpaceRoleCreateBffResponseGetSpaceRoleRetType, ok bool) { - return getSpaceRoleCreateBffResponseGetSpaceRoleAttributeTypeOk(o.SpaceRole) -} - -// SetSpaceRole sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *SpaceRoleCreateBffResponse) SetSpaceRole(v SpaceRoleCreateBffResponseGetSpaceRoleRetType) { - setSpaceRoleCreateBffResponseGetSpaceRoleAttributeType(&o.SpaceRole, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o SpaceRoleCreateBffResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getSpaceRoleCreateBffResponseGetOrgRoleAttributeTypeOk(o.OrgRole); ok { - toSerialize["OrgRole"] = val - } - if val, ok := getSpaceRoleCreateBffResponseGetSpaceRoleAttributeTypeOk(o.SpaceRole); ok { - toSerialize["SpaceRole"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableSpaceRoleCreateBffResponse struct { - value *SpaceRoleCreateBffResponse - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableSpaceRoleCreateBffResponse) Get() *SpaceRoleCreateBffResponse { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableSpaceRoleCreateBffResponse) Set(val *SpaceRoleCreateBffResponse) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableSpaceRoleCreateBffResponse) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableSpaceRoleCreateBffResponse) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableSpaceRoleCreateBffResponse(val *SpaceRoleCreateBffResponse) *NullableSpaceRoleCreateBffResponse { - return &NullableSpaceRoleCreateBffResponse{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableSpaceRoleCreateBffResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableSpaceRoleCreateBffResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/scf/model_space_role_create_bff_response_test.go b/services/scf/model_space_role_create_bff_response_test.go deleted file mode 100644 index d96cdf0fe..000000000 --- a/services/scf/model_space_role_create_bff_response_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -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/oas_commit b/services/scf/oas_commit index f87355dc7..11561f7f7 100644 --- a/services/scf/oas_commit +++ b/services/scf/oas_commit @@ -1 +1 @@ -b007357148d67833f3db635716935453d20a8609 +758f79fcaecd7d311266a7724012609d67fc1ac1 diff --git a/services/scf/v1api/model_org_role_create_bff_request.go b/services/scf/v1api/model_org_role_create_bff_request.go deleted file mode 100644 index f8159d246..000000000 --- a/services/scf/v1api/model_org_role_create_bff_request.go +++ /dev/null @@ -1,167 +0,0 @@ -/* -STACKIT Cloud Foundry API - -API endpoints for managing STACKIT Cloud Foundry - -API version: 1.0.0 -Contact: support@stackit.cloud -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v1api - -import ( - "encoding/json" - "fmt" -) - -// checks if the OrgRoleCreateBffRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &OrgRoleCreateBffRequest{} - -// OrgRoleCreateBffRequest struct for OrgRoleCreateBffRequest -type OrgRoleCreateBffRequest struct { - Type OrgRoleType `json:"type"` - AdditionalProperties map[string]interface{} -} - -type _OrgRoleCreateBffRequest OrgRoleCreateBffRequest - -// NewOrgRoleCreateBffRequest instantiates a new OrgRoleCreateBffRequest 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 NewOrgRoleCreateBffRequest(types OrgRoleType) *OrgRoleCreateBffRequest { - this := OrgRoleCreateBffRequest{} - this.Type = types - return &this -} - -// NewOrgRoleCreateBffRequestWithDefaults instantiates a new OrgRoleCreateBffRequest 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 NewOrgRoleCreateBffRequestWithDefaults() *OrgRoleCreateBffRequest { - this := OrgRoleCreateBffRequest{} - return &this -} - -// GetType returns the Type field value -func (o *OrgRoleCreateBffRequest) GetType() OrgRoleType { - if o == nil { - var ret OrgRoleType - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *OrgRoleCreateBffRequest) GetTypeOk() (*OrgRoleType, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *OrgRoleCreateBffRequest) SetType(v OrgRoleType) { - o.Type = v -} - -func (o OrgRoleCreateBffRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o OrgRoleCreateBffRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *OrgRoleCreateBffRequest) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varOrgRoleCreateBffRequest := _OrgRoleCreateBffRequest{} - - err = json.Unmarshal(data, &varOrgRoleCreateBffRequest) - - if err != nil { - return err - } - - *o = OrgRoleCreateBffRequest(varOrgRoleCreateBffRequest) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "type") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableOrgRoleCreateBffRequest struct { - value *OrgRoleCreateBffRequest - isSet bool -} - -func (v NullableOrgRoleCreateBffRequest) Get() *OrgRoleCreateBffRequest { - return v.value -} - -func (v *NullableOrgRoleCreateBffRequest) Set(val *OrgRoleCreateBffRequest) { - v.value = val - v.isSet = true -} - -func (v NullableOrgRoleCreateBffRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableOrgRoleCreateBffRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOrgRoleCreateBffRequest(val *OrgRoleCreateBffRequest) *NullableOrgRoleCreateBffRequest { - return &NullableOrgRoleCreateBffRequest{value: val, isSet: true} -} - -func (v NullableOrgRoleCreateBffRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableOrgRoleCreateBffRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/scf/v1api/model_organization_create_bff_response.go b/services/scf/v1api/model_organization_create_bff_response.go deleted file mode 100644 index 1ccde798a..000000000 --- a/services/scf/v1api/model_organization_create_bff_response.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -STACKIT Cloud Foundry API - -API endpoints for managing STACKIT Cloud Foundry - -API version: 1.0.0 -Contact: support@stackit.cloud -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v1api - -import ( - "encoding/json" - "fmt" -) - -// checks if the OrganizationCreateBffResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &OrganizationCreateBffResponse{} - -// OrganizationCreateBffResponse struct for OrganizationCreateBffResponse -type OrganizationCreateBffResponse struct { - Org OrganizationCreateResponse `json:"org"` - Roles map[string]OrgRoleResponse `json:"roles"` - AdditionalProperties map[string]interface{} -} - -type _OrganizationCreateBffResponse OrganizationCreateBffResponse - -// NewOrganizationCreateBffResponse instantiates a new OrganizationCreateBffResponse 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 NewOrganizationCreateBffResponse(org OrganizationCreateResponse, roles map[string]OrgRoleResponse) *OrganizationCreateBffResponse { - this := OrganizationCreateBffResponse{} - this.Org = org - this.Roles = roles - return &this -} - -// NewOrganizationCreateBffResponseWithDefaults instantiates a new OrganizationCreateBffResponse 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 NewOrganizationCreateBffResponseWithDefaults() *OrganizationCreateBffResponse { - this := OrganizationCreateBffResponse{} - return &this -} - -// GetOrg returns the Org field value -func (o *OrganizationCreateBffResponse) GetOrg() OrganizationCreateResponse { - if o == nil { - var ret OrganizationCreateResponse - return ret - } - - return o.Org -} - -// GetOrgOk returns a tuple with the Org field value -// and a boolean to check if the value has been set. -func (o *OrganizationCreateBffResponse) GetOrgOk() (*OrganizationCreateResponse, bool) { - if o == nil { - return nil, false - } - return &o.Org, true -} - -// SetOrg sets field value -func (o *OrganizationCreateBffResponse) SetOrg(v OrganizationCreateResponse) { - o.Org = v -} - -// GetRoles returns the Roles field value -func (o *OrganizationCreateBffResponse) GetRoles() map[string]OrgRoleResponse { - if o == nil { - var ret map[string]OrgRoleResponse - return ret - } - - return o.Roles -} - -// GetRolesOk returns a tuple with the Roles field value -// and a boolean to check if the value has been set. -func (o *OrganizationCreateBffResponse) GetRolesOk() (*map[string]OrgRoleResponse, bool) { - if o == nil { - return nil, false - } - return &o.Roles, true -} - -// SetRoles sets field value -func (o *OrganizationCreateBffResponse) SetRoles(v map[string]OrgRoleResponse) { - o.Roles = v -} - -func (o OrganizationCreateBffResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o OrganizationCreateBffResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["org"] = o.Org - toSerialize["roles"] = o.Roles - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *OrganizationCreateBffResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "org", - "roles", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varOrganizationCreateBffResponse := _OrganizationCreateBffResponse{} - - err = json.Unmarshal(data, &varOrganizationCreateBffResponse) - - if err != nil { - return err - } - - *o = OrganizationCreateBffResponse(varOrganizationCreateBffResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "org") - delete(additionalProperties, "roles") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableOrganizationCreateBffResponse struct { - value *OrganizationCreateBffResponse - isSet bool -} - -func (v NullableOrganizationCreateBffResponse) Get() *OrganizationCreateBffResponse { - return v.value -} - -func (v *NullableOrganizationCreateBffResponse) Set(val *OrganizationCreateBffResponse) { - v.value = val - v.isSet = true -} - -func (v NullableOrganizationCreateBffResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableOrganizationCreateBffResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOrganizationCreateBffResponse(val *OrganizationCreateBffResponse) *NullableOrganizationCreateBffResponse { - return &NullableOrganizationCreateBffResponse{value: val, isSet: true} -} - -func (v NullableOrganizationCreateBffResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableOrganizationCreateBffResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/scf/v1api/model_space_created_bff_response.go b/services/scf/v1api/model_space_created_bff_response.go deleted file mode 100644 index d5e2102c2..000000000 --- a/services/scf/v1api/model_space_created_bff_response.go +++ /dev/null @@ -1,233 +0,0 @@ -/* -STACKIT Cloud Foundry API - -API endpoints for managing STACKIT Cloud Foundry - -API version: 1.0.0 -Contact: support@stackit.cloud -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v1api - -import ( - "encoding/json" - "fmt" -) - -// checks if the SpaceCreatedBffResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SpaceCreatedBffResponse{} - -// SpaceCreatedBffResponse struct for SpaceCreatedBffResponse -type SpaceCreatedBffResponse struct { - OrgRole *OrgRoleResponse `json:"orgRole,omitempty"` - Space Space `json:"space"` - SpaceRole SpaceRoleCreateResponse `json:"spaceRole"` - AdditionalProperties map[string]interface{} -} - -type _SpaceCreatedBffResponse SpaceCreatedBffResponse - -// NewSpaceCreatedBffResponse instantiates a new SpaceCreatedBffResponse 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 NewSpaceCreatedBffResponse(space Space, spaceRole SpaceRoleCreateResponse) *SpaceCreatedBffResponse { - this := SpaceCreatedBffResponse{} - this.Space = space - this.SpaceRole = spaceRole - return &this -} - -// NewSpaceCreatedBffResponseWithDefaults instantiates a new SpaceCreatedBffResponse 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 NewSpaceCreatedBffResponseWithDefaults() *SpaceCreatedBffResponse { - this := SpaceCreatedBffResponse{} - return &this -} - -// GetOrgRole returns the OrgRole field value if set, zero value otherwise. -func (o *SpaceCreatedBffResponse) GetOrgRole() OrgRoleResponse { - if o == nil || IsNil(o.OrgRole) { - var ret OrgRoleResponse - return ret - } - return *o.OrgRole -} - -// GetOrgRoleOk returns a tuple with the OrgRole field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SpaceCreatedBffResponse) GetOrgRoleOk() (*OrgRoleResponse, bool) { - if o == nil || IsNil(o.OrgRole) { - return nil, false - } - return o.OrgRole, true -} - -// HasOrgRole returns a boolean if a field has been set. -func (o *SpaceCreatedBffResponse) HasOrgRole() bool { - if o != nil && !IsNil(o.OrgRole) { - return true - } - - return false -} - -// SetOrgRole gets a reference to the given OrgRoleResponse and assigns it to the OrgRole field. -func (o *SpaceCreatedBffResponse) SetOrgRole(v OrgRoleResponse) { - o.OrgRole = &v -} - -// GetSpace returns the Space field value -func (o *SpaceCreatedBffResponse) GetSpace() Space { - if o == nil { - var ret Space - return ret - } - - return o.Space -} - -// GetSpaceOk returns a tuple with the Space field value -// and a boolean to check if the value has been set. -func (o *SpaceCreatedBffResponse) GetSpaceOk() (*Space, bool) { - if o == nil { - return nil, false - } - return &o.Space, true -} - -// SetSpace sets field value -func (o *SpaceCreatedBffResponse) SetSpace(v Space) { - o.Space = v -} - -// GetSpaceRole returns the SpaceRole field value -func (o *SpaceCreatedBffResponse) GetSpaceRole() SpaceRoleCreateResponse { - if o == nil { - var ret SpaceRoleCreateResponse - return ret - } - - return o.SpaceRole -} - -// GetSpaceRoleOk returns a tuple with the SpaceRole field value -// and a boolean to check if the value has been set. -func (o *SpaceCreatedBffResponse) GetSpaceRoleOk() (*SpaceRoleCreateResponse, bool) { - if o == nil { - return nil, false - } - return &o.SpaceRole, true -} - -// SetSpaceRole sets field value -func (o *SpaceCreatedBffResponse) SetSpaceRole(v SpaceRoleCreateResponse) { - o.SpaceRole = v -} - -func (o SpaceCreatedBffResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SpaceCreatedBffResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.OrgRole) { - toSerialize["orgRole"] = o.OrgRole - } - toSerialize["space"] = o.Space - toSerialize["spaceRole"] = o.SpaceRole - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *SpaceCreatedBffResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "space", - "spaceRole", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varSpaceCreatedBffResponse := _SpaceCreatedBffResponse{} - - err = json.Unmarshal(data, &varSpaceCreatedBffResponse) - - if err != nil { - return err - } - - *o = SpaceCreatedBffResponse(varSpaceCreatedBffResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "orgRole") - delete(additionalProperties, "space") - delete(additionalProperties, "spaceRole") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSpaceCreatedBffResponse struct { - value *SpaceCreatedBffResponse - isSet bool -} - -func (v NullableSpaceCreatedBffResponse) Get() *SpaceCreatedBffResponse { - return v.value -} - -func (v *NullableSpaceCreatedBffResponse) Set(val *SpaceCreatedBffResponse) { - v.value = val - v.isSet = true -} - -func (v NullableSpaceCreatedBffResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableSpaceCreatedBffResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSpaceCreatedBffResponse(val *SpaceCreatedBffResponse) *NullableSpaceCreatedBffResponse { - return &NullableSpaceCreatedBffResponse{value: val, isSet: true} -} - -func (v NullableSpaceCreatedBffResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSpaceCreatedBffResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/scf/v1api/model_space_role_create_bff_request.go b/services/scf/v1api/model_space_role_create_bff_request.go deleted file mode 100644 index 1b38cf8f6..000000000 --- a/services/scf/v1api/model_space_role_create_bff_request.go +++ /dev/null @@ -1,167 +0,0 @@ -/* -STACKIT Cloud Foundry API - -API endpoints for managing STACKIT Cloud Foundry - -API version: 1.0.0 -Contact: support@stackit.cloud -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v1api - -import ( - "encoding/json" - "fmt" -) - -// checks if the SpaceRoleCreateBffRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SpaceRoleCreateBffRequest{} - -// SpaceRoleCreateBffRequest struct for SpaceRoleCreateBffRequest -type SpaceRoleCreateBffRequest struct { - Type SpaceRoleType `json:"type"` - AdditionalProperties map[string]interface{} -} - -type _SpaceRoleCreateBffRequest SpaceRoleCreateBffRequest - -// NewSpaceRoleCreateBffRequest instantiates a new SpaceRoleCreateBffRequest 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 NewSpaceRoleCreateBffRequest(types SpaceRoleType) *SpaceRoleCreateBffRequest { - this := SpaceRoleCreateBffRequest{} - this.Type = types - return &this -} - -// NewSpaceRoleCreateBffRequestWithDefaults instantiates a new SpaceRoleCreateBffRequest 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 NewSpaceRoleCreateBffRequestWithDefaults() *SpaceRoleCreateBffRequest { - this := SpaceRoleCreateBffRequest{} - return &this -} - -// GetType returns the Type field value -func (o *SpaceRoleCreateBffRequest) GetType() SpaceRoleType { - if o == nil { - var ret SpaceRoleType - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *SpaceRoleCreateBffRequest) GetTypeOk() (*SpaceRoleType, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *SpaceRoleCreateBffRequest) SetType(v SpaceRoleType) { - o.Type = v -} - -func (o SpaceRoleCreateBffRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SpaceRoleCreateBffRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *SpaceRoleCreateBffRequest) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varSpaceRoleCreateBffRequest := _SpaceRoleCreateBffRequest{} - - err = json.Unmarshal(data, &varSpaceRoleCreateBffRequest) - - if err != nil { - return err - } - - *o = SpaceRoleCreateBffRequest(varSpaceRoleCreateBffRequest) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "type") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSpaceRoleCreateBffRequest struct { - value *SpaceRoleCreateBffRequest - isSet bool -} - -func (v NullableSpaceRoleCreateBffRequest) Get() *SpaceRoleCreateBffRequest { - return v.value -} - -func (v *NullableSpaceRoleCreateBffRequest) Set(val *SpaceRoleCreateBffRequest) { - v.value = val - v.isSet = true -} - -func (v NullableSpaceRoleCreateBffRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableSpaceRoleCreateBffRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSpaceRoleCreateBffRequest(val *SpaceRoleCreateBffRequest) *NullableSpaceRoleCreateBffRequest { - return &NullableSpaceRoleCreateBffRequest{value: val, isSet: true} -} - -func (v NullableSpaceRoleCreateBffRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSpaceRoleCreateBffRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/scf/v1api/model_space_role_create_bff_response.go b/services/scf/v1api/model_space_role_create_bff_response.go deleted file mode 100644 index d8e4eb333..000000000 --- a/services/scf/v1api/model_space_role_create_bff_response.go +++ /dev/null @@ -1,204 +0,0 @@ -/* -STACKIT Cloud Foundry API - -API endpoints for managing STACKIT Cloud Foundry - -API version: 1.0.0 -Contact: support@stackit.cloud -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v1api - -import ( - "encoding/json" - "fmt" -) - -// checks if the SpaceRoleCreateBffResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SpaceRoleCreateBffResponse{} - -// SpaceRoleCreateBffResponse struct for SpaceRoleCreateBffResponse -type SpaceRoleCreateBffResponse struct { - OrgRole *OrgRoleResponse `json:"orgRole,omitempty"` - SpaceRole SpaceRoleCreateResponse `json:"spaceRole"` - AdditionalProperties map[string]interface{} -} - -type _SpaceRoleCreateBffResponse SpaceRoleCreateBffResponse - -// NewSpaceRoleCreateBffResponse instantiates a new SpaceRoleCreateBffResponse 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 NewSpaceRoleCreateBffResponse(spaceRole SpaceRoleCreateResponse) *SpaceRoleCreateBffResponse { - this := SpaceRoleCreateBffResponse{} - this.SpaceRole = spaceRole - return &this -} - -// NewSpaceRoleCreateBffResponseWithDefaults instantiates a new SpaceRoleCreateBffResponse 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 NewSpaceRoleCreateBffResponseWithDefaults() *SpaceRoleCreateBffResponse { - this := SpaceRoleCreateBffResponse{} - return &this -} - -// GetOrgRole returns the OrgRole field value if set, zero value otherwise. -func (o *SpaceRoleCreateBffResponse) GetOrgRole() OrgRoleResponse { - if o == nil || IsNil(o.OrgRole) { - var ret OrgRoleResponse - return ret - } - return *o.OrgRole -} - -// GetOrgRoleOk returns a tuple with the OrgRole field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SpaceRoleCreateBffResponse) GetOrgRoleOk() (*OrgRoleResponse, bool) { - if o == nil || IsNil(o.OrgRole) { - return nil, false - } - return o.OrgRole, true -} - -// HasOrgRole returns a boolean if a field has been set. -func (o *SpaceRoleCreateBffResponse) HasOrgRole() bool { - if o != nil && !IsNil(o.OrgRole) { - return true - } - - return false -} - -// SetOrgRole gets a reference to the given OrgRoleResponse and assigns it to the OrgRole field. -func (o *SpaceRoleCreateBffResponse) SetOrgRole(v OrgRoleResponse) { - o.OrgRole = &v -} - -// GetSpaceRole returns the SpaceRole field value -func (o *SpaceRoleCreateBffResponse) GetSpaceRole() SpaceRoleCreateResponse { - if o == nil { - var ret SpaceRoleCreateResponse - return ret - } - - return o.SpaceRole -} - -// GetSpaceRoleOk returns a tuple with the SpaceRole field value -// and a boolean to check if the value has been set. -func (o *SpaceRoleCreateBffResponse) GetSpaceRoleOk() (*SpaceRoleCreateResponse, bool) { - if o == nil { - return nil, false - } - return &o.SpaceRole, true -} - -// SetSpaceRole sets field value -func (o *SpaceRoleCreateBffResponse) SetSpaceRole(v SpaceRoleCreateResponse) { - o.SpaceRole = v -} - -func (o SpaceRoleCreateBffResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SpaceRoleCreateBffResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.OrgRole) { - toSerialize["orgRole"] = o.OrgRole - } - toSerialize["spaceRole"] = o.SpaceRole - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *SpaceRoleCreateBffResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "spaceRole", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varSpaceRoleCreateBffResponse := _SpaceRoleCreateBffResponse{} - - err = json.Unmarshal(data, &varSpaceRoleCreateBffResponse) - - if err != nil { - return err - } - - *o = SpaceRoleCreateBffResponse(varSpaceRoleCreateBffResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "orgRole") - delete(additionalProperties, "spaceRole") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSpaceRoleCreateBffResponse struct { - value *SpaceRoleCreateBffResponse - isSet bool -} - -func (v NullableSpaceRoleCreateBffResponse) Get() *SpaceRoleCreateBffResponse { - return v.value -} - -func (v *NullableSpaceRoleCreateBffResponse) Set(val *SpaceRoleCreateBffResponse) { - v.value = val - v.isSet = true -} - -func (v NullableSpaceRoleCreateBffResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableSpaceRoleCreateBffResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSpaceRoleCreateBffResponse(val *SpaceRoleCreateBffResponse) *NullableSpaceRoleCreateBffResponse { - return &NullableSpaceRoleCreateBffResponse{value: val, isSet: true} -} - -func (v NullableSpaceRoleCreateBffResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSpaceRoleCreateBffResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -}