Skip to content

Commit

Permalink
v0.4.39
Browse files Browse the repository at this point in the history
  • Loading branch information
tmunzer committed Jan 30, 2025
1 parent 6b3aa00 commit 6d45586
Show file tree
Hide file tree
Showing 148 changed files with 1,428 additions and 1,611 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

## Introduction

> Version: **2412.1.26**
> Version: **2412.1.28**
>
> Date: **January 27, 2024**
> Date: **January 30, 2024**
---

Expand Down
2 changes: 1 addition & 1 deletion doc/controllers/admins-recover-password.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ ctx := context.Background()
body := models.Recover{
Email: "test@mistsys.com",
Recaptcha: models.ToPointer("string"),
RecaptchaFlavor: models.ToPointer(models.RecaptchaFlavorEnum("hcaptcha")),
RecaptchaFlavor: models.ToPointer(models.RecaptchaFlavorEnum_HCAPTCHA),
}

resp, err := adminsRecoverPassword.RecoverPassword(ctx, &body)
Expand Down
4 changes: 2 additions & 2 deletions doc/controllers/admins.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ GetAdminRegistrationInfo(
```go
ctx := context.Background()

recaptchaFlavor := models.RecaptchaFlavorEnum("hcaptcha")
recaptchaFlavor := models.RecaptchaFlavorEnum_HCAPTCHA

apiResponse, err := admins.GetAdminRegistrationInfo(ctx, &recaptchaFlavor)
if err != nil {
Expand Down Expand Up @@ -170,7 +170,7 @@ body := models.AdminInvite{
OrgName: "Smith LLC",
Password: "foryoureyesonly",
Recaptcha: "string",
RecaptchaFlavor: models.ToPointer(models.RecaptchaFlavorEnum("hcaptcha")),
RecaptchaFlavor: models.ToPointer(models.RecaptchaFlavorEnum_HCAPTCHA),
RefererInviteToken: models.ToPointer("Dm2gtT8dwMeM4Bc2E8FLIaA96VHOjPat"),
ReturnTo: models.ToPointer("http://mist.zendesk.com/hc/quickstart.pdf"),
State: models.ToPointer("California"),
Expand Down
24 changes: 12 additions & 12 deletions doc/controllers/installer.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ json := models.MapImportJson{
ImportAllFloorplans: models.ToPointer(false),
ImportHeight: models.ToPointer(true),
ImportOrientation: models.ToPointer(true),
VendorName: models.MapImportJsonVendorNameEnum("ekahau"),
VendorName: models.MapImportJsonVendorNameEnum_EKAHAU,
}

resp, err := installer.AddInstallerDeviceImage(ctx, orgId, imageName, deviceMac, &autoDeviceprofileAssignment, nil, nil, &json)
Expand Down Expand Up @@ -298,8 +298,8 @@ body := models.Map{
},
},
},
Type: models.ToPointer(models.MapTypeEnum("image")),
View: models.NewOptional(models.ToPointer(models.MapViewEnum("roadmap"))),
Type: models.ToPointer(models.MapTypeEnum_IMAGE),
View: models.NewOptional(models.ToPointer(models.MapViewEnum_ROADMAP)),
WallPath: models.ToPointer(models.MapWallPath{
Coordinate: models.ToPointer("string"),
Nodes: []models.MapNode{
Expand Down Expand Up @@ -413,23 +413,23 @@ body := models.VirtualChassisConfig{
"xe-0/1/0",
"xe-0/1/1",
},
VcRole: models.VirtualChassisConfigMemberVcRoleEnum("master"),
VcRole: models.VirtualChassisConfigMemberVcRoleEnum_MASTER,
},
models.VirtualChassisConfigMember{
Mac: "8396cd006c8c",
VcPorts: []string{
"xe-0/1/0",
"xe-0/1/1",
},
VcRole: models.VirtualChassisConfigMemberVcRoleEnum("backup"),
VcRole: models.VirtualChassisConfigMemberVcRoleEnum_BACKUP,
},
models.VirtualChassisConfigMember{
Mac: "8396cd00888c",
VcPorts: []string{
"xe-0/1/0",
"xe-0/1/1",
},
VcRole: models.VirtualChassisConfigMemberVcRoleEnum("linecard"),
VcRole: models.VirtualChassisConfigMemberVcRoleEnum_LINECARD,
},
},
}
Expand Down Expand Up @@ -1174,7 +1174,7 @@ json := models.MapImportJson{
ImportAllFloorplans: models.ToPointer(false),
ImportHeight: models.ToPointer(true),
ImportOrientation: models.ToPointer(true),
VendorName: models.MapImportJsonVendorNameEnum("ekahau"),
VendorName: models.MapImportJsonVendorNameEnum_EKAHAU,
}

apiResponse, err := installer.ImportInstallerMap(ctx, orgId, siteName, &autoDeviceprofileAssignment, nil, nil, &json)
Expand Down Expand Up @@ -1321,7 +1321,7 @@ ctx := context.Background()

orgId := uuid.MustParse("000000ab-00ab-00ab-00ab-0000000000ab")

mType := models.DeviceTypeEnum("ap")
mType := models.DeviceTypeEnum_AP

apiResponse, err := installer.ListInstallerDeviceProfiles(ctx, orgId, &mType)
if err != nil {
Expand Down Expand Up @@ -2108,7 +2108,7 @@ body := models.Map{
OriginX: models.ToPointer(35),
OriginY: models.ToPointer(60),
Ppm: models.ToPointer(float64(40.94)),
Type: models.ToPointer(models.MapTypeEnum("image")),
Type: models.ToPointer(models.MapTypeEnum_IMAGE),
UseAutoOrientation: models.ToPointer(false),
UseAutoPlacement: models.ToPointer(false),
Width: models.ToPointer(1250),
Expand Down Expand Up @@ -2237,7 +2237,7 @@ body := models.VirtualChassisUpdate{
"xe-0/1/0",
"xe-0/1/1",
},
VcRole: models.ToPointer(models.VirtualChassisMemberUpdateVcRoleEnum("linecard")),
VcRole: models.ToPointer(models.VirtualChassisMemberUpdateVcRoleEnum_LINECARD),
},
models.VirtualChassisMemberUpdate{
Mac: models.ToPointer("8396cd00777c"),
Expand All @@ -2246,10 +2246,10 @@ body := models.VirtualChassisUpdate{
"xe-0/1/0",
"xe-0/1/1",
},
VcRole: models.ToPointer(models.VirtualChassisMemberUpdateVcRoleEnum("linecard")),
VcRole: models.ToPointer(models.VirtualChassisMemberUpdateVcRoleEnum_LINECARD),
},
},
Op: models.ToPointer(models.VirtualChassisUpdateOpEnum("add")),
Op: models.ToPointer(models.VirtualChassisUpdateOpEnum_ADD),
}

apiResponse, err := installer.UpdateInstallerVirtualChassisMember(ctx, orgId, fpc0Mac, &body)
Expand Down
16 changes: 8 additions & 8 deletions doc/controllers/ms-ps-admins.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ body := models.Admin{
OrggroupIds: []uuid.UUID{
uuid.MustParse("b069b358-4c97-5319-1f8c-7c5ca64d6ab1"),
},
Role: models.AdminPrivilegeRoleEnum("admin"),
Scope: models.AdminPrivilegeScopeEnum("org"),
Role: models.AdminPrivilegeRoleEnum_ADMIN,
Scope: models.AdminPrivilegeScopeEnum_ORG,
SiteId: models.ToPointer(uuid.MustParse("b069b358-4c97-5319-1f8c-7c5ca64d6ab1")),
SitegroupIds: []uuid.UUID{
uuid.MustParse("b069b358-4c97-5319-1f8c-7c5ca64d6ab1"),
Expand Down Expand Up @@ -437,15 +437,15 @@ body := models.Admin{
Privileges: []models.AdminPrivilege{
models.AdminPrivilege{
OrgId: models.ToPointer(uuid.MustParse("b069b358-4c97-5319-1f8c-7c5ca64d6ab1")),
Role: models.AdminPrivilegeRoleEnum("admin"),
Scope: models.AdminPrivilegeScopeEnum("org"),
Role: models.AdminPrivilegeRoleEnum_ADMIN,
Scope: models.AdminPrivilegeScopeEnum_ORG,
SitegroupIds: []uuid.UUID{
uuid.MustParse("b069b358-4c97-5319-1f8c-7c5ca64d6ab1"),
},
},
models.AdminPrivilege{
Role: models.AdminPrivilegeRoleEnum("admin"),
Scope: models.AdminPrivilegeScopeEnum("site"),
Role: models.AdminPrivilegeRoleEnum_ADMIN,
Scope: models.AdminPrivilegeScopeEnum_SITE,
SiteId: models.ToPointer(uuid.MustParse("b069b358-4c97-5319-1f8c-7c5ca64d6ab1")),
},
},
Expand Down Expand Up @@ -550,8 +550,8 @@ body := models.Admin{
OrggroupIds: []uuid.UUID{
uuid.MustParse("b069b358-4c97-5319-1f8c-7c5ca64d6ab1"),
},
Role: models.AdminPrivilegeRoleEnum("admin"),
Scope: models.AdminPrivilegeScopeEnum("org"),
Role: models.AdminPrivilegeRoleEnum_ADMIN,
Scope: models.AdminPrivilegeScopeEnum_ORG,
SiteId: models.ToPointer(uuid.MustParse("b069b358-4c97-5319-1f8c-7c5ca64d6ab1")),
SitegroupIds: []uuid.UUID{
uuid.MustParse("b069b358-4c97-5319-1f8c-7c5ca64d6ab1"),
Expand Down
2 changes: 1 addition & 1 deletion doc/controllers/ms-ps-licenses.md
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ ctx := context.Background()
mspId := uuid.MustParse("000000ab-00ab-00ab-00ab-0000000000ab")

body := models.MspLicenseAction{
Op: models.MspLicenseActionOperationEnum("delete"),
Op: models.MspLicenseActionOperationEnum_DELETE,
SubscriptionId: models.ToPointer("SUB-0000144"),
}

Expand Down
2 changes: 1 addition & 1 deletion doc/controllers/ms-ps-logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ ctx := context.Background()

mspId := uuid.MustParse("000000ab-00ab-00ab-00ab-0000000000ab")

distinct := models.MspLogsCountDistinctEnum("admin_name")
distinct := models.MspLogsCountDistinctEnum_ADMINNAME

apiResponse, err := mSPsLogs.CountMspAuditLogs(ctx, mspId, &distinct)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion doc/controllers/ms-ps-marvis.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ ctx := context.Background()

mspId := uuid.MustParse("000000ab-00ab-00ab-00ab-0000000000ab")

distinct := models.MspMarvisSuggestionsCountDistinctEnum("org_id")
distinct := models.MspMarvisSuggestionsCountDistinctEnum_ORGID

limit := 100

Expand Down
2 changes: 1 addition & 1 deletion doc/controllers/ms-ps-orgs.md
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ ctx := context.Background()
mspId := uuid.MustParse("000000ab-00ab-00ab-00ab-0000000000ab")

body := models.MspOrgChange{
Op: models.MspOrgChangeOperationEnum("assign"),
Op: models.MspOrgChangeOperationEnum_ASSIGN,
OrgIds: []string{
"2b069b358-4c97-5319-1f8c-7c5ca64d6ab1",
},
Expand Down
8 changes: 4 additions & 4 deletions doc/controllers/ms-ps-sso-roles.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ body := models.SsoRoleMsp{
Name: "name6",
Privileges: []models.PrivilegeMsp{
models.PrivilegeMsp{
Role: models.PrivilegeMspRoleEnum("admin"),
Scope: models.PrivilegeMspScopeEnum("org"),
Role: models.PrivilegeMspRoleEnum_ADMIN,
Scope: models.PrivilegeMspScopeEnum_ORG,
},
},
}
Expand Down Expand Up @@ -240,8 +240,8 @@ body := models.SsoRoleMsp{
Name: "name6",
Privileges: []models.PrivilegeMsp{
models.PrivilegeMsp{
Role: models.PrivilegeMspRoleEnum("admin"),
Scope: models.PrivilegeMspScopeEnum("org"),
Role: models.PrivilegeMspRoleEnum_ADMIN,
Scope: models.PrivilegeMspScopeEnum_ORG,
},
},
}
Expand Down
14 changes: 7 additions & 7 deletions doc/controllers/ms-ps-sso.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ ctx := context.Background()
mspId := uuid.MustParse("000000ab-00ab-00ab-00ab-0000000000ab")

body := models.Sso{
IdpType: models.ToPointer(models.SsoIdpTypeEnum("saml")),
IdpType: models.ToPointer(models.SsoIdpTypeEnum_SAML),
LdapBaseDn: models.ToPointer("DC=abc,DC=com"),
LdapBindDn: models.ToPointer("CN=nas,CN=users,DC=abc,DC=com"),
LdapBindPassword: models.ToPointer("secret"),
Expand All @@ -69,18 +69,18 @@ body := models.Sso{
"hostname",
"63.1.3.5",
},
LdapType: models.ToPointer(models.SsoLdapTypeEnum("azure")),
LdapType: models.ToPointer(models.SsoLdapTypeEnum_AZURE),
LdapUserFilter: models.ToPointer("(mail=%s)"),
MemberFilter: models.ToPointer("(CN=%s)"),
Name: "name6",
NameidFormat: models.ToPointer(models.SsoNameidFormatEnum("email")),
NameidFormat: models.ToPointer(models.SsoNameidFormatEnum_EMAIL),
OauthCcClientId: models.ToPointer("e60da615-7def-4c5a-8196-43675f45e174"),
OauthCcClientSecret: models.ToPointer("akL8Q~5kWFMVFYl4TFZ3fi~7cMdyDONi6cj01cpH"),
OauthPingIdentityRegion: models.ToPointer(models.OauthPingIdentityRegionEnum("us")),
OauthPingIdentityRegion: models.ToPointer(models.OauthPingIdentityRegionEnum_US),
OauthRopcClientId: models.ToPointer("9ce04c97-b5b1-4ec8-af17-f5ed42d2daf7"),
OauthRopcClientSecret: models.ToPointer("blM9R~6kWFMVFYl4TFZ3fi~8cMdyDONi6cj01dqI"),
OauthTenantId: models.ToPointer("dev-88336535"),
OauthType: models.ToPointer(models.SsoOauthTypeEnum("azure")),
OauthType: models.ToPointer(models.SsoOauthTypeEnum_AZURE),
RoleAttrFrom: models.ToPointer("Role"),
ScimEnabled: models.ToPointer(false),
ScimSecretToken: models.ToPointer("FBitbKPE1aecSloPGBuqqPxDUrFeZyZk"),
Expand Down Expand Up @@ -580,12 +580,12 @@ ssoId := uuid.MustParse("000000ab-00ab-00ab-00ab-0000000000ab")
body := models.Sso{
CustomLogoutUrl: models.ToPointer("string"),
IdpCert: models.ToPointer("string"),
IdpSignAlgo: models.ToPointer(models.SsoIdpSignAlgoEnum("sha256")),
IdpSignAlgo: models.ToPointer(models.SsoIdpSignAlgoEnum_SHA256),
IdpSsoUrl: models.ToPointer("string"),
IgnoreUnmatchedRoles: models.ToPointer(true),
Issuer: models.ToPointer("string"),
Name: "string",
NameidFormat: models.ToPointer(models.SsoNameidFormatEnum("email")),
NameidFormat: models.ToPointer(models.SsoNameidFormatEnum_EMAIL),
}

apiResponse, err := mSPsSSO.UpdateMspSso(ctx, mspId, ssoId, &body)
Expand Down
2 changes: 1 addition & 1 deletion doc/controllers/ms-ps-tickets.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ ctx := context.Background()

mspId := uuid.MustParse("000000ab-00ab-00ab-00ab-0000000000ab")

distinct := models.MspTicketsCountDistinctEnum("status")
distinct := models.MspTicketsCountDistinctEnum_STATUS

apiResponse, err := mSPsTickets.CountMspTickets(ctx, mspId, &distinct)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion doc/controllers/ms-ps.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ ctx := context.Background()

mspId := uuid.MustParse("000000ab-00ab-00ab-00ab-0000000000ab")

mType := models.MspSearchTypeEnum("orgs")
mType := models.MspSearchTypeEnum_ORGS

q := "search"

Expand Down
14 changes: 7 additions & 7 deletions doc/controllers/orgs-admins.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ body := models.Admin{
OrggroupIds: []uuid.UUID{
uuid.MustParse("b069b358-4c97-5319-1f8c-7c5ca64d6ab1"),
},
Role: models.AdminPrivilegeRoleEnum("admin"),
Scope: models.AdminPrivilegeScopeEnum("org"),
Role: models.AdminPrivilegeRoleEnum_ADMIN,
Scope: models.AdminPrivilegeScopeEnum_ORG,
SiteId: models.ToPointer(uuid.MustParse("b069b358-4c97-5319-1f8c-7c5ca64d6ab1")),
SitegroupIds: []uuid.UUID{
uuid.MustParse("b069b358-4c97-5319-1f8c-7c5ca64d6ab1"),
Expand Down Expand Up @@ -328,13 +328,13 @@ body := models.Admin{
OrggroupIds: []uuid.UUID{
uuid.MustParse("497f6eca-6276-4993-bfeb-53d5bbba6f08"),
},
Role: models.AdminPrivilegeRoleEnum("admin"),
Scope: models.AdminPrivilegeScopeEnum("org"),
Role: models.AdminPrivilegeRoleEnum_ADMIN,
Scope: models.AdminPrivilegeScopeEnum_ORG,
SiteId: models.ToPointer(uuid.MustParse("72771e6a-6f5e-4de4-a5b9-1266c4197811")),
SitegroupIds: []uuid.UUID{
uuid.MustParse("497f6eca-6276-4993-bfeb-53d6bbba6f08"),
},
Views: models.ToPointer(models.AdminPrivilegeViewEnum("switch_admin")),
Views: models.ToPointer(models.AdminPrivilegeViewEnum_SWITCHADMIN),
},
},
}
Expand Down Expand Up @@ -438,8 +438,8 @@ body := models.Admin{
OrggroupIds: []uuid.UUID{
uuid.MustParse("b069b358-4c97-5319-1f8c-7c5ca64d6ab1"),
},
Role: models.AdminPrivilegeRoleEnum("admin"),
Scope: models.AdminPrivilegeScopeEnum("org"),
Role: models.AdminPrivilegeRoleEnum_ADMIN,
Scope: models.AdminPrivilegeScopeEnum_ORG,
SiteId: models.ToPointer(uuid.MustParse("b069b358-4c97-5319-1f8c-7c5ca64d6ab1")),
SitegroupIds: []uuid.UUID{
uuid.MustParse("b069b358-4c97-5319-1f8c-7c5ca64d6ab1"),
Expand Down
4 changes: 2 additions & 2 deletions doc/controllers/orgs-alarm-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ ctx := context.Background()

orgId := uuid.MustParse("000000ab-00ab-00ab-00ab-0000000000ab")

scope := models.SuppressedAlarmScopeEnum("site")
scope := models.SuppressedAlarmScopeEnum_SITE

apiResponse, err := orgsAlarmTemplates.ListOrgSuppressedAlarms(ctx, orgId, &scope)
if err != nil {
Expand Down Expand Up @@ -382,7 +382,7 @@ orgId := uuid.MustParse("000000ab-00ab-00ab-00ab-0000000000ab")
body := models.SuppressedAlarm{
Duration: models.ToPointer(float64(3600)),
ScheduledTime: models.ToPointer(1678232980),
Scope: models.ToPointer(models.SuppressedAlarmScopeEnum("org")),
Scope: models.ToPointer(models.SuppressedAlarmScopeEnum_ORG),
}

resp, err := orgsAlarmTemplates.SuppressOrgAlarm(ctx, orgId, &body)
Expand Down
4 changes: 2 additions & 2 deletions doc/controllers/orgs-antivirus-profiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ ctx := context.Background()
orgId := uuid.MustParse("000000ab-00ab-00ab-00ab-0000000000ab")

body := models.Avprofile{
FallbackAction: models.ToPointer(models.AvprofileFallbackActionEnum("permit")),
FallbackAction: models.ToPointer(models.AvprofileFallbackActionEnum_PERMIT),
MimeWhitelist: []string{
},
Name: "av-custom",
Expand Down Expand Up @@ -324,7 +324,7 @@ orgId := uuid.MustParse("000000ab-00ab-00ab-00ab-0000000000ab")
avprofilesId := uuid.MustParse("000000ab-00ab-00ab-00ab-0000000000ab")

body := models.Avprofile{
FallbackAction: models.ToPointer(models.AvprofileFallbackActionEnum("permit")),
FallbackAction: models.ToPointer(models.AvprofileFallbackActionEnum_PERMIT),
MimeWhitelist: []string{
},
Name: "av-custom",
Expand Down
Loading

0 comments on commit 6d45586

Please sign in to comment.