chatinstalledapp

package
v0.20241203.1090052 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MPL-2.0 Imports: 9 Imported by: 1

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatInstalledAppClient

type ChatInstalledAppClient struct {
	Client *msgraph.Client
}

func NewChatInstalledAppClientWithBaseURI

func NewChatInstalledAppClientWithBaseURI(sdkApi sdkEnv.Api) (*ChatInstalledAppClient, error)

func (ChatInstalledAppClient) CreateChatInstalledApp

CreateChatInstalledApp - Create new navigation property to installedApps for users

func (ChatInstalledAppClient) CreateChatInstalledAppUpgrade

CreateChatInstalledAppUpgrade - Invoke action upgrade. Upgrade an app installation within a chat.

func (ChatInstalledAppClient) DeleteChatInstalledApp

DeleteChatInstalledApp - Delete navigation property installedApps for users

func (ChatInstalledAppClient) GetChatInstalledApp

GetChatInstalledApp - Get installedApps from users. A collection of all the apps in the chat. Nullable.

func (ChatInstalledAppClient) GetChatInstalledAppsCount

GetChatInstalledAppsCount - Get the number of the resource

func (ChatInstalledAppClient) ListChatInstalledApps

ListChatInstalledApps - Get installedApps from users. A collection of all the apps in the chat. Nullable.

func (ChatInstalledAppClient) ListChatInstalledAppsComplete

ListChatInstalledAppsComplete retrieves all the results into a single object

func (ChatInstalledAppClient) ListChatInstalledAppsCompleteMatchingPredicate

ListChatInstalledAppsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ChatInstalledAppClient) UpdateChatInstalledApp

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 (CreateChatInstalledAppOperationOptions) ToOData

func (CreateChatInstalledAppOperationOptions) ToQuery

type CreateChatInstalledAppOperationResponse

type CreateChatInstalledAppOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        stable.TeamsAppInstallation
}

type CreateChatInstalledAppUpgradeOperationOptions

type CreateChatInstalledAppUpgradeOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultCreateChatInstalledAppUpgradeOperationOptions

func DefaultCreateChatInstalledAppUpgradeOperationOptions() CreateChatInstalledAppUpgradeOperationOptions

func (CreateChatInstalledAppUpgradeOperationOptions) ToHeaders

func (CreateChatInstalledAppUpgradeOperationOptions) ToOData

func (CreateChatInstalledAppUpgradeOperationOptions) ToQuery

type CreateChatInstalledAppUpgradeOperationResponse

type CreateChatInstalledAppUpgradeOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

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 (DeleteChatInstalledAppOperationOptions) ToOData

func (DeleteChatInstalledAppOperationOptions) ToQuery

type DeleteChatInstalledAppOperationResponse

type DeleteChatInstalledAppOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

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 (GetChatInstalledAppOperationOptions) ToOData

func (GetChatInstalledAppOperationOptions) ToQuery

type GetChatInstalledAppOperationResponse

type GetChatInstalledAppOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        stable.TeamsAppInstallation
}

type GetChatInstalledAppsCountOperationOptions

type GetChatInstalledAppsCountOperationOptions struct {
	Filter    *string
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Search    *string
}

func DefaultGetChatInstalledAppsCountOperationOptions

func DefaultGetChatInstalledAppsCountOperationOptions() GetChatInstalledAppsCountOperationOptions

func (GetChatInstalledAppsCountOperationOptions) ToHeaders

func (GetChatInstalledAppsCountOperationOptions) ToOData

func (GetChatInstalledAppsCountOperationOptions) ToQuery

type GetChatInstalledAppsCountOperationResponse

type GetChatInstalledAppsCountOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]byte
}

type ListChatInstalledAppsCompleteResult

type ListChatInstalledAppsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []stable.TeamsAppInstallation
}

type ListChatInstalledAppsCustomPager

type ListChatInstalledAppsCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
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 (ListChatInstalledAppsOperationOptions) ToOData

func (ListChatInstalledAppsOperationOptions) ToQuery

type ListChatInstalledAppsOperationResponse

type ListChatInstalledAppsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]stable.TeamsAppInstallation
}

type TeamsAppInstallationOperationPredicate

type TeamsAppInstallationOperationPredicate struct {
}

func (TeamsAppInstallationOperationPredicate) Matches

type UpdateChatInstalledAppOperationOptions

type UpdateChatInstalledAppOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultUpdateChatInstalledAppOperationOptions

func DefaultUpdateChatInstalledAppOperationOptions() UpdateChatInstalledAppOperationOptions

func (UpdateChatInstalledAppOperationOptions) ToHeaders

func (UpdateChatInstalledAppOperationOptions) ToOData

func (UpdateChatInstalledAppOperationOptions) ToQuery

type UpdateChatInstalledAppOperationResponse

type UpdateChatInstalledAppOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL