Documentation ¶
Index ¶
- Constants
- Variables
- func NewPipeline(credential azcore.TokenCredential, serviceConfig cloud.ServiceConfiguration, ...) runtime.Pipeline
- func SetHttpRequestBody(req *policy.Request, value any) error
- type Application
- type ApplicationAddPasswordRequest
- type ApplicationAddPasswordResponse
- type ApplicationCreateRequest
- type ApplicationItemRequestBuilder
- func (c *ApplicationItemRequestBuilder) AddPassword(ctx context.Context) (*ApplicationPasswordCredential, error)
- func (c *ApplicationItemRequestBuilder) Delete(ctx context.Context) error
- func (c *ApplicationItemRequestBuilder) FederatedIdentityCredentialById(id string) *FederatedIdentityCredentialItemRequestBuilder
- func (c *ApplicationItemRequestBuilder) FederatedIdentityCredentials() *FederatedIdentityCredentialListRequestBuilder
- func (c *ApplicationItemRequestBuilder) Get(ctx context.Context) (*Application, error)
- func (c *ApplicationItemRequestBuilder) GetByAppId(ctx context.Context) (*Application, error)
- func (c *ApplicationItemRequestBuilder) RemovePassword(ctx context.Context, keyId string) error
- type ApplicationListRequestBuilder
- type ApplicationListResponse
- type ApplicationPasswordCredential
- type ApplicationRemovePasswordRequest
- type EntityItemRequestBuilder
- type EntityListRequestBuilder
- type FederatedIdentityCredential
- type FederatedIdentityCredentialItemRequestBuilder
- func (c *FederatedIdentityCredentialItemRequestBuilder) Delete(ctx context.Context) error
- func (c *FederatedIdentityCredentialItemRequestBuilder) Get(ctx context.Context) (*FederatedIdentityCredential, error)
- func (c *FederatedIdentityCredentialItemRequestBuilder) Update(ctx context.Context, federatedIdentityCredential *FederatedIdentityCredential) error
- type FederatedIdentityCredentialListRequestBuilder
- func (c *FederatedIdentityCredentialListRequestBuilder) Get(ctx context.Context) (*FederatedIdentityCredentialListResponse, error)
- func (c *FederatedIdentityCredentialListRequestBuilder) Post(ctx context.Context, federatedIdentityCredential *FederatedIdentityCredential) (*FederatedIdentityCredential, error)
- type FederatedIdentityCredentialListResponse
- type GraphClient
- func (c *GraphClient) ApplicationById(id string) *ApplicationItemRequestBuilder
- func (c *GraphClient) Applications() *ApplicationListRequestBuilder
- func (c *GraphClient) Me() *MeItemRequestBuilder
- func (c *GraphClient) ServicePrincipalById(id string) *ServicePrincipalItemRequestBuilder
- func (c *GraphClient) ServicePrincipals() *ServicePrincipalListRequestBuilder
- type MeItemRequestBuilder
- type ServicePrincipal
- type ServicePrincipalCreateRequest
- type ServicePrincipalItemRequestBuilder
- type ServicePrincipalListRequestBuilder
- type ServicePrincipalListResponse
- type UserProfile
Constants ¶
const HostName = "graph.microsoft.com"
The host name for the Graph API.
Variables ¶
var ServiceConfig cloud.ServiceConfiguration = cloud.ServiceConfiguration{
Audience: "https://graph.microsoft.com",
Endpoint: "https://graph.microsoft.com/v1.0",
}
Functions ¶
func NewPipeline ¶
func NewPipeline( credential azcore.TokenCredential, serviceConfig cloud.ServiceConfiguration, clientOptions *azcore.ClientOptions, ) runtime.Pipeline
Creates a new Azure HTTP pipeline used for Graph SDK clients
Types ¶
type Application ¶
type Application struct { Id *string `json:"id"` AppId *string `json:"appId"` DisplayName string `json:"displayName"` Description *string `json:"description"` PasswordCredentials []*ApplicationPasswordCredential `json:"passwordCredentials"` ServiceManagementReference *string `json:"serviceManagementReference"` }
A Microsoft Graph Application entity.
type ApplicationAddPasswordRequest ¶
type ApplicationAddPasswordRequest struct {
PasswordCredential ApplicationPasswordCredential `json:"passwordCredential"`
}
type ApplicationAddPasswordResponse ¶
type ApplicationAddPasswordResponse struct {
ApplicationPasswordCredential
}
type ApplicationCreateRequest ¶
type ApplicationCreateRequest struct {
Application
}
type ApplicationItemRequestBuilder ¶
type ApplicationItemRequestBuilder struct { *EntityItemRequestBuilder[ApplicationItemRequestBuilder] }
func NewApplicationItemRequestBuilder ¶
func NewApplicationItemRequestBuilder(client *GraphClient, id string) *ApplicationItemRequestBuilder
func (*ApplicationItemRequestBuilder) AddPassword ¶
func (c *ApplicationItemRequestBuilder) AddPassword(ctx context.Context) (*ApplicationPasswordCredential, error)
func (*ApplicationItemRequestBuilder) Delete ¶
func (c *ApplicationItemRequestBuilder) Delete(ctx context.Context) error
Gets a Microsoft Graph Application for the specified application identifier
func (*ApplicationItemRequestBuilder) FederatedIdentityCredentialById ¶
func (c *ApplicationItemRequestBuilder) FederatedIdentityCredentialById( id string, ) *FederatedIdentityCredentialItemRequestBuilder
func (*ApplicationItemRequestBuilder) FederatedIdentityCredentials ¶
func (c *ApplicationItemRequestBuilder) FederatedIdentityCredentials() *FederatedIdentityCredentialListRequestBuilder
func (*ApplicationItemRequestBuilder) Get ¶
func (c *ApplicationItemRequestBuilder) Get(ctx context.Context) (*Application, error)
Gets a Microsoft Graph Application for the specified application identifier
func (*ApplicationItemRequestBuilder) GetByAppId ¶
func (c *ApplicationItemRequestBuilder) GetByAppId(ctx context.Context) (*Application, error)
func (*ApplicationItemRequestBuilder) RemovePassword ¶
func (c *ApplicationItemRequestBuilder) RemovePassword(ctx context.Context, keyId string) error
type ApplicationListRequestBuilder ¶
type ApplicationListRequestBuilder struct { *EntityListRequestBuilder[ApplicationListRequestBuilder] }
func NewApplicationListRequestBuilder ¶
func NewApplicationListRequestBuilder(client *GraphClient) *ApplicationListRequestBuilder
func (*ApplicationListRequestBuilder) Get ¶
func (c *ApplicationListRequestBuilder) Get(ctx context.Context) (*ApplicationListResponse, error)
Gets a list of applications that the current logged in user has access to.
func (*ApplicationListRequestBuilder) Post ¶
func (c *ApplicationListRequestBuilder) Post(ctx context.Context, application *Application) (*Application, error)
type ApplicationListResponse ¶
type ApplicationListResponse struct {
Value []Application `json:"value"`
}
A list of applications returned from the Microsoft Graph.
type ApplicationPasswordCredential ¶
type ApplicationPasswordCredential struct { KeyId *string `json:"keyId"` CustomKeyIdentifier *string `json:"customKeyIdentifier"` DisplayName *string `json:"displayName"` StartDateTime *time.Time `json:"startDateTime"` EndDateTime *time.Time `json:"endDateTime"` SecretText *string `json:"secretText"` Hint *string `json:"hint"` }
type ApplicationRemovePasswordRequest ¶
type ApplicationRemovePasswordRequest struct {
KeyId string `json:"keyId"`
}
type EntityItemRequestBuilder ¶
type EntityItemRequestBuilder[T any] struct { // contains filtered or unexported fields }
func (*EntityItemRequestBuilder[T]) Select ¶
func (b *EntityItemRequestBuilder[T]) Select(params []string) *T
type EntityListRequestBuilder ¶
type EntityListRequestBuilder[T any] struct { // contains filtered or unexported fields }
func (*EntityListRequestBuilder[T]) Filter ¶
func (b *EntityListRequestBuilder[T]) Filter(filterExpression string) *T
func (*EntityListRequestBuilder[T]) Top ¶
func (b *EntityListRequestBuilder[T]) Top(count int) *T
type FederatedIdentityCredentialItemRequestBuilder ¶
type FederatedIdentityCredentialItemRequestBuilder struct { *EntityItemRequestBuilder[FederatedIdentityCredentialItemRequestBuilder] // contains filtered or unexported fields }
func NewFederatedIdentityCredentialItemRequestBuilder ¶
func NewFederatedIdentityCredentialItemRequestBuilder( client *GraphClient, applicationId string, id string, ) *FederatedIdentityCredentialItemRequestBuilder
func (*FederatedIdentityCredentialItemRequestBuilder) Delete ¶
func (c *FederatedIdentityCredentialItemRequestBuilder) Delete(ctx context.Context) error
Gets a Microsoft Graph Application for the specified application identifier
func (*FederatedIdentityCredentialItemRequestBuilder) Get ¶
func (c *FederatedIdentityCredentialItemRequestBuilder) Get(ctx context.Context) (*FederatedIdentityCredential, error)
Gets a Microsoft Graph Application for the specified application identifier
func (*FederatedIdentityCredentialItemRequestBuilder) Update ¶
func (c *FederatedIdentityCredentialItemRequestBuilder) Update( ctx context.Context, federatedIdentityCredential *FederatedIdentityCredential, ) error
type FederatedIdentityCredentialListRequestBuilder ¶
type FederatedIdentityCredentialListRequestBuilder struct { *EntityListRequestBuilder[FederatedIdentityCredentialListRequestBuilder] // contains filtered or unexported fields }
func NewFederatedIdentityCredentialListRequestBuilder ¶
func NewFederatedIdentityCredentialListRequestBuilder( client *GraphClient, applicationId string, ) *FederatedIdentityCredentialListRequestBuilder
func (*FederatedIdentityCredentialListRequestBuilder) Get ¶
func (c *FederatedIdentityCredentialListRequestBuilder) Get( ctx context.Context, ) (*FederatedIdentityCredentialListResponse, error)
Gets a list of applications that the current logged in user has access to.
func (*FederatedIdentityCredentialListRequestBuilder) Post ¶
func (c *FederatedIdentityCredentialListRequestBuilder) Post( ctx context.Context, federatedIdentityCredential *FederatedIdentityCredential, ) (*FederatedIdentityCredential, error)
type FederatedIdentityCredentialListResponse ¶
type FederatedIdentityCredentialListResponse struct {
Value []FederatedIdentityCredential `json:"value"`
}
type GraphClient ¶
type GraphClient struct {
// contains filtered or unexported fields
}
func NewGraphClient ¶
func NewGraphClient( credential azcore.TokenCredential, options *azcore.ClientOptions, ) (*GraphClient, error)
Creates a new instance of the Microsoft Graph client
func (*GraphClient) ApplicationById ¶
func (c *GraphClient) ApplicationById(id string) *ApplicationItemRequestBuilder
func (*GraphClient) Applications ¶
func (c *GraphClient) Applications() *ApplicationListRequestBuilder
func (*GraphClient) ServicePrincipalById ¶
func (c *GraphClient) ServicePrincipalById(id string) *ServicePrincipalItemRequestBuilder
func (*GraphClient) ServicePrincipals ¶
func (c *GraphClient) ServicePrincipals() *ServicePrincipalListRequestBuilder
type MeItemRequestBuilder ¶
type MeItemRequestBuilder struct { *EntityItemRequestBuilder[MeItemRequestBuilder] }
func (*MeItemRequestBuilder) Get ¶
func (b *MeItemRequestBuilder) Get(ctx context.Context) (*UserProfile, error)
Gets the user profile information for the current logged in user
type ServicePrincipal ¶
type ServicePrincipal struct { Id *string `json:"id"` DisplayName string `json:"displayName"` AppId string `json:"appId"` AppOwnerOrganizationId *string `json:"appOwnerOrganizationId"` AppDisplayName *string `json:"appDisplayName"` Description *string `json:"appDescription"` Type *string `json:"servicePrincipalType"` }
A Microsoft Graph Service Principal entity.
type ServicePrincipalCreateRequest ¶
type ServicePrincipalCreateRequest struct {
AppId string `json:"appId"`
}
type ServicePrincipalItemRequestBuilder ¶
type ServicePrincipalItemRequestBuilder struct { *EntityItemRequestBuilder[ServicePrincipalItemRequestBuilder] }
func NewServicePrincipalItemRequestBuilder ¶
func NewServicePrincipalItemRequestBuilder(client *GraphClient, id string) *ServicePrincipalItemRequestBuilder
func (*ServicePrincipalItemRequestBuilder) Delete ¶
func (b *ServicePrincipalItemRequestBuilder) Delete(ctx context.Context) error
func (*ServicePrincipalItemRequestBuilder) Get ¶
func (b *ServicePrincipalItemRequestBuilder) Get(ctx context.Context) (*ServicePrincipal, error)
Gets a Microsoft Graph Service Principal for the specified service principal identifier
type ServicePrincipalListRequestBuilder ¶
type ServicePrincipalListRequestBuilder struct { *EntityListRequestBuilder[ServicePrincipalListRequestBuilder] }
func NewServicePrincipalListRequestBuilder ¶
func NewServicePrincipalListRequestBuilder(client *GraphClient) *ServicePrincipalListRequestBuilder
func (*ServicePrincipalListRequestBuilder) Get ¶
func (c *ServicePrincipalListRequestBuilder) Get(ctx context.Context) (*ServicePrincipalListResponse, error)
Gets a list of Microsoft Graph Service Principals that the current logged in user has access to.
func (*ServicePrincipalListRequestBuilder) Post ¶
func (c *ServicePrincipalListRequestBuilder) Post( ctx context.Context, servicePrincipal *ServicePrincipal, ) (*ServicePrincipal, error)
type ServicePrincipalListResponse ¶
type ServicePrincipalListResponse struct {
Value []ServicePrincipal `json:"value"`
}
A list of service principals returned from the Microsoft Graph.
type UserProfile ¶
type UserProfile struct { Id string `json:"id"` DisplayName string `json:"displayName"` GivenName string `json:"givenName"` Surname string `json:"surname"` JobTitle string `json:"jobTitle"` Mail string `json:"mail"` OfficeLocation string `json:"officeLocation"` UserPrincipalName string `json:"userPrincipalName"` BusinessPhones []string `json:"businessPhones"` }
A Microsoft Graph UserProfile entity.