graphrbac

package
v21.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2018 License: Apache-2.0 Imports: 9 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:"-"`
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// ObjectID - The ID of the object.
	ObjectID *string `json:"objectId,omitempty"`
	// ObjectType - The type of AAD object.
	ObjectType *string `json:"objectType,omitempty"`
	// DisplayName - The display name of the object.
	DisplayName *string `json:"displayName,omitempty"`
	// UserPrincipalName - The principal name of the object.
	UserPrincipalName *string `json:"userPrincipalName,omitempty"`
	// Mail - The primary email address of the object.
	Mail *string `json:"mail,omitempty"`
	// MailEnabled - Whether the AAD object is mail-enabled.
	MailEnabled *bool `json:"mailEnabled,omitempty"`
	// MailNickname - The mail alias for the user.
	MailNickname *string `json:"mailNickname,omitempty"`
	// SecurityEnabled - Whether the AAD object is security-enabled.
	SecurityEnabled *bool `json:"securityEnabled,omitempty"`
	// SignInName - The sign-in name of the object.
	SignInName *string `json:"signInName,omitempty"`
	// ServicePrincipalNames - A collection of service principal names associated with the object.
	ServicePrincipalNames *[]string `json:"servicePrincipalNames,omitempty"`
	// UserType - The user type of the object.
	UserType *string `json:"userType,omitempty"`
	// UsageLocation - A two letter country code (ISO standard 3166). Required for users that will be assigned licenses due to legal requirement to check for availability of services in countries. Examples include: "US", "JP", and "GB".
	UsageLocation *string `json:"usageLocation,omitempty"`
	// AppID - The application ID.
	AppID *string `json:"appId,omitempty"`
	// AppPermissions - The application permissions.
	AppPermissions *[]string `json:"appPermissions,omitempty"`
	// AvailableToOtherTenants - Whether the application is be available to other tenants.
	AvailableToOtherTenants *bool `json:"availableToOtherTenants,omitempty"`
	// IdentifierUris - A collection of URIs for the application.
	IdentifierUris *[]string `json:"identifierUris,omitempty"`
	// ReplyUrls - A collection of reply URLs for the application.
	ReplyUrls *[]string `json:"replyUrls,omitempty"`
	// Homepage - The home page of the application.
	Homepage *string `json:"homepage,omitempty"`
}

AADObject the properties of an Active Directory object.

func (AADObject) MarshalJSON

func (ao AADObject) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AADObject.

func (*AADObject) UnmarshalJSON

func (ao *AADObject) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AADObject struct.

type ADGroup

type ADGroup struct {
	autorest.Response `json:"-"`
	// DisplayName - The display name of the group.
	DisplayName *string `json:"displayName,omitempty"`
	// SecurityEnabled - Whether the group is security-enable.
	SecurityEnabled *bool `json:"securityEnabled,omitempty"`
	// Mail - The primary email address of the group.
	Mail *string `json:"mail,omitempty"`
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// ObjectID - The object ID.
	ObjectID *string `json:"objectId,omitempty"`
	// DeletionTimestamp - The time at which the directory object was deleted.
	DeletionTimestamp *date.Time `json:"deletionTimestamp,omitempty"`
	// ObjectType - Possible values include: 'ObjectTypeDirectoryObject', 'ObjectTypeApplication', 'ObjectTypeGroup', 'ObjectTypeServicePrincipal', 'ObjectTypeUser'
	ObjectType ObjectType `json:"objectType,omitempty"`
}

ADGroup active Directory group information.

func (ADGroup) AsADGroup

func (ag ADGroup) AsADGroup() (*ADGroup, bool)

AsADGroup is the BasicDirectoryObject implementation for ADGroup.

func (ADGroup) AsApplication

func (ag ADGroup) AsApplication() (*Application, bool)

AsApplication is the BasicDirectoryObject implementation for ADGroup.

func (ADGroup) AsBasicDirectoryObject

func (ag ADGroup) AsBasicDirectoryObject() (BasicDirectoryObject, bool)

AsBasicDirectoryObject is the BasicDirectoryObject implementation for ADGroup.

func (ADGroup) AsDirectoryObject

func (ag ADGroup) AsDirectoryObject() (*DirectoryObject, bool)

AsDirectoryObject is the BasicDirectoryObject implementation for ADGroup.

func (ADGroup) AsServicePrincipal

func (ag ADGroup) AsServicePrincipal() (*ServicePrincipal, bool)

AsServicePrincipal is the BasicDirectoryObject implementation for ADGroup.

func (ADGroup) AsUser

func (ag ADGroup) AsUser() (*User, bool)

AsUser is the BasicDirectoryObject implementation for ADGroup.

func (ADGroup) MarshalJSON

func (ag ADGroup) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ADGroup.

func (*ADGroup) UnmarshalJSON

func (ag *ADGroup) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ADGroup struct.

type Application

type Application struct {
	autorest.Response `json:"-"`
	// AppID - The application ID.
	AppID *string `json:"appId,omitempty"`
	// AppPermissions - The application permissions.
	AppPermissions *[]string `json:"appPermissions,omitempty"`
	// AvailableToOtherTenants - Whether the application is be available to other tenants.
	AvailableToOtherTenants *bool `json:"availableToOtherTenants,omitempty"`
	// DisplayName - The display name of the application.
	DisplayName *string `json:"displayName,omitempty"`
	// IdentifierUris - A collection of URIs for the application.
	IdentifierUris *[]string `json:"identifierUris,omitempty"`
	// ReplyUrls - A collection of reply URLs for the application.
	ReplyUrls *[]string `json:"replyUrls,omitempty"`
	// Homepage - The home page of the application.
	Homepage *string `json:"homepage,omitempty"`
	// Oauth2AllowImplicitFlow - Whether to allow implicit grant flow for OAuth2
	Oauth2AllowImplicitFlow *bool `json:"oauth2AllowImplicitFlow,omitempty"`
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// ObjectID - The object ID.
	ObjectID *string `json:"objectId,omitempty"`
	// DeletionTimestamp - The time at which the directory object was deleted.
	DeletionTimestamp *date.Time `json:"deletionTimestamp,omitempty"`
	// ObjectType - Possible values include: 'ObjectTypeDirectoryObject', 'ObjectTypeApplication', 'ObjectTypeGroup', 'ObjectTypeServicePrincipal', 'ObjectTypeUser'
	ObjectType ObjectType `json:"objectType,omitempty"`
}

Application active Directory application information.

func (Application) AsADGroup

func (a Application) AsADGroup() (*ADGroup, bool)

AsADGroup is the BasicDirectoryObject implementation for Application.

func (Application) AsApplication

func (a Application) AsApplication() (*Application, bool)

AsApplication is the BasicDirectoryObject implementation for Application.

func (Application) AsBasicDirectoryObject

func (a Application) AsBasicDirectoryObject() (BasicDirectoryObject, bool)

AsBasicDirectoryObject is the BasicDirectoryObject implementation for Application.

func (Application) AsDirectoryObject

func (a Application) AsDirectoryObject() (*DirectoryObject, bool)

AsDirectoryObject is the BasicDirectoryObject implementation for Application.

func (Application) AsServicePrincipal

func (a Application) AsServicePrincipal() (*ServicePrincipal, bool)

AsServicePrincipal is the BasicDirectoryObject implementation for Application.

func (Application) AsUser

func (a Application) AsUser() (*User, bool)

AsUser is the BasicDirectoryObject implementation for Application.

func (Application) MarshalJSON

func (a Application) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Application.

func (*Application) UnmarshalJSON

func (a *Application) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Application struct.

type ApplicationAddOwnerParameters

type ApplicationAddOwnerParameters struct {
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// URL - A owner object URL, such as "https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd", where "0b1f9851-1bf0-433f-aec3-cb9272f093dc" is the tenantId and "f260bbc4-c254-447b-94cf-293b5ec434dd" is the objectId of the owner (user, application, servicePrincipal, group) to be added.
	URL *string `json:"url,omitempty"`
}

ApplicationAddOwnerParameters request parameters for adding a owner to an application.

func (ApplicationAddOwnerParameters) MarshalJSON

func (aaop ApplicationAddOwnerParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ApplicationAddOwnerParameters.

func (*ApplicationAddOwnerParameters) UnmarshalJSON

func (aaop *ApplicationAddOwnerParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ApplicationAddOwnerParameters struct.

type ApplicationCreateParameters

type ApplicationCreateParameters struct {
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// AvailableToOtherTenants - Whether the application is available to other tenants.
	AvailableToOtherTenants *bool `json:"availableToOtherTenants,omitempty"`
	// DisplayName - The display name of the application.
	DisplayName *string `json:"displayName,omitempty"`
	// Homepage - The home page of the application.
	Homepage *string `json:"homepage,omitempty"`
	// IdentifierUris - A collection of URIs for the application.
	IdentifierUris *[]string `json:"identifierUris,omitempty"`
	// ReplyUrls - A collection of reply URLs for the application.
	ReplyUrls *[]string `json:"replyUrls,omitempty"`
	// KeyCredentials - The list of KeyCredential objects.
	KeyCredentials *[]KeyCredential `json:"keyCredentials,omitempty"`
	// PasswordCredentials - The list of PasswordCredential objects.
	PasswordCredentials *[]PasswordCredential `json:"passwordCredentials,omitempty"`
	// Oauth2AllowImplicitFlow - Whether to allow implicit grant flow for OAuth2
	Oauth2AllowImplicitFlow *bool `json:"oauth2AllowImplicitFlow,omitempty"`
	// RequiredResourceAccess - Specifies resources that this application requires access to and the set of OAuth permission scopes and application roles that it needs under each of those resources. This pre-configuration of required resource access drives the consent experience.
	RequiredResourceAccess *[]RequiredResourceAccess `json:"requiredResourceAccess,omitempty"`
}

ApplicationCreateParameters request parameters for creating a new application.

func (ApplicationCreateParameters) MarshalJSON

func (acp ApplicationCreateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ApplicationCreateParameters.

func (*ApplicationCreateParameters) UnmarshalJSON

func (acp *ApplicationCreateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ApplicationCreateParameters struct.

type ApplicationListResult

type ApplicationListResult struct {
	autorest.Response `json:"-"`
	// Value - A collection of applications.
	Value *[]Application `json:"value,omitempty"`
	// OdataNextLink - The URL to get the next set of results.
	OdataNextLink *string `json:"odata.nextLink,omitempty"`
}

ApplicationListResult application list operation result.

func (ApplicationListResult) IsEmpty

func (alr ApplicationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ApplicationListResultIterator

type ApplicationListResultIterator struct {
	// contains filtered or unexported fields
}

ApplicationListResultIterator provides access to a complete listing of Application values.

func (*ApplicationListResultIterator) Next

func (iter *ApplicationListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ApplicationListResultIterator) NotDone

func (iter ApplicationListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ApplicationListResultIterator) Response

Response returns the raw server response from the last page request.

func (ApplicationListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ApplicationListResultPage

type ApplicationListResultPage struct {
	// contains filtered or unexported fields
}

ApplicationListResultPage contains a page of Application values.

func (*ApplicationListResultPage) Next

func (page *ApplicationListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ApplicationListResultPage) NotDone

func (page ApplicationListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ApplicationListResultPage) Response

Response returns the raw server response from the last page request.

func (ApplicationListResultPage) Values

func (page ApplicationListResultPage) Values() []Application

Values returns the slice of values for the current page or nil if there are no values.

type ApplicationUpdateParameters

type ApplicationUpdateParameters struct {
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// AvailableToOtherTenants - Whether the application is available to other tenants
	AvailableToOtherTenants *bool `json:"availableToOtherTenants,omitempty"`
	// DisplayName - The display name of the application.
	DisplayName *string `json:"displayName,omitempty"`
	// Homepage - The home page of the application.
	Homepage *string `json:"homepage,omitempty"`
	// IdentifierUris - A collection of URIs for the application.
	IdentifierUris *[]string `json:"identifierUris,omitempty"`
	// ReplyUrls - A collection of reply URLs for the application.
	ReplyUrls *[]string `json:"replyUrls,omitempty"`
	// KeyCredentials - The list of KeyCredential objects.
	KeyCredentials *[]KeyCredential `json:"keyCredentials,omitempty"`
	// PasswordCredentials - The list of PasswordCredential objects.
	PasswordCredentials *[]PasswordCredential `json:"passwordCredentials,omitempty"`
	// Oauth2AllowImplicitFlow - Whether to allow implicit grant flow for OAuth2
	Oauth2AllowImplicitFlow *bool `json:"oauth2AllowImplicitFlow,omitempty"`
	// RequiredResourceAccess - Specifies resources that this application requires access to and the set of OAuth permission scopes and application roles that it needs under each of those resources. This pre-configuration of required resource access drives the consent experience.
	RequiredResourceAccess *[]RequiredResourceAccess `json:"requiredResourceAccess,omitempty"`
}

ApplicationUpdateParameters request parameters for updating an existing application.

func (ApplicationUpdateParameters) MarshalJSON

func (aup ApplicationUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ApplicationUpdateParameters.

func (*ApplicationUpdateParameters) UnmarshalJSON

func (aup *ApplicationUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ApplicationUpdateParameters struct.

type ApplicationsClient

type ApplicationsClient struct {
	BaseClient
}

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

func (client ApplicationsClient) AddOwner(ctx context.Context, applicationObjectID string, parameters ApplicationAddOwnerParameters) (result autorest.Response, err error)

AddOwner add an owner to an application. Parameters: applicationObjectID - the object ID of the application to which to add the owner. parameters - the URL of the owner object, such as https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd.

func (ApplicationsClient) AddOwnerPreparer

func (client ApplicationsClient) AddOwnerPreparer(ctx context.Context, applicationObjectID string, parameters ApplicationAddOwnerParameters) (*http.Request, error)

AddOwnerPreparer prepares the AddOwner request.

func (ApplicationsClient) AddOwnerResponder

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

AddOwnerResponder handles the response to the AddOwner request. The method always closes the http.Response Body.

func (ApplicationsClient) AddOwnerSender

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

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

func (ApplicationsClient) Create

func (client ApplicationsClient) Create(ctx context.Context, parameters ApplicationCreateParameters) (result Application, err error)

Create create a new application. Parameters: parameters - the parameters for creating an application.

func (ApplicationsClient) CreatePreparer

func (client ApplicationsClient) CreatePreparer(ctx context.Context, 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(ctx context.Context, applicationObjectID string) (result autorest.Response, err error)

Delete delete an application. Parameters: applicationObjectID - application object ID.

func (ApplicationsClient) DeletePreparer

func (client ApplicationsClient) DeletePreparer(ctx context.Context, 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(ctx context.Context, applicationObjectID string) (result Application, err error)

Get get an application by object ID. Parameters: applicationObjectID - application object ID.

func (ApplicationsClient) GetPreparer

func (client ApplicationsClient) GetPreparer(ctx context.Context, 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(ctx context.Context, filter string) (result ApplicationListResultPage, err error)

List lists applications by filter parameters. Parameters: filter - the filters to apply to the operation.

func (ApplicationsClient) ListComplete

func (client ApplicationsClient) ListComplete(ctx context.Context, filter string) (result ApplicationListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (ApplicationsClient) ListKeyCredentials

func (client ApplicationsClient) ListKeyCredentials(ctx context.Context, applicationObjectID string) (result KeyCredentialListResult, err error)

ListKeyCredentials get the keyCredentials associated with an application. Parameters: applicationObjectID - application object ID.

func (ApplicationsClient) ListKeyCredentialsPreparer

func (client ApplicationsClient) ListKeyCredentialsPreparer(ctx context.Context, 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(ctx context.Context, nextLink string) (result ApplicationListResult, err error)

ListNext gets a list of applications from the current tenant. Parameters: nextLink - next link for the list operation.

func (ApplicationsClient) ListNextPreparer

func (client ApplicationsClient) ListNextPreparer(ctx context.Context, 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) ListOwners

func (client ApplicationsClient) ListOwners(ctx context.Context, applicationObjectID string) (result DirectoryObjectListResult, err error)

ListOwners the owners are a set of non-admin users who are allowed to modify this object. Parameters: applicationObjectID - the object ID of the application for which to get owners.

func (ApplicationsClient) ListOwnersPreparer

func (client ApplicationsClient) ListOwnersPreparer(ctx context.Context, applicationObjectID string) (*http.Request, error)

ListOwnersPreparer prepares the ListOwners request.

func (ApplicationsClient) ListOwnersResponder

func (client ApplicationsClient) ListOwnersResponder(resp *http.Response) (result DirectoryObjectListResult, err error)

ListOwnersResponder handles the response to the ListOwners request. The method always closes the http.Response Body.

func (ApplicationsClient) ListOwnersSender

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

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

func (ApplicationsClient) ListPasswordCredentials

func (client ApplicationsClient) ListPasswordCredentials(ctx context.Context, applicationObjectID string) (result PasswordCredentialListResult, err error)

ListPasswordCredentials get the passwordCredentials associated with an application. Parameters: applicationObjectID - application object ID.

func (ApplicationsClient) ListPasswordCredentialsPreparer

func (client ApplicationsClient) ListPasswordCredentialsPreparer(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, applicationObjectID string, parameters ApplicationUpdateParameters) (result autorest.Response, err error)

Patch update an existing application. Parameters: applicationObjectID - application object ID. parameters - parameters to update an existing application.

func (ApplicationsClient) PatchPreparer

func (client ApplicationsClient) PatchPreparer(ctx context.Context, 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(ctx context.Context, applicationObjectID string, parameters KeyCredentialsUpdateParameters) (result autorest.Response, err error)

UpdateKeyCredentials update the keyCredentials associated with an application. Parameters: applicationObjectID - application object ID. parameters - parameters to update the keyCredentials of an existing application.

func (ApplicationsClient) UpdateKeyCredentialsPreparer

func (client ApplicationsClient) UpdateKeyCredentialsPreparer(ctx context.Context, 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(ctx context.Context, applicationObjectID string, parameters PasswordCredentialsUpdateParameters) (result autorest.Response, err error)

UpdatePasswordCredentials update passwordCredentials associated with an application. Parameters: applicationObjectID - application object ID. parameters - parameters to update passwordCredentials of an existing application.

func (ApplicationsClient) UpdatePasswordCredentialsPreparer

func (client ApplicationsClient) UpdatePasswordCredentialsPreparer(ctx context.Context, 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 BaseClient

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

BaseClient is the base client for Graphrbac.

func New

func New(tenantID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, tenantID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type BasicDirectoryObject

type BasicDirectoryObject interface {
	AsApplication() (*Application, bool)
	AsADGroup() (*ADGroup, bool)
	AsServicePrincipal() (*ServicePrincipal, bool)
	AsUser() (*User, bool)
	AsDirectoryObject() (*DirectoryObject, bool)
}

BasicDirectoryObject represents an Azure Active Directory object.

type CheckGroupMembershipParameters

type CheckGroupMembershipParameters struct {
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// GroupID - The object ID of the group to check.
	GroupID *string `json:"groupId,omitempty"`
	// MemberID - The object ID of the contact, group, user, or service principal to check for membership in the specified group.
	MemberID *string `json:"memberId,omitempty"`
}

CheckGroupMembershipParameters request parameters for IsMemberOf API call.

func (CheckGroupMembershipParameters) MarshalJSON

func (cgmp CheckGroupMembershipParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CheckGroupMembershipParameters.

func (*CheckGroupMembershipParameters) UnmarshalJSON

func (cgmp *CheckGroupMembershipParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CheckGroupMembershipParameters struct.

type CheckGroupMembershipResult

type CheckGroupMembershipResult struct {
	autorest.Response `json:"-"`
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// Value - True if the specified user, group, contact, or service principal has either direct or transitive membership in the specified group; otherwise, false.
	Value *bool `json:"value,omitempty"`
}

CheckGroupMembershipResult server response for IsMemberOf API call

func (CheckGroupMembershipResult) MarshalJSON

func (cgmr CheckGroupMembershipResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CheckGroupMembershipResult.

func (*CheckGroupMembershipResult) UnmarshalJSON

func (cgmr *CheckGroupMembershipResult) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CheckGroupMembershipResult struct.

type DirectoryObject

type DirectoryObject struct {
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// ObjectID - The object ID.
	ObjectID *string `json:"objectId,omitempty"`
	// DeletionTimestamp - The time at which the directory object was deleted.
	DeletionTimestamp *date.Time `json:"deletionTimestamp,omitempty"`
	// ObjectType - Possible values include: 'ObjectTypeDirectoryObject', 'ObjectTypeApplication', 'ObjectTypeGroup', 'ObjectTypeServicePrincipal', 'ObjectTypeUser'
	ObjectType ObjectType `json:"objectType,omitempty"`
}

DirectoryObject represents an Azure Active Directory object.

func (DirectoryObject) AsADGroup

func (do DirectoryObject) AsADGroup() (*ADGroup, bool)

AsADGroup is the BasicDirectoryObject implementation for DirectoryObject.

func (DirectoryObject) AsApplication

func (do DirectoryObject) AsApplication() (*Application, bool)

AsApplication is the BasicDirectoryObject implementation for DirectoryObject.

func (DirectoryObject) AsBasicDirectoryObject

func (do DirectoryObject) AsBasicDirectoryObject() (BasicDirectoryObject, bool)

AsBasicDirectoryObject is the BasicDirectoryObject implementation for DirectoryObject.

func (DirectoryObject) AsDirectoryObject

func (do DirectoryObject) AsDirectoryObject() (*DirectoryObject, bool)

AsDirectoryObject is the BasicDirectoryObject implementation for DirectoryObject.

func (DirectoryObject) AsServicePrincipal

func (do DirectoryObject) AsServicePrincipal() (*ServicePrincipal, bool)

AsServicePrincipal is the BasicDirectoryObject implementation for DirectoryObject.

func (DirectoryObject) AsUser

func (do DirectoryObject) AsUser() (*User, bool)

AsUser is the BasicDirectoryObject implementation for DirectoryObject.

func (DirectoryObject) MarshalJSON

func (do DirectoryObject) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DirectoryObject.

func (*DirectoryObject) UnmarshalJSON

func (do *DirectoryObject) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DirectoryObject struct.

type DirectoryObjectListResult

type DirectoryObjectListResult struct {
	autorest.Response `json:"-"`
	// Value - A collection of DirectoryObject.
	Value *[]BasicDirectoryObject `json:"value,omitempty"`
}

DirectoryObjectListResult directoryObject list operation result.

func (*DirectoryObjectListResult) UnmarshalJSON

func (dolr *DirectoryObjectListResult) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DirectoryObjectListResult struct.

type Domain

type Domain struct {
	autorest.Response `json:"-"`
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// AuthenticationType - the type of the authentication into the domain.
	AuthenticationType *string `json:"authenticationType,omitempty"`
	// IsDefault - if this is the default domain in the tenant.
	IsDefault *bool `json:"isDefault,omitempty"`
	// IsVerified - if this domain's ownership is verified.
	IsVerified *bool `json:"isVerified,omitempty"`
	// Name - the domain name.
	Name *string `json:"name,omitempty"`
}

Domain active Directory Domain information.

func (Domain) MarshalJSON

func (d Domain) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Domain.

func (*Domain) UnmarshalJSON

func (d *Domain) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Domain struct.

type DomainListResult

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

DomainListResult server response for Get tenant domains API call.

type DomainsClient

type DomainsClient struct {
	BaseClient
}

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(ctx context.Context, domainName string) (result Domain, err error)

Get gets a specific domain in the current tenant. Parameters: domainName - name of the domain.

func (DomainsClient) GetPreparer

func (client DomainsClient) GetPreparer(ctx context.Context, 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(ctx context.Context, filter string) (result DomainListResult, err error)

List gets a list of domains for the current tenant. Parameters: filter - the filter to apply to the operation.

func (DomainsClient) ListPreparer

func (client DomainsClient) ListPreparer(ctx context.Context, 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 - Error message value.
	Message *string `json:"value,omitempty"`
}

ErrorMessage active Directory error message.

type GetObjectsParameters

type GetObjectsParameters struct {
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// ObjectIds - The requested object IDs.
	ObjectIds *[]string `json:"objectIds,omitempty"`
	// Types - The requested object types.
	Types *[]string `json:"types,omitempty"`
	// IncludeDirectoryObjectReferences - If true, also searches for object IDs in the partner tenant.
	IncludeDirectoryObjectReferences *bool `json:"includeDirectoryObjectReferences,omitempty"`
}

GetObjectsParameters request parameters for the GetObjectsByObjectIds API.

func (GetObjectsParameters) MarshalJSON

func (gop GetObjectsParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for GetObjectsParameters.

func (*GetObjectsParameters) UnmarshalJSON

func (gop *GetObjectsParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for GetObjectsParameters struct.

type GetObjectsResult

type GetObjectsResult struct {
	autorest.Response `json:"-"`
	// Value - A collection of Active Directory objects.
	Value *[]AADObject `json:"value,omitempty"`
	// OdataNextLink - The URL to get the next set of results.
	OdataNextLink *string `json:"odata.nextLink,omitempty"`
}

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

func (GetObjectsResult) IsEmpty

func (gor GetObjectsResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type GetObjectsResultIterator

type GetObjectsResultIterator struct {
	// contains filtered or unexported fields
}

GetObjectsResultIterator provides access to a complete listing of AADObject values.

func (*GetObjectsResultIterator) Next

func (iter *GetObjectsResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (GetObjectsResultIterator) NotDone

func (iter GetObjectsResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (GetObjectsResultIterator) Response

Response returns the raw server response from the last page request.

func (GetObjectsResultIterator) Value

func (iter GetObjectsResultIterator) Value() AADObject

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type GetObjectsResultPage

type GetObjectsResultPage struct {
	// contains filtered or unexported fields
}

GetObjectsResultPage contains a page of AADObject values.

func (*GetObjectsResultPage) Next

func (page *GetObjectsResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (GetObjectsResultPage) NotDone

func (page GetObjectsResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (GetObjectsResultPage) Response

func (page GetObjectsResultPage) Response() GetObjectsResult

Response returns the raw server response from the last page request.

func (GetObjectsResultPage) Values

func (page GetObjectsResultPage) Values() []AADObject

Values returns the slice of values for the current page or nil if there are no values.

type GraphError

type GraphError struct {
	// OdataError - A Graph API error.
	*OdataError `json:"odata.error,omitempty"`
}

GraphError active Directory error information.

func (GraphError) MarshalJSON

func (ge GraphError) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for GraphError.

func (*GraphError) UnmarshalJSON

func (ge *GraphError) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for GraphError struct.

type GroupAddMemberParameters

type GroupAddMemberParameters struct {
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// URL - A member object URL, such as "https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd", where "0b1f9851-1bf0-433f-aec3-cb9272f093dc" is the tenantId and "f260bbc4-c254-447b-94cf-293b5ec434dd" is the objectId of the member (user, application, servicePrincipal, group) to be added.
	URL *string `json:"url,omitempty"`
}

GroupAddMemberParameters request parameters for adding a member to a group.

func (GroupAddMemberParameters) MarshalJSON

func (gamp GroupAddMemberParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for GroupAddMemberParameters.

func (*GroupAddMemberParameters) UnmarshalJSON

func (gamp *GroupAddMemberParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for GroupAddMemberParameters struct.

type GroupCreateParameters

type GroupCreateParameters struct {
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// DisplayName - Group display name
	DisplayName *string `json:"displayName,omitempty"`
	// MailEnabled - Whether the group is mail-enabled. Must be false. This is because only pure security groups can be created using the Graph API.
	MailEnabled *bool `json:"mailEnabled,omitempty"`
	// MailNickname - Mail nickname
	MailNickname *string `json:"mailNickname,omitempty"`
	// SecurityEnabled - Whether the group is a security group. Must be true. This is because only pure security groups can be created using the Graph API.
	SecurityEnabled *bool `json:"securityEnabled,omitempty"`
}

GroupCreateParameters request parameters for creating a new group.

func (GroupCreateParameters) MarshalJSON

func (gcp GroupCreateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for GroupCreateParameters.

func (*GroupCreateParameters) UnmarshalJSON

func (gcp *GroupCreateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for GroupCreateParameters struct.

type GroupGetMemberGroupsParameters

type GroupGetMemberGroupsParameters struct {
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// SecurityEnabledOnly - If true, only membership in security-enabled groups should be checked. Otherwise, membership in all groups should be checked.
	SecurityEnabledOnly *bool `json:"securityEnabledOnly,omitempty"`
}

GroupGetMemberGroupsParameters request parameters for GetMemberGroups API call.

func (GroupGetMemberGroupsParameters) MarshalJSON

func (ggmgp GroupGetMemberGroupsParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for GroupGetMemberGroupsParameters.

func (*GroupGetMemberGroupsParameters) UnmarshalJSON

func (ggmgp *GroupGetMemberGroupsParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for GroupGetMemberGroupsParameters struct.

type GroupGetMemberGroupsResult

type GroupGetMemberGroupsResult struct {
	autorest.Response `json:"-"`
	// Value - A collection of group IDs of which the group is a member.
	Value *[]string `json:"value,omitempty"`
}

GroupGetMemberGroupsResult server response for GetMemberGroups API call.

type GroupListResult

type GroupListResult struct {
	autorest.Response `json:"-"`
	// Value - A collection of Active Directory groups.
	Value *[]ADGroup `json:"value,omitempty"`
	// OdataNextLink - The URL to get the next set of results.
	OdataNextLink *string `json:"odata.nextLink,omitempty"`
}

GroupListResult server response for Get tenant groups API call

func (GroupListResult) IsEmpty

func (glr GroupListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type GroupListResultIterator

type GroupListResultIterator struct {
	// contains filtered or unexported fields
}

GroupListResultIterator provides access to a complete listing of ADGroup values.

func (*GroupListResultIterator) Next

func (iter *GroupListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (GroupListResultIterator) NotDone

func (iter GroupListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (GroupListResultIterator) Response

func (iter GroupListResultIterator) Response() GroupListResult

Response returns the raw server response from the last page request.

func (GroupListResultIterator) Value

func (iter GroupListResultIterator) Value() ADGroup

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type GroupListResultPage

type GroupListResultPage struct {
	// contains filtered or unexported fields
}

GroupListResultPage contains a page of ADGroup values.

func (*GroupListResultPage) Next

func (page *GroupListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (GroupListResultPage) NotDone

func (page GroupListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (GroupListResultPage) Response

func (page GroupListResultPage) Response() GroupListResult

Response returns the raw server response from the last page request.

func (GroupListResultPage) Values

func (page GroupListResultPage) Values() []ADGroup

Values returns the slice of values for the current page or nil if there are no values.

type GroupsClient

type GroupsClient struct {
	BaseClient
}

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(ctx context.Context, groupObjectID string, parameters GroupAddMemberParameters) (result autorest.Response, err error)

AddMember add a member to a group. Parameters: groupObjectID - the object ID of the group to which to add the member. parameters - 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(ctx context.Context, 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(ctx context.Context, parameters GroupCreateParameters) (result ADGroup, err error)

Create create a group in the directory. Parameters: parameters - the parameters for the group to create.

func (GroupsClient) CreatePreparer

func (client GroupsClient) CreatePreparer(ctx context.Context, 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(ctx context.Context, objectID string) (result autorest.Response, err error)

Delete delete a group from the directory. Parameters: objectID - the object ID of the group to delete.

func (GroupsClient) DeletePreparer

func (client GroupsClient) DeletePreparer(ctx context.Context, objectID 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(ctx context.Context, objectID string) (result ADGroup, err error)

Get gets group information from the directory. Parameters: objectID - the object ID of the user for which to get group information.

func (GroupsClient) GetGroupMembers

func (client GroupsClient) GetGroupMembers(ctx context.Context, objectID string) (result GetObjectsResultPage, err error)

GetGroupMembers gets the members of a group. Parameters: objectID - the object ID of the group whose members should be retrieved.

func (GroupsClient) GetGroupMembersComplete

func (client GroupsClient) GetGroupMembersComplete(ctx context.Context, objectID string) (result GetObjectsResultIterator, err error)

GetGroupMembersComplete enumerates all values, automatically crossing page boundaries as required.

func (GroupsClient) GetGroupMembersNext

func (client GroupsClient) GetGroupMembersNext(ctx context.Context, nextLink string) (result GetObjectsResult, err error)

GetGroupMembersNext gets the members of a group. Parameters: nextLink - next link for the list operation.

func (GroupsClient) GetGroupMembersNextPreparer

func (client GroupsClient) GetGroupMembersNextPreparer(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, 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. Parameters: objectID - the object ID of the group for which to get group membership. parameters - group filtering parameters.

func (GroupsClient) GetMemberGroupsPreparer

func (client GroupsClient) GetMemberGroupsPreparer(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, 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: parameters - the check group membership parameters.

func (GroupsClient) IsMemberOfPreparer

func (client GroupsClient) IsMemberOfPreparer(ctx context.Context, 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(ctx context.Context, filter string) (result GroupListResultPage, err error)

List gets list of groups for the current tenant. Parameters: filter - the filter to apply to the operation.

func (GroupsClient) ListComplete

func (client GroupsClient) ListComplete(ctx context.Context, filter string) (result GroupListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (GroupsClient) ListNext

func (client GroupsClient) ListNext(ctx context.Context, nextLink string) (result GroupListResult, err error)

ListNext gets a list of groups for the current tenant. Parameters: nextLink - next link for the list operation.

func (GroupsClient) ListNextPreparer

func (client GroupsClient) ListNextPreparer(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, groupObjectID string, memberObjectID string) (result autorest.Response, err error)

RemoveMember remove a member from a group. Parameters: groupObjectID - the object ID of the group from which to remove the member. memberObjectID - member object id

func (GroupsClient) RemoveMemberPreparer

func (client GroupsClient) RemoveMemberPreparer(ctx context.Context, 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 {
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// StartDate - Start date.
	StartDate *date.Time `json:"startDate,omitempty"`
	// EndDate - End date.
	EndDate *date.Time `json:"endDate,omitempty"`
	// Value - Key value.
	Value *string `json:"value,omitempty"`
	// KeyID - Key ID.
	KeyID *string `json:"keyId,omitempty"`
	// Usage - Usage. Acceptable values are 'Verify' and 'Sign'.
	Usage *string `json:"usage,omitempty"`
	// Type - Type. Acceptable values are 'AsymmetricX509Cert' and 'Symmetric'.
	Type *string `json:"type,omitempty"`
	// CustomKeyIdentifier - Custom Key Identifier
	CustomKeyIdentifier *[]byte `json:"customKeyIdentifier,omitempty"`
}

KeyCredential active Directory Key Credential information.

func (KeyCredential) MarshalJSON

func (kc KeyCredential) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for KeyCredential.

func (*KeyCredential) UnmarshalJSON

func (kc *KeyCredential) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for KeyCredential struct.

type KeyCredentialListResult

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

KeyCredentialListResult keyCredential list operation result.

type KeyCredentialsUpdateParameters

type KeyCredentialsUpdateParameters struct {
	// Value - A collection of KeyCredentials.
	Value *[]KeyCredential `json:"value,omitempty"`
}

KeyCredentialsUpdateParameters request parameters for a KeyCredentials update operation

type OAuth2Client

type OAuth2Client struct {
	BaseClient
}

OAuth2Client is the the Graph RBAC Management Client

func NewOAuth2Client

func NewOAuth2Client(tenantID string) OAuth2Client

NewOAuth2Client creates an instance of the OAuth2Client client.

func NewOAuth2ClientWithBaseURI

func NewOAuth2ClientWithBaseURI(baseURI string, tenantID string) OAuth2Client

NewOAuth2ClientWithBaseURI creates an instance of the OAuth2Client client.

func (OAuth2Client) Get

func (client OAuth2Client) Get(ctx context.Context, filter string) (result Permissions, err error)

Get queries OAuth2 permissions for the relevant SP ObjectId of an app. Parameters: filter - this is the Service Principal ObjectId associated with the app

func (OAuth2Client) GetPreparer

func (client OAuth2Client) GetPreparer(ctx context.Context, filter string) (*http.Request, error)

GetPreparer prepares the Get request.

func (OAuth2Client) GetResponder

func (client OAuth2Client) GetResponder(resp *http.Response) (result Permissions, err error)

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

func (OAuth2Client) GetSender

func (client OAuth2Client) 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 (OAuth2Client) Post

func (client OAuth2Client) Post(ctx context.Context, body *Permissions) (result Permissions, err error)

Post grants OAuth2 permissions for the relevant resource Ids of an app. Parameters: body - the relevant app Service Principal Object Id and the Service Principal Objecit Id you want to grant.

func (OAuth2Client) PostPreparer

func (client OAuth2Client) PostPreparer(ctx context.Context, body *Permissions) (*http.Request, error)

PostPreparer prepares the Post request.

func (OAuth2Client) PostResponder

func (client OAuth2Client) PostResponder(resp *http.Response) (result Permissions, err error)

PostResponder handles the response to the Post request. The method always closes the http.Response Body.

func (OAuth2Client) PostSender

func (client OAuth2Client) PostSender(req *http.Request) (*http.Response, error)

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

type ObjectType

type ObjectType string

ObjectType enumerates the values for object type.

const (
	// ObjectTypeApplication ...
	ObjectTypeApplication ObjectType = "Application"
	// ObjectTypeDirectoryObject ...
	ObjectTypeDirectoryObject ObjectType = "DirectoryObject"
	// ObjectTypeGroup ...
	ObjectTypeGroup ObjectType = "Group"
	// ObjectTypeServicePrincipal ...
	ObjectTypeServicePrincipal ObjectType = "ServicePrincipal"
	// ObjectTypeUser ...
	ObjectTypeUser ObjectType = "User"
)

func PossibleObjectTypeValues

func PossibleObjectTypeValues() []ObjectType

PossibleObjectTypeValues returns an array of possible values for the ObjectType const type.

type ObjectsClient

type ObjectsClient struct {
	BaseClient
}

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(ctx context.Context) (result AADObject, err error)

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

func (ObjectsClient) GetCurrentUserPreparer

func (client ObjectsClient) GetCurrentUserPreparer(ctx context.Context) (*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(ctx context.Context, parameters GetObjectsParameters) (result GetObjectsResultPage, err error)

GetObjectsByObjectIds gets AD group membership for the specified AD object IDs. Parameters: parameters - objects filtering parameters.

func (ObjectsClient) GetObjectsByObjectIdsComplete

func (client ObjectsClient) GetObjectsByObjectIdsComplete(ctx context.Context, parameters GetObjectsParameters) (result GetObjectsResultIterator, err error)

GetObjectsByObjectIdsComplete enumerates all values, automatically crossing page boundaries as required.

func (ObjectsClient) GetObjectsByObjectIdsNext

func (client ObjectsClient) GetObjectsByObjectIdsNext(ctx context.Context, nextLink string) (result GetObjectsResult, err error)

GetObjectsByObjectIdsNext gets AD group membership for the specified AD object IDs. Parameters: nextLink - next link for the list operation.

func (ObjectsClient) GetObjectsByObjectIdsNextPreparer

func (client ObjectsClient) GetObjectsByObjectIdsNextPreparer(ctx context.Context, 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(ctx context.Context, 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 - Error code.
	Code *string `json:"code,omitempty"`
	// ErrorMessage - Error Message.
	*ErrorMessage `json:"message,omitempty"`
}

OdataError active Directory OData error information.

func (OdataError) MarshalJSON

func (oe OdataError) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OdataError.

func (*OdataError) UnmarshalJSON

func (oe *OdataError) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for OdataError struct.

type PasswordCredential

type PasswordCredential struct {
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// StartDate - Start date.
	StartDate *date.Time `json:"startDate,omitempty"`
	// EndDate - End date.
	EndDate *date.Time `json:"endDate,omitempty"`
	// KeyID - Key ID.
	KeyID *string `json:"keyId,omitempty"`
	// Value - Key value.
	Value *string `json:"value,omitempty"`
}

PasswordCredential active Directory Password Credential information.

func (PasswordCredential) MarshalJSON

func (pc PasswordCredential) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PasswordCredential.

func (*PasswordCredential) UnmarshalJSON

func (pc *PasswordCredential) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PasswordCredential struct.

type PasswordCredentialListResult

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

PasswordCredentialListResult passwordCredential list operation result.

type PasswordCredentialsUpdateParameters

type PasswordCredentialsUpdateParameters struct {
	// Value - A collection of PasswordCredentials.
	Value *[]PasswordCredential `json:"value,omitempty"`
}

PasswordCredentialsUpdateParameters request parameters for a PasswordCredentials update operation.

type PasswordProfile

type PasswordProfile struct {
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// Password - Password
	Password *string `json:"password,omitempty"`
	// ForceChangePasswordNextLogin - Whether to force a password change on next login.
	ForceChangePasswordNextLogin *bool `json:"forceChangePasswordNextLogin,omitempty"`
}

PasswordProfile the password profile associated with a user.

func (PasswordProfile) MarshalJSON

func (pp PasswordProfile) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PasswordProfile.

func (*PasswordProfile) UnmarshalJSON

func (pp *PasswordProfile) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PasswordProfile struct.

type Permissions

type Permissions struct {
	autorest.Response `json:"-"`
	// OdataType - Microsoft.DirectoryServices.OAuth2PermissionGrant
	OdataType *string `json:"odata.type,omitempty"`
	// ClientID - The objectId of the Service Principal associated with the app
	ClientID *string `json:"clientId,omitempty"`
	// ConsentType - Typically set to AllPrincipals
	ConsentType *string `json:"consentType,omitempty"`
	// PrincipalID - Set to null if AllPrincipals is set
	PrincipalID interface{} `json:"principalId,omitempty"`
	// ResourceID - Service Principal Id of the resource you want to grant
	ResourceID *string `json:"resourceId,omitempty"`
	// Scope - Typically set to user_impersonation
	Scope *string `json:"scope,omitempty"`
	// StartTime - Start time for TTL
	StartTime *string `json:"startTime,omitempty"`
	// ExpiryTime - Expiry time for TTL
	ExpiryTime *string `json:"expiryTime,omitempty"`
}

Permissions ...

type RequiredResourceAccess

type RequiredResourceAccess struct {
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// ResourceAccess - The list of OAuth2.0 permission scopes and app roles that the application requires from the specified resource.
	ResourceAccess *[]ResourceAccess `json:"resourceAccess,omitempty"`
	// ResourceAppID - The unique identifier for the resource that the application requires access to. This should be equal to the appId declared on the target resource application.
	ResourceAppID *string `json:"resourceAppId,omitempty"`
}

RequiredResourceAccess 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.

func (RequiredResourceAccess) MarshalJSON

func (rra RequiredResourceAccess) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RequiredResourceAccess.

func (*RequiredResourceAccess) UnmarshalJSON

func (rra *RequiredResourceAccess) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RequiredResourceAccess struct.

type ResourceAccess

type ResourceAccess struct {
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// ID - The unique identifier for one of the OAuth2Permission or AppRole instances that the resource application exposes.
	ID *string `json:"id,omitempty"`
	// Type - Specifies whether the id property references an OAuth2Permission or an AppRole. Possible values are "scope" or "role".
	Type *string `json:"type,omitempty"`
}

ResourceAccess 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.

func (ResourceAccess) MarshalJSON

func (ra ResourceAccess) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResourceAccess.

func (*ResourceAccess) UnmarshalJSON

func (ra *ResourceAccess) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ResourceAccess struct.

type ServicePrincipal

type ServicePrincipal struct {
	autorest.Response `json:"-"`
	// DisplayName - The display name of the service principal.
	DisplayName *string `json:"displayName,omitempty"`
	// AppID - The application ID.
	AppID *string `json:"appId,omitempty"`
	// ServicePrincipalNames - A collection of service principal names.
	ServicePrincipalNames *[]string `json:"servicePrincipalNames,omitempty"`
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// ObjectID - The object ID.
	ObjectID *string `json:"objectId,omitempty"`
	// DeletionTimestamp - The time at which the directory object was deleted.
	DeletionTimestamp *date.Time `json:"deletionTimestamp,omitempty"`
	// ObjectType - Possible values include: 'ObjectTypeDirectoryObject', 'ObjectTypeApplication', 'ObjectTypeGroup', 'ObjectTypeServicePrincipal', 'ObjectTypeUser'
	ObjectType ObjectType `json:"objectType,omitempty"`
}

ServicePrincipal active Directory service principal information.

func (ServicePrincipal) AsADGroup

func (sp ServicePrincipal) AsADGroup() (*ADGroup, bool)

AsADGroup is the BasicDirectoryObject implementation for ServicePrincipal.

func (ServicePrincipal) AsApplication

func (sp ServicePrincipal) AsApplication() (*Application, bool)

AsApplication is the BasicDirectoryObject implementation for ServicePrincipal.

func (ServicePrincipal) AsBasicDirectoryObject

func (sp ServicePrincipal) AsBasicDirectoryObject() (BasicDirectoryObject, bool)

AsBasicDirectoryObject is the BasicDirectoryObject implementation for ServicePrincipal.

func (ServicePrincipal) AsDirectoryObject

func (sp ServicePrincipal) AsDirectoryObject() (*DirectoryObject, bool)

AsDirectoryObject is the BasicDirectoryObject implementation for ServicePrincipal.

func (ServicePrincipal) AsServicePrincipal

func (sp ServicePrincipal) AsServicePrincipal() (*ServicePrincipal, bool)

AsServicePrincipal is the BasicDirectoryObject implementation for ServicePrincipal.

func (ServicePrincipal) AsUser

func (sp ServicePrincipal) AsUser() (*User, bool)

AsUser is the BasicDirectoryObject implementation for ServicePrincipal.

func (ServicePrincipal) MarshalJSON

func (sp ServicePrincipal) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServicePrincipal.

func (*ServicePrincipal) UnmarshalJSON

func (sp *ServicePrincipal) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServicePrincipal struct.

type ServicePrincipalCreateParameters

type ServicePrincipalCreateParameters struct {
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// AppID - application Id
	AppID *string `json:"appId,omitempty"`
	// AccountEnabled - Whether the account is enabled
	AccountEnabled *bool `json:"accountEnabled,omitempty"`
	// KeyCredentials - A collection of KeyCredential objects.
	KeyCredentials *[]KeyCredential `json:"keyCredentials,omitempty"`
	// PasswordCredentials - A collection of PasswordCredential objects
	PasswordCredentials *[]PasswordCredential `json:"passwordCredentials,omitempty"`
}

ServicePrincipalCreateParameters request parameters for creating a new service principal.

func (ServicePrincipalCreateParameters) MarshalJSON

func (spcp ServicePrincipalCreateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServicePrincipalCreateParameters.

func (*ServicePrincipalCreateParameters) UnmarshalJSON

func (spcp *ServicePrincipalCreateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServicePrincipalCreateParameters struct.

type ServicePrincipalListResult

type ServicePrincipalListResult struct {
	autorest.Response `json:"-"`
	// Value - the list of service principals.
	Value *[]ServicePrincipal `json:"value,omitempty"`
	// OdataNextLink - the URL to get the next set of results.
	OdataNextLink *string `json:"odata.nextLink,omitempty"`
}

ServicePrincipalListResult server response for get tenant service principals API call.

func (ServicePrincipalListResult) IsEmpty

func (splr ServicePrincipalListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ServicePrincipalListResultIterator

type ServicePrincipalListResultIterator struct {
	// contains filtered or unexported fields
}

ServicePrincipalListResultIterator provides access to a complete listing of ServicePrincipal values.

func (*ServicePrincipalListResultIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ServicePrincipalListResultIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (ServicePrincipalListResultIterator) Response

Response returns the raw server response from the last page request.

func (ServicePrincipalListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ServicePrincipalListResultPage

type ServicePrincipalListResultPage struct {
	// contains filtered or unexported fields
}

ServicePrincipalListResultPage contains a page of ServicePrincipal values.

func (*ServicePrincipalListResultPage) Next

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ServicePrincipalListResultPage) NotDone

func (page ServicePrincipalListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ServicePrincipalListResultPage) Response

Response returns the raw server response from the last page request.

func (ServicePrincipalListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type ServicePrincipalsClient

type ServicePrincipalsClient struct {
	BaseClient
}

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

Create creates a service principal in the directory. Parameters: parameters - parameters to create a service principal.

func (ServicePrincipalsClient) CreatePreparer

func (client ServicePrincipalsClient) CreatePreparer(ctx context.Context, 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(ctx context.Context, objectID string) (result autorest.Response, err error)

Delete deletes a service principal from the directory. Parameters: objectID - the object ID of the service principal to delete.

func (ServicePrincipalsClient) DeletePreparer

func (client ServicePrincipalsClient) DeletePreparer(ctx context.Context, 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(ctx context.Context, objectID string) (result ServicePrincipal, err error)

Get gets service principal information from the directory. Query by objectId or pass a filter to query by appId Parameters: objectID - the object ID of the service principal to get.

func (ServicePrincipalsClient) GetPreparer

func (client ServicePrincipalsClient) GetPreparer(ctx context.Context, 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(ctx context.Context, filter string) (result ServicePrincipalListResultPage, err error)

List gets a list of service principals from the current tenant. Parameters: filter - the filter to apply to the operation.

func (ServicePrincipalsClient) ListComplete

func (client ServicePrincipalsClient) ListComplete(ctx context.Context, filter string) (result ServicePrincipalListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (ServicePrincipalsClient) ListKeyCredentials

func (client ServicePrincipalsClient) ListKeyCredentials(ctx context.Context, objectID string) (result KeyCredentialListResult, err error)

ListKeyCredentials get the keyCredentials associated with the specified service principal. Parameters: objectID - the object ID of the service principal for which to get keyCredentials.

func (ServicePrincipalsClient) ListKeyCredentialsPreparer

func (client ServicePrincipalsClient) ListKeyCredentialsPreparer(ctx context.Context, 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(ctx context.Context, nextLink string) (result ServicePrincipalListResult, err error)

ListNext gets a list of service principals from the current tenant. Parameters: nextLink - next link for the list operation.

func (ServicePrincipalsClient) ListNextPreparer

func (client ServicePrincipalsClient) ListNextPreparer(ctx context.Context, 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) ListOwners

func (client ServicePrincipalsClient) ListOwners(ctx context.Context, objectID string) (result DirectoryObjectListResult, err error)

ListOwners the owners are a set of non-admin users who are allowed to modify this object. Parameters: objectID - the object ID of the service principal for which to get owners.

func (ServicePrincipalsClient) ListOwnersPreparer

func (client ServicePrincipalsClient) ListOwnersPreparer(ctx context.Context, objectID string) (*http.Request, error)

ListOwnersPreparer prepares the ListOwners request.

func (ServicePrincipalsClient) ListOwnersResponder

func (client ServicePrincipalsClient) ListOwnersResponder(resp *http.Response) (result DirectoryObjectListResult, err error)

ListOwnersResponder handles the response to the ListOwners request. The method always closes the http.Response Body.

func (ServicePrincipalsClient) ListOwnersSender

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

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

func (ServicePrincipalsClient) ListPasswordCredentials

func (client ServicePrincipalsClient) ListPasswordCredentials(ctx context.Context, objectID string) (result PasswordCredentialListResult, err error)

ListPasswordCredentials gets the passwordCredentials associated with a service principal. Parameters: objectID - the object ID of the service principal.

func (ServicePrincipalsClient) ListPasswordCredentialsPreparer

func (client ServicePrincipalsClient) ListPasswordCredentialsPreparer(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, objectID string, parameters KeyCredentialsUpdateParameters) (result autorest.Response, err error)

UpdateKeyCredentials update the keyCredentials associated with a service principal. Parameters: objectID - the object ID for which to get service principal information. parameters - parameters to update the keyCredentials of an existing service principal.

func (ServicePrincipalsClient) UpdateKeyCredentialsPreparer

func (client ServicePrincipalsClient) UpdateKeyCredentialsPreparer(ctx context.Context, 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(ctx context.Context, objectID string, parameters PasswordCredentialsUpdateParameters) (result autorest.Response, err error)

UpdatePasswordCredentials updates the passwordCredentials associated with a service principal. Parameters: objectID - the object ID of the service principal. parameters - parameters to update the passwordCredentials of an existing service principal.

func (ServicePrincipalsClient) UpdatePasswordCredentialsPreparer

func (client ServicePrincipalsClient) UpdatePasswordCredentialsPreparer(ctx context.Context, 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 {
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// Type - A string value that can be used to classify user sign-in types in your directory, such as 'emailAddress' or 'userName'.
	Type *string `json:"type,omitempty"`
	// Value - The sign-in used by the local account. Must be unique across the company/tenant. For example, 'johnc@example.com'.
	Value *string `json:"value,omitempty"`
}

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

func (SignInName) MarshalJSON

func (sin SignInName) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SignInName.

func (*SignInName) UnmarshalJSON

func (sin *SignInName) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SignInName struct.

type User

type User struct {
	autorest.Response `json:"-"`
	// ImmutableID - This must be specified if you are using a federated domain for the user's userPrincipalName (UPN) property when creating a new user account. It is used to associate an on-premises Active Directory user account with their Azure AD user object.
	ImmutableID *string `json:"immutableId,omitempty"`
	// UsageLocation - A two letter country code (ISO standard 3166). Required for users that will be assigned licenses due to legal requirement to check for availability of services in countries. Examples include: "US", "JP", and "GB".
	UsageLocation *string `json:"usageLocation,omitempty"`
	// GivenName - The given name for the user.
	GivenName *string `json:"givenName,omitempty"`
	// Surname - The user's surname (family name or last name).
	Surname *string `json:"surname,omitempty"`
	// UserType - A string value that can be used to classify user types in your directory, such as 'Member' and 'Guest'. Possible values include: 'Member', 'Guest'
	UserType UserType `json:"userType,omitempty"`
	// AccountEnabled - Whether the account is enabled.
	AccountEnabled *bool `json:"accountEnabled,omitempty"`
	// DisplayName - The display name of the user.
	DisplayName *string `json:"displayName,omitempty"`
	// UserPrincipalName - The principal name of the user.
	UserPrincipalName *string `json:"userPrincipalName,omitempty"`
	// MailNickname - The mail alias for the user.
	MailNickname *string `json:"mailNickname,omitempty"`
	// Mail - The primary email address of the user.
	Mail *string `json:"mail,omitempty"`
	// SignInNames - The sign-in names of the user.
	SignInNames *[]SignInName `json:"signInNames,omitempty"`
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// ObjectID - The object ID.
	ObjectID *string `json:"objectId,omitempty"`
	// DeletionTimestamp - The time at which the directory object was deleted.
	DeletionTimestamp *date.Time `json:"deletionTimestamp,omitempty"`
	// ObjectType - Possible values include: 'ObjectTypeDirectoryObject', 'ObjectTypeApplication', 'ObjectTypeGroup', 'ObjectTypeServicePrincipal', 'ObjectTypeUser'
	ObjectType ObjectType `json:"objectType,omitempty"`
}

User active Directory user information.

func (User) AsADGroup

func (u User) AsADGroup() (*ADGroup, bool)

AsADGroup is the BasicDirectoryObject implementation for User.

func (User) AsApplication

func (u User) AsApplication() (*Application, bool)

AsApplication is the BasicDirectoryObject implementation for User.

func (User) AsBasicDirectoryObject

func (u User) AsBasicDirectoryObject() (BasicDirectoryObject, bool)

AsBasicDirectoryObject is the BasicDirectoryObject implementation for User.

func (User) AsDirectoryObject

func (u User) AsDirectoryObject() (*DirectoryObject, bool)

AsDirectoryObject is the BasicDirectoryObject implementation for User.

func (User) AsServicePrincipal

func (u User) AsServicePrincipal() (*ServicePrincipal, bool)

AsServicePrincipal is the BasicDirectoryObject implementation for User.

func (User) AsUser

func (u User) AsUser() (*User, bool)

AsUser is the BasicDirectoryObject implementation for User.

func (User) MarshalJSON

func (u User) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for User.

func (*User) UnmarshalJSON

func (u *User) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for User struct.

type UserBase

type UserBase struct {
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// ImmutableID - This must be specified if you are using a federated domain for the user's userPrincipalName (UPN) property when creating a new user account. It is used to associate an on-premises Active Directory user account with their Azure AD user object.
	ImmutableID *string `json:"immutableId,omitempty"`
	// UsageLocation - A two letter country code (ISO standard 3166). Required for users that will be assigned licenses due to legal requirement to check for availability of services in countries. Examples include: "US", "JP", and "GB".
	UsageLocation *string `json:"usageLocation,omitempty"`
	// GivenName - The given name for the user.
	GivenName *string `json:"givenName,omitempty"`
	// Surname - The user's surname (family name or last name).
	Surname *string `json:"surname,omitempty"`
	// UserType - A string value that can be used to classify user types in your directory, such as 'Member' and 'Guest'. Possible values include: 'Member', 'Guest'
	UserType UserType `json:"userType,omitempty"`
}

UserBase ...

func (UserBase) MarshalJSON

func (ub UserBase) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for UserBase.

func (*UserBase) UnmarshalJSON

func (ub *UserBase) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for UserBase struct.

type UserCreateParameters

type UserCreateParameters struct {
	// AccountEnabled - Whether the account is enabled.
	AccountEnabled *bool `json:"accountEnabled,omitempty"`
	// DisplayName - The display name of the user.
	DisplayName *string `json:"displayName,omitempty"`
	// PasswordProfile - Password Profile
	PasswordProfile *PasswordProfile `json:"passwordProfile,omitempty"`
	// UserPrincipalName - The user principal name (someuser@contoso.com). It must contain one of the verified domains for the tenant.
	UserPrincipalName *string `json:"userPrincipalName,omitempty"`
	// MailNickname - The mail alias for the user.
	MailNickname *string `json:"mailNickname,omitempty"`
	// Mail - The primary email address of the user.
	Mail *string `json:"mail,omitempty"`
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// ImmutableID - This must be specified if you are using a federated domain for the user's userPrincipalName (UPN) property when creating a new user account. It is used to associate an on-premises Active Directory user account with their Azure AD user object.
	ImmutableID *string `json:"immutableId,omitempty"`
	// UsageLocation - A two letter country code (ISO standard 3166). Required for users that will be assigned licenses due to legal requirement to check for availability of services in countries. Examples include: "US", "JP", and "GB".
	UsageLocation *string `json:"usageLocation,omitempty"`
	// GivenName - The given name for the user.
	GivenName *string `json:"givenName,omitempty"`
	// Surname - The user's surname (family name or last name).
	Surname *string `json:"surname,omitempty"`
	// UserType - A string value that can be used to classify user types in your directory, such as 'Member' and 'Guest'. Possible values include: 'Member', 'Guest'
	UserType UserType `json:"userType,omitempty"`
}

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

func (UserCreateParameters) MarshalJSON

func (ucp UserCreateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for UserCreateParameters.

func (*UserCreateParameters) UnmarshalJSON

func (ucp *UserCreateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for UserCreateParameters struct.

type UserGetMemberGroupsParameters

type UserGetMemberGroupsParameters struct {
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// SecurityEnabledOnly - If true, only membership in security-enabled groups should be checked. Otherwise, membership in all groups should be checked.
	SecurityEnabledOnly *bool `json:"securityEnabledOnly,omitempty"`
}

UserGetMemberGroupsParameters request parameters for GetMemberGroups API call.

func (UserGetMemberGroupsParameters) MarshalJSON

func (ugmgp UserGetMemberGroupsParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for UserGetMemberGroupsParameters.

func (*UserGetMemberGroupsParameters) UnmarshalJSON

func (ugmgp *UserGetMemberGroupsParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for UserGetMemberGroupsParameters struct.

type UserGetMemberGroupsResult

type UserGetMemberGroupsResult struct {
	autorest.Response `json:"-"`
	// Value - A collection of group IDs of which the user is a member.
	Value *[]string `json:"value,omitempty"`
}

UserGetMemberGroupsResult server response for GetMemberGroups API call.

type UserListResult

type UserListResult struct {
	autorest.Response `json:"-"`
	// Value - the list of users.
	Value *[]User `json:"value,omitempty"`
	// OdataNextLink - The URL to get the next set of results.
	OdataNextLink *string `json:"odata.nextLink,omitempty"`
}

UserListResult server response for Get tenant users API call.

func (UserListResult) IsEmpty

func (ulr UserListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type UserListResultIterator

type UserListResultIterator struct {
	// contains filtered or unexported fields
}

UserListResultIterator provides access to a complete listing of User values.

func (*UserListResultIterator) Next

func (iter *UserListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (UserListResultIterator) NotDone

func (iter UserListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (UserListResultIterator) Response

func (iter UserListResultIterator) Response() UserListResult

Response returns the raw server response from the last page request.

func (UserListResultIterator) Value

func (iter UserListResultIterator) Value() User

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type UserListResultPage

type UserListResultPage struct {
	// contains filtered or unexported fields
}

UserListResultPage contains a page of User values.

func (*UserListResultPage) Next

func (page *UserListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (UserListResultPage) NotDone

func (page UserListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (UserListResultPage) Response

func (page UserListResultPage) Response() UserListResult

Response returns the raw server response from the last page request.

func (UserListResultPage) Values

func (page UserListResultPage) Values() []User

Values returns the slice of values for the current page or nil if there are no values.

type UserType

type UserType string

UserType enumerates the values for user type.

const (
	// Guest ...
	Guest UserType = "Guest"
	// Member ...
	Member UserType = "Member"
)

func PossibleUserTypeValues

func PossibleUserTypeValues() []UserType

PossibleUserTypeValues returns an array of possible values for the UserType const type.

type UserUpdateParameters

type UserUpdateParameters struct {
	// AccountEnabled - Whether the account is enabled.
	AccountEnabled *bool `json:"accountEnabled,omitempty"`
	// DisplayName - The display name of the user.
	DisplayName *string `json:"displayName,omitempty"`
	// PasswordProfile - The password profile of the user.
	PasswordProfile *PasswordProfile `json:"passwordProfile,omitempty"`
	// UserPrincipalName - The user principal name (someuser@contoso.com). It must contain one of the verified domains for the tenant.
	UserPrincipalName *string `json:"userPrincipalName,omitempty"`
	// MailNickname - The mail alias for the user.
	MailNickname *string `json:"mailNickname,omitempty"`
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// ImmutableID - This must be specified if you are using a federated domain for the user's userPrincipalName (UPN) property when creating a new user account. It is used to associate an on-premises Active Directory user account with their Azure AD user object.
	ImmutableID *string `json:"immutableId,omitempty"`
	// UsageLocation - A two letter country code (ISO standard 3166). Required for users that will be assigned licenses due to legal requirement to check for availability of services in countries. Examples include: "US", "JP", and "GB".
	UsageLocation *string `json:"usageLocation,omitempty"`
	// GivenName - The given name for the user.
	GivenName *string `json:"givenName,omitempty"`
	// Surname - The user's surname (family name or last name).
	Surname *string `json:"surname,omitempty"`
	// UserType - A string value that can be used to classify user types in your directory, such as 'Member' and 'Guest'. Possible values include: 'Member', 'Guest'
	UserType UserType `json:"userType,omitempty"`
}

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

func (UserUpdateParameters) MarshalJSON

func (uup UserUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for UserUpdateParameters.

func (*UserUpdateParameters) UnmarshalJSON

func (uup *UserUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for UserUpdateParameters struct.

type UsersClient

type UsersClient struct {
	BaseClient
}

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(ctx context.Context, parameters UserCreateParameters) (result User, err error)

Create create a new user. Parameters: parameters - parameters to create a user.

func (UsersClient) CreatePreparer

func (client UsersClient) CreatePreparer(ctx context.Context, 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(ctx context.Context, upnOrObjectID string) (result autorest.Response, err error)

Delete delete a user. Parameters: upnOrObjectID - the object ID or principal name of the user to delete.

func (UsersClient) DeletePreparer

func (client UsersClient) DeletePreparer(ctx context.Context, 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(ctx context.Context, upnOrObjectID string) (result User, err error)

Get gets user information from the directory. Parameters: upnOrObjectID - the object ID or principal name of the user for which to get information.

func (UsersClient) GetMemberGroups

func (client UsersClient) GetMemberGroups(ctx context.Context, 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. Parameters: objectID - the object ID of the user for which to get group membership. parameters - user filtering parameters.

func (UsersClient) GetMemberGroupsPreparer

func (client UsersClient) GetMemberGroupsPreparer(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, filter string) (result UserListResultPage, err error)

List gets list of users for the current tenant. Parameters: filter - the filter to apply to the operation.

func (UsersClient) ListComplete

func (client UsersClient) ListComplete(ctx context.Context, filter string) (result UserListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (UsersClient) ListNext

func (client UsersClient) ListNext(ctx context.Context, nextLink string) (result UserListResult, err error)

ListNext gets a list of users for the current tenant. Parameters: nextLink - next link for the list operation.

func (UsersClient) ListNextPreparer

func (client UsersClient) ListNextPreparer(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, upnOrObjectID string, parameters UserUpdateParameters) (result autorest.Response, err error)

Update updates a user. Parameters: upnOrObjectID - the object ID or principal name of the user to update. parameters - parameters to update an existing user.

func (UsersClient) UpdatePreparer

func (client UsersClient) UpdatePreparer(ctx context.Context, 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