graphrbac

package
v8.1.0-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2017 License: Apache-2.0 Imports: 8 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 (
	// APIVersion is the version of the Graphrbac
	APIVersion = "1.6"

	// 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"`
	SecurityEnabled       *bool     `json:"securityEnabled,omitempty"`
	SignInName            *string   `json:"signInName,omitempty"`
	ServicePrincipalNames *[]string `json:"servicePrincipalNames,omitempty"`
	UserType              *string   `json:"userType,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"`
}

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"`
}

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"`
}

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) 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 ErrorMessage

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

ErrorMessage is active Directory error message.

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) 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) 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
	APIVersion 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.

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 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) 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 User

type User struct {
	autorest.Response `json:"-"`
	ObjectID          *string `json:"objectId,omitempty"`
	ObjectType        *string `json:"objectType,omitempty"`
	UserPrincipalName *string `json:"userPrincipalName,omitempty"`
	DisplayName       *string `json:"displayName,omitempty"`
	SignInName        *string `json:"signInName,omitempty"`
	Mail              *string `json:"mail,omitempty"`
	MailNickname      *string `json:"mailNickname,omitempty"`
}

User is active Directory user information.

type UserCreateParameters

type UserCreateParameters struct {
	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"`
	ImmutableID       *string          `json:"immutableId,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 UserUpdateParameters

type UserUpdateParameters struct {
	AccountEnabled  *bool            `json:"accountEnabled,omitempty"`
	DisplayName     *string          `json:"displayName,omitempty"`
	PasswordProfile *PasswordProfile `json:"passwordProfile,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) 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