Documentation ¶
Index ¶
- type ApplicationsClient
- func (c *ApplicationsClient) AddKey(ctx context.Context, applicationId string, keyCredential models.KeyCredential) (*models.KeyCredential, int, error)
- func (c *ApplicationsClient) AddOwners(ctx context.Context, application *models.Application) (int, error)
- func (c *ApplicationsClient) Create(ctx context.Context, application models.Application) (*models.Application, int, error)
- func (c *ApplicationsClient) Delete(ctx context.Context, id string) (int, error)
- func (c *ApplicationsClient) Get(ctx context.Context, id string) (*models.Application, int, error)
- func (c *ApplicationsClient) GetOwner(ctx context.Context, applicationId, ownerId string) (*string, int, error)
- func (c *ApplicationsClient) List(ctx context.Context, filter string) (*[]models.Application, int, error)
- func (c *ApplicationsClient) ListOwners(ctx context.Context, id string) (*[]string, int, error)
- func (c *ApplicationsClient) RemoveOwners(ctx context.Context, applicationId string, ownerIds *[]string) (int, error)
- func (c *ApplicationsClient) Update(ctx context.Context, application models.Application) (int, error)
- type DomainsClient
- type GroupsClient
- func (c *GroupsClient) AddMembers(ctx context.Context, group *models.Group) (int, error)
- func (c *GroupsClient) AddOwners(ctx context.Context, group *models.Group) (int, error)
- func (c *GroupsClient) Create(ctx context.Context, group models.Group) (*models.Group, int, error)
- func (c *GroupsClient) Delete(ctx context.Context, id string) (int, error)
- func (c *GroupsClient) Get(ctx context.Context, id string) (*models.Group, int, error)
- func (c *GroupsClient) GetMember(ctx context.Context, groupId, memberId string) (*string, int, error)
- func (c *GroupsClient) GetOwner(ctx context.Context, groupId, ownerId string) (*string, int, error)
- func (c *GroupsClient) List(ctx context.Context, filter string) (*[]models.Group, int, error)
- func (c *GroupsClient) ListMembers(ctx context.Context, id string) (*[]string, int, error)
- func (c *GroupsClient) ListOwners(ctx context.Context, id string) (*[]string, int, error)
- func (c *GroupsClient) RemoveMembers(ctx context.Context, id string, memberIds *[]string) (int, error)
- func (c *GroupsClient) RemoveOwners(ctx context.Context, id string, ownerIds *[]string) (int, error)
- func (c *GroupsClient) Update(ctx context.Context, group models.Group) (int, error)
- type InvitationsClient
- type MeClient
- type ServicePrincipalsClient
- func (c *ServicePrincipalsClient) AddOwners(ctx context.Context, servicePrincipal *models.ServicePrincipal) (int, error)
- func (c *ServicePrincipalsClient) Create(ctx context.Context, servicePrincipal models.ServicePrincipal) (*models.ServicePrincipal, int, error)
- func (c *ServicePrincipalsClient) Delete(ctx context.Context, id string) (int, error)
- func (c *ServicePrincipalsClient) Get(ctx context.Context, id string) (*models.ServicePrincipal, int, error)
- func (c *ServicePrincipalsClient) GetOwner(ctx context.Context, servicePrincipalId, ownerId string) (*string, int, error)
- func (c *ServicePrincipalsClient) List(ctx context.Context, filter string) (*[]models.ServicePrincipal, int, error)
- func (c *ServicePrincipalsClient) ListGroupMemberships(ctx context.Context, id string, filter string) (*[]models.Group, int, error)
- func (c *ServicePrincipalsClient) ListOwners(ctx context.Context, id string) (*[]string, int, error)
- func (c *ServicePrincipalsClient) RemoveOwners(ctx context.Context, servicePrincipalId string, ownerIds *[]string) (int, error)
- func (c *ServicePrincipalsClient) Update(ctx context.Context, servicePrincipal models.ServicePrincipal) (int, error)
- type UsersClient
- func (c *UsersClient) Create(ctx context.Context, user models.User) (*models.User, int, error)
- func (c *UsersClient) Delete(ctx context.Context, id string) (int, error)
- func (c *UsersClient) Get(ctx context.Context, id string) (*models.User, int, error)
- func (c *UsersClient) List(ctx context.Context, filter string) (*[]models.User, int, error)
- func (c *UsersClient) ListGroupMemberships(ctx context.Context, id string, filter string) (*[]models.Group, int, error)
- func (c *UsersClient) Update(ctx context.Context, user models.User) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationsClient ¶
ApplicationsClient performs operations on Applications.
func NewApplicationsClient ¶
func NewApplicationsClient(tenantId string) *ApplicationsClient
NewApplicationsClient returns a new ApplicationsClient
func (*ApplicationsClient) AddKey ¶
func (c *ApplicationsClient) AddKey(ctx context.Context, applicationId string, keyCredential models.KeyCredential) (*models.KeyCredential, int, error)
AddKey appends a new key credential to an Application.
func (*ApplicationsClient) AddOwners ¶
func (c *ApplicationsClient) AddOwners(ctx context.Context, application *models.Application) (int, error)
AddOwners adds a new owner to an Application. First populate the Owners field of the Application using the AppendOwner method of the model, then call this method.
func (*ApplicationsClient) Create ¶
func (c *ApplicationsClient) Create(ctx context.Context, application models.Application) (*models.Application, int, error)
Create creates a new Application.
func (*ApplicationsClient) Get ¶
func (c *ApplicationsClient) Get(ctx context.Context, id string) (*models.Application, int, error)
Get retrieves an Application manifest.
func (*ApplicationsClient) GetOwner ¶
func (c *ApplicationsClient) GetOwner(ctx context.Context, applicationId, ownerId string) (*string, int, error)
GetOwner retrieves a single owner for the specified Application. applicationId is the object ID of the application. ownerId is the object ID of the owning object.
func (*ApplicationsClient) List ¶
func (c *ApplicationsClient) List(ctx context.Context, filter string) (*[]models.Application, int, error)
List returns a list of Applications, optionally filtered using OData.
func (*ApplicationsClient) ListOwners ¶
ListOwners retrieves the owners of the specified Application. id is the object ID of the application.
func (*ApplicationsClient) RemoveOwners ¶
func (c *ApplicationsClient) RemoveOwners(ctx context.Context, applicationId string, ownerIds *[]string) (int, error)
RemoveOwners removes owners from an Application. applicationId is the object ID of the application. ownerIds is a *[]string containing object IDs of owners to remove.
func (*ApplicationsClient) Update ¶
func (c *ApplicationsClient) Update(ctx context.Context, application models.Application) (int, error)
Update amends the manifest of an existing Application.
type DomainsClient ¶
DomainsClient performs operations on Domains.
func NewDomainsClient ¶
func NewDomainsClient(tenantId string) *DomainsClient
NewDomainsClient returns a new DomainsClient.
type GroupsClient ¶
GroupsClient performs operations on Groups.
func NewGroupsClient ¶
func NewGroupsClient(tenantId string) *GroupsClient
NewGroupsClient returns a new GroupsClient.
func (*GroupsClient) AddMembers ¶
AddMembers adds a new member to a Group. First populate the Members field of the Group using the AppendMember method of the model, then call this method.
func (*GroupsClient) AddOwners ¶
AddOwners adds a new owner to a Group. First populate the Owners field of the Group using the AppendOwner method of the model, then call this method.
func (*GroupsClient) GetMember ¶
func (c *GroupsClient) GetMember(ctx context.Context, groupId, memberId string) (*string, int, error)
GetMember retrieves a single member of the specified Group. groupId is the object ID of the group. memberId is the object ID of the member object.
func (*GroupsClient) GetOwner ¶
GetOwner retrieves a single owner for the specified Group. groupId is the object ID of the group. ownerId is the object ID of the owning object.
func (*GroupsClient) ListMembers ¶
ListMembers retrieves the members of the specified Group. id is the object ID of the group.
func (*GroupsClient) ListOwners ¶
ListOwners retrieves the owners of the specified Group. id is the object ID of the group.
func (*GroupsClient) RemoveMembers ¶
func (c *GroupsClient) RemoveMembers(ctx context.Context, id string, memberIds *[]string) (int, error)
RemoveMembers removes members from a Group. groupId is the object ID of the group. memberIds is a *[]string containing object IDs of members to remove.
func (*GroupsClient) RemoveOwners ¶
func (c *GroupsClient) RemoveOwners(ctx context.Context, id string, ownerIds *[]string) (int, error)
RemoveOwners removes owners from a Group. groupId is the object ID of the group. ownerIds is a *[]string containing object IDs of owners to remove.
type InvitationsClient ¶ added in v0.9.0
InvitationsClient performs operations on Invitations.
func NewInvitationsClient ¶ added in v0.9.0
func NewInvitationsClient(tenantId string) *InvitationsClient
NewInvitationsClient returns a new InvitationsClient.
func (*InvitationsClient) Create ¶ added in v0.9.0
func (c *InvitationsClient) Create(ctx context.Context, invitation models.Invitation) (*models.Invitation, int, error)
Create creates a new Invitation.
type MeClient ¶
MeClient performs operations on the authenticated user.
type ServicePrincipalsClient ¶
ServicePrincipalsClient performs operations on Service Principals.
func NewServicePrincipalsClient ¶
func NewServicePrincipalsClient(tenantId string) *ServicePrincipalsClient
NewServicePrincipalsClient returns a new ServicePrincipalsClient.
func (*ServicePrincipalsClient) AddOwners ¶
func (c *ServicePrincipalsClient) AddOwners(ctx context.Context, servicePrincipal *models.ServicePrincipal) (int, error)
AddOwners adds a new owner to a Service Principal. First populate the Owners field of the ServicePrincipal using the AppendOwner method of the model, then call this method.
func (*ServicePrincipalsClient) Create ¶
func (c *ServicePrincipalsClient) Create(ctx context.Context, servicePrincipal models.ServicePrincipal) (*models.ServicePrincipal, int, error)
Create creates a new Service Principal.
func (*ServicePrincipalsClient) Get ¶
func (c *ServicePrincipalsClient) Get(ctx context.Context, id string) (*models.ServicePrincipal, int, error)
Get retrieves a Service Principal.
func (*ServicePrincipalsClient) GetOwner ¶
func (c *ServicePrincipalsClient) GetOwner(ctx context.Context, servicePrincipalId, ownerId string) (*string, int, error)
GetOwner retrieves a single owner for the specified Service Principal. servicePrincipalId is the object ID of the service principal. ownerId is the object ID of the owning object.
func (*ServicePrincipalsClient) List ¶
func (c *ServicePrincipalsClient) List(ctx context.Context, filter string) (*[]models.ServicePrincipal, int, error)
List returns a list of Service Principals, optionally filtered using OData.
func (*ServicePrincipalsClient) ListGroupMemberships ¶ added in v0.4.0
func (c *ServicePrincipalsClient) ListGroupMemberships(ctx context.Context, id string, filter string) (*[]models.Group, int, error)
ListGroupMemberships returns a list of Groups the Service Principal is member of, optionally filtered using OData.
func (*ServicePrincipalsClient) ListOwners ¶
func (c *ServicePrincipalsClient) ListOwners(ctx context.Context, id string) (*[]string, int, error)
ListOwners retrieves the owners of the specified Service Principal. id is the object ID of the service principal.
func (*ServicePrincipalsClient) RemoveOwners ¶
func (c *ServicePrincipalsClient) RemoveOwners(ctx context.Context, servicePrincipalId string, ownerIds *[]string) (int, error)
RemoveOwners removes owners from a Service Principal. servicePrincipalId is the object ID of the service principal. ownerIds is a *[]string containing object IDs of owners to remove.
func (*ServicePrincipalsClient) Update ¶
func (c *ServicePrincipalsClient) Update(ctx context.Context, servicePrincipal models.ServicePrincipal) (int, error)
Update amends an existing Service Principal.
type UsersClient ¶
UsersClient performs operations on Users.
func NewUsersClient ¶
func NewUsersClient(tenantId string) *UsersClient
NewUsersClient returns a new UsersClient.