graphrbac

package
v11.1.0-beta+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package graphrbac implements the Azure ARM Graphrbac service API version 1.6.

The Graph RBAC Management Client

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Graphrbac
	DefaultBaseURI = "https://graph.windows.net"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type AADObject

type AADObject struct {
	autorest.Response       `json:"-"`
	ObjectID                *string   `json:"objectId,omitempty"`
	ObjectType              *string   `json:"objectType,omitempty"`
	DisplayName             *string   `json:"displayName,omitempty"`
	UserPrincipalName       *string   `json:"userPrincipalName,omitempty"`
	Mail                    *string   `json:"mail,omitempty"`
	MailEnabled             *bool     `json:"mailEnabled,omitempty"`
	MailNickname            *string   `json:"mailNickname,omitempty"`
	SecurityEnabled         *bool     `json:"securityEnabled,omitempty"`
	SignInName              *string   `json:"signInName,omitempty"`
	ServicePrincipalNames   *[]string `json:"servicePrincipalNames,omitempty"`
	UserType                *string   `json:"userType,omitempty"`
	UsageLocation           *string   `json:"usageLocation,omitempty"`
	AppID                   *string   `json:"appId,omitempty"`
	AppPermissions          *[]string `json:"appPermissions,omitempty"`
	AvailableToOtherTenants *bool     `json:"availableToOtherTenants,omitempty"`
	IdentifierUris          *[]string `json:"identifierUris,omitempty"`
	ReplyUrls               *[]string `json:"replyUrls,omitempty"`
	Homepage                *string   `json:"homepage,omitempty"`
}

AADObject is the properties of an Active Directory object.

type ADGroup

type ADGroup struct {
	autorest.Response `json:"-"`
	ObjectID          *string `json:"objectId,omitempty"`
	ObjectType        *string `json:"objectType,omitempty"`
	DisplayName       *string `json:"displayName,omitempty"`
	SecurityEnabled   *bool   `json:"securityEnabled,omitempty"`
	Mail              *string `json:"mail,omitempty"`
}

ADGroup is active Directory group information.

type Application

type Application struct {
	autorest.Response       `json:"-"`
	ObjectID                *string   `json:"objectId,omitempty"`
	ObjectType              *string   `json:"objectType,omitempty"`
	AppID                   *string   `json:"appId,omitempty"`
	AppPermissions          *[]string `json:"appPermissions,omitempty"`
	AvailableToOtherTenants *bool     `json:"availableToOtherTenants,omitempty"`
	DisplayName             *string   `json:"displayName,omitempty"`
	IdentifierUris          *[]string `json:"identifierUris,omitempty"`
	ReplyUrls               *[]string `json:"replyUrls,omitempty"`
	Homepage                *string   `json:"homepage,omitempty"`
	Oauth2AllowImplicitFlow *bool     `json:"oauth2AllowImplicitFlow,omitempty"`
}

Application is active Directory application information.

type ApplicationCreateParameters

type ApplicationCreateParameters struct {
	AvailableToOtherTenants *bool                     `json:"availableToOtherTenants,omitempty"`
	DisplayName             *string                   `json:"displayName,omitempty"`
	Homepage                *string                   `json:"homepage,omitempty"`
	IdentifierUris          *[]string                 `json:"identifierUris,omitempty"`
	ReplyUrls               *[]string                 `json:"replyUrls,omitempty"`
	KeyCredentials          *[]KeyCredential          `json:"keyCredentials,omitempty"`
	PasswordCredentials     *[]PasswordCredential     `json:"passwordCredentials,omitempty"`
	Oauth2AllowImplicitFlow *bool                     `json:"oauth2AllowImplicitFlow,omitempty"`
	RequiredResourceAccess  *[]RequiredResourceAccess `json:"requiredResourceAccess,omitempty"`
}

ApplicationCreateParameters is request parameters for creating a new application.

type ApplicationListResult

type ApplicationListResult struct {
	autorest.Response `json:"-"`
	Value             *[]Application `json:"value,omitempty"`
	OdataNextLink     *string        `json:"odata.nextLink,omitempty"`
}

ApplicationListResult is application list operation result.

type ApplicationUpdateParameters

type ApplicationUpdateParameters struct {
	AvailableToOtherTenants *bool                     `json:"availableToOtherTenants,omitempty"`
	DisplayName             *string                   `json:"displayName,omitempty"`
	Homepage                *string                   `json:"homepage,omitempty"`
	IdentifierUris          *[]string                 `json:"identifierUris,omitempty"`
	ReplyUrls               *[]string                 `json:"replyUrls,omitempty"`
	KeyCredentials          *[]KeyCredential          `json:"keyCredentials,omitempty"`
	PasswordCredentials     *[]PasswordCredential     `json:"passwordCredentials,omitempty"`
	Oauth2AllowImplicitFlow *bool                     `json:"oauth2AllowImplicitFlow,omitempty"`
	RequiredResourceAccess  *[]RequiredResourceAccess `json:"requiredResourceAccess,omitempty"`
}

ApplicationUpdateParameters is request parameters for updating an existing application.

type ApplicationsClient

type ApplicationsClient struct {
	ManagementClient
}

ApplicationsClient is the the Graph RBAC Management Client

func NewApplicationsClient

func NewApplicationsClient(tenantID string) ApplicationsClient

NewApplicationsClient creates an instance of the ApplicationsClient client.

func NewApplicationsClientWithBaseURI

func NewApplicationsClientWithBaseURI(baseURI string, tenantID string) ApplicationsClient

NewApplicationsClientWithBaseURI creates an instance of the ApplicationsClient client.

func (ApplicationsClient) Create

func (client ApplicationsClient) Create(parameters ApplicationCreateParameters) (result Application, err error)

Create create a new application.

parameters is the parameters for creating an application.

func (ApplicationsClient) CreatePreparer

func (client ApplicationsClient) CreatePreparer(parameters ApplicationCreateParameters) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ApplicationsClient) CreateResponder

func (client ApplicationsClient) CreateResponder(resp *http.Response) (result Application, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (ApplicationsClient) CreateSender

func (client ApplicationsClient) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (ApplicationsClient) Delete

func (client ApplicationsClient) Delete(applicationObjectID string) (result autorest.Response, err error)

Delete delete an application.

applicationObjectID is application object ID.

func (ApplicationsClient) DeletePreparer

func (client ApplicationsClient) DeletePreparer(applicationObjectID string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ApplicationsClient) DeleteResponder

func (client ApplicationsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ApplicationsClient) DeleteSender

func (client ApplicationsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ApplicationsClient) Get

func (client ApplicationsClient) Get(applicationObjectID string) (result Application, err error)

Get get an application by object ID.

applicationObjectID is application object ID.

func (ApplicationsClient) GetPreparer

func (client ApplicationsClient) GetPreparer(applicationObjectID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ApplicationsClient) GetResponder

func (client ApplicationsClient) GetResponder(resp *http.Response) (result Application, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ApplicationsClient) GetSender

func (client ApplicationsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ApplicationsClient) List

func (client ApplicationsClient) List(filter string) (result ApplicationListResult, err error)

List lists applications by filter parameters.

filter is the filters to apply to the operation.

func (ApplicationsClient) ListComplete

func (client ApplicationsClient) ListComplete(filter string, cancel <-chan struct{}) (<-chan Application, <-chan error)

ListComplete gets all elements from the list without paging.

func (ApplicationsClient) ListKeyCredentials

func (client ApplicationsClient) ListKeyCredentials(applicationObjectID string) (result KeyCredentialListResult, err error)

ListKeyCredentials get the keyCredentials associated with an application.

applicationObjectID is application object ID.

func (ApplicationsClient) ListKeyCredentialsPreparer

func (client ApplicationsClient) ListKeyCredentialsPreparer(applicationObjectID string) (*http.Request, error)

ListKeyCredentialsPreparer prepares the ListKeyCredentials request.

func (ApplicationsClient) ListKeyCredentialsResponder

func (client ApplicationsClient) ListKeyCredentialsResponder(resp *http.Response) (result KeyCredentialListResult, err error)

ListKeyCredentialsResponder handles the response to the ListKeyCredentials request. The method always closes the http.Response Body.

func (ApplicationsClient) ListKeyCredentialsSender

func (client ApplicationsClient) ListKeyCredentialsSender(req *http.Request) (*http.Response, error)

ListKeyCredentialsSender sends the ListKeyCredentials request. The method will close the http.Response Body if it receives an error.

func (ApplicationsClient) ListNext

func (client ApplicationsClient) ListNext(nextLink string) (result ApplicationListResult, err error)

ListNext gets a list of applications from the current tenant.

nextLink is next link for the list operation.

func (ApplicationsClient) ListNextPreparer

func (client ApplicationsClient) ListNextPreparer(nextLink string) (*http.Request, error)

ListNextPreparer prepares the ListNext request.

func (ApplicationsClient) ListNextResponder

func (client ApplicationsClient) ListNextResponder(resp *http.Response) (result ApplicationListResult, err error)

ListNextResponder handles the response to the ListNext request. The method always closes the http.Response Body.

func (ApplicationsClient) ListNextSender

func (client ApplicationsClient) ListNextSender(req *http.Request) (*http.Response, error)

ListNextSender sends the ListNext request. The method will close the http.Response Body if it receives an error.

func (ApplicationsClient) ListPasswordCredentials

func (client ApplicationsClient) ListPasswordCredentials(applicationObjectID string) (result PasswordCredentialListResult, err error)

ListPasswordCredentials get the passwordCredentials associated with an application.

applicationObjectID is application object ID.

func (ApplicationsClient) ListPasswordCredentialsPreparer

func (client ApplicationsClient) ListPasswordCredentialsPreparer(applicationObjectID string) (*http.Request, error)

ListPasswordCredentialsPreparer prepares the ListPasswordCredentials request.

func (ApplicationsClient) ListPasswordCredentialsResponder

func (client ApplicationsClient) ListPasswordCredentialsResponder(resp *http.Response) (result PasswordCredentialListResult, err error)

ListPasswordCredentialsResponder handles the response to the ListPasswordCredentials request. The method always closes the http.Response Body.

func (ApplicationsClient) ListPasswordCredentialsSender

func (client ApplicationsClient) ListPasswordCredentialsSender(req *http.Request) (*http.Response, error)

ListPasswordCredentialsSender sends the ListPasswordCredentials request. The method will close the http.Response Body if it receives an error.

func (ApplicationsClient) ListPreparer

func (client ApplicationsClient) ListPreparer(filter string) (*http.Request, error)

ListPreparer prepares the List request.

func (ApplicationsClient) ListResponder

func (client ApplicationsClient) ListResponder(resp *http.Response) (result ApplicationListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ApplicationsClient) ListSender

func (client ApplicationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (ApplicationsClient) Patch

func (client ApplicationsClient) Patch(applicationObjectID string, parameters ApplicationUpdateParameters) (result autorest.Response, err error)

Patch update an existing application.

applicationObjectID is application object ID. parameters is parameters to update an existing application.

func (ApplicationsClient) PatchPreparer

func (client ApplicationsClient) PatchPreparer(applicationObjectID string, parameters ApplicationUpdateParameters) (*http.Request, error)

PatchPreparer prepares the Patch request.

func (ApplicationsClient) PatchResponder

func (client ApplicationsClient) PatchResponder(resp *http.Response) (result autorest.Response, err error)

PatchResponder handles the response to the Patch request. The method always closes the http.Response Body.

func (ApplicationsClient) PatchSender

func (client ApplicationsClient) PatchSender(req *http.Request) (*http.Response, error)

PatchSender sends the Patch request. The method will close the http.Response Body if it receives an error.

func (ApplicationsClient) UpdateKeyCredentials

func (client ApplicationsClient) UpdateKeyCredentials(applicationObjectID string, parameters KeyCredentialsUpdateParameters) (result autorest.Response, err error)

UpdateKeyCredentials update the keyCredentials associated with an application.

applicationObjectID is application object ID. parameters is parameters to update the keyCredentials of an existing application.

func (ApplicationsClient) UpdateKeyCredentialsPreparer

func (client ApplicationsClient) UpdateKeyCredentialsPreparer(applicationObjectID string, parameters KeyCredentialsUpdateParameters) (*http.Request, error)

UpdateKeyCredentialsPreparer prepares the UpdateKeyCredentials request.

func (ApplicationsClient) UpdateKeyCredentialsResponder

func (client ApplicationsClient) UpdateKeyCredentialsResponder(resp *http.Response) (result autorest.Response, err error)

UpdateKeyCredentialsResponder handles the response to the UpdateKeyCredentials request. The method always closes the http.Response Body.

func (ApplicationsClient) UpdateKeyCredentialsSender

func (client ApplicationsClient) UpdateKeyCredentialsSender(req *http.Request) (*http.Response, error)

UpdateKeyCredentialsSender sends the UpdateKeyCredentials request. The method will close the http.Response Body if it receives an error.

func (ApplicationsClient) UpdatePasswordCredentials

func (client ApplicationsClient) UpdatePasswordCredentials(applicationObjectID string, parameters PasswordCredentialsUpdateParameters) (result autorest.Response, err error)

UpdatePasswordCredentials update passwordCredentials associated with an application.

applicationObjectID is application object ID. parameters is parameters to update passwordCredentials of an existing application.

func (ApplicationsClient) UpdatePasswordCredentialsPreparer

func (client ApplicationsClient) UpdatePasswordCredentialsPreparer(applicationObjectID string, parameters PasswordCredentialsUpdateParameters) (*http.Request, error)

UpdatePasswordCredentialsPreparer prepares the UpdatePasswordCredentials request.

func (ApplicationsClient) UpdatePasswordCredentialsResponder

func (client ApplicationsClient) UpdatePasswordCredentialsResponder(resp *http.Response) (result autorest.Response, err error)

UpdatePasswordCredentialsResponder handles the response to the UpdatePasswordCredentials request. The method always closes the http.Response Body.

func (ApplicationsClient) UpdatePasswordCredentialsSender

func (client ApplicationsClient) UpdatePasswordCredentialsSender(req *http.Request) (*http.Response, error)

UpdatePasswordCredentialsSender sends the UpdatePasswordCredentials request. The method will close the http.Response Body if it receives an error.

type CheckGroupMembershipParameters

type CheckGroupMembershipParameters struct {
	GroupID  *string `json:"groupId,omitempty"`
	MemberID *string `json:"memberId,omitempty"`
}

CheckGroupMembershipParameters is request parameters for IsMemberOf API call.

type CheckGroupMembershipResult

type CheckGroupMembershipResult struct {
	autorest.Response `json:"-"`
	Value             *bool `json:"value,omitempty"`
}

CheckGroupMembershipResult is server response for IsMemberOf API call

type Domain

type Domain struct {
	autorest.Response  `json:"-"`
	AuthenticationType *string `json:"authenticationType,omitempty"`
	IsDefault          *bool   `json:"isDefault,omitempty"`
	IsVerified         *bool   `json:"isVerified,omitempty"`
	Name               *string `json:"name,omitempty"`
}

Domain is active Directory Domain information.

type DomainListResult

type DomainListResult struct {
	autorest.Response `json:"-"`
	Value             *[]Domain `json:"value,omitempty"`
}

DomainListResult is server response for Get tenant domains API call.

type DomainsClient

type DomainsClient struct {
	ManagementClient
}

DomainsClient is the the Graph RBAC Management Client

func NewDomainsClient

func NewDomainsClient(tenantID string) DomainsClient

NewDomainsClient creates an instance of the DomainsClient client.

func NewDomainsClientWithBaseURI

func NewDomainsClientWithBaseURI(baseURI string, tenantID string) DomainsClient

NewDomainsClientWithBaseURI creates an instance of the DomainsClient client.

func (DomainsClient) Get

func (client DomainsClient) Get(domainName string) (result Domain, err error)

Get gets a specific domain in the current tenant.

domainName is name of the domain.

func (DomainsClient) GetPreparer

func (client DomainsClient) GetPreparer(domainName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (DomainsClient) GetResponder

func (client DomainsClient) GetResponder(resp *http.Response) (result Domain, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (DomainsClient) GetSender

func (client DomainsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (DomainsClient) List

func (client DomainsClient) List(filter string) (result DomainListResult, err error)

List gets a list of domains for the current tenant.

filter is the filter to apply to the operation.

func (DomainsClient) ListPreparer

func (client DomainsClient) ListPreparer(filter string) (*http.Request, error)

ListPreparer prepares the List request.

func (DomainsClient) ListResponder

func (client DomainsClient) ListResponder(resp *http.Response) (result DomainListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (DomainsClient) ListSender

func (client DomainsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type ErrorMessage

type ErrorMessage struct {
	Message *string `json:"value,omitempty"`
}

ErrorMessage is active Directory error message.

type GetObjectsParameters

type GetObjectsParameters struct {
	ObjectIds                        *[]string `json:"objectIds,omitempty"`
	Types                            *[]string `json:"types,omitempty"`
	IncludeDirectoryObjectReferences *bool     `json:"includeDirectoryObjectReferences,omitempty"`
}

GetObjectsParameters is request parameters for the GetObjectsByObjectIds API.

type GetObjectsResult

type GetObjectsResult struct {
	autorest.Response `json:"-"`
	Value             *[]AADObject `json:"value,omitempty"`
	OdataNextLink     *string      `json:"odata.nextLink,omitempty"`
}

GetObjectsResult is the response to an Active Directory object inquiry API request.

type GraphError

type GraphError struct {
	*OdataError `json:"odata.error,omitempty"`
}

GraphError is active Directory error information.

type GroupAddMemberParameters

type GroupAddMemberParameters struct {
	URL *string `json:"url,omitempty"`
}

GroupAddMemberParameters is request parameters for adding a member to a group.

type GroupCreateParameters

type GroupCreateParameters struct {
	DisplayName     *string `json:"displayName,omitempty"`
	MailEnabled     *bool   `json:"mailEnabled,omitempty"`
	MailNickname    *string `json:"mailNickname,omitempty"`
	SecurityEnabled *bool   `json:"securityEnabled,omitempty"`
}

GroupCreateParameters is request parameters for creating a new group.

type GroupGetMemberGroupsParameters

type GroupGetMemberGroupsParameters struct {
	SecurityEnabledOnly *bool `json:"securityEnabledOnly,omitempty"`
}

GroupGetMemberGroupsParameters is request parameters for GetMemberGroups API call.

type GroupGetMemberGroupsResult

type GroupGetMemberGroupsResult struct {
	autorest.Response `json:"-"`
	Value             *[]string `json:"value,omitempty"`
}

GroupGetMemberGroupsResult is server response for GetMemberGroups API call.

type GroupListResult

type GroupListResult struct {
	autorest.Response `json:"-"`
	Value             *[]ADGroup `json:"value,omitempty"`
	OdataNextLink     *string    `json:"odata.nextLink,omitempty"`
}

GroupListResult is server response for Get tenant groups API call

type GroupsClient

type GroupsClient struct {
	ManagementClient
}

GroupsClient is the the Graph RBAC Management Client

func NewGroupsClient

func NewGroupsClient(tenantID string) GroupsClient

NewGroupsClient creates an instance of the GroupsClient client.

func NewGroupsClientWithBaseURI

func NewGroupsClientWithBaseURI(baseURI string, tenantID string) GroupsClient

NewGroupsClientWithBaseURI creates an instance of the GroupsClient client.

func (GroupsClient) AddMember

func (client GroupsClient) AddMember(groupObjectID string, parameters GroupAddMemberParameters) (result autorest.Response, err error)

AddMember add a member to a group.

groupObjectID is the object ID of the group to which to add the member. parameters is the URL of the member object, such as https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd.

func (GroupsClient) AddMemberPreparer

func (client GroupsClient) AddMemberPreparer(groupObjectID string, parameters GroupAddMemberParameters) (*http.Request, error)

AddMemberPreparer prepares the AddMember request.

func (GroupsClient) AddMemberResponder

func (client GroupsClient) AddMemberResponder(resp *http.Response) (result autorest.Response, err error)

AddMemberResponder handles the response to the AddMember request. The method always closes the http.Response Body.

func (GroupsClient) AddMemberSender

func (client GroupsClient) AddMemberSender(req *http.Request) (*http.Response, error)

AddMemberSender sends the AddMember request. The method will close the http.Response Body if it receives an error.

func (GroupsClient) Create

func (client GroupsClient) Create(parameters GroupCreateParameters) (result ADGroup, err error)

Create create a group in the directory.

parameters is the parameters for the group to create.

func (GroupsClient) CreatePreparer

func (client GroupsClient) CreatePreparer(parameters GroupCreateParameters) (*http.Request, error)

CreatePreparer prepares the Create request.

func (GroupsClient) CreateResponder

func (client GroupsClient) CreateResponder(resp *http.Response) (result ADGroup, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (GroupsClient) CreateSender

func (client GroupsClient) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (GroupsClient) Delete

func (client GroupsClient) Delete(groupObjectID string) (result autorest.Response, err error)

Delete delete a group from the directory.

groupObjectID is the object ID of the group to delete.

func (GroupsClient) DeletePreparer

func (client GroupsClient) DeletePreparer(groupObjectID string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (GroupsClient) DeleteResponder

func (client GroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (GroupsClient) DeleteSender

func (client GroupsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (GroupsClient) Get

func (client GroupsClient) Get(objectID string) (result ADGroup, err error)

Get gets group information from the directory.

objectID is the object ID of the user for which to get group information.

func (GroupsClient) GetGroupMembers

func (client GroupsClient) GetGroupMembers(objectID string) (result GetObjectsResult, err error)

GetGroupMembers gets the members of a group.

objectID is the object ID of the group whose members should be retrieved.

func (GroupsClient) GetGroupMembersComplete

func (client GroupsClient) GetGroupMembersComplete(objectID string, cancel <-chan struct{}) (<-chan AADObject, <-chan error)

GetGroupMembersComplete gets all elements from the list without paging.

func (GroupsClient) GetGroupMembersNext

func (client GroupsClient) GetGroupMembersNext(nextLink string) (result GetObjectsResult, err error)

GetGroupMembersNext gets the members of a group.

nextLink is next link for the list operation.

func (GroupsClient) GetGroupMembersNextPreparer

func (client GroupsClient) GetGroupMembersNextPreparer(nextLink string) (*http.Request, error)

GetGroupMembersNextPreparer prepares the GetGroupMembersNext request.

func (GroupsClient) GetGroupMembersNextResponder

func (client GroupsClient) GetGroupMembersNextResponder(resp *http.Response) (result GetObjectsResult, err error)

GetGroupMembersNextResponder handles the response to the GetGroupMembersNext request. The method always closes the http.Response Body.

func (GroupsClient) GetGroupMembersNextSender

func (client GroupsClient) GetGroupMembersNextSender(req *http.Request) (*http.Response, error)

GetGroupMembersNextSender sends the GetGroupMembersNext request. The method will close the http.Response Body if it receives an error.

func (GroupsClient) GetGroupMembersPreparer

func (client GroupsClient) GetGroupMembersPreparer(objectID string) (*http.Request, error)

GetGroupMembersPreparer prepares the GetGroupMembers request.

func (GroupsClient) GetGroupMembersResponder

func (client GroupsClient) GetGroupMembersResponder(resp *http.Response) (result GetObjectsResult, err error)

GetGroupMembersResponder handles the response to the GetGroupMembers request. The method always closes the http.Response Body.

func (GroupsClient) GetGroupMembersSender

func (client GroupsClient) GetGroupMembersSender(req *http.Request) (*http.Response, error)

GetGroupMembersSender sends the GetGroupMembers request. The method will close the http.Response Body if it receives an error.

func (GroupsClient) GetMemberGroups

func (client GroupsClient) GetMemberGroups(objectID string, parameters GroupGetMemberGroupsParameters) (result GroupGetMemberGroupsResult, err error)

GetMemberGroups gets a collection of object IDs of groups of which the specified group is a member.

objectID is the object ID of the group for which to get group membership. parameters is group filtering parameters.

func (GroupsClient) GetMemberGroupsPreparer

func (client GroupsClient) GetMemberGroupsPreparer(objectID string, parameters GroupGetMemberGroupsParameters) (*http.Request, error)

GetMemberGroupsPreparer prepares the GetMemberGroups request.

func (GroupsClient) GetMemberGroupsResponder

func (client GroupsClient) GetMemberGroupsResponder(resp *http.Response) (result GroupGetMemberGroupsResult, err error)

GetMemberGroupsResponder handles the response to the GetMemberGroups request. The method always closes the http.Response Body.

func (GroupsClient) GetMemberGroupsSender

func (client GroupsClient) GetMemberGroupsSender(req *http.Request) (*http.Response, error)

GetMemberGroupsSender sends the GetMemberGroups request. The method will close the http.Response Body if it receives an error.

func (GroupsClient) GetPreparer

func (client GroupsClient) GetPreparer(objectID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (GroupsClient) GetResponder

func (client GroupsClient) GetResponder(resp *http.Response) (result ADGroup, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (GroupsClient) GetSender

func (client GroupsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (GroupsClient) IsMemberOf

func (client GroupsClient) IsMemberOf(parameters CheckGroupMembershipParameters) (result CheckGroupMembershipResult, err error)

IsMemberOf checks whether the specified user, group, contact, or service principal is a direct or transitive member of the specified group.

parameters is the check group membership parameters.

func (GroupsClient) IsMemberOfPreparer

func (client GroupsClient) IsMemberOfPreparer(parameters CheckGroupMembershipParameters) (*http.Request, error)

IsMemberOfPreparer prepares the IsMemberOf request.

func (GroupsClient) IsMemberOfResponder

func (client GroupsClient) IsMemberOfResponder(resp *http.Response) (result CheckGroupMembershipResult, err error)

IsMemberOfResponder handles the response to the IsMemberOf request. The method always closes the http.Response Body.

func (GroupsClient) IsMemberOfSender

func (client GroupsClient) IsMemberOfSender(req *http.Request) (*http.Response, error)

IsMemberOfSender sends the IsMemberOf request. The method will close the http.Response Body if it receives an error.

func (GroupsClient) List

func (client GroupsClient) List(filter string) (result GroupListResult, err error)

List gets list of groups for the current tenant.

filter is the filter to apply to the operation.

func (GroupsClient) ListComplete

func (client GroupsClient) ListComplete(filter string, cancel <-chan struct{}) (<-chan ADGroup, <-chan error)

ListComplete gets all elements from the list without paging.

func (GroupsClient) ListNext

func (client GroupsClient) ListNext(nextLink string) (result GroupListResult, err error)

ListNext gets a list of groups for the current tenant.

nextLink is next link for the list operation.

func (GroupsClient) ListNextPreparer

func (client GroupsClient) ListNextPreparer(nextLink string) (*http.Request, error)

ListNextPreparer prepares the ListNext request.

func (GroupsClient) ListNextResponder

func (client GroupsClient) ListNextResponder(resp *http.Response) (result GroupListResult, err error)

ListNextResponder handles the response to the ListNext request. The method always closes the http.Response Body.

func (GroupsClient) ListNextSender

func (client GroupsClient) ListNextSender(req *http.Request) (*http.Response, error)

ListNextSender sends the ListNext request. The method will close the http.Response Body if it receives an error.

func (GroupsClient) ListPreparer

func (client GroupsClient) ListPreparer(filter string) (*http.Request, error)

ListPreparer prepares the List request.

func (GroupsClient) ListResponder

func (client GroupsClient) ListResponder(resp *http.Response) (result GroupListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (GroupsClient) ListSender

func (client GroupsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (GroupsClient) RemoveMember

func (client GroupsClient) RemoveMember(groupObjectID string, memberObjectID string) (result autorest.Response, err error)

RemoveMember remove a member from a group.

groupObjectID is the object ID of the group from which to remove the member. memberObjectID is member object id

func (GroupsClient) RemoveMemberPreparer

func (client GroupsClient) RemoveMemberPreparer(groupObjectID string, memberObjectID string) (*http.Request, error)

RemoveMemberPreparer prepares the RemoveMember request.

func (GroupsClient) RemoveMemberResponder

func (client GroupsClient) RemoveMemberResponder(resp *http.Response) (result autorest.Response, err error)

RemoveMemberResponder handles the response to the RemoveMember request. The method always closes the http.Response Body.

func (GroupsClient) RemoveMemberSender

func (client GroupsClient) RemoveMemberSender(req *http.Request) (*http.Response, error)

RemoveMemberSender sends the RemoveMember request. The method will close the http.Response Body if it receives an error.

type KeyCredential

type KeyCredential struct {
	StartDate *date.Time `json:"startDate,omitempty"`
	EndDate   *date.Time `json:"endDate,omitempty"`
	Value     *string    `json:"value,omitempty"`
	KeyID     *string    `json:"keyId,omitempty"`
	Usage     *string    `json:"usage,omitempty"`
	Type      *string    `json:"type,omitempty"`
}

KeyCredential is active Directory Key Credential information.

type KeyCredentialListResult

type KeyCredentialListResult struct {
	autorest.Response `json:"-"`
	Value             *[]KeyCredential `json:"value,omitempty"`
}

KeyCredentialListResult is keyCredential list operation result.

type KeyCredentialsUpdateParameters

type KeyCredentialsUpdateParameters struct {
	Value *[]KeyCredential `json:"value,omitempty"`
}

KeyCredentialsUpdateParameters is request parameters for a KeyCredentials update operation

type ManagementClient

type ManagementClient struct {
	autorest.Client
	BaseURI  string
	TenantID string
}

ManagementClient is the base client for Graphrbac.

func New

func New(tenantID string) ManagementClient

New creates an instance of the ManagementClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, tenantID string) ManagementClient

NewWithBaseURI creates an instance of the ManagementClient client.

type ObjectsClient

type ObjectsClient struct {
	ManagementClient
}

ObjectsClient is the the Graph RBAC Management Client

func NewObjectsClient

func NewObjectsClient(tenantID string) ObjectsClient

NewObjectsClient creates an instance of the ObjectsClient client.

func NewObjectsClientWithBaseURI

func NewObjectsClientWithBaseURI(baseURI string, tenantID string) ObjectsClient

NewObjectsClientWithBaseURI creates an instance of the ObjectsClient client.

func (ObjectsClient) GetCurrentUser

func (client ObjectsClient) GetCurrentUser() (result AADObject, err error)

GetCurrentUser gets the details for the currently logged-in user.

func (ObjectsClient) GetCurrentUserPreparer

func (client ObjectsClient) GetCurrentUserPreparer() (*http.Request, error)

GetCurrentUserPreparer prepares the GetCurrentUser request.

func (ObjectsClient) GetCurrentUserResponder

func (client ObjectsClient) GetCurrentUserResponder(resp *http.Response) (result AADObject, err error)

GetCurrentUserResponder handles the response to the GetCurrentUser request. The method always closes the http.Response Body.

func (ObjectsClient) GetCurrentUserSender

func (client ObjectsClient) GetCurrentUserSender(req *http.Request) (*http.Response, error)

GetCurrentUserSender sends the GetCurrentUser request. The method will close the http.Response Body if it receives an error.

func (ObjectsClient) GetObjectsByObjectIds

func (client ObjectsClient) GetObjectsByObjectIds(parameters GetObjectsParameters) (result GetObjectsResult, err error)

GetObjectsByObjectIds gets AD group membership for the specified AD object IDs.

parameters is objects filtering parameters.

func (ObjectsClient) GetObjectsByObjectIdsComplete

func (client ObjectsClient) GetObjectsByObjectIdsComplete(parameters GetObjectsParameters, cancel <-chan struct{}) (<-chan AADObject, <-chan error)

GetObjectsByObjectIdsComplete gets all elements from the list without paging.

func (ObjectsClient) GetObjectsByObjectIdsNext

func (client ObjectsClient) GetObjectsByObjectIdsNext(nextLink string) (result GetObjectsResult, err error)

GetObjectsByObjectIdsNext gets AD group membership for the specified AD object IDs.

nextLink is next link for the list operation.

func (ObjectsClient) GetObjectsByObjectIdsNextPreparer

func (client ObjectsClient) GetObjectsByObjectIdsNextPreparer(nextLink string) (*http.Request, error)

GetObjectsByObjectIdsNextPreparer prepares the GetObjectsByObjectIdsNext request.

func (ObjectsClient) GetObjectsByObjectIdsNextResponder

func (client ObjectsClient) GetObjectsByObjectIdsNextResponder(resp *http.Response) (result GetObjectsResult, err error)

GetObjectsByObjectIdsNextResponder handles the response to the GetObjectsByObjectIdsNext request. The method always closes the http.Response Body.

func (ObjectsClient) GetObjectsByObjectIdsNextSender

func (client ObjectsClient) GetObjectsByObjectIdsNextSender(req *http.Request) (*http.Response, error)

GetObjectsByObjectIdsNextSender sends the GetObjectsByObjectIdsNext request. The method will close the http.Response Body if it receives an error.

func (ObjectsClient) GetObjectsByObjectIdsPreparer

func (client ObjectsClient) GetObjectsByObjectIdsPreparer(parameters GetObjectsParameters) (*http.Request, error)

GetObjectsByObjectIdsPreparer prepares the GetObjectsByObjectIds request.

func (ObjectsClient) GetObjectsByObjectIdsResponder

func (client ObjectsClient) GetObjectsByObjectIdsResponder(resp *http.Response) (result GetObjectsResult, err error)

GetObjectsByObjectIdsResponder handles the response to the GetObjectsByObjectIds request. The method always closes the http.Response Body.

func (ObjectsClient) GetObjectsByObjectIdsSender

func (client ObjectsClient) GetObjectsByObjectIdsSender(req *http.Request) (*http.Response, error)

GetObjectsByObjectIdsSender sends the GetObjectsByObjectIds request. The method will close the http.Response Body if it receives an error.

type OdataError

type OdataError struct {
	Code          *string `json:"code,omitempty"`
	*ErrorMessage `json:"message,omitempty"`
}

OdataError is active Directory OData error information.

type PasswordCredential

type PasswordCredential struct {
	StartDate *date.Time `json:"startDate,omitempty"`
	EndDate   *date.Time `json:"endDate,omitempty"`
	KeyID     *string    `json:"keyId,omitempty"`
	Value     *string    `json:"value,omitempty"`
}

PasswordCredential is active Directory Password Credential information.

type PasswordCredentialListResult

type PasswordCredentialListResult struct {
	autorest.Response `json:"-"`
	Value             *[]PasswordCredential `json:"value,omitempty"`
}

PasswordCredentialListResult is passwordCredential list operation result.

type PasswordCredentialsUpdateParameters

type PasswordCredentialsUpdateParameters struct {
	Value *[]PasswordCredential `json:"value,omitempty"`
}

PasswordCredentialsUpdateParameters is request parameters for a PasswordCredentials update operation.

type PasswordProfile

type PasswordProfile struct {
	Password                     *string `json:"password,omitempty"`
	ForceChangePasswordNextLogin *bool   `json:"forceChangePasswordNextLogin,omitempty"`
}

PasswordProfile is the password profile associated with a user.

type RequiredResourceAccess

type RequiredResourceAccess struct {
	ResourceAccess *[]ResourceAccess `json:"resourceAccess,omitempty"`
	ResourceAppID  *string           `json:"resourceAppId,omitempty"`
}

RequiredResourceAccess is specifies the set of OAuth 2.0 permission scopes and app roles under the specified resource that an application requires access to. The specified OAuth 2.0 permission scopes may be requested by client applications (through the requiredResourceAccess collection) when calling a resource application. The requiredResourceAccess property of the Application entity is a collection of ReqiredResourceAccess.

type ResourceAccess

type ResourceAccess struct {
	ID   *string `json:"id,omitempty"`
	Type *string `json:"type,omitempty"`
}

ResourceAccess is specifies an OAuth 2.0 permission scope or an app role that an application requires. The resourceAccess property of the RequiredResourceAccess type is a collection of ResourceAccess.

type ServicePrincipal

type ServicePrincipal struct {
	autorest.Response     `json:"-"`
	ObjectID              *string   `json:"objectId,omitempty"`
	ObjectType            *string   `json:"objectType,omitempty"`
	DisplayName           *string   `json:"displayName,omitempty"`
	AppID                 *string   `json:"appId,omitempty"`
	ServicePrincipalNames *[]string `json:"servicePrincipalNames,omitempty"`
}

ServicePrincipal is active Directory service principal information.

type ServicePrincipalCreateParameters

type ServicePrincipalCreateParameters struct {
	AppID               *string               `json:"appId,omitempty"`
	AccountEnabled      *bool                 `json:"accountEnabled,omitempty"`
	KeyCredentials      *[]KeyCredential      `json:"keyCredentials,omitempty"`
	PasswordCredentials *[]PasswordCredential `json:"passwordCredentials,omitempty"`
}

ServicePrincipalCreateParameters is request parameters for creating a new service principal.

type ServicePrincipalListResult

type ServicePrincipalListResult struct {
	autorest.Response `json:"-"`
	Value             *[]ServicePrincipal `json:"value,omitempty"`
	OdataNextLink     *string             `json:"odata.nextLink,omitempty"`
}

ServicePrincipalListResult is server response for get tenant service principals API call.

type ServicePrincipalsClient

type ServicePrincipalsClient struct {
	ManagementClient
}

ServicePrincipalsClient is the the Graph RBAC Management Client

func NewServicePrincipalsClient

func NewServicePrincipalsClient(tenantID string) ServicePrincipalsClient

NewServicePrincipalsClient creates an instance of the ServicePrincipalsClient client.

func NewServicePrincipalsClientWithBaseURI

func NewServicePrincipalsClientWithBaseURI(baseURI string, tenantID string) ServicePrincipalsClient

NewServicePrincipalsClientWithBaseURI creates an instance of the ServicePrincipalsClient client.

func (ServicePrincipalsClient) Create

func (client ServicePrincipalsClient) Create(parameters ServicePrincipalCreateParameters) (result ServicePrincipal, err error)

Create creates a service principal in the directory.

parameters is parameters to create a service principal.

func (ServicePrincipalsClient) CreatePreparer

func (client ServicePrincipalsClient) CreatePreparer(parameters ServicePrincipalCreateParameters) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ServicePrincipalsClient) CreateResponder

func (client ServicePrincipalsClient) CreateResponder(resp *http.Response) (result ServicePrincipal, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (ServicePrincipalsClient) CreateSender

func (client ServicePrincipalsClient) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (ServicePrincipalsClient) Delete

func (client ServicePrincipalsClient) Delete(objectID string) (result autorest.Response, err error)

Delete deletes a service principal from the directory.

objectID is the object ID of the service principal to delete.

func (ServicePrincipalsClient) DeletePreparer

func (client ServicePrincipalsClient) DeletePreparer(objectID string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ServicePrincipalsClient) DeleteResponder

func (client ServicePrincipalsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ServicePrincipalsClient) DeleteSender

func (client ServicePrincipalsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ServicePrincipalsClient) Get

func (client ServicePrincipalsClient) Get(objectID string) (result ServicePrincipal, err error)

Get gets service principal information from the directory.

objectID is the object ID of the service principal to get.

func (ServicePrincipalsClient) GetPreparer

func (client ServicePrincipalsClient) GetPreparer(objectID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ServicePrincipalsClient) GetResponder

func (client ServicePrincipalsClient) GetResponder(resp *http.Response) (result ServicePrincipal, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ServicePrincipalsClient) GetSender

func (client ServicePrincipalsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ServicePrincipalsClient) List

func (client ServicePrincipalsClient) List(filter string) (result ServicePrincipalListResult, err error)

List gets a list of service principals from the current tenant.

filter is the filter to apply to the operation.

func (ServicePrincipalsClient) ListComplete

func (client ServicePrincipalsClient) ListComplete(filter string, cancel <-chan struct{}) (<-chan ServicePrincipal, <-chan error)

ListComplete gets all elements from the list without paging.

func (ServicePrincipalsClient) ListKeyCredentials

func (client ServicePrincipalsClient) ListKeyCredentials(objectID string) (result KeyCredentialListResult, err error)

ListKeyCredentials get the keyCredentials associated with the specified service principal.

objectID is the object ID of the service principal for which to get keyCredentials.

func (ServicePrincipalsClient) ListKeyCredentialsPreparer

func (client ServicePrincipalsClient) ListKeyCredentialsPreparer(objectID string) (*http.Request, error)

ListKeyCredentialsPreparer prepares the ListKeyCredentials request.

func (ServicePrincipalsClient) ListKeyCredentialsResponder

func (client ServicePrincipalsClient) ListKeyCredentialsResponder(resp *http.Response) (result KeyCredentialListResult, err error)

ListKeyCredentialsResponder handles the response to the ListKeyCredentials request. The method always closes the http.Response Body.

func (ServicePrincipalsClient) ListKeyCredentialsSender

func (client ServicePrincipalsClient) ListKeyCredentialsSender(req *http.Request) (*http.Response, error)

ListKeyCredentialsSender sends the ListKeyCredentials request. The method will close the http.Response Body if it receives an error.

func (ServicePrincipalsClient) ListNext

func (client ServicePrincipalsClient) ListNext(nextLink string) (result ServicePrincipalListResult, err error)

ListNext gets a list of service principals from the current tenant.

nextLink is next link for the list operation.

func (ServicePrincipalsClient) ListNextPreparer

func (client ServicePrincipalsClient) ListNextPreparer(nextLink string) (*http.Request, error)

ListNextPreparer prepares the ListNext request.

func (ServicePrincipalsClient) ListNextResponder

func (client ServicePrincipalsClient) ListNextResponder(resp *http.Response) (result ServicePrincipalListResult, err error)

ListNextResponder handles the response to the ListNext request. The method always closes the http.Response Body.

func (ServicePrincipalsClient) ListNextSender

func (client ServicePrincipalsClient) ListNextSender(req *http.Request) (*http.Response, error)

ListNextSender sends the ListNext request. The method will close the http.Response Body if it receives an error.

func (ServicePrincipalsClient) ListPasswordCredentials

func (client ServicePrincipalsClient) ListPasswordCredentials(objectID string) (result PasswordCredentialListResult, err error)

ListPasswordCredentials gets the passwordCredentials associated with a service principal.

objectID is the object ID of the service principal.

func (ServicePrincipalsClient) ListPasswordCredentialsPreparer

func (client ServicePrincipalsClient) ListPasswordCredentialsPreparer(objectID string) (*http.Request, error)

ListPasswordCredentialsPreparer prepares the ListPasswordCredentials request.

func (ServicePrincipalsClient) ListPasswordCredentialsResponder

func (client ServicePrincipalsClient) ListPasswordCredentialsResponder(resp *http.Response) (result PasswordCredentialListResult, err error)

ListPasswordCredentialsResponder handles the response to the ListPasswordCredentials request. The method always closes the http.Response Body.

func (ServicePrincipalsClient) ListPasswordCredentialsSender

func (client ServicePrincipalsClient) ListPasswordCredentialsSender(req *http.Request) (*http.Response, error)

ListPasswordCredentialsSender sends the ListPasswordCredentials request. The method will close the http.Response Body if it receives an error.

func (ServicePrincipalsClient) ListPreparer

func (client ServicePrincipalsClient) ListPreparer(filter string) (*http.Request, error)

ListPreparer prepares the List request.

func (ServicePrincipalsClient) ListResponder

func (client ServicePrincipalsClient) ListResponder(resp *http.Response) (result ServicePrincipalListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ServicePrincipalsClient) ListSender

func (client ServicePrincipalsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (ServicePrincipalsClient) UpdateKeyCredentials

func (client ServicePrincipalsClient) UpdateKeyCredentials(objectID string, parameters KeyCredentialsUpdateParameters) (result autorest.Response, err error)

UpdateKeyCredentials update the keyCredentials associated with a service principal.

objectID is the object ID for which to get service principal information. parameters is parameters to update the keyCredentials of an existing service principal.

func (ServicePrincipalsClient) UpdateKeyCredentialsPreparer

func (client ServicePrincipalsClient) UpdateKeyCredentialsPreparer(objectID string, parameters KeyCredentialsUpdateParameters) (*http.Request, error)

UpdateKeyCredentialsPreparer prepares the UpdateKeyCredentials request.

func (ServicePrincipalsClient) UpdateKeyCredentialsResponder

func (client ServicePrincipalsClient) UpdateKeyCredentialsResponder(resp *http.Response) (result autorest.Response, err error)

UpdateKeyCredentialsResponder handles the response to the UpdateKeyCredentials request. The method always closes the http.Response Body.

func (ServicePrincipalsClient) UpdateKeyCredentialsSender

func (client ServicePrincipalsClient) UpdateKeyCredentialsSender(req *http.Request) (*http.Response, error)

UpdateKeyCredentialsSender sends the UpdateKeyCredentials request. The method will close the http.Response Body if it receives an error.

func (ServicePrincipalsClient) UpdatePasswordCredentials

func (client ServicePrincipalsClient) UpdatePasswordCredentials(objectID string, parameters PasswordCredentialsUpdateParameters) (result autorest.Response, err error)

UpdatePasswordCredentials updates the passwordCredentials associated with a service principal.

objectID is the object ID of the service principal. parameters is parameters to update the passwordCredentials of an existing service principal.

func (ServicePrincipalsClient) UpdatePasswordCredentialsPreparer

func (client ServicePrincipalsClient) UpdatePasswordCredentialsPreparer(objectID string, parameters PasswordCredentialsUpdateParameters) (*http.Request, error)

UpdatePasswordCredentialsPreparer prepares the UpdatePasswordCredentials request.

func (ServicePrincipalsClient) UpdatePasswordCredentialsResponder

func (client ServicePrincipalsClient) UpdatePasswordCredentialsResponder(resp *http.Response) (result autorest.Response, err error)

UpdatePasswordCredentialsResponder handles the response to the UpdatePasswordCredentials request. The method always closes the http.Response Body.

func (ServicePrincipalsClient) UpdatePasswordCredentialsSender

func (client ServicePrincipalsClient) UpdatePasswordCredentialsSender(req *http.Request) (*http.Response, error)

UpdatePasswordCredentialsSender sends the UpdatePasswordCredentials request. The method will close the http.Response Body if it receives an error.

type SignInName

type SignInName struct {
	Type  *string `json:"type,omitempty"`
	Value *string `json:"value,omitempty"`
}

SignInName is contains information about a sign-in name of a local account user in an Azure Active Directory B2C tenant.

type User

type User struct {
	autorest.Response `json:"-"`
	ImmutableID       *string       `json:"immutableId,omitempty"`
	UsageLocation     *string       `json:"usageLocation,omitempty"`
	GivenName         *string       `json:"givenName,omitempty"`
	Surname           *string       `json:"surname,omitempty"`
	UserType          UserType      `json:"userType,omitempty"`
	AccountEnabled    *bool         `json:"accountEnabled,omitempty"`
	DisplayName       *string       `json:"displayName,omitempty"`
	UserPrincipalName *string       `json:"userPrincipalName,omitempty"`
	MailNickname      *string       `json:"mailNickname,omitempty"`
	Mail              *string       `json:"mail,omitempty"`
	ObjectID          *string       `json:"objectId,omitempty"`
	ObjectType        *string       `json:"objectType,omitempty"`
	SignInNames       *[]SignInName `json:"signInNames,omitempty"`
}

User is active Directory user information.

type UserBase

type UserBase struct {
	ImmutableID   *string  `json:"immutableId,omitempty"`
	UsageLocation *string  `json:"usageLocation,omitempty"`
	GivenName     *string  `json:"givenName,omitempty"`
	Surname       *string  `json:"surname,omitempty"`
	UserType      UserType `json:"userType,omitempty"`
}

UserBase is

type UserCreateParameters

type UserCreateParameters struct {
	ImmutableID       *string          `json:"immutableId,omitempty"`
	UsageLocation     *string          `json:"usageLocation,omitempty"`
	GivenName         *string          `json:"givenName,omitempty"`
	Surname           *string          `json:"surname,omitempty"`
	UserType          UserType         `json:"userType,omitempty"`
	AccountEnabled    *bool            `json:"accountEnabled,omitempty"`
	DisplayName       *string          `json:"displayName,omitempty"`
	PasswordProfile   *PasswordProfile `json:"passwordProfile,omitempty"`
	UserPrincipalName *string          `json:"userPrincipalName,omitempty"`
	MailNickname      *string          `json:"mailNickname,omitempty"`
	Mail              *string          `json:"mail,omitempty"`
}

UserCreateParameters is request parameters for creating a new work or school account user.

type UserGetMemberGroupsParameters

type UserGetMemberGroupsParameters struct {
	SecurityEnabledOnly *bool `json:"securityEnabledOnly,omitempty"`
}

UserGetMemberGroupsParameters is request parameters for GetMemberGroups API call.

type UserGetMemberGroupsResult

type UserGetMemberGroupsResult struct {
	autorest.Response `json:"-"`
	Value             *[]string `json:"value,omitempty"`
}

UserGetMemberGroupsResult is server response for GetMemberGroups API call.

type UserListResult

type UserListResult struct {
	autorest.Response `json:"-"`
	Value             *[]User `json:"value,omitempty"`
	OdataNextLink     *string `json:"odata.nextLink,omitempty"`
}

UserListResult is server response for Get tenant users API call.

type UserType

type UserType string

UserType enumerates the values for user type.

const (
	// Guest specifies the guest state for user type.
	Guest UserType = "Guest"
	// Member specifies the member state for user type.
	Member UserType = "Member"
)

type UserUpdateParameters

type UserUpdateParameters struct {
	ImmutableID       *string          `json:"immutableId,omitempty"`
	UsageLocation     *string          `json:"usageLocation,omitempty"`
	GivenName         *string          `json:"givenName,omitempty"`
	Surname           *string          `json:"surname,omitempty"`
	UserType          UserType         `json:"userType,omitempty"`
	AccountEnabled    *bool            `json:"accountEnabled,omitempty"`
	DisplayName       *string          `json:"displayName,omitempty"`
	PasswordProfile   *PasswordProfile `json:"passwordProfile,omitempty"`
	UserPrincipalName *string          `json:"userPrincipalName,omitempty"`
	MailNickname      *string          `json:"mailNickname,omitempty"`
}

UserUpdateParameters is request parameters for updating an existing work or school account user.

type UsersClient

type UsersClient struct {
	ManagementClient
}

UsersClient is the the Graph RBAC Management Client

func NewUsersClient

func NewUsersClient(tenantID string) UsersClient

NewUsersClient creates an instance of the UsersClient client.

func NewUsersClientWithBaseURI

func NewUsersClientWithBaseURI(baseURI string, tenantID string) UsersClient

NewUsersClientWithBaseURI creates an instance of the UsersClient client.

func (UsersClient) Create

func (client UsersClient) Create(parameters UserCreateParameters) (result User, err error)

Create create a new user.

parameters is parameters to create a user.

func (UsersClient) CreatePreparer

func (client UsersClient) CreatePreparer(parameters UserCreateParameters) (*http.Request, error)

CreatePreparer prepares the Create request.

func (UsersClient) CreateResponder

func (client UsersClient) CreateResponder(resp *http.Response) (result User, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (UsersClient) CreateSender

func (client UsersClient) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (UsersClient) Delete

func (client UsersClient) Delete(upnOrObjectID string) (result autorest.Response, err error)

Delete delete a user.

upnOrObjectID is the object ID or principal name of the user to delete.

func (UsersClient) DeletePreparer

func (client UsersClient) DeletePreparer(upnOrObjectID string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (UsersClient) DeleteResponder

func (client UsersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (UsersClient) DeleteSender

func (client UsersClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (UsersClient) Get

func (client UsersClient) Get(upnOrObjectID string) (result User, err error)

Get gets user information from the directory.

upnOrObjectID is the object ID or principal name of the user for which to get information.

func (UsersClient) GetMemberGroups

func (client UsersClient) GetMemberGroups(objectID string, parameters UserGetMemberGroupsParameters) (result UserGetMemberGroupsResult, err error)

GetMemberGroups gets a collection that contains the object IDs of the groups of which the user is a member.

objectID is the object ID of the user for which to get group membership. parameters is user filtering parameters.

func (UsersClient) GetMemberGroupsPreparer

func (client UsersClient) GetMemberGroupsPreparer(objectID string, parameters UserGetMemberGroupsParameters) (*http.Request, error)

GetMemberGroupsPreparer prepares the GetMemberGroups request.

func (UsersClient) GetMemberGroupsResponder

func (client UsersClient) GetMemberGroupsResponder(resp *http.Response) (result UserGetMemberGroupsResult, err error)

GetMemberGroupsResponder handles the response to the GetMemberGroups request. The method always closes the http.Response Body.

func (UsersClient) GetMemberGroupsSender

func (client UsersClient) GetMemberGroupsSender(req *http.Request) (*http.Response, error)

GetMemberGroupsSender sends the GetMemberGroups request. The method will close the http.Response Body if it receives an error.

func (UsersClient) GetPreparer

func (client UsersClient) GetPreparer(upnOrObjectID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (UsersClient) GetResponder

func (client UsersClient) GetResponder(resp *http.Response) (result User, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (UsersClient) GetSender

func (client UsersClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (UsersClient) List

func (client UsersClient) List(filter string) (result UserListResult, err error)

List gets list of users for the current tenant.

filter is the filter to apply to the operation.

func (UsersClient) ListComplete

func (client UsersClient) ListComplete(filter string, cancel <-chan struct{}) (<-chan User, <-chan error)

ListComplete gets all elements from the list without paging.

func (UsersClient) ListNext

func (client UsersClient) ListNext(nextLink string) (result UserListResult, err error)

ListNext gets a list of users for the current tenant.

nextLink is next link for the list operation.

func (UsersClient) ListNextPreparer

func (client UsersClient) ListNextPreparer(nextLink string) (*http.Request, error)

ListNextPreparer prepares the ListNext request.

func (UsersClient) ListNextResponder

func (client UsersClient) ListNextResponder(resp *http.Response) (result UserListResult, err error)

ListNextResponder handles the response to the ListNext request. The method always closes the http.Response Body.

func (UsersClient) ListNextSender

func (client UsersClient) ListNextSender(req *http.Request) (*http.Response, error)

ListNextSender sends the ListNext request. The method will close the http.Response Body if it receives an error.

func (UsersClient) ListPreparer

func (client UsersClient) ListPreparer(filter string) (*http.Request, error)

ListPreparer prepares the List request.

func (UsersClient) ListResponder

func (client UsersClient) ListResponder(resp *http.Response) (result UserListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (UsersClient) ListSender

func (client UsersClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (UsersClient) Update

func (client UsersClient) Update(upnOrObjectID string, parameters UserUpdateParameters) (result autorest.Response, err error)

Update updates a user.

upnOrObjectID is the object ID or principal name of the user to update. parameters is parameters to update an existing user.

func (UsersClient) UpdatePreparer

func (client UsersClient) UpdatePreparer(upnOrObjectID string, parameters UserUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (UsersClient) UpdateResponder

func (client UsersClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (UsersClient) UpdateSender

func (client UsersClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL