From a99600615563f99cea8b3d875debfd68876309e0 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 25 Nov 2024 01:00:49 +0100 Subject: [PATCH] tag version v0.16.0 --- Makefile | 2 +- api/.openapi-generator/FILES | 2 + api/README.md | 3 +- api/api/openapi.yaml | 91 +++++++++- api/api_cluster_instances.go | 2 +- api/api_roles_api.go | 2 +- api/api_roles_backup.go | 2 +- api/api_roles_dhcp.go | 2 +- api/api_roles_discovery.go | 2 +- api/api_roles_dns.go | 2 +- api/api_roles_etcd.go | 2 +- api/api_roles_monitoring.go | 2 +- api/api_roles_tftp.go | 2 +- api/api_roles_tsdb.go | 2 +- api/client.go | 4 +- api/configuration.go | 2 +- api/docs/ApiRoleConfig.md | 26 +++ api/docs/AuthAPIUser.md | 33 +++- api/docs/AuthAPIUsersPutInput.md | 33 +++- api/docs/AuthPermission.md | 92 ++++++++++ api/docs/InstanceInstanceInfo.md | 20 ++- api/docs/RolesApiApi.md | 2 +- api/model_api_api_export_input.go | 2 +- api/model_api_api_export_output.go | 2 +- api/model_api_api_import_input.go | 2 +- api/model_api_api_log_message.go | 2 +- api/model_api_api_log_messages.go | 2 +- api/model_api_api_member.go | 2 +- api/model_api_api_member_join_input.go | 2 +- api/model_api_api_member_join_output.go | 2 +- api/model_api_api_members_output.go | 2 +- api/model_api_api_role_config_input.go | 2 +- api/model_api_api_role_config_output.go | 2 +- api/model_api_api_tool_ping_input.go | 2 +- api/model_api_api_tool_ping_output.go | 2 +- api/model_api_api_tool_portmap_input.go | 2 +- api/model_api_api_tool_portmap_output.go | 2 +- api/model_api_api_tool_portmap_output_port.go | 2 +- api/model_api_api_tool_traceroute_input.go | 2 +- api/model_api_api_tool_traceroute_output.go | 2 +- ...odel_api_api_tool_traceroute_output_hop.go | 2 +- api/model_api_api_transport_entry.go | 2 +- api/model_api_role_config.go | 46 ++++- api/model_auth_api_config_output.go | 2 +- api/model_auth_api_login_input.go | 2 +- api/model_auth_api_login_output.go | 2 +- api/model_auth_api_token.go | 2 +- api/model_auth_api_tokens_get_output.go | 2 +- api/model_auth_api_tokens_put_output.go | 2 +- api/model_auth_api_user.go | 37 +++- api/model_auth_api_users_get_output.go | 2 +- api/model_auth_api_users_put_input.go | 37 +++- api/model_auth_apime_output.go | 2 +- api/model_auth_permission.go | 161 ++++++++++++++++++ api/model_backup_api_backup_status.go | 2 +- api/model_backup_api_backup_status_output.go | 2 +- api/model_backup_api_role_config_input.go | 2 +- api/model_backup_api_role_config_output.go | 2 +- api/model_backup_backup_status.go | 2 +- api/model_backup_role_config.go | 2 +- api/model_dhcp_api_lease.go | 2 +- api/model_dhcp_api_lease_info.go | 2 +- api/model_dhcp_api_leases_get_output.go | 2 +- api/model_dhcp_api_leases_put_input.go | 2 +- api/model_dhcp_api_role_config_input.go | 2 +- api/model_dhcp_api_role_config_output.go | 2 +- api/model_dhcp_api_scope.go | 2 +- api/model_dhcp_api_scope_statistics.go | 2 +- api/model_dhcp_api_scopes_get_output.go | 2 +- api/model_dhcp_api_scopes_put_input.go | 2 +- api/model_dhcp_role_config.go | 2 +- api/model_dhcp_scope_dns.go | 2 +- api/model_discovery_api_device.go | 2 +- ...model_discovery_api_devices_apply_input.go | 2 +- api/model_discovery_api_devices_get_output.go | 2 +- api/model_discovery_api_role_config_input.go | 2 +- api/model_discovery_api_role_config_output.go | 2 +- api/model_discovery_api_subnet.go | 2 +- api/model_discovery_api_subnets_get_output.go | 2 +- api/model_discovery_api_subnets_put_input.go | 2 +- api/model_discovery_role_config.go | 2 +- api/model_dns_api_record.go | 2 +- api/model_dns_api_records_get_output.go | 2 +- api/model_dns_api_records_put_input.go | 2 +- api/model_dns_api_role_config_input.go | 2 +- api/model_dns_api_role_config_output.go | 2 +- api/model_dns_api_zone.go | 2 +- api/model_dns_api_zones_get_output.go | 2 +- api/model_dns_api_zones_put_input.go | 2 +- api/model_dns_role_config.go | 2 +- api/model_extconfig_ext_config_dirs.go | 2 +- api/model_instance_api_instance_info.go | 2 +- api/model_instance_api_instances_output.go | 2 +- api/model_instance_api_role_restart_input.go | 2 +- api/model_instance_instance_info.go | 30 ++-- api/model_monitoring_api_role_config_input.go | 2 +- ...model_monitoring_api_role_config_output.go | 2 +- api/model_monitoring_role_config.go | 2 +- api/model_rest_err_response.go | 2 +- api/model_tftp_api_file.go | 2 +- api/model_tftp_api_files_download_output.go | 2 +- api/model_tftp_api_files_get_output.go | 2 +- api/model_tftp_api_files_put_input.go | 2 +- api/model_tftp_api_role_config_input.go | 2 +- api/model_tftp_api_role_config_output.go | 2 +- api/model_tftp_role_config.go | 2 +- api/model_tsdb_api_role_config_input.go | 2 +- api/model_tsdb_api_role_config_output.go | 2 +- api/model_tsdb_role_config.go | 2 +- api/model_types_api_metrics_get_output.go | 2 +- api/model_types_api_metrics_record.go | 2 +- api/model_types_api_metrics_role.go | 2 +- api/model_types_dhcp_option.go | 2 +- api/model_types_oidc_config.go | 2 +- api/response.go | 2 +- api/utils.go | 2 +- schema.yml | 2 +- web/package-lock.json | 12 +- web/package.json | 4 +- 119 files changed, 685 insertions(+), 152 deletions(-) create mode 100644 api/docs/AuthPermission.md create mode 100644 api/model_auth_permission.go diff --git a/Makefile b/Makefile index 749ae2447..70b901b62 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ PWD = $(shell pwd) UID = $(shell id -u) GID = $(shell id -g) -VERSION = "0.15.1" +VERSION = "0.16.0" LD_FLAGS = -X beryju.io/gravity/pkg/extconfig.Version=${VERSION} GO_FLAGS = -ldflags "${LD_FLAGS}" -v SCHEMA_FILE = schema.yml diff --git a/api/.openapi-generator/FILES b/api/.openapi-generator/FILES index 0449176c0..23b95ba71 100644 --- a/api/.openapi-generator/FILES +++ b/api/.openapi-generator/FILES @@ -45,6 +45,7 @@ docs/AuthAPITokensPutOutput.md docs/AuthAPIUser.md docs/AuthAPIUsersGetOutput.md docs/AuthAPIUsersPutInput.md +docs/AuthPermission.md docs/BackupAPIBackupStatus.md docs/BackupAPIBackupStatusOutput.md docs/BackupAPIRoleConfigInput.md @@ -149,6 +150,7 @@ model_auth_api_user.go model_auth_api_users_get_output.go model_auth_api_users_put_input.go model_auth_apime_output.go +model_auth_permission.go model_backup_api_backup_status.go model_backup_api_backup_status_output.go model_backup_api_role_config_input.go diff --git a/api/README.md b/api/README.md index fd3ed3070..1187a1af4 100644 --- a/api/README.md +++ b/api/README.md @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/opena ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 0.15.1 +- API version: 0.16.0 - Package version: 1.0.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen @@ -175,6 +175,7 @@ Class | Method | HTTP request | Description - [AuthAPIUser](docs/AuthAPIUser.md) - [AuthAPIUsersGetOutput](docs/AuthAPIUsersGetOutput.md) - [AuthAPIUsersPutInput](docs/AuthAPIUsersPutInput.md) + - [AuthPermission](docs/AuthPermission.md) - [BackupAPIBackupStatus](docs/BackupAPIBackupStatus.md) - [BackupAPIBackupStatusOutput](docs/BackupAPIBackupStatusOutput.md) - [BackupAPIRoleConfigInput](docs/BackupAPIRoleConfigInput.md) diff --git a/api/api/openapi.yaml b/api/api/openapi.yaml index 389dc15f1..08243398c 100644 --- a/api/api/openapi.yaml +++ b/api/api/openapi.yaml @@ -1,7 +1,7 @@ openapi: 3.0.3 info: title: gravity - version: 0.15.1 + version: 0.16.0 servers: - url: / paths: @@ -1795,6 +1795,7 @@ components: port: 0 cookieSecret: cookieSecret listenOverride: listenOverride + sessionDuration: sessionDuration oidc: clientID: clientID redirectURL: redirectURL @@ -1815,6 +1816,7 @@ components: port: 0 cookieSecret: cookieSecret listenOverride: listenOverride + sessionDuration: sessionDuration oidc: clientID: clientID redirectURL: redirectURL @@ -1957,6 +1959,7 @@ components: port: 0 cookieSecret: cookieSecret listenOverride: listenOverride + sessionDuration: sessionDuration oidc: clientID: clientID redirectURL: redirectURL @@ -1974,6 +1977,8 @@ components: $ref: '#/components/schemas/TypesOIDCConfig' port: type: integer + sessionDuration: + type: string type: object AuthAPIConfigOutput: example: @@ -2055,18 +2060,51 @@ components: type: object AuthAPIUser: example: + permissions: + - path: path + methods: + - methods + - methods + - path: path + methods: + - methods + - methods username: username properties: + permissions: + items: + $ref: '#/components/schemas/AuthPermission' + nullable: true + type: array username: type: string required: + - permissions - username type: object AuthAPIUsersGetOutput: example: users: - - username: username - - username: username + - permissions: + - path: path + methods: + - methods + - methods + - path: path + methods: + - methods + - methods + username: username + - permissions: + - path: path + methods: + - methods + - methods + - path: path + methods: + - methods + - methods + username: username properties: users: items: @@ -2079,11 +2117,41 @@ components: AuthAPIUsersPutInput: example: password: password + permissions: + - path: path + methods: + - methods + - methods + - path: path + methods: + - methods + - methods properties: password: type: string + permissions: + items: + $ref: '#/components/schemas/AuthPermission' + nullable: true + type: array required: - password + - permissions + type: object + AuthPermission: + example: + path: path + methods: + - methods + - methods + properties: + methods: + items: + type: string + nullable: true + type: array + path: + type: string type: object BackupAPIBackupStatus: example: @@ -3019,11 +3087,15 @@ components: instances: - identifier: identifier ip: ip - roles: roles + roles: + - roles + - roles version: version - identifier: identifier ip: ip - roles: roles + roles: + - roles + - roles version: version properties: instances: @@ -3045,7 +3117,9 @@ components: example: identifier: identifier ip: ip - roles: roles + roles: + - roles + - roles version: version properties: identifier: @@ -3053,7 +3127,10 @@ components: ip: type: string roles: - type: string + items: + type: string + nullable: true + type: array version: type: string required: diff --git a/api/api_cluster_instances.go b/api/api_cluster_instances.go index 34da5e6cf..3e9c94e20 100644 --- a/api/api_cluster_instances.go +++ b/api/api_cluster_instances.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/api_roles_api.go b/api/api_roles_api.go index f3692bb7c..bf72fde12 100644 --- a/api/api_roles_api.go +++ b/api/api_roles_api.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/api_roles_backup.go b/api/api_roles_backup.go index 7da3c8c27..bbc8cfcee 100644 --- a/api/api_roles_backup.go +++ b/api/api_roles_backup.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/api_roles_dhcp.go b/api/api_roles_dhcp.go index c60bed356..98fe461ba 100644 --- a/api/api_roles_dhcp.go +++ b/api/api_roles_dhcp.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/api_roles_discovery.go b/api/api_roles_discovery.go index 7d1cee86d..ff3bf1b25 100644 --- a/api/api_roles_discovery.go +++ b/api/api_roles_discovery.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/api_roles_dns.go b/api/api_roles_dns.go index a21920dc0..10a04fb8a 100644 --- a/api/api_roles_dns.go +++ b/api/api_roles_dns.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/api_roles_etcd.go b/api/api_roles_etcd.go index 3ffafd3c5..37f1722c5 100644 --- a/api/api_roles_etcd.go +++ b/api/api_roles_etcd.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/api_roles_monitoring.go b/api/api_roles_monitoring.go index c8bb7fa44..feac0dd31 100644 --- a/api/api_roles_monitoring.go +++ b/api/api_roles_monitoring.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/api_roles_tftp.go b/api/api_roles_tftp.go index 3b146d7d6..59e83c710 100644 --- a/api/api_roles_tftp.go +++ b/api/api_roles_tftp.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/api_roles_tsdb.go b/api/api_roles_tsdb.go index 524aca0cc..437f1df1f 100644 --- a/api/api_roles_tsdb.go +++ b/api/api_roles_tsdb.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/client.go b/api/client.go index 94a585ec3..926835a5a 100644 --- a/api/client.go +++ b/api/client.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -40,7 +40,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the gravity API v0.15.1 +// APIClient manages communication with the gravity API v0.16.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration diff --git a/api/configuration.go b/api/configuration.go index df79fe581..82b46e6b5 100644 --- a/api/configuration.go +++ b/api/configuration.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/docs/ApiRoleConfig.md b/api/docs/ApiRoleConfig.md index b5259a414..ef5f87c2f 100644 --- a/api/docs/ApiRoleConfig.md +++ b/api/docs/ApiRoleConfig.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **ListenOverride** | Pointer to **string** | | [optional] **Oidc** | Pointer to [**TypesOIDCConfig**](TypesOIDCConfig.md) | | [optional] **Port** | Pointer to **int32** | | [optional] +**SessionDuration** | Pointer to **string** | | [optional] ## Methods @@ -128,6 +129,31 @@ SetPort sets Port field to given value. HasPort returns a boolean if a field has been set. +### GetSessionDuration + +`func (o *ApiRoleConfig) GetSessionDuration() string` + +GetSessionDuration returns the SessionDuration field if non-nil, zero value otherwise. + +### GetSessionDurationOk + +`func (o *ApiRoleConfig) GetSessionDurationOk() (*string, bool)` + +GetSessionDurationOk returns a tuple with the SessionDuration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionDuration + +`func (o *ApiRoleConfig) SetSessionDuration(v string)` + +SetSessionDuration sets SessionDuration field to given value. + +### HasSessionDuration + +`func (o *ApiRoleConfig) HasSessionDuration() bool` + +HasSessionDuration 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/api/docs/AuthAPIUser.md b/api/docs/AuthAPIUser.md index 4ba484d8f..9c26f0be5 100644 --- a/api/docs/AuthAPIUser.md +++ b/api/docs/AuthAPIUser.md @@ -4,13 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Permissions** | [**[]AuthPermission**](AuthPermission.md) | | **Username** | **string** | | ## Methods ### NewAuthAPIUser -`func NewAuthAPIUser(username string, ) *AuthAPIUser` +`func NewAuthAPIUser(permissions []AuthPermission, username string, ) *AuthAPIUser` NewAuthAPIUser instantiates a new AuthAPIUser object This constructor will assign default values to properties that have it defined, @@ -25,6 +26,36 @@ NewAuthAPIUserWithDefaults instantiates a new AuthAPIUser 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 +### GetPermissions + +`func (o *AuthAPIUser) GetPermissions() []AuthPermission` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *AuthAPIUser) GetPermissionsOk() (*[]AuthPermission, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *AuthAPIUser) SetPermissions(v []AuthPermission)` + +SetPermissions sets Permissions field to given value. + + +### SetPermissionsNil + +`func (o *AuthAPIUser) SetPermissionsNil(b bool)` + + SetPermissionsNil sets the value for Permissions to be an explicit nil + +### UnsetPermissions +`func (o *AuthAPIUser) UnsetPermissions()` + +UnsetPermissions ensures that no value is present for Permissions, not even an explicit nil ### GetUsername `func (o *AuthAPIUser) GetUsername() string` diff --git a/api/docs/AuthAPIUsersPutInput.md b/api/docs/AuthAPIUsersPutInput.md index 58be37fc0..5331f104d 100644 --- a/api/docs/AuthAPIUsersPutInput.md +++ b/api/docs/AuthAPIUsersPutInput.md @@ -5,12 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Password** | **string** | | +**Permissions** | [**[]AuthPermission**](AuthPermission.md) | | ## Methods ### NewAuthAPIUsersPutInput -`func NewAuthAPIUsersPutInput(password string, ) *AuthAPIUsersPutInput` +`func NewAuthAPIUsersPutInput(password string, permissions []AuthPermission, ) *AuthAPIUsersPutInput` NewAuthAPIUsersPutInput instantiates a new AuthAPIUsersPutInput object This constructor will assign default values to properties that have it defined, @@ -45,6 +46,36 @@ and a boolean to check if the value has been set. SetPassword sets Password field to given value. +### GetPermissions + +`func (o *AuthAPIUsersPutInput) GetPermissions() []AuthPermission` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *AuthAPIUsersPutInput) GetPermissionsOk() (*[]AuthPermission, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *AuthAPIUsersPutInput) SetPermissions(v []AuthPermission)` + +SetPermissions sets Permissions field to given value. + + +### SetPermissionsNil + +`func (o *AuthAPIUsersPutInput) SetPermissionsNil(b bool)` + + SetPermissionsNil sets the value for Permissions to be an explicit nil + +### UnsetPermissions +`func (o *AuthAPIUsersPutInput) UnsetPermissions()` + +UnsetPermissions ensures that no value is present for Permissions, not even an explicit nil [[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/api/docs/AuthPermission.md b/api/docs/AuthPermission.md new file mode 100644 index 000000000..338eb1365 --- /dev/null +++ b/api/docs/AuthPermission.md @@ -0,0 +1,92 @@ +# AuthPermission + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Methods** | Pointer to **[]string** | | [optional] +**Path** | Pointer to **string** | | [optional] + +## Methods + +### NewAuthPermission + +`func NewAuthPermission() *AuthPermission` + +NewAuthPermission instantiates a new AuthPermission 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 + +### NewAuthPermissionWithDefaults + +`func NewAuthPermissionWithDefaults() *AuthPermission` + +NewAuthPermissionWithDefaults instantiates a new AuthPermission 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 + +### GetMethods + +`func (o *AuthPermission) GetMethods() []string` + +GetMethods returns the Methods field if non-nil, zero value otherwise. + +### GetMethodsOk + +`func (o *AuthPermission) GetMethodsOk() (*[]string, bool)` + +GetMethodsOk returns a tuple with the Methods field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMethods + +`func (o *AuthPermission) SetMethods(v []string)` + +SetMethods sets Methods field to given value. + +### HasMethods + +`func (o *AuthPermission) HasMethods() bool` + +HasMethods returns a boolean if a field has been set. + +### SetMethodsNil + +`func (o *AuthPermission) SetMethodsNil(b bool)` + + SetMethodsNil sets the value for Methods to be an explicit nil + +### UnsetMethods +`func (o *AuthPermission) UnsetMethods()` + +UnsetMethods ensures that no value is present for Methods, not even an explicit nil +### GetPath + +`func (o *AuthPermission) GetPath() string` + +GetPath returns the Path field if non-nil, zero value otherwise. + +### GetPathOk + +`func (o *AuthPermission) GetPathOk() (*string, bool)` + +GetPathOk returns a tuple with the Path field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPath + +`func (o *AuthPermission) SetPath(v string)` + +SetPath sets Path field to given value. + +### HasPath + +`func (o *AuthPermission) HasPath() bool` + +HasPath 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/api/docs/InstanceInstanceInfo.md b/api/docs/InstanceInstanceInfo.md index 24841a936..cf593dfbe 100644 --- a/api/docs/InstanceInstanceInfo.md +++ b/api/docs/InstanceInstanceInfo.md @@ -6,14 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Identifier** | **string** | | **Ip** | **string** | | -**Roles** | **string** | | +**Roles** | **[]string** | | **Version** | **string** | | ## Methods ### NewInstanceInstanceInfo -`func NewInstanceInstanceInfo(identifier string, ip string, roles string, version string, ) *InstanceInstanceInfo` +`func NewInstanceInstanceInfo(identifier string, ip string, roles []string, version string, ) *InstanceInstanceInfo` NewInstanceInstanceInfo instantiates a new InstanceInstanceInfo object This constructor will assign default values to properties that have it defined, @@ -70,24 +70,34 @@ SetIp sets Ip field to given value. ### GetRoles -`func (o *InstanceInstanceInfo) GetRoles() string` +`func (o *InstanceInstanceInfo) GetRoles() []string` GetRoles returns the Roles field if non-nil, zero value otherwise. ### GetRolesOk -`func (o *InstanceInstanceInfo) GetRolesOk() (*string, bool)` +`func (o *InstanceInstanceInfo) GetRolesOk() (*[]string, bool)` GetRolesOk returns a tuple with the Roles field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRoles -`func (o *InstanceInstanceInfo) SetRoles(v string)` +`func (o *InstanceInstanceInfo) SetRoles(v []string)` SetRoles sets Roles field to given value. +### SetRolesNil + +`func (o *InstanceInstanceInfo) SetRolesNil(b bool)` + + SetRolesNil sets the value for Roles to be an explicit nil + +### UnsetRoles +`func (o *InstanceInstanceInfo) UnsetRoles()` + +UnsetRoles ensures that no value is present for Roles, not even an explicit nil ### GetVersion `func (o *InstanceInstanceInfo) GetVersion() string` diff --git a/api/docs/RolesApiApi.md b/api/docs/RolesApiApi.md index 772256fb2..ef3bd7191 100644 --- a/api/docs/RolesApiApi.md +++ b/api/docs/RolesApiApi.md @@ -844,7 +844,7 @@ import ( func main() { username := "username_example" // string | - authAPIUsersPutInput := *openapiclient.NewAuthAPIUsersPutInput("Password_example") // AuthAPIUsersPutInput | (optional) + authAPIUsersPutInput := *openapiclient.NewAuthAPIUsersPutInput("Password_example", []openapiclient.AuthPermission{*openapiclient.NewAuthPermission()}) // AuthAPIUsersPutInput | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/api/model_api_api_export_input.go b/api/model_api_api_export_input.go index df719e34e..65d6f6df3 100644 --- a/api/model_api_api_export_input.go +++ b/api/model_api_api_export_input.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_api_api_export_output.go b/api/model_api_api_export_output.go index 9d3efb2dc..3c881d3a3 100644 --- a/api/model_api_api_export_output.go +++ b/api/model_api_api_export_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_api_api_import_input.go b/api/model_api_api_import_input.go index 433241182..6be7cadea 100644 --- a/api/model_api_api_import_input.go +++ b/api/model_api_api_import_input.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_api_api_log_message.go b/api/model_api_api_log_message.go index 48489d135..2ac0c78af 100644 --- a/api/model_api_api_log_message.go +++ b/api/model_api_api_log_message.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_api_api_log_messages.go b/api/model_api_api_log_messages.go index 1e22117e8..505bcc121 100644 --- a/api/model_api_api_log_messages.go +++ b/api/model_api_api_log_messages.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_api_api_member.go b/api/model_api_api_member.go index 24229cbb2..e7c375861 100644 --- a/api/model_api_api_member.go +++ b/api/model_api_api_member.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_api_api_member_join_input.go b/api/model_api_api_member_join_input.go index 00ec06fb9..dbde8293d 100644 --- a/api/model_api_api_member_join_input.go +++ b/api/model_api_api_member_join_input.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_api_api_member_join_output.go b/api/model_api_api_member_join_output.go index c7953f74c..618ac534f 100644 --- a/api/model_api_api_member_join_output.go +++ b/api/model_api_api_member_join_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_api_api_members_output.go b/api/model_api_api_members_output.go index 594229c39..0e08d86de 100644 --- a/api/model_api_api_members_output.go +++ b/api/model_api_api_members_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_api_api_role_config_input.go b/api/model_api_api_role_config_input.go index 6adda0443..a15af370b 100644 --- a/api/model_api_api_role_config_input.go +++ b/api/model_api_api_role_config_input.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_api_api_role_config_output.go b/api/model_api_api_role_config_output.go index 5d0334cb3..77bc44fc5 100644 --- a/api/model_api_api_role_config_output.go +++ b/api/model_api_api_role_config_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_api_api_tool_ping_input.go b/api/model_api_api_tool_ping_input.go index e98abf86f..873c23399 100644 --- a/api/model_api_api_tool_ping_input.go +++ b/api/model_api_api_tool_ping_input.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_api_api_tool_ping_output.go b/api/model_api_api_tool_ping_output.go index 2e36b037c..6dbf99c17 100644 --- a/api/model_api_api_tool_ping_output.go +++ b/api/model_api_api_tool_ping_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_api_api_tool_portmap_input.go b/api/model_api_api_tool_portmap_input.go index bd723710a..a5933efc5 100644 --- a/api/model_api_api_tool_portmap_input.go +++ b/api/model_api_api_tool_portmap_input.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_api_api_tool_portmap_output.go b/api/model_api_api_tool_portmap_output.go index e8d122ad5..088f4d843 100644 --- a/api/model_api_api_tool_portmap_output.go +++ b/api/model_api_api_tool_portmap_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_api_api_tool_portmap_output_port.go b/api/model_api_api_tool_portmap_output_port.go index 3982cc556..9d25adb5c 100644 --- a/api/model_api_api_tool_portmap_output_port.go +++ b/api/model_api_api_tool_portmap_output_port.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_api_api_tool_traceroute_input.go b/api/model_api_api_tool_traceroute_input.go index e9bbdb6df..bbfc0856d 100644 --- a/api/model_api_api_tool_traceroute_input.go +++ b/api/model_api_api_tool_traceroute_input.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_api_api_tool_traceroute_output.go b/api/model_api_api_tool_traceroute_output.go index a5dc3cc95..bafbafb74 100644 --- a/api/model_api_api_tool_traceroute_output.go +++ b/api/model_api_api_tool_traceroute_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_api_api_tool_traceroute_output_hop.go b/api/model_api_api_tool_traceroute_output_hop.go index 8259b2422..448dcf47b 100644 --- a/api/model_api_api_tool_traceroute_output_hop.go +++ b/api/model_api_api_tool_traceroute_output_hop.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_api_api_transport_entry.go b/api/model_api_api_transport_entry.go index 9697d3b84..8bc8b39c2 100644 --- a/api/model_api_api_transport_entry.go +++ b/api/model_api_api_transport_entry.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_api_role_config.go b/api/model_api_role_config.go index b9015087e..9d2bcf0d7 100644 --- a/api/model_api_role_config.go +++ b/api/model_api_role_config.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,11 @@ var _ MappedNullable = &ApiRoleConfig{} // ApiRoleConfig struct for ApiRoleConfig type ApiRoleConfig struct { - CookieSecret *string `json:"cookieSecret,omitempty"` - ListenOverride *string `json:"listenOverride,omitempty"` - Oidc *TypesOIDCConfig `json:"oidc,omitempty"` - Port *int32 `json:"port,omitempty"` + CookieSecret *string `json:"cookieSecret,omitempty"` + ListenOverride *string `json:"listenOverride,omitempty"` + Oidc *TypesOIDCConfig `json:"oidc,omitempty"` + Port *int32 `json:"port,omitempty"` + SessionDuration *string `json:"sessionDuration,omitempty"` } // NewApiRoleConfig instantiates a new ApiRoleConfig object @@ -170,6 +171,38 @@ func (o *ApiRoleConfig) SetPort(v int32) { o.Port = &v } +// GetSessionDuration returns the SessionDuration field value if set, zero value otherwise. +func (o *ApiRoleConfig) GetSessionDuration() string { + if o == nil || IsNil(o.SessionDuration) { + var ret string + return ret + } + return *o.SessionDuration +} + +// GetSessionDurationOk returns a tuple with the SessionDuration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApiRoleConfig) GetSessionDurationOk() (*string, bool) { + if o == nil || IsNil(o.SessionDuration) { + return nil, false + } + return o.SessionDuration, true +} + +// HasSessionDuration returns a boolean if a field has been set. +func (o *ApiRoleConfig) HasSessionDuration() bool { + if o != nil && !IsNil(o.SessionDuration) { + return true + } + + return false +} + +// SetSessionDuration gets a reference to the given string and assigns it to the SessionDuration field. +func (o *ApiRoleConfig) SetSessionDuration(v string) { + o.SessionDuration = &v +} + func (o ApiRoleConfig) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -192,6 +225,9 @@ func (o ApiRoleConfig) ToMap() (map[string]interface{}, error) { if !IsNil(o.Port) { toSerialize["port"] = o.Port } + if !IsNil(o.SessionDuration) { + toSerialize["sessionDuration"] = o.SessionDuration + } return toSerialize, nil } diff --git a/api/model_auth_api_config_output.go b/api/model_auth_api_config_output.go index 043ad9c6a..df9f026e6 100644 --- a/api/model_auth_api_config_output.go +++ b/api/model_auth_api_config_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_auth_api_login_input.go b/api/model_auth_api_login_input.go index bcd4aadfc..c7a8e34dd 100644 --- a/api/model_auth_api_login_input.go +++ b/api/model_auth_api_login_input.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_auth_api_login_output.go b/api/model_auth_api_login_output.go index 3ef1a32b7..30ccadf76 100644 --- a/api/model_auth_api_login_output.go +++ b/api/model_auth_api_login_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_auth_api_token.go b/api/model_auth_api_token.go index 1ddedf95d..07a302b2e 100644 --- a/api/model_auth_api_token.go +++ b/api/model_auth_api_token.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_auth_api_tokens_get_output.go b/api/model_auth_api_tokens_get_output.go index 4595bd1b2..c4b9a3e8a 100644 --- a/api/model_auth_api_tokens_get_output.go +++ b/api/model_auth_api_tokens_get_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_auth_api_tokens_put_output.go b/api/model_auth_api_tokens_put_output.go index 4b02c563f..497035da4 100644 --- a/api/model_auth_api_tokens_put_output.go +++ b/api/model_auth_api_tokens_put_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_auth_api_user.go b/api/model_auth_api_user.go index 5709806a3..d1127151a 100644 --- a/api/model_auth_api_user.go +++ b/api/model_auth_api_user.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,15 +19,17 @@ var _ MappedNullable = &AuthAPIUser{} // AuthAPIUser struct for AuthAPIUser type AuthAPIUser struct { - Username string `json:"username"` + Permissions []AuthPermission `json:"permissions"` + Username string `json:"username"` } // NewAuthAPIUser instantiates a new AuthAPIUser 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 NewAuthAPIUser(username string) *AuthAPIUser { +func NewAuthAPIUser(permissions []AuthPermission, username string) *AuthAPIUser { this := AuthAPIUser{} + this.Permissions = permissions this.Username = username return &this } @@ -40,6 +42,32 @@ func NewAuthAPIUserWithDefaults() *AuthAPIUser { return &this } +// GetPermissions returns the Permissions field value +// If the value is explicit nil, the zero value for []AuthPermission will be returned +func (o *AuthAPIUser) GetPermissions() []AuthPermission { + if o == nil { + var ret []AuthPermission + return ret + } + + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AuthAPIUser) GetPermissionsOk() ([]AuthPermission, bool) { + if o == nil || IsNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// SetPermissions sets field value +func (o *AuthAPIUser) SetPermissions(v []AuthPermission) { + o.Permissions = v +} + // GetUsername returns the Username field value func (o *AuthAPIUser) GetUsername() string { if o == nil { @@ -74,6 +102,9 @@ func (o AuthAPIUser) MarshalJSON() ([]byte, error) { func (o AuthAPIUser) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.Permissions != nil { + toSerialize["permissions"] = o.Permissions + } toSerialize["username"] = o.Username return toSerialize, nil } diff --git a/api/model_auth_api_users_get_output.go b/api/model_auth_api_users_get_output.go index d23693fed..187ce4743 100644 --- a/api/model_auth_api_users_get_output.go +++ b/api/model_auth_api_users_get_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_auth_api_users_put_input.go b/api/model_auth_api_users_put_input.go index 0a31eeb2a..db3a36cf9 100644 --- a/api/model_auth_api_users_put_input.go +++ b/api/model_auth_api_users_put_input.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,16 +19,18 @@ var _ MappedNullable = &AuthAPIUsersPutInput{} // AuthAPIUsersPutInput struct for AuthAPIUsersPutInput type AuthAPIUsersPutInput struct { - Password string `json:"password"` + Password string `json:"password"` + Permissions []AuthPermission `json:"permissions"` } // NewAuthAPIUsersPutInput instantiates a new AuthAPIUsersPutInput 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 NewAuthAPIUsersPutInput(password string) *AuthAPIUsersPutInput { +func NewAuthAPIUsersPutInput(password string, permissions []AuthPermission) *AuthAPIUsersPutInput { this := AuthAPIUsersPutInput{} this.Password = password + this.Permissions = permissions return &this } @@ -64,6 +66,32 @@ func (o *AuthAPIUsersPutInput) SetPassword(v string) { o.Password = v } +// GetPermissions returns the Permissions field value +// If the value is explicit nil, the zero value for []AuthPermission will be returned +func (o *AuthAPIUsersPutInput) GetPermissions() []AuthPermission { + if o == nil { + var ret []AuthPermission + return ret + } + + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AuthAPIUsersPutInput) GetPermissionsOk() ([]AuthPermission, bool) { + if o == nil || IsNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// SetPermissions sets field value +func (o *AuthAPIUsersPutInput) SetPermissions(v []AuthPermission) { + o.Permissions = v +} + func (o AuthAPIUsersPutInput) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -75,6 +103,9 @@ func (o AuthAPIUsersPutInput) MarshalJSON() ([]byte, error) { func (o AuthAPIUsersPutInput) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["password"] = o.Password + if o.Permissions != nil { + toSerialize["permissions"] = o.Permissions + } return toSerialize, nil } diff --git a/api/model_auth_apime_output.go b/api/model_auth_apime_output.go index e2c5d8ee2..3c5ccede1 100644 --- a/api/model_auth_apime_output.go +++ b/api/model_auth_apime_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_auth_permission.go b/api/model_auth_permission.go new file mode 100644 index 000000000..b5d2dfdcd --- /dev/null +++ b/api/model_auth_permission.go @@ -0,0 +1,161 @@ +/* +gravity + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.16.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the AuthPermission type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AuthPermission{} + +// AuthPermission struct for AuthPermission +type AuthPermission struct { + Methods []string `json:"methods,omitempty"` + Path *string `json:"path,omitempty"` +} + +// NewAuthPermission instantiates a new AuthPermission 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 NewAuthPermission() *AuthPermission { + this := AuthPermission{} + return &this +} + +// NewAuthPermissionWithDefaults instantiates a new AuthPermission 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 NewAuthPermissionWithDefaults() *AuthPermission { + this := AuthPermission{} + return &this +} + +// GetMethods returns the Methods field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AuthPermission) GetMethods() []string { + if o == nil { + var ret []string + return ret + } + return o.Methods +} + +// GetMethodsOk returns a tuple with the Methods field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AuthPermission) GetMethodsOk() ([]string, bool) { + if o == nil || IsNil(o.Methods) { + return nil, false + } + return o.Methods, true +} + +// HasMethods returns a boolean if a field has been set. +func (o *AuthPermission) HasMethods() bool { + if o != nil && IsNil(o.Methods) { + return true + } + + return false +} + +// SetMethods gets a reference to the given []string and assigns it to the Methods field. +func (o *AuthPermission) SetMethods(v []string) { + o.Methods = v +} + +// GetPath returns the Path field value if set, zero value otherwise. +func (o *AuthPermission) GetPath() string { + if o == nil || IsNil(o.Path) { + var ret string + return ret + } + return *o.Path +} + +// GetPathOk returns a tuple with the Path field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthPermission) GetPathOk() (*string, bool) { + if o == nil || IsNil(o.Path) { + return nil, false + } + return o.Path, true +} + +// HasPath returns a boolean if a field has been set. +func (o *AuthPermission) HasPath() bool { + if o != nil && !IsNil(o.Path) { + return true + } + + return false +} + +// SetPath gets a reference to the given string and assigns it to the Path field. +func (o *AuthPermission) SetPath(v string) { + o.Path = &v +} + +func (o AuthPermission) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AuthPermission) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Methods != nil { + toSerialize["methods"] = o.Methods + } + if !IsNil(o.Path) { + toSerialize["path"] = o.Path + } + return toSerialize, nil +} + +type NullableAuthPermission struct { + value *AuthPermission + isSet bool +} + +func (v NullableAuthPermission) Get() *AuthPermission { + return v.value +} + +func (v *NullableAuthPermission) Set(val *AuthPermission) { + v.value = val + v.isSet = true +} + +func (v NullableAuthPermission) IsSet() bool { + return v.isSet +} + +func (v *NullableAuthPermission) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuthPermission(val *AuthPermission) *NullableAuthPermission { + return &NullableAuthPermission{value: val, isSet: true} +} + +func (v NullableAuthPermission) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuthPermission) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_backup_api_backup_status.go b/api/model_backup_api_backup_status.go index cc7b97aca..030d4cb3b 100644 --- a/api/model_backup_api_backup_status.go +++ b/api/model_backup_api_backup_status.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_backup_api_backup_status_output.go b/api/model_backup_api_backup_status_output.go index 483e8fb61..73f4805e2 100644 --- a/api/model_backup_api_backup_status_output.go +++ b/api/model_backup_api_backup_status_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_backup_api_role_config_input.go b/api/model_backup_api_role_config_input.go index 314646451..f367e411b 100644 --- a/api/model_backup_api_role_config_input.go +++ b/api/model_backup_api_role_config_input.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_backup_api_role_config_output.go b/api/model_backup_api_role_config_output.go index 47572271c..b5b11a2bd 100644 --- a/api/model_backup_api_role_config_output.go +++ b/api/model_backup_api_role_config_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_backup_backup_status.go b/api/model_backup_backup_status.go index a5c1b53ff..3f1f578b5 100644 --- a/api/model_backup_backup_status.go +++ b/api/model_backup_backup_status.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_backup_role_config.go b/api/model_backup_role_config.go index 9721d9c00..6058b446e 100644 --- a/api/model_backup_role_config.go +++ b/api/model_backup_role_config.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_dhcp_api_lease.go b/api/model_dhcp_api_lease.go index e1a16ce00..9abc974bd 100644 --- a/api/model_dhcp_api_lease.go +++ b/api/model_dhcp_api_lease.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_dhcp_api_lease_info.go b/api/model_dhcp_api_lease_info.go index cf5fc3aab..24d2e2cd6 100644 --- a/api/model_dhcp_api_lease_info.go +++ b/api/model_dhcp_api_lease_info.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_dhcp_api_leases_get_output.go b/api/model_dhcp_api_leases_get_output.go index 1b38dae4e..cd7c806c0 100644 --- a/api/model_dhcp_api_leases_get_output.go +++ b/api/model_dhcp_api_leases_get_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_dhcp_api_leases_put_input.go b/api/model_dhcp_api_leases_put_input.go index 861de52ab..2b2f01820 100644 --- a/api/model_dhcp_api_leases_put_input.go +++ b/api/model_dhcp_api_leases_put_input.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_dhcp_api_role_config_input.go b/api/model_dhcp_api_role_config_input.go index d9801c08b..ac1625de0 100644 --- a/api/model_dhcp_api_role_config_input.go +++ b/api/model_dhcp_api_role_config_input.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_dhcp_api_role_config_output.go b/api/model_dhcp_api_role_config_output.go index a0f41d826..420246cb7 100644 --- a/api/model_dhcp_api_role_config_output.go +++ b/api/model_dhcp_api_role_config_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_dhcp_api_scope.go b/api/model_dhcp_api_scope.go index 58e92b44d..a3e716bb3 100644 --- a/api/model_dhcp_api_scope.go +++ b/api/model_dhcp_api_scope.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_dhcp_api_scope_statistics.go b/api/model_dhcp_api_scope_statistics.go index 5fe7b11a3..cd810e39b 100644 --- a/api/model_dhcp_api_scope_statistics.go +++ b/api/model_dhcp_api_scope_statistics.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_dhcp_api_scopes_get_output.go b/api/model_dhcp_api_scopes_get_output.go index 6b07f050f..0a5f1f950 100644 --- a/api/model_dhcp_api_scopes_get_output.go +++ b/api/model_dhcp_api_scopes_get_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_dhcp_api_scopes_put_input.go b/api/model_dhcp_api_scopes_put_input.go index e7d56e39b..26daa17b2 100644 --- a/api/model_dhcp_api_scopes_put_input.go +++ b/api/model_dhcp_api_scopes_put_input.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_dhcp_role_config.go b/api/model_dhcp_role_config.go index ed45ebed5..d9986b047 100644 --- a/api/model_dhcp_role_config.go +++ b/api/model_dhcp_role_config.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_dhcp_scope_dns.go b/api/model_dhcp_scope_dns.go index 7564d33af..3bcaa6d3b 100644 --- a/api/model_dhcp_scope_dns.go +++ b/api/model_dhcp_scope_dns.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_discovery_api_device.go b/api/model_discovery_api_device.go index ae4e2cc74..106fcf600 100644 --- a/api/model_discovery_api_device.go +++ b/api/model_discovery_api_device.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_discovery_api_devices_apply_input.go b/api/model_discovery_api_devices_apply_input.go index f55258fee..cc378b037 100644 --- a/api/model_discovery_api_devices_apply_input.go +++ b/api/model_discovery_api_devices_apply_input.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_discovery_api_devices_get_output.go b/api/model_discovery_api_devices_get_output.go index 7210165b9..402355563 100644 --- a/api/model_discovery_api_devices_get_output.go +++ b/api/model_discovery_api_devices_get_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_discovery_api_role_config_input.go b/api/model_discovery_api_role_config_input.go index 2f695bbd7..fafcccacf 100644 --- a/api/model_discovery_api_role_config_input.go +++ b/api/model_discovery_api_role_config_input.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_discovery_api_role_config_output.go b/api/model_discovery_api_role_config_output.go index 80c665fa7..aa23a5dc5 100644 --- a/api/model_discovery_api_role_config_output.go +++ b/api/model_discovery_api_role_config_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_discovery_api_subnet.go b/api/model_discovery_api_subnet.go index 7394f1d9a..5afc86910 100644 --- a/api/model_discovery_api_subnet.go +++ b/api/model_discovery_api_subnet.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_discovery_api_subnets_get_output.go b/api/model_discovery_api_subnets_get_output.go index 5115213c8..771b212bc 100644 --- a/api/model_discovery_api_subnets_get_output.go +++ b/api/model_discovery_api_subnets_get_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_discovery_api_subnets_put_input.go b/api/model_discovery_api_subnets_put_input.go index fe63bde4e..80f29f85c 100644 --- a/api/model_discovery_api_subnets_put_input.go +++ b/api/model_discovery_api_subnets_put_input.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_discovery_role_config.go b/api/model_discovery_role_config.go index d74602b6c..f04735706 100644 --- a/api/model_discovery_role_config.go +++ b/api/model_discovery_role_config.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_dns_api_record.go b/api/model_dns_api_record.go index 23a1c375b..379a55605 100644 --- a/api/model_dns_api_record.go +++ b/api/model_dns_api_record.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_dns_api_records_get_output.go b/api/model_dns_api_records_get_output.go index 5cbf6bd8e..914169900 100644 --- a/api/model_dns_api_records_get_output.go +++ b/api/model_dns_api_records_get_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_dns_api_records_put_input.go b/api/model_dns_api_records_put_input.go index 40244a022..784fb659c 100644 --- a/api/model_dns_api_records_put_input.go +++ b/api/model_dns_api_records_put_input.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_dns_api_role_config_input.go b/api/model_dns_api_role_config_input.go index 5f1451c02..e679175b7 100644 --- a/api/model_dns_api_role_config_input.go +++ b/api/model_dns_api_role_config_input.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_dns_api_role_config_output.go b/api/model_dns_api_role_config_output.go index 1f3e8c17a..93dddf7fb 100644 --- a/api/model_dns_api_role_config_output.go +++ b/api/model_dns_api_role_config_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_dns_api_zone.go b/api/model_dns_api_zone.go index c5e73e095..1276dcbea 100644 --- a/api/model_dns_api_zone.go +++ b/api/model_dns_api_zone.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_dns_api_zones_get_output.go b/api/model_dns_api_zones_get_output.go index d26a8c988..0d6e78615 100644 --- a/api/model_dns_api_zones_get_output.go +++ b/api/model_dns_api_zones_get_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_dns_api_zones_put_input.go b/api/model_dns_api_zones_put_input.go index d284e3c3e..052d5a74c 100644 --- a/api/model_dns_api_zones_put_input.go +++ b/api/model_dns_api_zones_put_input.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_dns_role_config.go b/api/model_dns_role_config.go index a2dacf5ba..21af29fc9 100644 --- a/api/model_dns_role_config.go +++ b/api/model_dns_role_config.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_extconfig_ext_config_dirs.go b/api/model_extconfig_ext_config_dirs.go index 89f784344..b92c1d46b 100644 --- a/api/model_extconfig_ext_config_dirs.go +++ b/api/model_extconfig_ext_config_dirs.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_instance_api_instance_info.go b/api/model_instance_api_instance_info.go index 85a109cb2..11964323e 100644 --- a/api/model_instance_api_instance_info.go +++ b/api/model_instance_api_instance_info.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_instance_api_instances_output.go b/api/model_instance_api_instances_output.go index ff3d3c4a4..1ac5178d0 100644 --- a/api/model_instance_api_instances_output.go +++ b/api/model_instance_api_instances_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_instance_api_role_restart_input.go b/api/model_instance_api_role_restart_input.go index 215c3c6ef..d8b6e1c5b 100644 --- a/api/model_instance_api_role_restart_input.go +++ b/api/model_instance_api_role_restart_input.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_instance_instance_info.go b/api/model_instance_instance_info.go index 2c9921b57..39313b92d 100644 --- a/api/model_instance_instance_info.go +++ b/api/model_instance_instance_info.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &InstanceInstanceInfo{} // InstanceInstanceInfo struct for InstanceInstanceInfo type InstanceInstanceInfo struct { - Identifier string `json:"identifier"` - Ip string `json:"ip"` - Roles string `json:"roles"` - Version string `json:"version"` + Identifier string `json:"identifier"` + Ip string `json:"ip"` + Roles []string `json:"roles"` + Version string `json:"version"` } // NewInstanceInstanceInfo instantiates a new InstanceInstanceInfo 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 NewInstanceInstanceInfo(identifier string, ip string, roles string, version string) *InstanceInstanceInfo { +func NewInstanceInstanceInfo(identifier string, ip string, roles []string, version string) *InstanceInstanceInfo { this := InstanceInstanceInfo{} this.Identifier = identifier this.Ip = ip @@ -95,9 +95,10 @@ func (o *InstanceInstanceInfo) SetIp(v string) { } // GetRoles returns the Roles field value -func (o *InstanceInstanceInfo) GetRoles() string { +// If the value is explicit nil, the zero value for []string will be returned +func (o *InstanceInstanceInfo) GetRoles() []string { if o == nil { - var ret string + var ret []string return ret } @@ -106,15 +107,16 @@ func (o *InstanceInstanceInfo) GetRoles() string { // GetRolesOk returns a tuple with the Roles field value // and a boolean to check if the value has been set. -func (o *InstanceInstanceInfo) GetRolesOk() (*string, bool) { - if o == nil { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *InstanceInstanceInfo) GetRolesOk() ([]string, bool) { + if o == nil || IsNil(o.Roles) { return nil, false } - return &o.Roles, true + return o.Roles, true } // SetRoles sets field value -func (o *InstanceInstanceInfo) SetRoles(v string) { +func (o *InstanceInstanceInfo) SetRoles(v []string) { o.Roles = v } @@ -154,7 +156,9 @@ func (o InstanceInstanceInfo) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["identifier"] = o.Identifier toSerialize["ip"] = o.Ip - toSerialize["roles"] = o.Roles + if o.Roles != nil { + toSerialize["roles"] = o.Roles + } toSerialize["version"] = o.Version return toSerialize, nil } diff --git a/api/model_monitoring_api_role_config_input.go b/api/model_monitoring_api_role_config_input.go index 2535427e6..71de7776e 100644 --- a/api/model_monitoring_api_role_config_input.go +++ b/api/model_monitoring_api_role_config_input.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_monitoring_api_role_config_output.go b/api/model_monitoring_api_role_config_output.go index 80e35b6ba..d7ee344df 100644 --- a/api/model_monitoring_api_role_config_output.go +++ b/api/model_monitoring_api_role_config_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_monitoring_role_config.go b/api/model_monitoring_role_config.go index b3c10aa3a..a3fc70d92 100644 --- a/api/model_monitoring_role_config.go +++ b/api/model_monitoring_role_config.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_rest_err_response.go b/api/model_rest_err_response.go index 1246a51dc..c9e895eca 100644 --- a/api/model_rest_err_response.go +++ b/api/model_rest_err_response.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_tftp_api_file.go b/api/model_tftp_api_file.go index c71768668..e8cd28fe2 100644 --- a/api/model_tftp_api_file.go +++ b/api/model_tftp_api_file.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_tftp_api_files_download_output.go b/api/model_tftp_api_files_download_output.go index 145a050b1..42d39918a 100644 --- a/api/model_tftp_api_files_download_output.go +++ b/api/model_tftp_api_files_download_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_tftp_api_files_get_output.go b/api/model_tftp_api_files_get_output.go index 4b461c7a3..822fb1a00 100644 --- a/api/model_tftp_api_files_get_output.go +++ b/api/model_tftp_api_files_get_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_tftp_api_files_put_input.go b/api/model_tftp_api_files_put_input.go index c0cf3afed..26a804c1d 100644 --- a/api/model_tftp_api_files_put_input.go +++ b/api/model_tftp_api_files_put_input.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_tftp_api_role_config_input.go b/api/model_tftp_api_role_config_input.go index 386f35fcf..58d6e9de9 100644 --- a/api/model_tftp_api_role_config_input.go +++ b/api/model_tftp_api_role_config_input.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_tftp_api_role_config_output.go b/api/model_tftp_api_role_config_output.go index 07e50cb65..d9a74e9da 100644 --- a/api/model_tftp_api_role_config_output.go +++ b/api/model_tftp_api_role_config_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_tftp_role_config.go b/api/model_tftp_role_config.go index f6927ebe4..82cba6f34 100644 --- a/api/model_tftp_role_config.go +++ b/api/model_tftp_role_config.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_tsdb_api_role_config_input.go b/api/model_tsdb_api_role_config_input.go index 5059bfd3b..2fde06ea4 100644 --- a/api/model_tsdb_api_role_config_input.go +++ b/api/model_tsdb_api_role_config_input.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_tsdb_api_role_config_output.go b/api/model_tsdb_api_role_config_output.go index 909cbe16c..20195a559 100644 --- a/api/model_tsdb_api_role_config_output.go +++ b/api/model_tsdb_api_role_config_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_tsdb_role_config.go b/api/model_tsdb_role_config.go index 2153c9eea..fc6808d10 100644 --- a/api/model_tsdb_role_config.go +++ b/api/model_tsdb_role_config.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_types_api_metrics_get_output.go b/api/model_types_api_metrics_get_output.go index 13ca5274a..cf7df4c86 100644 --- a/api/model_types_api_metrics_get_output.go +++ b/api/model_types_api_metrics_get_output.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_types_api_metrics_record.go b/api/model_types_api_metrics_record.go index 9b3aaac2c..7d4caabf4 100644 --- a/api/model_types_api_metrics_record.go +++ b/api/model_types_api_metrics_record.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_types_api_metrics_role.go b/api/model_types_api_metrics_role.go index 9380d8558..22bc609fa 100644 --- a/api/model_types_api_metrics_role.go +++ b/api/model_types_api_metrics_role.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_types_dhcp_option.go b/api/model_types_dhcp_option.go index d6e568f17..c3e6e7969 100644 --- a/api/model_types_dhcp_option.go +++ b/api/model_types_dhcp_option.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/model_types_oidc_config.go b/api/model_types_oidc_config.go index 5c3015563..dbbcc6506 100644 --- a/api/model_types_oidc_config.go +++ b/api/model_types_oidc_config.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/response.go b/api/response.go index edb2af2b4..118150500 100644 --- a/api/response.go +++ b/api/response.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api/utils.go b/api/utils.go index 76f33c35f..fcb9621e8 100644 --- a/api/utils.go +++ b/api/utils.go @@ -3,7 +3,7 @@ gravity No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 0.15.1 +API version: 0.16.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/schema.yml b/schema.yml index 1902c2e53..1fa5b1f9a 100644 --- a/schema.yml +++ b/schema.yml @@ -1,7 +1,7 @@ openapi: 3.0.3 info: title: gravity - version: 0.15.1 + version: 0.16.0 paths: /api/v1/auth/config: get: diff --git a/web/package-lock.json b/web/package-lock.json index b0ac3bf5c..9b2d5b595 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -1,12 +1,12 @@ { "name": "@beryju/gravity-web", - "version": "0.15.1", + "version": "0.16.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@beryju/gravity-web", - "version": "0.15.1", + "version": "0.16.0", "dependencies": { "@codecov/rollup-plugin": "^1.4.0", "@codemirror/lang-javascript": "^6.2.2", @@ -35,7 +35,7 @@ "eslint-plugin-lit": "^1.15.0", "eslint-plugin-wc": "^2.2.0", "globals": "^15.12.0", - "gravity-api": "^0.15.1", + "gravity-api": "^0.16.0", "lit": "^3.2.1", "moment": "^2.30.1", "prettier": "^3.3.3", @@ -3940,9 +3940,9 @@ "license": "MIT" }, "node_modules/gravity-api": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/gravity-api/-/gravity-api-0.15.1.tgz", - "integrity": "sha512-Rj48/8p7GCuculSuWknm4p6jCRuXYzwQAOQqV/eX+8km0JO8+mCqb3Y5e10ntBlPwwbeK6ARNmpyK0tQXF+JNw==" + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/gravity-api/-/gravity-api-0.16.0.tgz", + "integrity": "sha512-BiPjEPq/MJrVJ+v5yFhYtoVfOXIkP1iGZEeIOO/yEzOZ4Jc6f5FXn4XmVrNCIgUrew8nr9HY/+5eJPYItHVg0A==" }, "node_modules/has-flag": { "version": "3.0.0", diff --git a/web/package.json b/web/package.json index 7315f0df6..3fe44eb5a 100644 --- a/web/package.json +++ b/web/package.json @@ -1,6 +1,6 @@ { "name": "@beryju/gravity-web", - "version": "0.15.1", + "version": "0.16.0", "description": "", "scripts": { "build": "rm -rf dist/ && rollup -c", @@ -38,7 +38,7 @@ "eslint-plugin-lit": "^1.15.0", "eslint-plugin-wc": "^2.2.0", "globals": "^15.12.0", - "gravity-api": "^0.15.1", + "gravity-api": "^0.16.0", "lit": "^3.2.1", "moment": "^2.30.1", "prettier": "^3.3.3",