diff --git a/authorize/.openapi-generator/FILES b/authorize/.openapi-generator/FILES index eeb1b01c..0dea0345 100644 --- a/authorize/.openapi-generator/FILES +++ b/authorize/.openapi-generator/FILES @@ -29,7 +29,6 @@ docs/APIServerOperation.md docs/APIServerOperationAccessControl.md docs/APIServerOperationAccessControlGroup.md docs/APIServerOperationAccessControlGroupGroupsInner.md -docs/APIServerOperationAccessControlGroupGroupsInnerElement.md docs/APIServerOperationAccessControlPermission.md docs/APIServerOperationAccessControlScope.md docs/APIServerOperationAccessControlScopeScopesInner.md @@ -93,7 +92,6 @@ model_api_server_operation.go model_api_server_operation_access_control.go model_api_server_operation_access_control_group.go model_api_server_operation_access_control_group_groups_inner.go -model_api_server_operation_access_control_group_groups_inner_element.go model_api_server_operation_access_control_permission.go model_api_server_operation_access_control_scope.go model_api_server_operation_access_control_scope_scopes_inner.go diff --git a/authorize/README.md b/authorize/README.md index 1a97ee9e..89c524bc 100644 --- a/authorize/README.md +++ b/authorize/README.md @@ -132,7 +132,6 @@ Class | Method | HTTP request | Description - [APIServerOperationAccessControl](docs/APIServerOperationAccessControl.md) - [APIServerOperationAccessControlGroup](docs/APIServerOperationAccessControlGroup.md) - [APIServerOperationAccessControlGroupGroupsInner](docs/APIServerOperationAccessControlGroupGroupsInner.md) - - [APIServerOperationAccessControlGroupGroupsInnerElement](docs/APIServerOperationAccessControlGroupGroupsInnerElement.md) - [APIServerOperationAccessControlPermission](docs/APIServerOperationAccessControlPermission.md) - [APIServerOperationAccessControlScope](docs/APIServerOperationAccessControlScope.md) - [APIServerOperationAccessControlScopeScopesInner](docs/APIServerOperationAccessControlScopeScopesInner.md) diff --git a/authorize/api/openapi.yaml b/authorize/api/openapi.yaml index f80bcea9..654ce57d 100644 --- a/authorize/api/openapi.yaml +++ b/authorize/api/openapi.yaml @@ -2525,9 +2525,9 @@ components: accessControl: custom: enabled: true - baseURLs: - - baseURLs - - baseURLs + baseUrls: + - baseUrls + - baseUrls _links: next: href: https://openapi-generator.tech @@ -2550,7 +2550,7 @@ components: $ref: '#/components/schemas/APIServer_accessControl' authorizationServer: $ref: '#/components/schemas/APIServer_authorizationServer' - baseURLs: + baseUrls: description: "An array of string that specifies the possible base URLs that\ \ an end-user will use to access the APIs hosted on the customer's API\ \ server. Multiple base URLs may be specified to support cases where the\ @@ -2580,7 +2580,7 @@ components: $ref: '#/components/schemas/APIServer_policy' required: - authorizationServer - - baseURLs + - baseUrls - name type: object APIServerDeployment: @@ -2638,16 +2638,11 @@ components: id: id group: groups: - - element: - id: id - - element: - id: id - - element: - id: id - - element: - id: id - - element: - id: id + - id: id + - id: id + - id: id + - id: id + - id: id _links: next: href: https://openapi-generator.tech @@ -3036,16 +3031,11 @@ components: id: id group: groups: - - element: - id: id - - element: - id: id - - element: - id: id - - element: - id: id - - element: - id: id + - id: id + - id: id + - id: id + - id: id + - id: id _links: next: href: https://openapi-generator.tech @@ -3082,16 +3072,11 @@ components: id: id group: groups: - - element: - id: id - - element: - id: id - - element: - id: id - - element: - id: id - - element: - id: id + - id: id + - id: id + - id: id + - id: id + - id: id _links: next: href: https://openapi-generator.tech @@ -3165,9 +3150,9 @@ components: - accessControl: custom: enabled: true - baseURLs: - - baseURLs - - baseURLs + baseUrls: + - baseUrls + - baseUrls _links: next: href: https://openapi-generator.tech @@ -3186,9 +3171,9 @@ components: - accessControl: custom: enabled: true - baseURLs: - - baseURLs - - baseURLs + baseUrls: + - baseUrls + - baseUrls _links: next: href: https://openapi-generator.tech @@ -3394,7 +3379,7 @@ components: type: $ref: '#/components/schemas/EnumAPIServerAuthorizationServerType' required: - - resource + - type type: object APIServer_directory: description: "A container object for fields related to the user directory used\ @@ -3514,10 +3499,7 @@ components: error: $ref: '#/components/schemas/APIServerDeployment_status_error' type: object - APIServerOperation_accessControl_group_groups_inner_element: - description: "The ID of the group, wrapped in an object, for future extensibility.\ - \ This is a required property if `operations.value.accessControl.group` is\ - \ set." + APIServerOperation_accessControl_group_groups_inner: example: id: id properties: @@ -3528,32 +3510,17 @@ components: required: - id type: object - APIServerOperation_accessControl_group_groups_inner: - example: - element: - id: id - properties: - element: - $ref: '#/components/schemas/APIServerOperation_accessControl_group_groups_inner_element' - required: - - element - type: object APIServerOperation_accessControl_group: description: The group membership requirements for the operation. The `groups` array must be non-empty when the `group` object is included. The `groups` array must not contain more than 25 elements. example: groups: - - element: - id: id - - element: - id: id - - element: - id: id - - element: - id: id - - element: - id: id + - id: id + - id: id + - id: id + - id: id + - id: id properties: groups: description: "The list of groups that define the access requirements for\ @@ -3627,16 +3594,11 @@ components: id: id group: groups: - - element: - id: id - - element: - id: id - - element: - id: id - - element: - id: id - - element: - id: id + - id: id + - id: id + - id: id + - id: id + - id: id properties: group: $ref: '#/components/schemas/APIServerOperation_accessControl_group' @@ -3784,16 +3746,11 @@ components: id: id group: groups: - - element: - id: id - - element: - id: id - - element: - id: id - - element: - id: id - - element: - id: id + - id: id + - id: id + - id: id + - id: id + - id: id _links: next: href: https://openapi-generator.tech @@ -3830,16 +3787,11 @@ components: id: id group: groups: - - element: - id: id - - element: - id: id - - element: - id: id - - element: - id: id - - element: - id: id + - id: id + - id: id + - id: id + - id: id + - id: id _links: next: href: https://openapi-generator.tech @@ -3913,9 +3865,9 @@ components: - accessControl: custom: enabled: true - baseURLs: - - baseURLs - - baseURLs + baseUrls: + - baseUrls + - baseUrls _links: next: href: https://openapi-generator.tech @@ -3934,9 +3886,9 @@ components: - accessControl: custom: enabled: true - baseURLs: - - baseURLs - - baseURLs + baseUrls: + - baseUrls + - baseUrls _links: next: href: https://openapi-generator.tech diff --git a/authorize/docs/APIServer.md b/authorize/docs/APIServer.md index 17aba1ef..b6f84e8b 100644 --- a/authorize/docs/APIServer.md +++ b/authorize/docs/APIServer.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Links** | Pointer to [**LinksHATEOAS**](LinksHATEOAS.md) | | [optional] **AccessControl** | Pointer to [**APIServerAccessControl**](APIServerAccessControl.md) | | [optional] **AuthorizationServer** | [**APIServerAuthorizationServer**](APIServerAuthorizationServer.md) | | -**BaseURLs** | **[]string** | An array of string that specifies the possible base URLs that an end-user will use to access the APIs hosted on the customer's API server. Multiple base URLs may be specified to support cases where the same API may be available from multiple URLs (for example, from a user-friendly domain URL and an internal domain URL). Base URLs must be valid absolute URLs with the https or http scheme. If the path component is non-empty, it must not end in a trailing slash. The path must not contain empty backslash, dot, or double-dot segments. It must not have a query or fragment present, and the host portion of the authority must be a DNS hostname or valid IP (IPv4 or IPv6). The length must be less than or equal to 256 characters. | +**BaseUrls** | **[]string** | An array of string that specifies the possible base URLs that an end-user will use to access the APIs hosted on the customer's API server. Multiple base URLs may be specified to support cases where the same API may be available from multiple URLs (for example, from a user-friendly domain URL and an internal domain URL). Base URLs must be valid absolute URLs with the https or http scheme. If the path component is non-empty, it must not end in a trailing slash. The path must not contain empty backslash, dot, or double-dot segments. It must not have a query or fragment present, and the host portion of the authority must be a DNS hostname or valid IP (IPv4 or IPv6). The length must be less than or equal to 256 characters. | **Directory** | Pointer to [**APIServerDirectory**](APIServerDirectory.md) | | [optional] **Id** | Pointer to **string** | A string that specifies the resource's unique identifier. | [optional] [readonly] **Name** | **string** | A string that specifies the API server resource name. The name value must be unique among all API servers, and it must be a valid resource name. | @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewAPIServer -`func NewAPIServer(authorizationServer APIServerAuthorizationServer, baseURLs []string, name string, ) *APIServer` +`func NewAPIServer(authorizationServer APIServerAuthorizationServer, baseUrls []string, name string, ) *APIServer` NewAPIServer instantiates a new APIServer object This constructor will assign default values to properties that have it defined, @@ -102,24 +102,24 @@ and a boolean to check if the value has been set. SetAuthorizationServer sets AuthorizationServer field to given value. -### GetBaseURLs +### GetBaseUrls -`func (o *APIServer) GetBaseURLs() []string` +`func (o *APIServer) GetBaseUrls() []string` -GetBaseURLs returns the BaseURLs field if non-nil, zero value otherwise. +GetBaseUrls returns the BaseUrls field if non-nil, zero value otherwise. -### GetBaseURLsOk +### GetBaseUrlsOk -`func (o *APIServer) GetBaseURLsOk() (*[]string, bool)` +`func (o *APIServer) GetBaseUrlsOk() (*[]string, bool)` -GetBaseURLsOk returns a tuple with the BaseURLs field if it's non-nil, zero value otherwise +GetBaseUrlsOk returns a tuple with the BaseUrls field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetBaseURLs +### SetBaseUrls -`func (o *APIServer) SetBaseURLs(v []string)` +`func (o *APIServer) SetBaseUrls(v []string)` -SetBaseURLs sets BaseURLs field to given value. +SetBaseUrls sets BaseUrls field to given value. ### GetDirectory diff --git a/authorize/docs/APIServerAuthorizationServer.md b/authorize/docs/APIServerAuthorizationServer.md index 1445db74..e3beef60 100644 --- a/authorize/docs/APIServerAuthorizationServer.md +++ b/authorize/docs/APIServerAuthorizationServer.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Resource** | [**APIServerAuthorizationServerResource**](APIServerAuthorizationServerResource.md) | | -**Type** | Pointer to [**EnumAPIServerAuthorizationServerType**](EnumAPIServerAuthorizationServerType.md) | | [optional] +**Resource** | Pointer to [**APIServerAuthorizationServerResource**](APIServerAuthorizationServerResource.md) | | [optional] +**Type** | [**EnumAPIServerAuthorizationServerType**](EnumAPIServerAuthorizationServerType.md) | | ## Methods ### NewAPIServerAuthorizationServer -`func NewAPIServerAuthorizationServer(resource APIServerAuthorizationServerResource, ) *APIServerAuthorizationServer` +`func NewAPIServerAuthorizationServer(type_ EnumAPIServerAuthorizationServerType, ) *APIServerAuthorizationServer` NewAPIServerAuthorizationServer instantiates a new APIServerAuthorizationServer object This constructor will assign default values to properties that have it defined, @@ -45,6 +45,11 @@ and a boolean to check if the value has been set. SetResource sets Resource field to given value. +### HasResource + +`func (o *APIServerAuthorizationServer) HasResource() bool` + +HasResource returns a boolean if a field has been set. ### GetType @@ -65,11 +70,6 @@ and a boolean to check if the value has been set. SetType sets Type field to given value. -### HasType - -`func (o *APIServerAuthorizationServer) HasType() bool` - -HasType returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/authorize/docs/APIServerOperationAccessControlGroupGroupsInner.md b/authorize/docs/APIServerOperationAccessControlGroupGroupsInner.md index 77e264b1..30af70e9 100644 --- a/authorize/docs/APIServerOperationAccessControlGroupGroupsInner.md +++ b/authorize/docs/APIServerOperationAccessControlGroupGroupsInner.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Element** | [**APIServerOperationAccessControlGroupGroupsInnerElement**](APIServerOperationAccessControlGroupGroupsInnerElement.md) | | +**Id** | **string** | A UUID that specifies the group ID. This is a required property if `accessControl.group` is set. | ## Methods ### NewAPIServerOperationAccessControlGroupGroupsInner -`func NewAPIServerOperationAccessControlGroupGroupsInner(element APIServerOperationAccessControlGroupGroupsInnerElement, ) *APIServerOperationAccessControlGroupGroupsInner` +`func NewAPIServerOperationAccessControlGroupGroupsInner(id string, ) *APIServerOperationAccessControlGroupGroupsInner` NewAPIServerOperationAccessControlGroupGroupsInner instantiates a new APIServerOperationAccessControlGroupGroupsInner object This constructor will assign default values to properties that have it defined, @@ -25,24 +25,24 @@ NewAPIServerOperationAccessControlGroupGroupsInnerWithDefaults instantiates a ne 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 -### GetElement +### GetId -`func (o *APIServerOperationAccessControlGroupGroupsInner) GetElement() APIServerOperationAccessControlGroupGroupsInnerElement` +`func (o *APIServerOperationAccessControlGroupGroupsInner) GetId() string` -GetElement returns the Element field if non-nil, zero value otherwise. +GetId returns the Id field if non-nil, zero value otherwise. -### GetElementOk +### GetIdOk -`func (o *APIServerOperationAccessControlGroupGroupsInner) GetElementOk() (*APIServerOperationAccessControlGroupGroupsInnerElement, bool)` +`func (o *APIServerOperationAccessControlGroupGroupsInner) GetIdOk() (*string, bool)` -GetElementOk returns a tuple with the Element field if it's non-nil, zero value otherwise +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetElement +### SetId -`func (o *APIServerOperationAccessControlGroupGroupsInner) SetElement(v APIServerOperationAccessControlGroupGroupsInnerElement)` +`func (o *APIServerOperationAccessControlGroupGroupsInner) SetId(v string)` -SetElement sets Element field to given value. +SetId sets Id field to given value. diff --git a/authorize/docs/APIServersApi.md b/authorize/docs/APIServersApi.md index 5a9db031..c04e82c6 100644 --- a/authorize/docs/APIServersApi.md +++ b/authorize/docs/APIServersApi.md @@ -32,7 +32,7 @@ import ( func main() { environmentID := "environmentID_example" // string | - aPIServer := *openapiclient.NewAPIServer(*openapiclient.NewAPIServerAuthorizationServer(*openapiclient.NewAPIServerAuthorizationServerResource("Id_example")), []string{"BaseURLs_example"}, "Name_example") // APIServer | (optional) + aPIServer := *openapiclient.NewAPIServer(*openapiclient.NewAPIServerAuthorizationServer(openapiclient.EnumAPIServerAuthorizationServerType("PINGONE_SSO")), []string{"BaseUrls_example"}, "Name_example") // APIServer | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -311,7 +311,7 @@ import ( func main() { environmentID := "environmentID_example" // string | apiServerID := "apiServerID_example" // string | - aPIServer := *openapiclient.NewAPIServer(*openapiclient.NewAPIServerAuthorizationServer(*openapiclient.NewAPIServerAuthorizationServerResource("Id_example")), []string{"BaseURLs_example"}, "Name_example") // APIServer | (optional) + aPIServer := *openapiclient.NewAPIServer(*openapiclient.NewAPIServerAuthorizationServer(openapiclient.EnumAPIServerAuthorizationServerType("PINGONE_SSO")), []string{"BaseUrls_example"}, "Name_example") // APIServer | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/authorize/generate/pingone-authorize.yml b/authorize/generate/pingone-authorize.yml index 9fc516cd..913f142a 100644 --- a/authorize/generate/pingone-authorize.yml +++ b/authorize/generate/pingone-authorize.yml @@ -89,8 +89,8 @@ components: type: $ref: '#/components/schemas/EnumAPIServerAuthorizationServerType' required: - - resource - baseURLs: + - type + baseUrls: type: array description: An array of string that specifies the possible base URLs that an end-user will use to access the APIs hosted on the customer's API server. Multiple base URLs may be specified to support cases where the same API may be available from multiple URLs (for example, from a user-friendly domain URL and an internal domain URL). Base URLs must be valid absolute URLs with the https or http scheme. If the path component is non-empty, it must not end in a trailing slash. The path must not contain empty backslash, dot, or double-dot segments. It must not have a query or fragment present, and the host portion of the authority must be a DNS hostname or valid IP (IPv4 or IPv6). The length must be less than or equal to 256 characters. items: @@ -122,7 +122,7 @@ components: required: - name - authorizationServer - - baseURLs + - baseUrls APIServerDeployment: type: object properties: @@ -220,17 +220,11 @@ components: items: type: object properties: - element: - type: object - description: The ID of the group, wrapped in an object, for future extensibility. This is a required property if `operations.value.accessControl.group` is set. - properties: - id: - type: string - description: A UUID that specifies the group ID. This is a required property if `accessControl.group` is set. - required: - - id + id: + type: string + description: A UUID that specifies the group ID. This is a required property if `accessControl.group` is set. required: - - element + - id required: - groups permission: diff --git a/authorize/model_api_server.go b/authorize/model_api_server.go index 5001a437..abcbc640 100644 --- a/authorize/model_api_server.go +++ b/authorize/model_api_server.go @@ -23,7 +23,7 @@ type APIServer struct { AccessControl *APIServerAccessControl `json:"accessControl,omitempty"` AuthorizationServer APIServerAuthorizationServer `json:"authorizationServer"` // An array of string that specifies the possible base URLs that an end-user will use to access the APIs hosted on the customer's API server. Multiple base URLs may be specified to support cases where the same API may be available from multiple URLs (for example, from a user-friendly domain URL and an internal domain URL). Base URLs must be valid absolute URLs with the https or http scheme. If the path component is non-empty, it must not end in a trailing slash. The path must not contain empty backslash, dot, or double-dot segments. It must not have a query or fragment present, and the host portion of the authority must be a DNS hostname or valid IP (IPv4 or IPv6). The length must be less than or equal to 256 characters. - BaseURLs []string `json:"baseURLs"` + BaseUrls []string `json:"baseUrls"` Directory *APIServerDirectory `json:"directory,omitempty"` // A string that specifies the resource's unique identifier. Id *string `json:"id,omitempty"` @@ -36,10 +36,10 @@ type APIServer struct { // 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 NewAPIServer(authorizationServer APIServerAuthorizationServer, baseURLs []string, name string) *APIServer { +func NewAPIServer(authorizationServer APIServerAuthorizationServer, baseUrls []string, name string) *APIServer { this := APIServer{} this.AuthorizationServer = authorizationServer - this.BaseURLs = baseURLs + this.BaseUrls = baseUrls this.Name = name return &this } @@ -140,28 +140,28 @@ func (o *APIServer) SetAuthorizationServer(v APIServerAuthorizationServer) { o.AuthorizationServer = v } -// GetBaseURLs returns the BaseURLs field value -func (o *APIServer) GetBaseURLs() []string { +// GetBaseUrls returns the BaseUrls field value +func (o *APIServer) GetBaseUrls() []string { if o == nil { var ret []string return ret } - return o.BaseURLs + return o.BaseUrls } -// GetBaseURLsOk returns a tuple with the BaseURLs field value +// GetBaseUrlsOk returns a tuple with the BaseUrls field value // and a boolean to check if the value has been set. -func (o *APIServer) GetBaseURLsOk() ([]string, bool) { +func (o *APIServer) GetBaseUrlsOk() ([]string, bool) { if o == nil { return nil, false } - return o.BaseURLs, true + return o.BaseUrls, true } -// SetBaseURLs sets field value -func (o *APIServer) SetBaseURLs(v []string) { - o.BaseURLs = v +// SetBaseUrls sets field value +func (o *APIServer) SetBaseUrls(v []string) { + o.BaseUrls = v } // GetDirectory returns the Directory field value if set, zero value otherwise. @@ -301,7 +301,7 @@ func (o APIServer) ToMap() (map[string]interface{}, error) { toSerialize["accessControl"] = o.AccessControl } toSerialize["authorizationServer"] = o.AuthorizationServer - toSerialize["baseURLs"] = o.BaseURLs + toSerialize["baseUrls"] = o.BaseUrls if !IsNil(o.Directory) { toSerialize["directory"] = o.Directory } diff --git a/authorize/model_api_server_authorization_server.go b/authorize/model_api_server_authorization_server.go index 25e8941e..9886d524 100644 --- a/authorize/model_api_server_authorization_server.go +++ b/authorize/model_api_server_authorization_server.go @@ -19,17 +19,17 @@ var _ MappedNullable = &APIServerAuthorizationServer{} // APIServerAuthorizationServer A container object for properties related to the authorization server that will issue access tokens used to access the APIs. type APIServerAuthorizationServer struct { - Resource APIServerAuthorizationServerResource `json:"resource"` - Type *EnumAPIServerAuthorizationServerType `json:"type,omitempty"` + Resource *APIServerAuthorizationServerResource `json:"resource,omitempty"` + Type EnumAPIServerAuthorizationServerType `json:"type"` } // NewAPIServerAuthorizationServer instantiates a new APIServerAuthorizationServer 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 NewAPIServerAuthorizationServer(resource APIServerAuthorizationServerResource) *APIServerAuthorizationServer { +func NewAPIServerAuthorizationServer(type_ EnumAPIServerAuthorizationServerType) *APIServerAuthorizationServer { this := APIServerAuthorizationServer{} - this.Resource = resource + this.Type = type_ return &this } @@ -41,60 +41,60 @@ func NewAPIServerAuthorizationServerWithDefaults() *APIServerAuthorizationServer return &this } -// GetResource returns the Resource field value +// GetResource returns the Resource field value if set, zero value otherwise. func (o *APIServerAuthorizationServer) GetResource() APIServerAuthorizationServerResource { - if o == nil { + if o == nil || IsNil(o.Resource) { var ret APIServerAuthorizationServerResource return ret } - - return o.Resource + return *o.Resource } -// GetResourceOk returns a tuple with the Resource field value +// GetResourceOk returns a tuple with the Resource field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *APIServerAuthorizationServer) GetResourceOk() (*APIServerAuthorizationServerResource, bool) { - if o == nil { + if o == nil || IsNil(o.Resource) { return nil, false } - return &o.Resource, true + return o.Resource, true +} + +// HasResource returns a boolean if a field has been set. +func (o *APIServerAuthorizationServer) HasResource() bool { + if o != nil && !IsNil(o.Resource) { + return true + } + + return false } -// SetResource sets field value +// SetResource gets a reference to the given APIServerAuthorizationServerResource and assigns it to the Resource field. func (o *APIServerAuthorizationServer) SetResource(v APIServerAuthorizationServerResource) { - o.Resource = v + o.Resource = &v } -// GetType returns the Type field value if set, zero value otherwise. +// GetType returns the Type field value func (o *APIServerAuthorizationServer) GetType() EnumAPIServerAuthorizationServerType { - if o == nil || IsNil(o.Type) { + if o == nil { var ret EnumAPIServerAuthorizationServerType return ret } - return *o.Type + + return o.Type } -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. func (o *APIServerAuthorizationServer) GetTypeOk() (*EnumAPIServerAuthorizationServerType, bool) { - if o == nil || IsNil(o.Type) { + if o == nil { return nil, false } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *APIServerAuthorizationServer) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false + return &o.Type, true } -// SetType gets a reference to the given EnumAPIServerAuthorizationServerType and assigns it to the Type field. +// SetType sets field value func (o *APIServerAuthorizationServer) SetType(v EnumAPIServerAuthorizationServerType) { - o.Type = &v + o.Type = v } func (o APIServerAuthorizationServer) MarshalJSON() ([]byte, error) { @@ -107,10 +107,10 @@ func (o APIServerAuthorizationServer) MarshalJSON() ([]byte, error) { func (o APIServerAuthorizationServer) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["resource"] = o.Resource - if !IsNil(o.Type) { - toSerialize["type"] = o.Type + if !IsNil(o.Resource) { + toSerialize["resource"] = o.Resource } + toSerialize["type"] = o.Type return toSerialize, nil } diff --git a/authorize/model_api_server_operation_access_control_group_groups_inner.go b/authorize/model_api_server_operation_access_control_group_groups_inner.go index 78a43d10..52e58c8d 100644 --- a/authorize/model_api_server_operation_access_control_group_groups_inner.go +++ b/authorize/model_api_server_operation_access_control_group_groups_inner.go @@ -19,16 +19,17 @@ var _ MappedNullable = &APIServerOperationAccessControlGroupGroupsInner{} // APIServerOperationAccessControlGroupGroupsInner struct for APIServerOperationAccessControlGroupGroupsInner type APIServerOperationAccessControlGroupGroupsInner struct { - Element APIServerOperationAccessControlGroupGroupsInnerElement `json:"element"` + // A UUID that specifies the group ID. This is a required property if `accessControl.group` is set. + Id string `json:"id"` } // NewAPIServerOperationAccessControlGroupGroupsInner instantiates a new APIServerOperationAccessControlGroupGroupsInner 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 NewAPIServerOperationAccessControlGroupGroupsInner(element APIServerOperationAccessControlGroupGroupsInnerElement) *APIServerOperationAccessControlGroupGroupsInner { +func NewAPIServerOperationAccessControlGroupGroupsInner(id string) *APIServerOperationAccessControlGroupGroupsInner { this := APIServerOperationAccessControlGroupGroupsInner{} - this.Element = element + this.Id = id return &this } @@ -40,28 +41,28 @@ func NewAPIServerOperationAccessControlGroupGroupsInnerWithDefaults() *APIServer return &this } -// GetElement returns the Element field value -func (o *APIServerOperationAccessControlGroupGroupsInner) GetElement() APIServerOperationAccessControlGroupGroupsInnerElement { +// GetId returns the Id field value +func (o *APIServerOperationAccessControlGroupGroupsInner) GetId() string { if o == nil { - var ret APIServerOperationAccessControlGroupGroupsInnerElement + var ret string return ret } - return o.Element + return o.Id } -// GetElementOk returns a tuple with the Element field value +// GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. -func (o *APIServerOperationAccessControlGroupGroupsInner) GetElementOk() (*APIServerOperationAccessControlGroupGroupsInnerElement, bool) { +func (o *APIServerOperationAccessControlGroupGroupsInner) GetIdOk() (*string, bool) { if o == nil { return nil, false } - return &o.Element, true + return &o.Id, true } -// SetElement sets field value -func (o *APIServerOperationAccessControlGroupGroupsInner) SetElement(v APIServerOperationAccessControlGroupGroupsInnerElement) { - o.Element = v +// SetId sets field value +func (o *APIServerOperationAccessControlGroupGroupsInner) SetId(v string) { + o.Id = v } func (o APIServerOperationAccessControlGroupGroupsInner) MarshalJSON() ([]byte, error) { @@ -74,7 +75,7 @@ func (o APIServerOperationAccessControlGroupGroupsInner) MarshalJSON() ([]byte, func (o APIServerOperationAccessControlGroupGroupsInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["element"] = o.Element + toSerialize["id"] = o.Id return toSerialize, nil }