mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 12:50:05 +01:00
feat: adding background jobs ui page and apis - requires user is_admin to be set to true
This commit is contained in:
@@ -26,6 +26,7 @@ type HandlersMeResponse struct {
|
||||
Emails []ModelsUserEmail `json:"emails,omitempty"`
|
||||
// example: 3fa85f64-5717-4562-b3fc-2c963f66afa6
|
||||
Id *string `json:"id,omitempty"`
|
||||
IsAdmin *bool `json:"is_admin,omitempty"`
|
||||
IsDisabled *bool `json:"is_disabled,omitempty"`
|
||||
Organizations []ModelsOrganization `json:"organizations,omitempty"`
|
||||
PrimaryEmail *string `json:"primary_email,omitempty"`
|
||||
@@ -209,6 +210,38 @@ func (o *HandlersMeResponse) SetId(v string) {
|
||||
o.Id = &v
|
||||
}
|
||||
|
||||
// GetIsAdmin returns the IsAdmin field value if set, zero value otherwise.
|
||||
func (o *HandlersMeResponse) GetIsAdmin() bool {
|
||||
if o == nil || IsNil(o.IsAdmin) {
|
||||
var ret bool
|
||||
return ret
|
||||
}
|
||||
return *o.IsAdmin
|
||||
}
|
||||
|
||||
// GetIsAdminOk returns a tuple with the IsAdmin field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *HandlersMeResponse) GetIsAdminOk() (*bool, bool) {
|
||||
if o == nil || IsNil(o.IsAdmin) {
|
||||
return nil, false
|
||||
}
|
||||
return o.IsAdmin, true
|
||||
}
|
||||
|
||||
// HasIsAdmin returns a boolean if a field has been set.
|
||||
func (o *HandlersMeResponse) HasIsAdmin() bool {
|
||||
if o != nil && !IsNil(o.IsAdmin) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetIsAdmin gets a reference to the given bool and assigns it to the IsAdmin field.
|
||||
func (o *HandlersMeResponse) SetIsAdmin(v bool) {
|
||||
o.IsAdmin = &v
|
||||
}
|
||||
|
||||
// GetIsDisabled returns the IsDisabled field value if set, zero value otherwise.
|
||||
func (o *HandlersMeResponse) GetIsDisabled() bool {
|
||||
if o == nil || IsNil(o.IsDisabled) {
|
||||
@@ -362,6 +395,9 @@ func (o HandlersMeResponse) ToMap() (map[string]interface{}, error) {
|
||||
if !IsNil(o.Id) {
|
||||
toSerialize["id"] = o.Id
|
||||
}
|
||||
if !IsNil(o.IsAdmin) {
|
||||
toSerialize["is_admin"] = o.IsAdmin
|
||||
}
|
||||
if !IsNil(o.IsDisabled) {
|
||||
toSerialize["is_disabled"] = o.IsDisabled
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user