azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac Index | Files | Directories

package graphrbac

import "github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac"

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

The Graph RBAC Management Client

Index

Package Files

applications.go client.go deletedapplications.go domains.go groups.go models.go oauth2permissiongrant.go objects.go serviceprincipals.go signedinuser.go users.go version.go

Constants

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

func UserAgent Uses

func UserAgent() string

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

func Version Uses

func Version() string

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

type ADGroup Uses

type ADGroup struct {
    autorest.Response `json:"-"`
    // DisplayName - The display name of the group.
    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 - The mail alias for the group.
    MailNickname *string `json:"mailNickname,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 - READ-ONLY; The object ID.
    ObjectID *string `json:"objectId,omitempty"`
    // DeletionTimestamp - READ-ONLY; 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 Uses

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

AsADGroup is the BasicDirectoryObject implementation for ADGroup.

func (ADGroup) AsApplication Uses

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

AsApplication is the BasicDirectoryObject implementation for ADGroup.

func (ADGroup) AsBasicDirectoryObject Uses

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

AsBasicDirectoryObject is the BasicDirectoryObject implementation for ADGroup.

func (ADGroup) AsDirectoryObject Uses

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

AsDirectoryObject is the BasicDirectoryObject implementation for ADGroup.

func (ADGroup) AsServicePrincipal Uses

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

AsServicePrincipal is the BasicDirectoryObject implementation for ADGroup.

func (ADGroup) AsUser Uses

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

AsUser is the BasicDirectoryObject implementation for ADGroup.

func (ADGroup) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ADGroup.

func (*ADGroup) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ADGroup struct.

type AddOwnerParameters Uses

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

AddOwnerParameters request parameters for adding a owner to an application.

func (AddOwnerParameters) MarshalJSON Uses

func (aop AddOwnerParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AddOwnerParameters.

func (*AddOwnerParameters) UnmarshalJSON Uses

func (aop *AddOwnerParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AddOwnerParameters struct.

type AppRole Uses

type AppRole struct {
    // ID - Unique role identifier inside the appRoles collection.
    ID  *string `json:"id,omitempty"`
    // AllowedMemberTypes - Specifies whether this app role definition can be assigned to users and groups by setting to 'User', or to other applications (that are accessing this application in daemon service scenarios) by setting to 'Application', or to both.
    AllowedMemberTypes *[]string `json:"allowedMemberTypes,omitempty"`
    // Description - Permission help text that appears in the admin app assignment and consent experiences.
    Description *string `json:"description,omitempty"`
    // DisplayName - Display name for the permission that appears in the admin consent and app assignment experiences.
    DisplayName *string `json:"displayName,omitempty"`
    // IsEnabled - When creating or updating a role definition, this must be set to true (which is the default). To delete a role, this must first be set to false. At that point, in a subsequent call, this role may be removed.
    IsEnabled *bool `json:"isEnabled,omitempty"`
    // Value - Specifies the value of the roles claim that the application should expect in the authentication and access tokens.
    Value *string `json:"value,omitempty"`
}

AppRole ...

type Application Uses

type Application struct {
    autorest.Response `json:"-"`
    // AppID - The application ID.
    AppID *string `json:"appId,omitempty"`
    // AllowGuestsSignIn - A property on the application to indicate if the application accepts other IDPs or not or partially accepts.
    AllowGuestsSignIn *bool `json:"allowGuestsSignIn,omitempty"`
    // AllowPassthroughUsers - Indicates that the application supports pass through users who have no presence in the resource tenant.
    AllowPassthroughUsers *bool `json:"allowPassthroughUsers,omitempty"`
    // AppLogoURL - The url for the application logo image stored in a CDN.
    AppLogoURL *string `json:"appLogoUrl,omitempty"`
    // AppRoles - The collection of application roles that an application may declare. These roles can be assigned to users, groups or service principals.
    AppRoles *[]AppRole `json:"appRoles,omitempty"`
    // AppPermissions - The application permissions.
    AppPermissions *[]string `json:"appPermissions,omitempty"`
    // 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"`
    // ErrorURL - A URL provided by the author of the application to report errors when using the application.
    ErrorURL *string `json:"errorUrl,omitempty"`
    // GroupMembershipClaims - Configures the groups claim issued in a user or OAuth 2.0 access token that the app expects.
    GroupMembershipClaims interface{} `json:"groupMembershipClaims,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"`
    // InformationalUrls - URLs with more information about the application.
    InformationalUrls *InformationalURL `json:"informationalUrls,omitempty"`
    // IsDeviceOnlyAuthSupported - Specifies whether this application supports device authentication without a user. The default is false.
    IsDeviceOnlyAuthSupported *bool `json:"isDeviceOnlyAuthSupported,omitempty"`
    // KeyCredentials - A collection of KeyCredential objects.
    KeyCredentials *[]KeyCredential `json:"keyCredentials,omitempty"`
    // KnownClientApplications - Client applications that are tied to this resource application. Consent to any of the known client applications will result in implicit consent to the resource application through a combined consent dialog (showing the OAuth permission scopes required by the client and the resource).
    KnownClientApplications *[]string `json:"knownClientApplications,omitempty"`
    // LogoutURL - the url of the logout page
    LogoutURL *string `json:"logoutUrl,omitempty"`
    // Oauth2AllowImplicitFlow - Whether to allow implicit grant flow for OAuth2
    Oauth2AllowImplicitFlow *bool `json:"oauth2AllowImplicitFlow,omitempty"`
    // Oauth2AllowURLPathMatching - Specifies whether during a token Request Azure AD will allow path matching of the redirect URI against the applications collection of replyURLs. The default is false.
    Oauth2AllowURLPathMatching *bool `json:"oauth2AllowUrlPathMatching,omitempty"`
    // Oauth2Permissions - The collection of OAuth 2.0 permission scopes that the web API (resource) application exposes to client applications. These permission scopes may be granted to client applications during consent.
    Oauth2Permissions *[]OAuth2Permission `json:"oauth2Permissions,omitempty"`
    // Oauth2RequirePostResponse - Specifies whether, as part of OAuth 2.0 token requests, Azure AD will allow POST requests, as opposed to GET requests. The default is false, which specifies that only GET requests will be allowed.
    Oauth2RequirePostResponse *bool `json:"oauth2RequirePostResponse,omitempty"`
    // OrgRestrictions - A list of tenants allowed to access application.
    OrgRestrictions *[]string       `json:"orgRestrictions,omitempty"`
    OptionalClaims  *OptionalClaims `json:"optionalClaims,omitempty"`
    // PasswordCredentials - A collection of PasswordCredential objects
    PasswordCredentials *[]PasswordCredential `json:"passwordCredentials,omitempty"`
    // PreAuthorizedApplications - list of pre-authorized applications.
    PreAuthorizedApplications *[]PreAuthorizedApplication `json:"preAuthorizedApplications,omitempty"`
    // PublicClient - Specifies whether this application is a public client (such as an installed application running on a mobile device). Default is false.
    PublicClient *bool `json:"publicClient,omitempty"`
    // PublisherDomain - Reliable domain which can be used to identify an application.
    PublisherDomain *string `json:"publisherDomain,omitempty"`
    // ReplyUrls - A collection of reply URLs for the application.
    ReplyUrls *[]string `json:"replyUrls,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"`
    // SamlMetadataURL - The URL to the SAML metadata for the application.
    SamlMetadataURL *string `json:"samlMetadataUrl,omitempty"`
    // SignInAudience - Audience for signing in to the application (AzureADMyOrganization, AzureADAllOrganizations, AzureADAndMicrosoftAccounts).
    SignInAudience *string `json:"signInAudience,omitempty"`
    // WwwHomepage - The primary Web page.
    WwwHomepage *string `json:"wwwHomepage,omitempty"`
    // AdditionalProperties - Unmatched properties from the message are deserialized this collection
    AdditionalProperties map[string]interface{} `json:""`
    // ObjectID - READ-ONLY; The object ID.
    ObjectID *string `json:"objectId,omitempty"`
    // DeletionTimestamp - READ-ONLY; 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 Uses

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

AsADGroup is the BasicDirectoryObject implementation for Application.

func (Application) AsApplication Uses

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

AsApplication is the BasicDirectoryObject implementation for Application.

func (Application) AsBasicDirectoryObject Uses

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

AsBasicDirectoryObject is the BasicDirectoryObject implementation for Application.

func (Application) AsDirectoryObject Uses

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

AsDirectoryObject is the BasicDirectoryObject implementation for Application.

func (Application) AsServicePrincipal Uses

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

AsServicePrincipal is the BasicDirectoryObject implementation for Application.

func (Application) AsUser Uses

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

AsUser is the BasicDirectoryObject implementation for Application.

func (Application) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Application.

func (*Application) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Application struct.

type ApplicationBase Uses

type ApplicationBase struct {
    // AllowGuestsSignIn - A property on the application to indicate if the application accepts other IDPs or not or partially accepts.
    AllowGuestsSignIn *bool `json:"allowGuestsSignIn,omitempty"`
    // AllowPassthroughUsers - Indicates that the application supports pass through users who have no presence in the resource tenant.
    AllowPassthroughUsers *bool `json:"allowPassthroughUsers,omitempty"`
    // AppLogoURL - The url for the application logo image stored in a CDN.
    AppLogoURL *string `json:"appLogoUrl,omitempty"`
    // AppRoles - The collection of application roles that an application may declare. These roles can be assigned to users, groups or service principals.
    AppRoles *[]AppRole `json:"appRoles,omitempty"`
    // AppPermissions - The application permissions.
    AppPermissions *[]string `json:"appPermissions,omitempty"`
    // AvailableToOtherTenants - Whether the application is available to other tenants.
    AvailableToOtherTenants *bool `json:"availableToOtherTenants,omitempty"`
    // ErrorURL - A URL provided by the author of the application to report errors when using the application.
    ErrorURL *string `json:"errorUrl,omitempty"`
    // GroupMembershipClaims - Configures the groups claim issued in a user or OAuth 2.0 access token that the app expects.
    GroupMembershipClaims interface{} `json:"groupMembershipClaims,omitempty"`
    // Homepage - The home page of the application.
    Homepage *string `json:"homepage,omitempty"`
    // InformationalUrls - URLs with more information about the application.
    InformationalUrls *InformationalURL `json:"informationalUrls,omitempty"`
    // IsDeviceOnlyAuthSupported - Specifies whether this application supports device authentication without a user. The default is false.
    IsDeviceOnlyAuthSupported *bool `json:"isDeviceOnlyAuthSupported,omitempty"`
    // KeyCredentials - A collection of KeyCredential objects.
    KeyCredentials *[]KeyCredential `json:"keyCredentials,omitempty"`
    // KnownClientApplications - Client applications that are tied to this resource application. Consent to any of the known client applications will result in implicit consent to the resource application through a combined consent dialog (showing the OAuth permission scopes required by the client and the resource).
    KnownClientApplications *[]string `json:"knownClientApplications,omitempty"`
    // LogoutURL - the url of the logout page
    LogoutURL *string `json:"logoutUrl,omitempty"`
    // Oauth2AllowImplicitFlow - Whether to allow implicit grant flow for OAuth2
    Oauth2AllowImplicitFlow *bool `json:"oauth2AllowImplicitFlow,omitempty"`
    // Oauth2AllowURLPathMatching - Specifies whether during a token Request Azure AD will allow path matching of the redirect URI against the applications collection of replyURLs. The default is false.
    Oauth2AllowURLPathMatching *bool `json:"oauth2AllowUrlPathMatching,omitempty"`
    // Oauth2Permissions - The collection of OAuth 2.0 permission scopes that the web API (resource) application exposes to client applications. These permission scopes may be granted to client applications during consent.
    Oauth2Permissions *[]OAuth2Permission `json:"oauth2Permissions,omitempty"`
    // Oauth2RequirePostResponse - Specifies whether, as part of OAuth 2.0 token requests, Azure AD will allow POST requests, as opposed to GET requests. The default is false, which specifies that only GET requests will be allowed.
    Oauth2RequirePostResponse *bool `json:"oauth2RequirePostResponse,omitempty"`
    // OrgRestrictions - A list of tenants allowed to access application.
    OrgRestrictions *[]string       `json:"orgRestrictions,omitempty"`
    OptionalClaims  *OptionalClaims `json:"optionalClaims,omitempty"`
    // PasswordCredentials - A collection of PasswordCredential objects
    PasswordCredentials *[]PasswordCredential `json:"passwordCredentials,omitempty"`
    // PreAuthorizedApplications - list of pre-authorized applications.
    PreAuthorizedApplications *[]PreAuthorizedApplication `json:"preAuthorizedApplications,omitempty"`
    // PublicClient - Specifies whether this application is a public client (such as an installed application running on a mobile device). Default is false.
    PublicClient *bool `json:"publicClient,omitempty"`
    // PublisherDomain - Reliable domain which can be used to identify an application.
    PublisherDomain *string `json:"publisherDomain,omitempty"`
    // ReplyUrls - A collection of reply URLs for the application.
    ReplyUrls *[]string `json:"replyUrls,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"`
    // SamlMetadataURL - The URL to the SAML metadata for the application.
    SamlMetadataURL *string `json:"samlMetadataUrl,omitempty"`
    // SignInAudience - Audience for signing in to the application (AzureADMyOrganization, AzureADAllOrganizations, AzureADAndMicrosoftAccounts).
    SignInAudience *string `json:"signInAudience,omitempty"`
    // WwwHomepage - The primary Web page.
    WwwHomepage *string `json:"wwwHomepage,omitempty"`
}

ApplicationBase active Directive Application common properties shared among GET, POST and PATCH

type ApplicationCreateParameters Uses

type ApplicationCreateParameters struct {
    // 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"`
    // AllowGuestsSignIn - A property on the application to indicate if the application accepts other IDPs or not or partially accepts.
    AllowGuestsSignIn *bool `json:"allowGuestsSignIn,omitempty"`
    // AllowPassthroughUsers - Indicates that the application supports pass through users who have no presence in the resource tenant.
    AllowPassthroughUsers *bool `json:"allowPassthroughUsers,omitempty"`
    // AppLogoURL - The url for the application logo image stored in a CDN.
    AppLogoURL *string `json:"appLogoUrl,omitempty"`
    // AppRoles - The collection of application roles that an application may declare. These roles can be assigned to users, groups or service principals.
    AppRoles *[]AppRole `json:"appRoles,omitempty"`
    // AppPermissions - The application permissions.
    AppPermissions *[]string `json:"appPermissions,omitempty"`
    // AvailableToOtherTenants - Whether the application is available to other tenants.
    AvailableToOtherTenants *bool `json:"availableToOtherTenants,omitempty"`
    // ErrorURL - A URL provided by the author of the application to report errors when using the application.
    ErrorURL *string `json:"errorUrl,omitempty"`
    // GroupMembershipClaims - Configures the groups claim issued in a user or OAuth 2.0 access token that the app expects.
    GroupMembershipClaims interface{} `json:"groupMembershipClaims,omitempty"`
    // Homepage - The home page of the application.
    Homepage *string `json:"homepage,omitempty"`
    // InformationalUrls - URLs with more information about the application.
    InformationalUrls *InformationalURL `json:"informationalUrls,omitempty"`
    // IsDeviceOnlyAuthSupported - Specifies whether this application supports device authentication without a user. The default is false.
    IsDeviceOnlyAuthSupported *bool `json:"isDeviceOnlyAuthSupported,omitempty"`
    // KeyCredentials - A collection of KeyCredential objects.
    KeyCredentials *[]KeyCredential `json:"keyCredentials,omitempty"`
    // KnownClientApplications - Client applications that are tied to this resource application. Consent to any of the known client applications will result in implicit consent to the resource application through a combined consent dialog (showing the OAuth permission scopes required by the client and the resource).
    KnownClientApplications *[]string `json:"knownClientApplications,omitempty"`
    // LogoutURL - the url of the logout page
    LogoutURL *string `json:"logoutUrl,omitempty"`
    // Oauth2AllowImplicitFlow - Whether to allow implicit grant flow for OAuth2
    Oauth2AllowImplicitFlow *bool `json:"oauth2AllowImplicitFlow,omitempty"`
    // Oauth2AllowURLPathMatching - Specifies whether during a token Request Azure AD will allow path matching of the redirect URI against the applications collection of replyURLs. The default is false.
    Oauth2AllowURLPathMatching *bool `json:"oauth2AllowUrlPathMatching,omitempty"`
    // Oauth2Permissions - The collection of OAuth 2.0 permission scopes that the web API (resource) application exposes to client applications. These permission scopes may be granted to client applications during consent.
    Oauth2Permissions *[]OAuth2Permission `json:"oauth2Permissions,omitempty"`
    // Oauth2RequirePostResponse - Specifies whether, as part of OAuth 2.0 token requests, Azure AD will allow POST requests, as opposed to GET requests. The default is false, which specifies that only GET requests will be allowed.
    Oauth2RequirePostResponse *bool `json:"oauth2RequirePostResponse,omitempty"`
    // OrgRestrictions - A list of tenants allowed to access application.
    OrgRestrictions *[]string       `json:"orgRestrictions,omitempty"`
    OptionalClaims  *OptionalClaims `json:"optionalClaims,omitempty"`
    // PasswordCredentials - A collection of PasswordCredential objects
    PasswordCredentials *[]PasswordCredential `json:"passwordCredentials,omitempty"`
    // PreAuthorizedApplications - list of pre-authorized applications.
    PreAuthorizedApplications *[]PreAuthorizedApplication `json:"preAuthorizedApplications,omitempty"`
    // PublicClient - Specifies whether this application is a public client (such as an installed application running on a mobile device). Default is false.
    PublicClient *bool `json:"publicClient,omitempty"`
    // PublisherDomain - Reliable domain which can be used to identify an application.
    PublisherDomain *string `json:"publisherDomain,omitempty"`
    // ReplyUrls - A collection of reply URLs for the application.
    ReplyUrls *[]string `json:"replyUrls,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"`
    // SamlMetadataURL - The URL to the SAML metadata for the application.
    SamlMetadataURL *string `json:"samlMetadataUrl,omitempty"`
    // SignInAudience - Audience for signing in to the application (AzureADMyOrganization, AzureADAllOrganizations, AzureADAndMicrosoftAccounts).
    SignInAudience *string `json:"signInAudience,omitempty"`
    // WwwHomepage - The primary Web page.
    WwwHomepage *string `json:"wwwHomepage,omitempty"`
}

ApplicationCreateParameters request parameters for creating a new application.

type ApplicationListResult Uses

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 Uses

func (alr ApplicationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ApplicationListResultIterator Uses

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

ApplicationListResultIterator provides access to a complete listing of Application values.

func NewApplicationListResultIterator Uses

func NewApplicationListResultIterator(page ApplicationListResultPage) ApplicationListResultIterator

Creates a new instance of the ApplicationListResultIterator type.

func (*ApplicationListResultIterator) Next Uses

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. Deprecated: Use NextWithContext() instead.

func (*ApplicationListResultIterator) NextWithContext Uses

func (iter *ApplicationListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext 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 Uses

func (iter ApplicationListResultIterator) NotDone() bool

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

func (ApplicationListResultIterator) Response Uses

func (iter ApplicationListResultIterator) Response() ApplicationListResult

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

func (ApplicationListResultIterator) Value Uses

func (iter ApplicationListResultIterator) Value() Application

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

type ApplicationListResultPage Uses

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

ApplicationListResultPage contains a page of Application values.

func NewApplicationListResultPage Uses

func NewApplicationListResultPage(getNextPage func(context.Context, ApplicationListResult) (ApplicationListResult, error)) ApplicationListResultPage

Creates a new instance of the ApplicationListResultPage type.

func (*ApplicationListResultPage) Next Uses

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. Deprecated: Use NextWithContext() instead.

func (*ApplicationListResultPage) NextWithContext Uses

func (page *ApplicationListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext 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 Uses

func (page ApplicationListResultPage) NotDone() bool

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

func (ApplicationListResultPage) Response Uses

func (page ApplicationListResultPage) Response() ApplicationListResult

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

func (ApplicationListResultPage) Values Uses

func (page ApplicationListResultPage) Values() []Application

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

type ApplicationUpdateParameters Uses

type ApplicationUpdateParameters struct {
    // 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"`
    // AllowGuestsSignIn - A property on the application to indicate if the application accepts other IDPs or not or partially accepts.
    AllowGuestsSignIn *bool `json:"allowGuestsSignIn,omitempty"`
    // AllowPassthroughUsers - Indicates that the application supports pass through users who have no presence in the resource tenant.
    AllowPassthroughUsers *bool `json:"allowPassthroughUsers,omitempty"`
    // AppLogoURL - The url for the application logo image stored in a CDN.
    AppLogoURL *string `json:"appLogoUrl,omitempty"`
    // AppRoles - The collection of application roles that an application may declare. These roles can be assigned to users, groups or service principals.
    AppRoles *[]AppRole `json:"appRoles,omitempty"`
    // AppPermissions - The application permissions.
    AppPermissions *[]string `json:"appPermissions,omitempty"`
    // AvailableToOtherTenants - Whether the application is available to other tenants.
    AvailableToOtherTenants *bool `json:"availableToOtherTenants,omitempty"`
    // ErrorURL - A URL provided by the author of the application to report errors when using the application.
    ErrorURL *string `json:"errorUrl,omitempty"`
    // GroupMembershipClaims - Configures the groups claim issued in a user or OAuth 2.0 access token that the app expects.
    GroupMembershipClaims interface{} `json:"groupMembershipClaims,omitempty"`
    // Homepage - The home page of the application.
    Homepage *string `json:"homepage,omitempty"`
    // InformationalUrls - URLs with more information about the application.
    InformationalUrls *InformationalURL `json:"informationalUrls,omitempty"`
    // IsDeviceOnlyAuthSupported - Specifies whether this application supports device authentication without a user. The default is false.
    IsDeviceOnlyAuthSupported *bool `json:"isDeviceOnlyAuthSupported,omitempty"`
    // KeyCredentials - A collection of KeyCredential objects.
    KeyCredentials *[]KeyCredential `json:"keyCredentials,omitempty"`
    // KnownClientApplications - Client applications that are tied to this resource application. Consent to any of the known client applications will result in implicit consent to the resource application through a combined consent dialog (showing the OAuth permission scopes required by the client and the resource).
    KnownClientApplications *[]string `json:"knownClientApplications,omitempty"`
    // LogoutURL - the url of the logout page
    LogoutURL *string `json:"logoutUrl,omitempty"`
    // Oauth2AllowImplicitFlow - Whether to allow implicit grant flow for OAuth2
    Oauth2AllowImplicitFlow *bool `json:"oauth2AllowImplicitFlow,omitempty"`
    // Oauth2AllowURLPathMatching - Specifies whether during a token Request Azure AD will allow path matching of the redirect URI against the applications collection of replyURLs. The default is false.
    Oauth2AllowURLPathMatching *bool `json:"oauth2AllowUrlPathMatching,omitempty"`
    // Oauth2Permissions - The collection of OAuth 2.0 permission scopes that the web API (resource) application exposes to client applications. These permission scopes may be granted to client applications during consent.
    Oauth2Permissions *[]OAuth2Permission `json:"oauth2Permissions,omitempty"`
    // Oauth2RequirePostResponse - Specifies whether, as part of OAuth 2.0 token requests, Azure AD will allow POST requests, as opposed to GET requests. The default is false, which specifies that only GET requests will be allowed.
    Oauth2RequirePostResponse *bool `json:"oauth2RequirePostResponse,omitempty"`
    // OrgRestrictions - A list of tenants allowed to access application.
    OrgRestrictions *[]string       `json:"orgRestrictions,omitempty"`
    OptionalClaims  *OptionalClaims `json:"optionalClaims,omitempty"`
    // PasswordCredentials - A collection of PasswordCredential objects
    PasswordCredentials *[]PasswordCredential `json:"passwordCredentials,omitempty"`
    // PreAuthorizedApplications - list of pre-authorized applications.
    PreAuthorizedApplications *[]PreAuthorizedApplication `json:"preAuthorizedApplications,omitempty"`
    // PublicClient - Specifies whether this application is a public client (such as an installed application running on a mobile device). Default is false.
    PublicClient *bool `json:"publicClient,omitempty"`
    // PublisherDomain - Reliable domain which can be used to identify an application.
    PublisherDomain *string `json:"publisherDomain,omitempty"`
    // ReplyUrls - A collection of reply URLs for the application.
    ReplyUrls *[]string `json:"replyUrls,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"`
    // SamlMetadataURL - The URL to the SAML metadata for the application.
    SamlMetadataURL *string `json:"samlMetadataUrl,omitempty"`
    // SignInAudience - Audience for signing in to the application (AzureADMyOrganization, AzureADAllOrganizations, AzureADAndMicrosoftAccounts).
    SignInAudience *string `json:"signInAudience,omitempty"`
    // WwwHomepage - The primary Web page.
    WwwHomepage *string `json:"wwwHomepage,omitempty"`
}

ApplicationUpdateParameters request parameters for updating a new application.

type ApplicationsClient Uses

type ApplicationsClient struct {
    BaseClient
}

ApplicationsClient is the the Graph RBAC Management Client

func NewApplicationsClient Uses

func NewApplicationsClient(tenantID string) ApplicationsClient

NewApplicationsClient creates an instance of the ApplicationsClient client.

func NewApplicationsClientWithBaseURI Uses

func NewApplicationsClientWithBaseURI(baseURI string, tenantID string) ApplicationsClient

NewApplicationsClientWithBaseURI creates an instance of the ApplicationsClient client.

func (ApplicationsClient) AddOwner Uses

func (client ApplicationsClient) AddOwner(ctx context.Context, applicationObjectID string, parameters AddOwnerParameters) (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 Uses

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

AddOwnerPreparer prepares the AddOwner request.

func (ApplicationsClient) AddOwnerResponder Uses

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 Uses

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 Uses

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 Uses

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

CreatePreparer prepares the Create request.

func (ApplicationsClient) CreateResponder Uses

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 Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (ApplicationsClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (ApplicationsClient) GetResponder Uses

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 Uses

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) GetServicePrincipalsIDByAppID Uses

func (client ApplicationsClient) GetServicePrincipalsIDByAppID(ctx context.Context, applicationID string) (result ServicePrincipalObjectResult, err error)

GetServicePrincipalsIDByAppID gets an object id for a given application id from the current tenant. Parameters: applicationID - the application ID.

func (ApplicationsClient) GetServicePrincipalsIDByAppIDPreparer Uses

func (client ApplicationsClient) GetServicePrincipalsIDByAppIDPreparer(ctx context.Context, applicationID string) (*http.Request, error)

GetServicePrincipalsIDByAppIDPreparer prepares the GetServicePrincipalsIDByAppID request.

func (ApplicationsClient) GetServicePrincipalsIDByAppIDResponder Uses

func (client ApplicationsClient) GetServicePrincipalsIDByAppIDResponder(resp *http.Response) (result ServicePrincipalObjectResult, err error)

GetServicePrincipalsIDByAppIDResponder handles the response to the GetServicePrincipalsIDByAppID request. The method always closes the http.Response Body.

func (ApplicationsClient) GetServicePrincipalsIDByAppIDSender Uses

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

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

func (ApplicationsClient) List Uses

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 Uses

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 Uses

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 Uses

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

ListKeyCredentialsPreparer prepares the ListKeyCredentials request.

func (ApplicationsClient) ListKeyCredentialsResponder Uses

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 Uses

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 Uses

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 Uses

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

ListNextPreparer prepares the ListNext request.

func (ApplicationsClient) ListNextResponder Uses

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 Uses

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 Uses

func (client ApplicationsClient) ListOwners(ctx context.Context, applicationObjectID string) (result DirectoryObjectListResultPage, 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) ListOwnersComplete Uses

func (client ApplicationsClient) ListOwnersComplete(ctx context.Context, applicationObjectID string) (result DirectoryObjectListResultIterator, err error)

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

func (ApplicationsClient) ListOwnersPreparer Uses

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

ListOwnersPreparer prepares the ListOwners request.

func (ApplicationsClient) ListOwnersResponder Uses

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 Uses

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 Uses

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 Uses

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

ListPasswordCredentialsPreparer prepares the ListPasswordCredentials request.

func (ApplicationsClient) ListPasswordCredentialsResponder Uses

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 Uses

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 Uses

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

ListPreparer prepares the List request.

func (ApplicationsClient) ListResponder Uses

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 Uses

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 Uses

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 Uses

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

PatchPreparer prepares the Patch request.

func (ApplicationsClient) PatchResponder Uses

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 Uses

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) RemoveOwner Uses

func (client ApplicationsClient) RemoveOwner(ctx context.Context, applicationObjectID string, ownerObjectID string) (result autorest.Response, err error)

RemoveOwner remove a member from owners. Parameters: applicationObjectID - the object ID of the application from which to remove the owner. ownerObjectID - owner object id

func (ApplicationsClient) RemoveOwnerPreparer Uses

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

RemoveOwnerPreparer prepares the RemoveOwner request.

func (ApplicationsClient) RemoveOwnerResponder Uses

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

RemoveOwnerResponder handles the response to the RemoveOwner request. The method always closes the http.Response Body.

func (ApplicationsClient) RemoveOwnerSender Uses

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

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

func (ApplicationsClient) UpdateKeyCredentials Uses

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 Uses

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

UpdateKeyCredentialsPreparer prepares the UpdateKeyCredentials request.

func (ApplicationsClient) UpdateKeyCredentialsResponder Uses

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 Uses

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 Uses

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 Uses

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

UpdatePasswordCredentialsPreparer prepares the UpdatePasswordCredentials request.

func (ApplicationsClient) UpdatePasswordCredentialsResponder Uses

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 Uses

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 Uses

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

BaseClient is the base client for Graphrbac.

func New Uses

func New(tenantID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, tenantID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type BasicDirectoryObject Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for CheckGroupMembershipParameters.

func (*CheckGroupMembershipParameters) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for CheckGroupMembershipParameters struct.

type CheckGroupMembershipResult Uses

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 Uses

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

MarshalJSON is the custom marshaler for CheckGroupMembershipResult.

func (*CheckGroupMembershipResult) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for CheckGroupMembershipResult struct.

type ConsentType Uses

type ConsentType string

ConsentType enumerates the values for consent type.

const (
    // AllPrincipals ...
    AllPrincipals ConsentType = "AllPrincipals"
    // Principal ...
    Principal ConsentType = "Principal"
)

func PossibleConsentTypeValues Uses

func PossibleConsentTypeValues() []ConsentType

PossibleConsentTypeValues returns an array of possible values for the ConsentType const type.

type DeletedApplicationsClient Uses

type DeletedApplicationsClient struct {
    BaseClient
}

DeletedApplicationsClient is the the Graph RBAC Management Client

func NewDeletedApplicationsClient Uses

func NewDeletedApplicationsClient(tenantID string) DeletedApplicationsClient

NewDeletedApplicationsClient creates an instance of the DeletedApplicationsClient client.

func NewDeletedApplicationsClientWithBaseURI Uses

func NewDeletedApplicationsClientWithBaseURI(baseURI string, tenantID string) DeletedApplicationsClient

NewDeletedApplicationsClientWithBaseURI creates an instance of the DeletedApplicationsClient client.

func (DeletedApplicationsClient) HardDelete Uses

func (client DeletedApplicationsClient) HardDelete(ctx context.Context, applicationObjectID string) (result autorest.Response, err error)

HardDelete hard-delete an application. Parameters: applicationObjectID - application object ID.

func (DeletedApplicationsClient) HardDeletePreparer Uses

func (client DeletedApplicationsClient) HardDeletePreparer(ctx context.Context, applicationObjectID string) (*http.Request, error)

HardDeletePreparer prepares the HardDelete request.

func (DeletedApplicationsClient) HardDeleteResponder Uses

func (client DeletedApplicationsClient) HardDeleteResponder(resp *http.Response) (result autorest.Response, err error)

HardDeleteResponder handles the response to the HardDelete request. The method always closes the http.Response Body.

func (DeletedApplicationsClient) HardDeleteSender Uses

func (client DeletedApplicationsClient) HardDeleteSender(req *http.Request) (*http.Response, error)

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

func (DeletedApplicationsClient) List Uses

func (client DeletedApplicationsClient) List(ctx context.Context, filter string) (result ApplicationListResultPage, err error)

List gets a list of deleted applications in the directory. Parameters: filter - the filter to apply to the operation.

func (DeletedApplicationsClient) ListComplete Uses

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

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

func (DeletedApplicationsClient) ListNext Uses

func (client DeletedApplicationsClient) ListNext(ctx context.Context, nextLink string) (result ApplicationListResult, err error)

ListNext gets a list of deleted applications in the directory. Parameters: nextLink - next link for the list operation.

func (DeletedApplicationsClient) ListNextPreparer Uses

func (client DeletedApplicationsClient) ListNextPreparer(ctx context.Context, nextLink string) (*http.Request, error)

ListNextPreparer prepares the ListNext request.

func (DeletedApplicationsClient) ListNextResponder Uses

func (client DeletedApplicationsClient) 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 (DeletedApplicationsClient) ListNextSender Uses

func (client DeletedApplicationsClient) 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 (DeletedApplicationsClient) ListPreparer Uses

func (client DeletedApplicationsClient) ListPreparer(ctx context.Context, filter string) (*http.Request, error)

ListPreparer prepares the List request.

func (DeletedApplicationsClient) ListResponder Uses

func (client DeletedApplicationsClient) 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 (DeletedApplicationsClient) ListSender Uses

func (client DeletedApplicationsClient) 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 (DeletedApplicationsClient) Restore Uses

func (client DeletedApplicationsClient) Restore(ctx context.Context, objectID string) (result Application, err error)

Restore restores the deleted application in the directory. Parameters: objectID - application object ID.

func (DeletedApplicationsClient) RestorePreparer Uses

func (client DeletedApplicationsClient) RestorePreparer(ctx context.Context, objectID string) (*http.Request, error)

RestorePreparer prepares the Restore request.

func (DeletedApplicationsClient) RestoreResponder Uses

func (client DeletedApplicationsClient) RestoreResponder(resp *http.Response) (result Application, err error)

RestoreResponder handles the response to the Restore request. The method always closes the http.Response Body.

func (DeletedApplicationsClient) RestoreSender Uses

func (client DeletedApplicationsClient) RestoreSender(req *http.Request) (*http.Response, error)

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

type DirectoryObject Uses

type DirectoryObject struct {
    // AdditionalProperties - Unmatched properties from the message are deserialized this collection
    AdditionalProperties map[string]interface{} `json:""`
    // ObjectID - READ-ONLY; The object ID.
    ObjectID *string `json:"objectId,omitempty"`
    // DeletionTimestamp - READ-ONLY; 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 Uses

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

AsADGroup is the BasicDirectoryObject implementation for DirectoryObject.

func (DirectoryObject) AsApplication Uses

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

AsApplication is the BasicDirectoryObject implementation for DirectoryObject.

func (DirectoryObject) AsBasicDirectoryObject Uses

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

AsBasicDirectoryObject is the BasicDirectoryObject implementation for DirectoryObject.

func (DirectoryObject) AsDirectoryObject Uses

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

AsDirectoryObject is the BasicDirectoryObject implementation for DirectoryObject.

func (DirectoryObject) AsServicePrincipal Uses

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

AsServicePrincipal is the BasicDirectoryObject implementation for DirectoryObject.

func (DirectoryObject) AsUser Uses

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

AsUser is the BasicDirectoryObject implementation for DirectoryObject.

func (DirectoryObject) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for DirectoryObject.

func (*DirectoryObject) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for DirectoryObject struct.

type DirectoryObjectListResult Uses

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

DirectoryObjectListResult directoryObject list operation result.

func (DirectoryObjectListResult) IsEmpty Uses

func (dolr DirectoryObjectListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (*DirectoryObjectListResult) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for DirectoryObjectListResult struct.

type DirectoryObjectListResultIterator Uses

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

DirectoryObjectListResultIterator provides access to a complete listing of DirectoryObject values.

func NewDirectoryObjectListResultIterator Uses

func NewDirectoryObjectListResultIterator(page DirectoryObjectListResultPage) DirectoryObjectListResultIterator

Creates a new instance of the DirectoryObjectListResultIterator type.

func (*DirectoryObjectListResultIterator) Next Uses

func (iter *DirectoryObjectListResultIterator) 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. Deprecated: Use NextWithContext() instead.

func (*DirectoryObjectListResultIterator) NextWithContext Uses

func (iter *DirectoryObjectListResultIterator) NextWithContext(ctx context.Context) (err error)

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

func (DirectoryObjectListResultIterator) NotDone Uses

func (iter DirectoryObjectListResultIterator) NotDone() bool

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

func (DirectoryObjectListResultIterator) Response Uses

func (iter DirectoryObjectListResultIterator) Response() DirectoryObjectListResult

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

func (DirectoryObjectListResultIterator) Value Uses

func (iter DirectoryObjectListResultIterator) Value() BasicDirectoryObject

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

type DirectoryObjectListResultPage Uses

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

DirectoryObjectListResultPage contains a page of BasicDirectoryObject values.

func NewDirectoryObjectListResultPage Uses

func NewDirectoryObjectListResultPage(getNextPage func(context.Context, DirectoryObjectListResult) (DirectoryObjectListResult, error)) DirectoryObjectListResultPage

Creates a new instance of the DirectoryObjectListResultPage type.

func (*DirectoryObjectListResultPage) Next Uses

func (page *DirectoryObjectListResultPage) 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. Deprecated: Use NextWithContext() instead.

func (*DirectoryObjectListResultPage) NextWithContext Uses

func (page *DirectoryObjectListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext 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 (DirectoryObjectListResultPage) NotDone Uses

func (page DirectoryObjectListResultPage) NotDone() bool

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

func (DirectoryObjectListResultPage) Response Uses

func (page DirectoryObjectListResultPage) Response() DirectoryObjectListResult

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

func (DirectoryObjectListResultPage) Values Uses

func (page DirectoryObjectListResultPage) Values() []BasicDirectoryObject

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

type Domain Uses

type Domain struct {
    autorest.Response `json:"-"`
    // AdditionalProperties - Unmatched properties from the message are deserialized this collection
    AdditionalProperties map[string]interface{} `json:""`
    // AuthenticationType - READ-ONLY; the type of the authentication into the domain.
    AuthenticationType *string `json:"authenticationType,omitempty"`
    // IsDefault - READ-ONLY; if this is the default domain in the tenant.
    IsDefault *bool `json:"isDefault,omitempty"`
    // IsVerified - READ-ONLY; 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 Uses

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

MarshalJSON is the custom marshaler for Domain.

func (*Domain) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Domain struct.

type DomainListResult Uses

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 Uses

type DomainsClient struct {
    BaseClient
}

DomainsClient is the the Graph RBAC Management Client

func NewDomainsClient Uses

func NewDomainsClient(tenantID string) DomainsClient

NewDomainsClient creates an instance of the DomainsClient client.

func NewDomainsClientWithBaseURI Uses

func NewDomainsClientWithBaseURI(baseURI string, tenantID string) DomainsClient

NewDomainsClientWithBaseURI creates an instance of the DomainsClient client.

func (DomainsClient) Get Uses

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 Uses

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

GetPreparer prepares the Get request.

func (DomainsClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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

ListPreparer prepares the List request.

func (DomainsClient) ListResponder Uses

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 Uses

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 Uses

type ErrorMessage struct {
    // Message - Error message value.
    Message *string `json:"value,omitempty"`
}

ErrorMessage active Directory error message.

type GetObjectsParameters Uses

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 Uses

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

MarshalJSON is the custom marshaler for GetObjectsParameters.

func (*GetObjectsParameters) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for GetObjectsParameters struct.

type GraphError Uses

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

GraphError active Directory error information.

func (GraphError) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for GraphError.

func (*GraphError) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for GraphError struct.

type GroupAddMemberParameters Uses

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 Uses

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

MarshalJSON is the custom marshaler for GroupAddMemberParameters.

func (*GroupAddMemberParameters) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for GroupAddMemberParameters struct.

type GroupCreateParameters Uses

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 Uses

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

MarshalJSON is the custom marshaler for GroupCreateParameters.

func (*GroupCreateParameters) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for GroupCreateParameters struct.

type GroupGetMemberGroupsParameters Uses

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 Uses

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

MarshalJSON is the custom marshaler for GroupGetMemberGroupsParameters.

func (*GroupGetMemberGroupsParameters) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for GroupGetMemberGroupsParameters struct.

type GroupGetMemberGroupsResult Uses

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 Uses

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 Uses

func (glr GroupListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type GroupListResultIterator Uses

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

GroupListResultIterator provides access to a complete listing of ADGroup values.

func NewGroupListResultIterator Uses

func NewGroupListResultIterator(page GroupListResultPage) GroupListResultIterator

Creates a new instance of the GroupListResultIterator type.

func (*GroupListResultIterator) Next Uses

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. Deprecated: Use NextWithContext() instead.

func (*GroupListResultIterator) NextWithContext Uses

func (iter *GroupListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext 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 Uses

func (iter GroupListResultIterator) NotDone() bool

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

func (GroupListResultIterator) Response Uses

func (iter GroupListResultIterator) Response() GroupListResult

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

func (GroupListResultIterator) Value Uses

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 Uses

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

GroupListResultPage contains a page of ADGroup values.

func NewGroupListResultPage Uses

func NewGroupListResultPage(getNextPage func(context.Context, GroupListResult) (GroupListResult, error)) GroupListResultPage

Creates a new instance of the GroupListResultPage type.

func (*GroupListResultPage) Next Uses

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. Deprecated: Use NextWithContext() instead.

func (*GroupListResultPage) NextWithContext Uses

func (page *GroupListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext 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 Uses

func (page GroupListResultPage) NotDone() bool

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

func (GroupListResultPage) Response Uses

func (page GroupListResultPage) Response() GroupListResult

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

func (GroupListResultPage) Values Uses

func (page GroupListResultPage) Values() []ADGroup

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

type GroupsClient Uses

type GroupsClient struct {
    BaseClient
}

GroupsClient is the the Graph RBAC Management Client

func NewGroupsClient Uses

func NewGroupsClient(tenantID string) GroupsClient

NewGroupsClient creates an instance of the GroupsClient client.

func NewGroupsClientWithBaseURI Uses

func NewGroupsClientWithBaseURI(baseURI string, tenantID string) GroupsClient

NewGroupsClientWithBaseURI creates an instance of the GroupsClient client.

func (GroupsClient) AddMember Uses

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 Uses

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

AddMemberPreparer prepares the AddMember request.

func (GroupsClient) AddMemberResponder Uses

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 Uses

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

func (client GroupsClient) AddOwner(ctx context.Context, objectID string, parameters AddOwnerParameters) (result autorest.Response, err error)

AddOwner add an owner to a group. Parameters: objectID - 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 (GroupsClient) AddOwnerPreparer Uses

func (client GroupsClient) AddOwnerPreparer(ctx context.Context, objectID string, parameters AddOwnerParameters) (*http.Request, error)

AddOwnerPreparer prepares the AddOwner request.

func (GroupsClient) AddOwnerResponder Uses

func (client GroupsClient) 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 (GroupsClient) AddOwnerSender Uses

func (client GroupsClient) 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 (GroupsClient) Create Uses

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 Uses

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

CreatePreparer prepares the Create request.

func (GroupsClient) CreateResponder Uses

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 Uses

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 Uses

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 Uses

func (client GroupsClient) DeletePreparer(ctx context.Context, objectID string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (GroupsClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

func (client GroupsClient) GetGroupMembers(ctx context.Context, objectID string) (result DirectoryObjectListResultPage, 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 Uses

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

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

func (GroupsClient) GetGroupMembersNext Uses

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

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

func (GroupsClient) GetGroupMembersNextPreparer Uses

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

GetGroupMembersNextPreparer prepares the GetGroupMembersNext request.

func (GroupsClient) GetGroupMembersNextResponder Uses

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

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

func (GroupsClient) GetGroupMembersNextSender Uses

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 Uses

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

GetGroupMembersPreparer prepares the GetGroupMembers request.

func (GroupsClient) GetGroupMembersResponder Uses

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

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

func (GroupsClient) GetGroupMembersSender Uses

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 Uses

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 Uses

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

GetMemberGroupsPreparer prepares the GetMemberGroups request.

func (GroupsClient) GetMemberGroupsResponder Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (GroupsClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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

IsMemberOfPreparer prepares the IsMemberOf request.

func (GroupsClient) IsMemberOfResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListNextPreparer prepares the ListNext request.

func (GroupsClient) ListNextResponder Uses

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 Uses

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) ListOwners Uses

func (client GroupsClient) ListOwners(ctx context.Context, objectID string) (result DirectoryObjectListResultPage, 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 group for which to get owners.

func (GroupsClient) ListOwnersComplete Uses

func (client GroupsClient) ListOwnersComplete(ctx context.Context, objectID string) (result DirectoryObjectListResultIterator, err error)

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

func (GroupsClient) ListOwnersPreparer Uses

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

ListOwnersPreparer prepares the ListOwners request.

func (GroupsClient) ListOwnersResponder Uses

func (client GroupsClient) 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 (GroupsClient) ListOwnersSender Uses

func (client GroupsClient) 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 (GroupsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (GroupsClient) ListResponder Uses

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 Uses

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 Uses

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 Uses

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

RemoveMemberPreparer prepares the RemoveMember request.

func (GroupsClient) RemoveMemberResponder Uses

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 Uses

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.

func (GroupsClient) RemoveOwner Uses

func (client GroupsClient) RemoveOwner(ctx context.Context, objectID string, ownerObjectID string) (result autorest.Response, err error)

RemoveOwner remove a member from owners. Parameters: objectID - the object ID of the group from which to remove the owner. ownerObjectID - owner object id

func (GroupsClient) RemoveOwnerPreparer Uses

func (client GroupsClient) RemoveOwnerPreparer(ctx context.Context, objectID string, ownerObjectID string) (*http.Request, error)

RemoveOwnerPreparer prepares the RemoveOwner request.

func (GroupsClient) RemoveOwnerResponder Uses

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

RemoveOwnerResponder handles the response to the RemoveOwner request. The method always closes the http.Response Body.

func (GroupsClient) RemoveOwnerSender Uses

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

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

type InformationalURL Uses

type InformationalURL struct {
    // TermsOfService - The terms of service URI
    TermsOfService *string `json:"termsOfService,omitempty"`
    // Marketing - The marketing URI
    Marketing *string `json:"marketing,omitempty"`
    // Privacy - The privacy policy URI
    Privacy *string `json:"privacy,omitempty"`
    // Support - The support URI
    Support *string `json:"support,omitempty"`
}

InformationalURL represents a group of URIs that provide terms of service, marketing, support and privacy policy information about an application. The default value for each string is null.

type KeyCredential Uses

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 *string `json:"customKeyIdentifier,omitempty"`
}

KeyCredential active Directory Key Credential information.

func (KeyCredential) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for KeyCredential.

func (*KeyCredential) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for KeyCredential struct.

type KeyCredentialListResult Uses

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

KeyCredentialListResult keyCredential list operation result.

type KeyCredentialsUpdateParameters Uses

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

KeyCredentialsUpdateParameters request parameters for a KeyCredentials update operation

type OAuth2Permission Uses

type OAuth2Permission struct {
    // AdminConsentDescription - Permission help text that appears in the admin consent and app assignment experiences.
    AdminConsentDescription *string `json:"adminConsentDescription,omitempty"`
    // AdminConsentDisplayName - Display name for the permission that appears in the admin consent and app assignment experiences.
    AdminConsentDisplayName *string `json:"adminConsentDisplayName,omitempty"`
    // ID - Unique scope permission identifier inside the oauth2Permissions collection.
    ID  *string `json:"id,omitempty"`
    // IsEnabled - When creating or updating a permission, this property must be set to true (which is the default). To delete a permission, this property must first be set to false. At that point, in a subsequent call, the permission may be removed.
    IsEnabled *bool `json:"isEnabled,omitempty"`
    // Type - Specifies whether this scope permission can be consented to by an end user, or whether it is a tenant-wide permission that must be consented to by a Company Administrator. Possible values are "User" or "Admin".
    Type *string `json:"type,omitempty"`
    // UserConsentDescription - Permission help text that appears in the end user consent experience.
    UserConsentDescription *string `json:"userConsentDescription,omitempty"`
    // UserConsentDisplayName - Display name for the permission that appears in the end user consent experience.
    UserConsentDisplayName *string `json:"userConsentDisplayName,omitempty"`
    // Value - The value of the scope claim that the resource application should expect in the OAuth 2.0 access token.
    Value *string `json:"value,omitempty"`
}

OAuth2Permission represents an OAuth 2.0 delegated permission scope. The specified OAuth 2.0 delegated permission scopes may be requested by client applications (through the requiredResourceAccess collection on the Application object) when calling a resource application. The oauth2Permissions property of the ServicePrincipal entity and of the Application entity is a collection of OAuth2Permission.

type OAuth2PermissionGrant Uses

type OAuth2PermissionGrant struct {
    autorest.Response `json:"-"`
    // OdataType - Microsoft.DirectoryServices.OAuth2PermissionGrant
    OdataType *string `json:"odata.type,omitempty"`
    // ClientID - The id of the resource's service principal granted consent to impersonate the user when accessing the resource (represented by the resourceId property).
    ClientID *string `json:"clientId,omitempty"`
    // ObjectID - The id of the permission grant
    ObjectID *string `json:"objectId,omitempty"`
    // ConsentType - Indicates if consent was provided by the administrator (on behalf of the organization) or by an individual. Possible values include: 'AllPrincipals', 'Principal'
    ConsentType ConsentType `json:"consentType,omitempty"`
    // PrincipalID - When consent type is Principal, this property specifies the id of the user that granted consent and applies only for that user.
    PrincipalID *string `json:"principalId,omitempty"`
    // ResourceID - Object Id of the resource you want to grant
    ResourceID *string `json:"resourceId,omitempty"`
    // Scope - Specifies the value of the scope claim that the resource application should expect in the OAuth 2.0 access token. For example, User.Read
    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"`
}

OAuth2PermissionGrant ...

type OAuth2PermissionGrantClient Uses

type OAuth2PermissionGrantClient struct {
    BaseClient
}

OAuth2PermissionGrantClient is the the Graph RBAC Management Client

func NewOAuth2PermissionGrantClient Uses

func NewOAuth2PermissionGrantClient(tenantID string) OAuth2PermissionGrantClient

NewOAuth2PermissionGrantClient creates an instance of the OAuth2PermissionGrantClient client.

func NewOAuth2PermissionGrantClientWithBaseURI Uses

func NewOAuth2PermissionGrantClientWithBaseURI(baseURI string, tenantID string) OAuth2PermissionGrantClient

NewOAuth2PermissionGrantClientWithBaseURI creates an instance of the OAuth2PermissionGrantClient client.

func (OAuth2PermissionGrantClient) Create Uses

func (client OAuth2PermissionGrantClient) Create(ctx context.Context, body *OAuth2PermissionGrant) (result OAuth2PermissionGrant, err error)

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

func (OAuth2PermissionGrantClient) CreatePreparer Uses

func (client OAuth2PermissionGrantClient) CreatePreparer(ctx context.Context, body *OAuth2PermissionGrant) (*http.Request, error)

CreatePreparer prepares the Create request.

func (OAuth2PermissionGrantClient) CreateResponder Uses

func (client OAuth2PermissionGrantClient) CreateResponder(resp *http.Response) (result OAuth2PermissionGrant, err error)

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

func (OAuth2PermissionGrantClient) CreateSender Uses

func (client OAuth2PermissionGrantClient) 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 (OAuth2PermissionGrantClient) Delete Uses

func (client OAuth2PermissionGrantClient) Delete(ctx context.Context, objectID string) (result autorest.Response, err error)

Delete delete a OAuth2 permission grant for the relevant resource Ids of an app. Parameters: objectID - the object ID of a permission grant.

func (OAuth2PermissionGrantClient) DeletePreparer Uses

func (client OAuth2PermissionGrantClient) DeletePreparer(ctx context.Context, objectID string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (OAuth2PermissionGrantClient) DeleteResponder Uses

func (client OAuth2PermissionGrantClient) 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 (OAuth2PermissionGrantClient) DeleteSender Uses

func (client OAuth2PermissionGrantClient) 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 (OAuth2PermissionGrantClient) List Uses

func (client OAuth2PermissionGrantClient) List(ctx context.Context, filter string) (result OAuth2PermissionGrantListResultPage, err error)

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

func (OAuth2PermissionGrantClient) ListComplete Uses

func (client OAuth2PermissionGrantClient) ListComplete(ctx context.Context, filter string) (result OAuth2PermissionGrantListResultIterator, err error)

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

func (OAuth2PermissionGrantClient) ListNext Uses

func (client OAuth2PermissionGrantClient) ListNext(ctx context.Context, nextLink string) (result OAuth2PermissionGrantListResult, err error)

ListNext gets the next page of OAuth2 permission grants Parameters: nextLink - next link for the list operation.

func (OAuth2PermissionGrantClient) ListNextPreparer Uses

func (client OAuth2PermissionGrantClient) ListNextPreparer(ctx context.Context, nextLink string) (*http.Request, error)

ListNextPreparer prepares the ListNext request.

func (OAuth2PermissionGrantClient) ListNextResponder Uses

func (client OAuth2PermissionGrantClient) ListNextResponder(resp *http.Response) (result OAuth2PermissionGrantListResult, err error)

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

func (OAuth2PermissionGrantClient) ListNextSender Uses

func (client OAuth2PermissionGrantClient) 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 (OAuth2PermissionGrantClient) ListPreparer Uses

func (client OAuth2PermissionGrantClient) ListPreparer(ctx context.Context, filter string) (*http.Request, error)

ListPreparer prepares the List request.

func (OAuth2PermissionGrantClient) ListResponder Uses

func (client OAuth2PermissionGrantClient) ListResponder(resp *http.Response) (result OAuth2PermissionGrantListResult, err error)

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

func (OAuth2PermissionGrantClient) ListSender Uses

func (client OAuth2PermissionGrantClient) 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 OAuth2PermissionGrantListResult Uses

type OAuth2PermissionGrantListResult struct {
    autorest.Response `json:"-"`
    // Value - the list of oauth2 permissions grants
    Value *[]OAuth2PermissionGrant `json:"value,omitempty"`
    // OdataNextLink - the URL to get the next set of results.
    OdataNextLink *string `json:"odata.nextLink,omitempty"`
}

OAuth2PermissionGrantListResult server response for get oauth2 permissions grants

func (OAuth2PermissionGrantListResult) IsEmpty Uses

func (oa2pglr OAuth2PermissionGrantListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OAuth2PermissionGrantListResultIterator Uses

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

OAuth2PermissionGrantListResultIterator provides access to a complete listing of OAuth2PermissionGrant values.

func NewOAuth2PermissionGrantListResultIterator Uses

func NewOAuth2PermissionGrantListResultIterator(page OAuth2PermissionGrantListResultPage) OAuth2PermissionGrantListResultIterator

Creates a new instance of the OAuth2PermissionGrantListResultIterator type.

func (*OAuth2PermissionGrantListResultIterator) Next Uses

func (iter *OAuth2PermissionGrantListResultIterator) 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. Deprecated: Use NextWithContext() instead.

func (*OAuth2PermissionGrantListResultIterator) NextWithContext Uses

func (iter *OAuth2PermissionGrantListResultIterator) NextWithContext(ctx context.Context) (err error)

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

func (OAuth2PermissionGrantListResultIterator) NotDone Uses

func (iter OAuth2PermissionGrantListResultIterator) NotDone() bool

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

func (OAuth2PermissionGrantListResultIterator) Response Uses

func (iter OAuth2PermissionGrantListResultIterator) Response() OAuth2PermissionGrantListResult

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

func (OAuth2PermissionGrantListResultIterator) Value Uses

func (iter OAuth2PermissionGrantListResultIterator) Value() OAuth2PermissionGrant

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

type OAuth2PermissionGrantListResultPage Uses

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

OAuth2PermissionGrantListResultPage contains a page of OAuth2PermissionGrant values.

func NewOAuth2PermissionGrantListResultPage Uses

func NewOAuth2PermissionGrantListResultPage(getNextPage func(context.Context, OAuth2PermissionGrantListResult) (OAuth2PermissionGrantListResult, error)) OAuth2PermissionGrantListResultPage

Creates a new instance of the OAuth2PermissionGrantListResultPage type.

func (*OAuth2PermissionGrantListResultPage) Next Uses

func (page *OAuth2PermissionGrantListResultPage) 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. Deprecated: Use NextWithContext() instead.

func (*OAuth2PermissionGrantListResultPage) NextWithContext Uses

func (page *OAuth2PermissionGrantListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext 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 (OAuth2PermissionGrantListResultPage) NotDone Uses

func (page OAuth2PermissionGrantListResultPage) NotDone() bool

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

func (OAuth2PermissionGrantListResultPage) Response Uses

func (page OAuth2PermissionGrantListResultPage) Response() OAuth2PermissionGrantListResult

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

func (OAuth2PermissionGrantListResultPage) Values Uses

func (page OAuth2PermissionGrantListResultPage) Values() []OAuth2PermissionGrant

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

type ObjectType Uses

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 Uses

func PossibleObjectTypeValues() []ObjectType

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

type ObjectsClient Uses

type ObjectsClient struct {
    BaseClient
}

ObjectsClient is the the Graph RBAC Management Client

func NewObjectsClient Uses

func NewObjectsClient(tenantID string) ObjectsClient

NewObjectsClient creates an instance of the ObjectsClient client.

func NewObjectsClientWithBaseURI Uses

func NewObjectsClientWithBaseURI(baseURI string, tenantID string) ObjectsClient

NewObjectsClientWithBaseURI creates an instance of the ObjectsClient client.

func (ObjectsClient) GetObjectsByObjectIds Uses

func (client ObjectsClient) GetObjectsByObjectIds(ctx context.Context, parameters GetObjectsParameters) (result DirectoryObjectListResultPage, err error)

GetObjectsByObjectIds gets the directory objects specified in a list of object IDs. You can also specify which resource collections (users, groups, etc.) should be searched by specifying the optional types parameter. Parameters: parameters - objects filtering parameters.

func (ObjectsClient) GetObjectsByObjectIdsComplete Uses

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

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

func (ObjectsClient) GetObjectsByObjectIdsNext Uses

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

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

func (ObjectsClient) GetObjectsByObjectIdsNextPreparer Uses

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

GetObjectsByObjectIdsNextPreparer prepares the GetObjectsByObjectIdsNext request.

func (ObjectsClient) GetObjectsByObjectIdsNextResponder Uses

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

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

func (ObjectsClient) GetObjectsByObjectIdsNextSender Uses

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 Uses

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

GetObjectsByObjectIdsPreparer prepares the GetObjectsByObjectIds request.

func (ObjectsClient) GetObjectsByObjectIdsResponder Uses

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

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

func (ObjectsClient) GetObjectsByObjectIdsSender Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for OdataError.

func (*OdataError) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for OdataError struct.

type OptionalClaim Uses

type OptionalClaim struct {
    // Name - Claim name.
    Name *string `json:"name,omitempty"`
    // Source - Claim source.
    Source *string `json:"source,omitempty"`
    // Essential - Is this a required claim.
    Essential            *bool       `json:"essential,omitempty"`
    AdditionalProperties interface{} `json:"additionalProperties,omitempty"`
}

OptionalClaim specifying the claims to be included in a token.

type OptionalClaims Uses

type OptionalClaims struct {
    // IDToken - Optional claims requested to be included in the id token.
    IDToken *[]OptionalClaim `json:"idToken,omitempty"`
    // AccessToken - Optional claims requested to be included in the access token.
    AccessToken *[]OptionalClaim `json:"accessToken,omitempty"`
    // SamlToken - Optional claims requested to be included in the saml token.
    SamlToken *[]OptionalClaim `json:"samlToken,omitempty"`
}

OptionalClaims specifying the claims to be included in the token.

type PasswordCredential Uses

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"`
    // CustomKeyIdentifier - Custom Key Identifier
    CustomKeyIdentifier *[]byte `json:"customKeyIdentifier,omitempty"`
}

PasswordCredential active Directory Password Credential information.

func (PasswordCredential) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for PasswordCredential.

func (*PasswordCredential) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for PasswordCredential struct.

type PasswordCredentialListResult Uses

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

PasswordCredentialListResult passwordCredential list operation result.

type PasswordCredentialsUpdateParameters Uses

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

PasswordCredentialsUpdateParameters request parameters for a PasswordCredentials update operation.

type PasswordProfile Uses

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 Uses

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

MarshalJSON is the custom marshaler for PasswordProfile.

func (*PasswordProfile) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for PasswordProfile struct.

type PreAuthorizedApplication Uses

type PreAuthorizedApplication struct {
    // AppID - Represents the application id.
    AppID *string `json:"appId,omitempty"`
    // Permissions - Collection of required app permissions/entitlements from the resource application.
    Permissions *[]PreAuthorizedApplicationPermission `json:"permissions,omitempty"`
    // Extensions - Collection of extensions from the resource application.
    Extensions *[]PreAuthorizedApplicationExtension `json:"extensions,omitempty"`
}

PreAuthorizedApplication contains information about pre authorized client application.

type PreAuthorizedApplicationExtension Uses

type PreAuthorizedApplicationExtension struct {
    // Conditions - The extension's conditions.
    Conditions *[]string `json:"conditions,omitempty"`
}

PreAuthorizedApplicationExtension representation of an app PreAuthorizedApplicationExtension required by a pre authorized client app.

type PreAuthorizedApplicationPermission Uses

type PreAuthorizedApplicationPermission struct {
    // DirectAccessGrant - Indicates whether the permission set is DirectAccess or impersonation.
    DirectAccessGrant *bool `json:"directAccessGrant,omitempty"`
    // AccessGrants - The list of permissions.
    AccessGrants *[]string `json:"accessGrants,omitempty"`
}

PreAuthorizedApplicationPermission contains information about the pre-authorized permissions.

type RequiredResourceAccess Uses

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

func (RequiredResourceAccess) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for RequiredResourceAccess.

func (*RequiredResourceAccess) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for RequiredResourceAccess struct.

type ResourceAccess Uses

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 Uses

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

MarshalJSON is the custom marshaler for ResourceAccess.

func (*ResourceAccess) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ResourceAccess struct.

type ServicePrincipal Uses

type ServicePrincipal struct {
    autorest.Response `json:"-"`
    // AccountEnabled - whether or not the service principal account is enabled
    AccountEnabled *bool `json:"accountEnabled,omitempty"`
    // AlternativeNames - alternative names
    AlternativeNames *[]string `json:"alternativeNames,omitempty"`
    // AppDisplayName - READ-ONLY; The display name exposed by the associated application.
    AppDisplayName *string `json:"appDisplayName,omitempty"`
    // AppID - The application ID.
    AppID *string `json:"appId,omitempty"`
    // AppOwnerTenantID - READ-ONLY
    AppOwnerTenantID *string `json:"appOwnerTenantId,omitempty"`
    // AppRoleAssignmentRequired - Specifies whether an AppRoleAssignment to a user or group is required before Azure AD will issue a user or access token to the application.
    AppRoleAssignmentRequired *bool `json:"appRoleAssignmentRequired,omitempty"`
    // AppRoles - The collection of application roles that an application may declare. These roles can be assigned to users, groups or service principals.
    AppRoles *[]AppRole `json:"appRoles,omitempty"`
    // DisplayName - The display name of the service principal.
    DisplayName *string `json:"displayName,omitempty"`
    // ErrorURL - A URL provided by the author of the associated application to report errors when using the application.
    ErrorURL *string `json:"errorUrl,omitempty"`
    // Homepage - The URL to the homepage of the associated application.
    Homepage *string `json:"homepage,omitempty"`
    // KeyCredentials - The collection of key credentials associated with the service principal.
    KeyCredentials *[]KeyCredential `json:"keyCredentials,omitempty"`
    // LogoutURL - A URL provided by the author of the associated application to logout
    LogoutURL *string `json:"logoutUrl,omitempty"`
    // Oauth2Permissions - READ-ONLY; The OAuth 2.0 permissions exposed by the associated application.
    Oauth2Permissions *[]OAuth2Permission `json:"oauth2Permissions,omitempty"`
    // PasswordCredentials - The collection of password credentials associated with the service principal.
    PasswordCredentials *[]PasswordCredential `json:"passwordCredentials,omitempty"`
    // PreferredTokenSigningKeyThumbprint - The thumbprint of preferred certificate to sign the token
    PreferredTokenSigningKeyThumbprint *string `json:"preferredTokenSigningKeyThumbprint,omitempty"`
    // PublisherName - The publisher's name of the associated application
    PublisherName *string `json:"publisherName,omitempty"`
    // ReplyUrls - The URLs that user tokens are sent to for sign in with the associated application.  The redirect URIs that the oAuth 2.0 authorization code and access tokens are sent to for the associated application.
    ReplyUrls *[]string `json:"replyUrls,omitempty"`
    // SamlMetadataURL - The URL to the SAML metadata of the associated application
    SamlMetadataURL *string `json:"samlMetadataUrl,omitempty"`
    // ServicePrincipalNames - A collection of service principal names.
    ServicePrincipalNames *[]string `json:"servicePrincipalNames,omitempty"`
    // ServicePrincipalType - the type of the service principal
    ServicePrincipalType *string `json:"servicePrincipalType,omitempty"`
    // Tags - Optional list of tags that you can apply to your service principals. Not nullable.
    Tags *[]string `json:"tags,omitempty"`
    // AdditionalProperties - Unmatched properties from the message are deserialized this collection
    AdditionalProperties map[string]interface{} `json:""`
    // ObjectID - READ-ONLY; The object ID.
    ObjectID *string `json:"objectId,omitempty"`
    // DeletionTimestamp - READ-ONLY; 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 Uses

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

AsADGroup is the BasicDirectoryObject implementation for ServicePrincipal.

func (ServicePrincipal) AsApplication Uses

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

AsApplication is the BasicDirectoryObject implementation for ServicePrincipal.

func (ServicePrincipal) AsBasicDirectoryObject Uses

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

AsBasicDirectoryObject is the BasicDirectoryObject implementation for ServicePrincipal.

func (ServicePrincipal) AsDirectoryObject Uses

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

AsDirectoryObject is the BasicDirectoryObject implementation for ServicePrincipal.

func (ServicePrincipal) AsServicePrincipal Uses

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

AsServicePrincipal is the BasicDirectoryObject implementation for ServicePrincipal.

func (ServicePrincipal) AsUser Uses

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

AsUser is the BasicDirectoryObject implementation for ServicePrincipal.

func (ServicePrincipal) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ServicePrincipal.

func (*ServicePrincipal) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ServicePrincipal struct.

type ServicePrincipalBase Uses

type ServicePrincipalBase struct {
    // AccountEnabled - whether or not the service principal account is enabled
    AccountEnabled *bool `json:"accountEnabled,omitempty"`
    // AppRoleAssignmentRequired - Specifies whether an AppRoleAssignment to a user or group is required before Azure AD will issue a user or access token to the application.
    AppRoleAssignmentRequired *bool `json:"appRoleAssignmentRequired,omitempty"`
    // KeyCredentials - The collection of key credentials associated with the service principal.
    KeyCredentials *[]KeyCredential `json:"keyCredentials,omitempty"`
    // PasswordCredentials - The collection of password credentials associated with the service principal.
    PasswordCredentials *[]PasswordCredential `json:"passwordCredentials,omitempty"`
    // ServicePrincipalType - the type of the service principal
    ServicePrincipalType *string `json:"servicePrincipalType,omitempty"`
    // Tags - Optional list of tags that you can apply to your service principals. Not nullable.
    Tags *[]string `json:"tags,omitempty"`
}

ServicePrincipalBase active Directory service principal common properties shared among GET, POST and PATCH

type ServicePrincipalCreateParameters Uses

type ServicePrincipalCreateParameters struct {
    // AppID - The application ID.
    AppID *string `json:"appId,omitempty"`
    // AccountEnabled - whether or not the service principal account is enabled
    AccountEnabled *bool `json:"accountEnabled,omitempty"`
    // AppRoleAssignmentRequired - Specifies whether an AppRoleAssignment to a user or group is required before Azure AD will issue a user or access token to the application.
    AppRoleAssignmentRequired *bool `json:"appRoleAssignmentRequired,omitempty"`
    // KeyCredentials - The collection of key credentials associated with the service principal.
    KeyCredentials *[]KeyCredential `json:"keyCredentials,omitempty"`
    // PasswordCredentials - The collection of password credentials associated with the service principal.
    PasswordCredentials *[]PasswordCredential `json:"passwordCredentials,omitempty"`
    // ServicePrincipalType - the type of the service principal
    ServicePrincipalType *string `json:"servicePrincipalType,omitempty"`
    // Tags - Optional list of tags that you can apply to your service principals. Not nullable.
    Tags *[]string `json:"tags,omitempty"`
}

ServicePrincipalCreateParameters request parameters for creating a new service principal.

type ServicePrincipalListResult Uses

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 Uses

func (splr ServicePrincipalListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ServicePrincipalListResultIterator Uses

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

ServicePrincipalListResultIterator provides access to a complete listing of ServicePrincipal values.

func NewServicePrincipalListResultIterator Uses

func NewServicePrincipalListResultIterator(page ServicePrincipalListResultPage) ServicePrincipalListResultIterator

Creates a new instance of the ServicePrincipalListResultIterator type.

func (*ServicePrincipalListResultIterator) Next Uses

func (iter *ServicePrincipalListResultIterator) 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. Deprecated: Use NextWithContext() instead.

func (*ServicePrincipalListResultIterator) NextWithContext Uses

func (iter *ServicePrincipalListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext 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 Uses

func (iter ServicePrincipalListResultIterator) NotDone() bool

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

func (ServicePrincipalListResultIterator) Response Uses

func (iter ServicePrincipalListResultIterator) Response() ServicePrincipalListResult

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

func (ServicePrincipalListResultIterator) Value Uses

func (iter ServicePrincipalListResultIterator) Value() ServicePrincipal

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

type ServicePrincipalListResultPage Uses

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

ServicePrincipalListResultPage contains a page of ServicePrincipal values.

func NewServicePrincipalListResultPage Uses

func NewServicePrincipalListResultPage(getNextPage func(context.Context, ServicePrincipalListResult) (ServicePrincipalListResult, error)) ServicePrincipalListResultPage

Creates a new instance of the ServicePrincipalListResultPage type.

func (*ServicePrincipalListResultPage) Next Uses

func (page *ServicePrincipalListResultPage) 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. Deprecated: Use NextWithContext() instead.

func (*ServicePrincipalListResultPage) NextWithContext Uses

func (page *ServicePrincipalListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext 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 Uses

func (page ServicePrincipalListResultPage) NotDone() bool

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

func (ServicePrincipalListResultPage) Response Uses

func (page ServicePrincipalListResultPage) Response() ServicePrincipalListResult

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

func (ServicePrincipalListResultPage) Values Uses

func (page ServicePrincipalListResultPage) Values() []ServicePrincipal

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

type ServicePrincipalObjectResult Uses

type ServicePrincipalObjectResult struct {
    autorest.Response `json:"-"`
    // Value - The Object ID of the service principal with the specified application ID.
    Value *string `json:"value,omitempty"`
    // OdataMetadata - The URL representing edm equivalent.
    OdataMetadata *string `json:"odata.metadata,omitempty"`
}

ServicePrincipalObjectResult service Principal Object Result.

type ServicePrincipalUpdateParameters Uses

type ServicePrincipalUpdateParameters struct {
    // AccountEnabled - whether or not the service principal account is enabled
    AccountEnabled *bool `json:"accountEnabled,omitempty"`
    // AppRoleAssignmentRequired - Specifies whether an AppRoleAssignment to a user or group is required before Azure AD will issue a user or access token to the application.
    AppRoleAssignmentRequired *bool `json:"appRoleAssignmentRequired,omitempty"`
    // KeyCredentials - The collection of key credentials associated with the service principal.
    KeyCredentials *[]KeyCredential `json:"keyCredentials,omitempty"`
    // PasswordCredentials - The collection of password credentials associated with the service principal.
    PasswordCredentials *[]PasswordCredential `json:"passwordCredentials,omitempty"`
    // ServicePrincipalType - the type of the service principal
    ServicePrincipalType *string `json:"servicePrincipalType,omitempty"`
    // Tags - Optional list of tags that you can apply to your service principals. Not nullable.
    Tags *[]string `json:"tags,omitempty"`
}

ServicePrincipalUpdateParameters request parameters for update an existing service principal.

type ServicePrincipalsClient Uses

type ServicePrincipalsClient struct {
    BaseClient
}

ServicePrincipalsClient is the the Graph RBAC Management Client

func NewServicePrincipalsClient Uses

func NewServicePrincipalsClient(tenantID string) ServicePrincipalsClient

NewServicePrincipalsClient creates an instance of the ServicePrincipalsClient client.

func NewServicePrincipalsClientWithBaseURI Uses

func NewServicePrincipalsClientWithBaseURI(baseURI string, tenantID string) ServicePrincipalsClient

NewServicePrincipalsClientWithBaseURI creates an instance of the ServicePrincipalsClient client.

func (ServicePrincipalsClient) Create Uses

func (client ServicePrincipalsClient) Create(ctx context.Context, parameters ServicePrincipalCreateParameters) (result ServicePrincipal, err error)

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

func (ServicePrincipalsClient) CreatePreparer Uses

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

CreatePreparer prepares the Create request.

func (ServicePrincipalsClient) CreateResponder Uses

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 Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (ServicePrincipalsClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (ServicePrincipalsClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListKeyCredentialsPreparer prepares the ListKeyCredentials request.

func (ServicePrincipalsClient) ListKeyCredentialsResponder Uses

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 Uses

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 Uses

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 Uses

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

ListNextPreparer prepares the ListNext request.

func (ServicePrincipalsClient) ListNextResponder Uses

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 Uses

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 Uses

func (client ServicePrincipalsClient) ListOwners(ctx context.Context, objectID string) (result DirectoryObjectListResultPage, 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) ListOwnersComplete Uses

func (client ServicePrincipalsClient) ListOwnersComplete(ctx context.Context, objectID string) (result DirectoryObjectListResultIterator, err error)

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

func (ServicePrincipalsClient) ListOwnersPreparer Uses

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

ListOwnersPreparer prepares the ListOwners request.

func (ServicePrincipalsClient) ListOwnersResponder Uses

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 Uses

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 Uses

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 Uses

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

ListPasswordCredentialsPreparer prepares the ListPasswordCredentials request.

func (ServicePrincipalsClient) ListPasswordCredentialsResponder Uses

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 Uses

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 Uses

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

ListPreparer prepares the List request.

func (ServicePrincipalsClient) ListResponder Uses

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 Uses

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) Update Uses

func (client ServicePrincipalsClient) Update(ctx context.Context, objectID string, parameters ServicePrincipalUpdateParameters) (result autorest.Response, err error)

Update updates a service principal in the directory. Parameters: objectID - the object ID of the service principal to delete. parameters - parameters to update a service principal.

func (ServicePrincipalsClient) UpdateKeyCredentials Uses

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 Uses

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

UpdateKeyCredentialsPreparer prepares the UpdateKeyCredentials request.

func (ServicePrincipalsClient) UpdateKeyCredentialsResponder Uses

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 Uses

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 Uses

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 Uses

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

UpdatePasswordCredentialsPreparer prepares the UpdatePasswordCredentials request.

func (ServicePrincipalsClient) UpdatePasswordCredentialsResponder Uses

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 Uses

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.

func (ServicePrincipalsClient) UpdatePreparer Uses

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

UpdatePreparer prepares the Update request.

func (ServicePrincipalsClient) UpdateResponder Uses

func (client ServicePrincipalsClient) 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 (ServicePrincipalsClient) UpdateSender Uses

func (client ServicePrincipalsClient) 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.

type SignInName Uses

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 Uses

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

MarshalJSON is the custom marshaler for SignInName.

func (*SignInName) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for SignInName struct.

type SignedInUserClient Uses

type SignedInUserClient struct {
    BaseClient
}

SignedInUserClient is the the Graph RBAC Management Client

func NewSignedInUserClient Uses

func NewSignedInUserClient(tenantID string) SignedInUserClient

NewSignedInUserClient creates an instance of the SignedInUserClient client.

func NewSignedInUserClientWithBaseURI Uses

func NewSignedInUserClientWithBaseURI(baseURI string, tenantID string) SignedInUserClient

NewSignedInUserClientWithBaseURI creates an instance of the SignedInUserClient client.

func (SignedInUserClient) Get Uses

func (client SignedInUserClient) Get(ctx context.Context) (result User, err error)

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

func (SignedInUserClient) GetPreparer Uses

func (client SignedInUserClient) GetPreparer(ctx context.Context) (*http.Request, error)

GetPreparer prepares the Get request.

func (SignedInUserClient) GetResponder Uses

func (client SignedInUserClient) 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 (SignedInUserClient) GetSender Uses

func (client SignedInUserClient) 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 (SignedInUserClient) ListOwnedObjects Uses

func (client SignedInUserClient) ListOwnedObjects(ctx context.Context) (result DirectoryObjectListResultPage, err error)

ListOwnedObjects get the list of directory objects that are owned by the user.

func (SignedInUserClient) ListOwnedObjectsComplete Uses

func (client SignedInUserClient) ListOwnedObjectsComplete(ctx context.Context) (result DirectoryObjectListResultIterator, err error)

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

func (SignedInUserClient) ListOwnedObjectsNext Uses

func (client SignedInUserClient) ListOwnedObjectsNext(ctx context.Context, nextLink string) (result DirectoryObjectListResult, err error)

ListOwnedObjectsNext get the list of directory objects that are owned by the user. Parameters: nextLink - next link for the list operation.

func (SignedInUserClient) ListOwnedObjectsNextPreparer Uses

func (client SignedInUserClient) ListOwnedObjectsNextPreparer(ctx context.Context, nextLink string) (*http.Request, error)

ListOwnedObjectsNextPreparer prepares the ListOwnedObjectsNext request.

func (SignedInUserClient) ListOwnedObjectsNextResponder Uses

func (client SignedInUserClient) ListOwnedObjectsNextResponder(resp *http.Response) (result DirectoryObjectListResult, err error)

ListOwnedObjectsNextResponder handles the response to the ListOwnedObjectsNext request. The method always closes the http.Response Body.

func (SignedInUserClient) ListOwnedObjectsNextSender Uses

func (client SignedInUserClient) ListOwnedObjectsNextSender(req *http.Request) (*http.Response, error)

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

func (SignedInUserClient) ListOwnedObjectsPreparer Uses

func (client SignedInUserClient) ListOwnedObjectsPreparer(ctx context.Context) (*http.Request, error)

ListOwnedObjectsPreparer prepares the ListOwnedObjects request.

func (SignedInUserClient) ListOwnedObjectsResponder Uses

func (client SignedInUserClient) ListOwnedObjectsResponder(resp *http.Response) (result DirectoryObjectListResult, err error)

ListOwnedObjectsResponder handles the response to the ListOwnedObjects request. The method always closes the http.Response Body.

func (SignedInUserClient) ListOwnedObjectsSender Uses

func (client SignedInUserClient) ListOwnedObjectsSender(req *http.Request) (*http.Response, error)

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

type User Uses

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 - READ-ONLY; The object ID.
    ObjectID *string `json:"objectId,omitempty"`
    // DeletionTimestamp - READ-ONLY; 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 Uses

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

AsADGroup is the BasicDirectoryObject implementation for User.

func (User) AsApplication Uses

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

AsApplication is the BasicDirectoryObject implementation for User.

func (User) AsBasicDirectoryObject Uses

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

AsBasicDirectoryObject is the BasicDirectoryObject implementation for User.

func (User) AsDirectoryObject Uses

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

AsDirectoryObject is the BasicDirectoryObject implementation for User.

func (User) AsServicePrincipal Uses

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

AsServicePrincipal is the BasicDirectoryObject implementation for User.

func (User) AsUser Uses

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

AsUser is the BasicDirectoryObject implementation for User.

func (User) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for User.

func (*User) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for User struct.

type UserBase Uses

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 Uses

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

MarshalJSON is the custom marshaler for UserBase.

func (*UserBase) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for UserBase struct.

type UserCreateParameters Uses

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 Uses

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

MarshalJSON is the custom marshaler for UserCreateParameters.

func (*UserCreateParameters) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for UserCreateParameters struct.

type UserGetMemberGroupsParameters Uses

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 Uses

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

MarshalJSON is the custom marshaler for UserGetMemberGroupsParameters.

func (*UserGetMemberGroupsParameters) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for UserGetMemberGroupsParameters struct.

type UserGetMemberGroupsResult Uses

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 Uses

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 Uses

func (ulr UserListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type UserListResultIterator Uses

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

UserListResultIterator provides access to a complete listing of User values.

func NewUserListResultIterator Uses

func NewUserListResultIterator(page UserListResultPage) UserListResultIterator

Creates a new instance of the UserListResultIterator type.

func (*UserListResultIterator) Next Uses

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. Deprecated: Use NextWithContext() instead.

func (*UserListResultIterator) NextWithContext Uses

func (iter *UserListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext 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 Uses

func (iter UserListResultIterator) NotDone() bool

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

func (UserListResultIterator) Response Uses

func (iter UserListResultIterator) Response() UserListResult

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

func (UserListResultIterator) Value Uses

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 Uses

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

UserListResultPage contains a page of User values.

func NewUserListResultPage Uses

func NewUserListResultPage(getNextPage func(context.Context, UserListResult) (UserListResult, error)) UserListResultPage

Creates a new instance of the UserListResultPage type.

func (*UserListResultPage) Next Uses

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. Deprecated: Use NextWithContext() instead.

func (*UserListResultPage) NextWithContext Uses

func (page *UserListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext 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 Uses

func (page UserListResultPage) NotDone() bool

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

func (UserListResultPage) Response Uses

func (page UserListResultPage) Response() UserListResult

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

func (UserListResultPage) Values Uses

func (page UserListResultPage) Values() []User

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

type UserType Uses

type UserType string

UserType enumerates the values for user type.

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

func PossibleUserTypeValues Uses

func PossibleUserTypeValues() []UserType

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

type UserUpdateParameters Uses

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 Uses

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

MarshalJSON is the custom marshaler for UserUpdateParameters.

func (*UserUpdateParameters) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for UserUpdateParameters struct.

type UsersClient Uses

type UsersClient struct {
    BaseClient
}

UsersClient is the the Graph RBAC Management Client

func NewUsersClient Uses

func NewUsersClient(tenantID string) UsersClient

NewUsersClient creates an instance of the UsersClient client.

func NewUsersClientWithBaseURI Uses

func NewUsersClientWithBaseURI(baseURI string, tenantID string) UsersClient

NewUsersClientWithBaseURI creates an instance of the UsersClient client.

func (UsersClient) Create Uses

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 Uses

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

CreatePreparer prepares the Create request.

func (UsersClient) CreateResponder Uses

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 Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (UsersClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

GetMemberGroupsPreparer prepares the GetMemberGroups request.

func (UsersClient) GetMemberGroupsResponder Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (UsersClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListNextPreparer prepares the ListNext request.

func (UsersClient) ListNextResponder Uses

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 Uses

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 Uses

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

ListPreparer prepares the List request.

func (UsersClient) ListResponder Uses

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 Uses

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 Uses

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 Uses

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

UpdatePreparer prepares the Update request.

func (UsersClient) UpdateResponder Uses

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 Uses

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.

Directories

PathSynopsis
graphrbacapi

Package graphrbac imports 10 packages (graph) and is imported by 30 packages. Updated 2019-07-30. Refresh now. Tools for package owners.