joinedteaminstalledapp

package
v0.20241111.1164443 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/joinedteaminstalledapp Documentation

The joinedteaminstalledapp 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/joinedteaminstalledapp"

Client Initialization

client := joinedteaminstalledapp.NewJoinedTeamInstalledAppClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: JoinedTeamInstalledAppClient.CreateJoinedTeamInstalledApp

ctx := context.TODO()
id := joinedteaminstalledapp.NewUserIdJoinedTeamID("userId", "teamId")

payload := joinedteaminstalledapp.TeamsAppInstallation{
	// ...
}


read, err := client.CreateJoinedTeamInstalledApp(ctx, id, payload, joinedteaminstalledapp.DefaultCreateJoinedTeamInstalledAppOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: JoinedTeamInstalledAppClient.CreateJoinedTeamInstalledAppUpgrade

ctx := context.TODO()
id := joinedteaminstalledapp.NewUserIdJoinedTeamIdInstalledAppID("userId", "teamId", "teamsAppInstallationId")

payload := joinedteaminstalledapp.CreateJoinedTeamInstalledAppUpgradeRequest{
	// ...
}


read, err := client.CreateJoinedTeamInstalledAppUpgrade(ctx, id, payload, joinedteaminstalledapp.DefaultCreateJoinedTeamInstalledAppUpgradeOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: JoinedTeamInstalledAppClient.DeleteJoinedTeamInstalledApp

ctx := context.TODO()
id := joinedteaminstalledapp.NewUserIdJoinedTeamIdInstalledAppID("userId", "teamId", "teamsAppInstallationId")

read, err := client.DeleteJoinedTeamInstalledApp(ctx, id, joinedteaminstalledapp.DefaultDeleteJoinedTeamInstalledAppOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: JoinedTeamInstalledAppClient.GetJoinedTeamInstalledApp

ctx := context.TODO()
id := joinedteaminstalledapp.NewUserIdJoinedTeamIdInstalledAppID("userId", "teamId", "teamsAppInstallationId")

read, err := client.GetJoinedTeamInstalledApp(ctx, id, joinedteaminstalledapp.DefaultGetJoinedTeamInstalledAppOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: JoinedTeamInstalledAppClient.GetJoinedTeamInstalledAppsCount

ctx := context.TODO()
id := joinedteaminstalledapp.NewUserIdJoinedTeamID("userId", "teamId")

read, err := client.GetJoinedTeamInstalledAppsCount(ctx, id, joinedteaminstalledapp.DefaultGetJoinedTeamInstalledAppsCountOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: JoinedTeamInstalledAppClient.ListJoinedTeamInstalledApps

ctx := context.TODO()
id := joinedteaminstalledapp.NewUserIdJoinedTeamID("userId", "teamId")

// alternatively `client.ListJoinedTeamInstalledApps(ctx, id, joinedteaminstalledapp.DefaultListJoinedTeamInstalledAppsOperationOptions())` can be used to do batched pagination
items, err := client.ListJoinedTeamInstalledAppsComplete(ctx, id, joinedteaminstalledapp.DefaultListJoinedTeamInstalledAppsOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: JoinedTeamInstalledAppClient.UpdateJoinedTeamInstalledApp

ctx := context.TODO()
id := joinedteaminstalledapp.NewUserIdJoinedTeamIdInstalledAppID("userId", "teamId", "teamsAppInstallationId")

payload := joinedteaminstalledapp.TeamsAppInstallation{
	// ...
}


read, err := client.UpdateJoinedTeamInstalledApp(ctx, id, payload, joinedteaminstalledapp.DefaultUpdateJoinedTeamInstalledAppOperationOptions())
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 CreateJoinedTeamInstalledAppOperationOptions

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

func DefaultCreateJoinedTeamInstalledAppOperationOptions

func DefaultCreateJoinedTeamInstalledAppOperationOptions() CreateJoinedTeamInstalledAppOperationOptions

func (CreateJoinedTeamInstalledAppOperationOptions) ToHeaders

func (CreateJoinedTeamInstalledAppOperationOptions) ToOData

func (CreateJoinedTeamInstalledAppOperationOptions) ToQuery

type CreateJoinedTeamInstalledAppOperationResponse

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

type CreateJoinedTeamInstalledAppUpgradeOperationOptions

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

func DefaultCreateJoinedTeamInstalledAppUpgradeOperationOptions

func DefaultCreateJoinedTeamInstalledAppUpgradeOperationOptions() CreateJoinedTeamInstalledAppUpgradeOperationOptions

func (CreateJoinedTeamInstalledAppUpgradeOperationOptions) ToHeaders

func (CreateJoinedTeamInstalledAppUpgradeOperationOptions) ToOData

func (CreateJoinedTeamInstalledAppUpgradeOperationOptions) ToQuery

type CreateJoinedTeamInstalledAppUpgradeOperationResponse

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

type CreateJoinedTeamInstalledAppUpgradeRequest

type CreateJoinedTeamInstalledAppUpgradeRequest struct {
	ConsentedPermissionSet *stable.TeamsAppPermissionSet `json:"consentedPermissionSet,omitempty"`
}

type DeleteJoinedTeamInstalledAppOperationOptions

type DeleteJoinedTeamInstalledAppOperationOptions struct {
	IfMatch   *string
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultDeleteJoinedTeamInstalledAppOperationOptions

func DefaultDeleteJoinedTeamInstalledAppOperationOptions() DeleteJoinedTeamInstalledAppOperationOptions

func (DeleteJoinedTeamInstalledAppOperationOptions) ToHeaders

func (DeleteJoinedTeamInstalledAppOperationOptions) ToOData

func (DeleteJoinedTeamInstalledAppOperationOptions) ToQuery

type DeleteJoinedTeamInstalledAppOperationResponse

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

type GetJoinedTeamInstalledAppOperationOptions

type GetJoinedTeamInstalledAppOperationOptions struct {
	Expand    *odata.Expand
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Select    *[]string
}

func DefaultGetJoinedTeamInstalledAppOperationOptions

func DefaultGetJoinedTeamInstalledAppOperationOptions() GetJoinedTeamInstalledAppOperationOptions

func (GetJoinedTeamInstalledAppOperationOptions) ToHeaders

func (GetJoinedTeamInstalledAppOperationOptions) ToOData

func (GetJoinedTeamInstalledAppOperationOptions) ToQuery

type GetJoinedTeamInstalledAppOperationResponse

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

type GetJoinedTeamInstalledAppsCountOperationOptions

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

func DefaultGetJoinedTeamInstalledAppsCountOperationOptions

func DefaultGetJoinedTeamInstalledAppsCountOperationOptions() GetJoinedTeamInstalledAppsCountOperationOptions

func (GetJoinedTeamInstalledAppsCountOperationOptions) ToHeaders

func (GetJoinedTeamInstalledAppsCountOperationOptions) ToOData

func (GetJoinedTeamInstalledAppsCountOperationOptions) ToQuery

type GetJoinedTeamInstalledAppsCountOperationResponse

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

type JoinedTeamInstalledAppClient

type JoinedTeamInstalledAppClient struct {
	Client *msgraph.Client
}

func NewJoinedTeamInstalledAppClientWithBaseURI

func NewJoinedTeamInstalledAppClientWithBaseURI(sdkApi sdkEnv.Api) (*JoinedTeamInstalledAppClient, error)

func (JoinedTeamInstalledAppClient) CreateJoinedTeamInstalledApp

CreateJoinedTeamInstalledApp - Create new navigation property to installedApps for users

func (JoinedTeamInstalledAppClient) CreateJoinedTeamInstalledAppUpgrade

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

func (JoinedTeamInstalledAppClient) DeleteJoinedTeamInstalledApp

DeleteJoinedTeamInstalledApp - Delete navigation property installedApps for users

func (JoinedTeamInstalledAppClient) GetJoinedTeamInstalledApp

GetJoinedTeamInstalledApp - Get installedApps from users. The apps installed in this team.

func (JoinedTeamInstalledAppClient) GetJoinedTeamInstalledAppsCount

GetJoinedTeamInstalledAppsCount - Get the number of the resource

func (JoinedTeamInstalledAppClient) ListJoinedTeamInstalledApps

ListJoinedTeamInstalledApps - Get installedApps from users. The apps installed in this team.

func (JoinedTeamInstalledAppClient) ListJoinedTeamInstalledAppsComplete

ListJoinedTeamInstalledAppsComplete retrieves all the results into a single object

func (JoinedTeamInstalledAppClient) ListJoinedTeamInstalledAppsCompleteMatchingPredicate

ListJoinedTeamInstalledAppsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (JoinedTeamInstalledAppClient) UpdateJoinedTeamInstalledApp

UpdateJoinedTeamInstalledApp - Update the navigation property installedApps in users

type ListJoinedTeamInstalledAppsCompleteResult

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

type ListJoinedTeamInstalledAppsCustomPager

type ListJoinedTeamInstalledAppsCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}

type ListJoinedTeamInstalledAppsOperationOptions

type ListJoinedTeamInstalledAppsOperationOptions 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 DefaultListJoinedTeamInstalledAppsOperationOptions

func DefaultListJoinedTeamInstalledAppsOperationOptions() ListJoinedTeamInstalledAppsOperationOptions

func (ListJoinedTeamInstalledAppsOperationOptions) ToHeaders

func (ListJoinedTeamInstalledAppsOperationOptions) ToOData

func (ListJoinedTeamInstalledAppsOperationOptions) ToQuery

type ListJoinedTeamInstalledAppsOperationResponse

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

type TeamsAppInstallationOperationPredicate

type TeamsAppInstallationOperationPredicate struct {
}

func (TeamsAppInstallationOperationPredicate) Matches

type UpdateJoinedTeamInstalledAppOperationOptions

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

func DefaultUpdateJoinedTeamInstalledAppOperationOptions

func DefaultUpdateJoinedTeamInstalledAppOperationOptions() UpdateJoinedTeamInstalledAppOperationOptions

func (UpdateJoinedTeamInstalledAppOperationOptions) ToHeaders

func (UpdateJoinedTeamInstalledAppOperationOptions) ToOData

func (UpdateJoinedTeamInstalledAppOperationOptions) ToQuery

type UpdateJoinedTeamInstalledAppOperationResponse

type UpdateJoinedTeamInstalledAppOperationResponse 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