README
¶
github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/chatinstalledapp
Documentation
The chatinstalledapp
SDK allows for interaction with Microsoft Graph users
(API Version stable
).
This readme covers example usages, but further information on using this SDK can be found in the project root.
Import Path
import "github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/chatinstalledapp"
Client Initialization
client := chatinstalledapp.NewChatInstalledAppClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer
Example Usage: ChatInstalledAppClient.CreateChatInstalledApp
ctx := context.TODO()
id := chatinstalledapp.NewUserIdChatID("userId", "chatId")
payload := chatinstalledapp.TeamsAppInstallation{
// ...
}
read, err := client.CreateChatInstalledApp(ctx, id, payload, chatinstalledapp.DefaultCreateChatInstalledAppOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ChatInstalledAppClient.CreateChatInstalledAppUpgrade
ctx := context.TODO()
id := chatinstalledapp.NewUserIdChatIdInstalledAppID("userId", "chatId", "teamsAppInstallationId")
payload := chatinstalledapp.CreateChatInstalledAppUpgradeRequest{
// ...
}
read, err := client.CreateChatInstalledAppUpgrade(ctx, id, payload, chatinstalledapp.DefaultCreateChatInstalledAppUpgradeOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ChatInstalledAppClient.DeleteChatInstalledApp
ctx := context.TODO()
id := chatinstalledapp.NewUserIdChatIdInstalledAppID("userId", "chatId", "teamsAppInstallationId")
read, err := client.DeleteChatInstalledApp(ctx, id, chatinstalledapp.DefaultDeleteChatInstalledAppOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ChatInstalledAppClient.GetChatInstalledApp
ctx := context.TODO()
id := chatinstalledapp.NewUserIdChatIdInstalledAppID("userId", "chatId", "teamsAppInstallationId")
read, err := client.GetChatInstalledApp(ctx, id, chatinstalledapp.DefaultGetChatInstalledAppOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ChatInstalledAppClient.GetChatInstalledAppsCount
ctx := context.TODO()
id := chatinstalledapp.NewUserIdChatID("userId", "chatId")
read, err := client.GetChatInstalledAppsCount(ctx, id, chatinstalledapp.DefaultGetChatInstalledAppsCountOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ChatInstalledAppClient.ListChatInstalledApps
ctx := context.TODO()
id := chatinstalledapp.NewUserIdChatID("userId", "chatId")
// alternatively `client.ListChatInstalledApps(ctx, id, chatinstalledapp.DefaultListChatInstalledAppsOperationOptions())` can be used to do batched pagination
items, err := client.ListChatInstalledAppsComplete(ctx, id, chatinstalledapp.DefaultListChatInstalledAppsOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: ChatInstalledAppClient.UpdateChatInstalledApp
ctx := context.TODO()
id := chatinstalledapp.NewUserIdChatIdInstalledAppID("userId", "chatId", "teamsAppInstallationId")
payload := chatinstalledapp.TeamsAppInstallation{
// ...
}
read, err := client.UpdateChatInstalledApp(ctx, id, payload, chatinstalledapp.DefaultUpdateChatInstalledAppOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Documentation
¶
Index ¶
- type ChatInstalledAppClient
- func (c ChatInstalledAppClient) CreateChatInstalledApp(ctx context.Context, id stable.UserIdChatId, input stable.TeamsAppInstallation, ...) (result CreateChatInstalledAppOperationResponse, err error)
- func (c ChatInstalledAppClient) CreateChatInstalledAppUpgrade(ctx context.Context, id stable.UserIdChatIdInstalledAppId, ...) (result CreateChatInstalledAppUpgradeOperationResponse, err error)
- func (c ChatInstalledAppClient) DeleteChatInstalledApp(ctx context.Context, id stable.UserIdChatIdInstalledAppId, ...) (result DeleteChatInstalledAppOperationResponse, err error)
- func (c ChatInstalledAppClient) GetChatInstalledApp(ctx context.Context, id stable.UserIdChatIdInstalledAppId, ...) (result GetChatInstalledAppOperationResponse, err error)
- func (c ChatInstalledAppClient) GetChatInstalledAppsCount(ctx context.Context, id stable.UserIdChatId, ...) (result GetChatInstalledAppsCountOperationResponse, err error)
- func (c ChatInstalledAppClient) ListChatInstalledApps(ctx context.Context, id stable.UserIdChatId, ...) (result ListChatInstalledAppsOperationResponse, err error)
- func (c ChatInstalledAppClient) ListChatInstalledAppsComplete(ctx context.Context, id stable.UserIdChatId, ...) (ListChatInstalledAppsCompleteResult, error)
- func (c ChatInstalledAppClient) ListChatInstalledAppsCompleteMatchingPredicate(ctx context.Context, id stable.UserIdChatId, ...) (result ListChatInstalledAppsCompleteResult, err error)
- func (c ChatInstalledAppClient) UpdateChatInstalledApp(ctx context.Context, id stable.UserIdChatIdInstalledAppId, ...) (result UpdateChatInstalledAppOperationResponse, err error)
- type CreateChatInstalledAppOperationOptions
- type CreateChatInstalledAppOperationResponse
- type CreateChatInstalledAppUpgradeOperationOptions
- type CreateChatInstalledAppUpgradeOperationResponse
- type CreateChatInstalledAppUpgradeRequest
- type DeleteChatInstalledAppOperationOptions
- type DeleteChatInstalledAppOperationResponse
- type GetChatInstalledAppOperationOptions
- type GetChatInstalledAppOperationResponse
- type GetChatInstalledAppsCountOperationOptions
- type GetChatInstalledAppsCountOperationResponse
- type ListChatInstalledAppsCompleteResult
- type ListChatInstalledAppsCustomPager
- type ListChatInstalledAppsOperationOptions
- type ListChatInstalledAppsOperationResponse
- type TeamsAppInstallationOperationPredicate
- type UpdateChatInstalledAppOperationOptions
- type UpdateChatInstalledAppOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatInstalledAppClient ¶
func NewChatInstalledAppClientWithBaseURI ¶
func NewChatInstalledAppClientWithBaseURI(sdkApi sdkEnv.Api) (*ChatInstalledAppClient, error)
func (ChatInstalledAppClient) CreateChatInstalledApp ¶
func (c ChatInstalledAppClient) CreateChatInstalledApp(ctx context.Context, id stable.UserIdChatId, input stable.TeamsAppInstallation, options CreateChatInstalledAppOperationOptions) (result CreateChatInstalledAppOperationResponse, err error)
CreateChatInstalledApp - Create new navigation property to installedApps for users
func (ChatInstalledAppClient) CreateChatInstalledAppUpgrade ¶
func (c ChatInstalledAppClient) CreateChatInstalledAppUpgrade(ctx context.Context, id stable.UserIdChatIdInstalledAppId, input CreateChatInstalledAppUpgradeRequest, options CreateChatInstalledAppUpgradeOperationOptions) (result CreateChatInstalledAppUpgradeOperationResponse, err error)
CreateChatInstalledAppUpgrade - Invoke action upgrade. Upgrade an app installation within a chat.
func (ChatInstalledAppClient) DeleteChatInstalledApp ¶
func (c ChatInstalledAppClient) DeleteChatInstalledApp(ctx context.Context, id stable.UserIdChatIdInstalledAppId, options DeleteChatInstalledAppOperationOptions) (result DeleteChatInstalledAppOperationResponse, err error)
DeleteChatInstalledApp - Delete navigation property installedApps for users
func (ChatInstalledAppClient) GetChatInstalledApp ¶
func (c ChatInstalledAppClient) GetChatInstalledApp(ctx context.Context, id stable.UserIdChatIdInstalledAppId, options GetChatInstalledAppOperationOptions) (result GetChatInstalledAppOperationResponse, err error)
GetChatInstalledApp - Get installedApps from users. A collection of all the apps in the chat. Nullable.
func (ChatInstalledAppClient) GetChatInstalledAppsCount ¶
func (c ChatInstalledAppClient) GetChatInstalledAppsCount(ctx context.Context, id stable.UserIdChatId, options GetChatInstalledAppsCountOperationOptions) (result GetChatInstalledAppsCountOperationResponse, err error)
GetChatInstalledAppsCount - Get the number of the resource
func (ChatInstalledAppClient) ListChatInstalledApps ¶
func (c ChatInstalledAppClient) ListChatInstalledApps(ctx context.Context, id stable.UserIdChatId, options ListChatInstalledAppsOperationOptions) (result ListChatInstalledAppsOperationResponse, err error)
ListChatInstalledApps - Get installedApps from users. A collection of all the apps in the chat. Nullable.
func (ChatInstalledAppClient) ListChatInstalledAppsComplete ¶
func (c ChatInstalledAppClient) ListChatInstalledAppsComplete(ctx context.Context, id stable.UserIdChatId, options ListChatInstalledAppsOperationOptions) (ListChatInstalledAppsCompleteResult, error)
ListChatInstalledAppsComplete retrieves all the results into a single object
func (ChatInstalledAppClient) ListChatInstalledAppsCompleteMatchingPredicate ¶
func (c ChatInstalledAppClient) ListChatInstalledAppsCompleteMatchingPredicate(ctx context.Context, id stable.UserIdChatId, options ListChatInstalledAppsOperationOptions, predicate TeamsAppInstallationOperationPredicate) (result ListChatInstalledAppsCompleteResult, err error)
ListChatInstalledAppsCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ChatInstalledAppClient) UpdateChatInstalledApp ¶
func (c ChatInstalledAppClient) UpdateChatInstalledApp(ctx context.Context, id stable.UserIdChatIdInstalledAppId, input stable.TeamsAppInstallation, options UpdateChatInstalledAppOperationOptions) (result UpdateChatInstalledAppOperationResponse, err error)
UpdateChatInstalledApp - Update the navigation property installedApps in users
type CreateChatInstalledAppOperationOptions ¶
type CreateChatInstalledAppOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultCreateChatInstalledAppOperationOptions ¶
func DefaultCreateChatInstalledAppOperationOptions() CreateChatInstalledAppOperationOptions
func (CreateChatInstalledAppOperationOptions) ToHeaders ¶
func (o CreateChatInstalledAppOperationOptions) ToHeaders() *client.Headers
func (CreateChatInstalledAppOperationOptions) ToOData ¶
func (o CreateChatInstalledAppOperationOptions) ToOData() *odata.Query
func (CreateChatInstalledAppOperationOptions) ToQuery ¶
func (o CreateChatInstalledAppOperationOptions) ToQuery() *client.QueryParams
type CreateChatInstalledAppUpgradeOperationOptions ¶
type CreateChatInstalledAppUpgradeOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultCreateChatInstalledAppUpgradeOperationOptions ¶
func DefaultCreateChatInstalledAppUpgradeOperationOptions() CreateChatInstalledAppUpgradeOperationOptions
func (CreateChatInstalledAppUpgradeOperationOptions) ToHeaders ¶
func (o CreateChatInstalledAppUpgradeOperationOptions) ToHeaders() *client.Headers
func (CreateChatInstalledAppUpgradeOperationOptions) ToOData ¶
func (o CreateChatInstalledAppUpgradeOperationOptions) ToOData() *odata.Query
func (CreateChatInstalledAppUpgradeOperationOptions) ToQuery ¶
func (o CreateChatInstalledAppUpgradeOperationOptions) ToQuery() *client.QueryParams
type CreateChatInstalledAppUpgradeRequest ¶
type CreateChatInstalledAppUpgradeRequest struct {
ConsentedPermissionSet *stable.TeamsAppPermissionSet `json:"consentedPermissionSet,omitempty"`
}
type DeleteChatInstalledAppOperationOptions ¶
type DeleteChatInstalledAppOperationOptions struct { IfMatch *string Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultDeleteChatInstalledAppOperationOptions ¶
func DefaultDeleteChatInstalledAppOperationOptions() DeleteChatInstalledAppOperationOptions
func (DeleteChatInstalledAppOperationOptions) ToHeaders ¶
func (o DeleteChatInstalledAppOperationOptions) ToHeaders() *client.Headers
func (DeleteChatInstalledAppOperationOptions) ToOData ¶
func (o DeleteChatInstalledAppOperationOptions) ToOData() *odata.Query
func (DeleteChatInstalledAppOperationOptions) ToQuery ¶
func (o DeleteChatInstalledAppOperationOptions) ToQuery() *client.QueryParams
type GetChatInstalledAppOperationOptions ¶
type GetChatInstalledAppOperationOptions struct { Expand *odata.Expand Metadata *odata.Metadata RetryFunc client.RequestRetryFunc Select *[]string }
func DefaultGetChatInstalledAppOperationOptions ¶
func DefaultGetChatInstalledAppOperationOptions() GetChatInstalledAppOperationOptions
func (GetChatInstalledAppOperationOptions) ToHeaders ¶
func (o GetChatInstalledAppOperationOptions) ToHeaders() *client.Headers
func (GetChatInstalledAppOperationOptions) ToOData ¶
func (o GetChatInstalledAppOperationOptions) ToOData() *odata.Query
func (GetChatInstalledAppOperationOptions) ToQuery ¶
func (o GetChatInstalledAppOperationOptions) ToQuery() *client.QueryParams
type GetChatInstalledAppsCountOperationOptions ¶
type GetChatInstalledAppsCountOperationOptions struct { Filter *string Metadata *odata.Metadata RetryFunc client.RequestRetryFunc Search *string }
func DefaultGetChatInstalledAppsCountOperationOptions ¶
func DefaultGetChatInstalledAppsCountOperationOptions() GetChatInstalledAppsCountOperationOptions
func (GetChatInstalledAppsCountOperationOptions) ToHeaders ¶
func (o GetChatInstalledAppsCountOperationOptions) ToHeaders() *client.Headers
func (GetChatInstalledAppsCountOperationOptions) ToOData ¶
func (o GetChatInstalledAppsCountOperationOptions) ToOData() *odata.Query
func (GetChatInstalledAppsCountOperationOptions) ToQuery ¶
func (o GetChatInstalledAppsCountOperationOptions) ToQuery() *client.QueryParams
type ListChatInstalledAppsCompleteResult ¶
type ListChatInstalledAppsCompleteResult struct { LatestHttpResponse *http.Response Items []stable.TeamsAppInstallation }
type ListChatInstalledAppsCustomPager ¶
func (*ListChatInstalledAppsCustomPager) NextPageLink ¶
func (p *ListChatInstalledAppsCustomPager) NextPageLink() *odata.Link
type ListChatInstalledAppsOperationOptions ¶
type ListChatInstalledAppsOperationOptions struct { Count *bool Expand *odata.Expand Filter *string Metadata *odata.Metadata OrderBy *odata.OrderBy RetryFunc client.RequestRetryFunc Search *string Select *[]string Skip *int64 Top *int64 }
func DefaultListChatInstalledAppsOperationOptions ¶
func DefaultListChatInstalledAppsOperationOptions() ListChatInstalledAppsOperationOptions
func (ListChatInstalledAppsOperationOptions) ToHeaders ¶
func (o ListChatInstalledAppsOperationOptions) ToHeaders() *client.Headers
func (ListChatInstalledAppsOperationOptions) ToOData ¶
func (o ListChatInstalledAppsOperationOptions) ToOData() *odata.Query
func (ListChatInstalledAppsOperationOptions) ToQuery ¶
func (o ListChatInstalledAppsOperationOptions) ToQuery() *client.QueryParams
type TeamsAppInstallationOperationPredicate ¶
type TeamsAppInstallationOperationPredicate struct { }
func (TeamsAppInstallationOperationPredicate) Matches ¶
func (p TeamsAppInstallationOperationPredicate) Matches(input stable.TeamsAppInstallation) bool
type UpdateChatInstalledAppOperationOptions ¶
type UpdateChatInstalledAppOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultUpdateChatInstalledAppOperationOptions ¶
func DefaultUpdateChatInstalledAppOperationOptions() UpdateChatInstalledAppOperationOptions
func (UpdateChatInstalledAppOperationOptions) ToHeaders ¶
func (o UpdateChatInstalledAppOperationOptions) ToHeaders() *client.Headers
func (UpdateChatInstalledAppOperationOptions) ToOData ¶
func (o UpdateChatInstalledAppOperationOptions) ToOData() *odata.Query
func (UpdateChatInstalledAppOperationOptions) ToQuery ¶
func (o UpdateChatInstalledAppOperationOptions) ToQuery() *client.QueryParams
Source Files
¶
- client.go
- method_createchatinstalledapp.go
- method_createchatinstalledappupgrade.go
- method_deletechatinstalledapp.go
- method_getchatinstalledapp.go
- method_getchatinstalledappscount.go
- method_listchatinstalledapps.go
- method_updatechatinstalledapp.go
- model_createchatinstalledappupgraderequest.go
- predicates.go
- version.go