teaminstalledapp

package
v0.20241206.1180327 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/stable/teaminstalledapp Documentation

The teaminstalledapp SDK allows for interaction with Microsoft Graph groups (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/groups/stable/teaminstalledapp"

Client Initialization

client := teaminstalledapp.NewTeamInstalledAppClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: TeamInstalledAppClient.CreateTeamInstalledApp

ctx := context.TODO()
id := teaminstalledapp.NewGroupID("groupId")

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


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

Example Usage: TeamInstalledAppClient.CreateTeamInstalledAppUpgrade

ctx := context.TODO()
id := teaminstalledapp.NewGroupIdTeamInstalledAppID("groupId", "teamsAppInstallationId")

payload := teaminstalledapp.CreateTeamInstalledAppUpgradeRequest{
	// ...
}


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

Example Usage: TeamInstalledAppClient.DeleteTeamInstalledApp

ctx := context.TODO()
id := teaminstalledapp.NewGroupIdTeamInstalledAppID("groupId", "teamsAppInstallationId")

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

Example Usage: TeamInstalledAppClient.GetTeamInstalledApp

ctx := context.TODO()
id := teaminstalledapp.NewGroupIdTeamInstalledAppID("groupId", "teamsAppInstallationId")

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

Example Usage: TeamInstalledAppClient.GetTeamInstalledAppsCount

ctx := context.TODO()
id := teaminstalledapp.NewGroupID("groupId")

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

Example Usage: TeamInstalledAppClient.ListTeamInstalledApps

ctx := context.TODO()
id := teaminstalledapp.NewGroupID("groupId")

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

Example Usage: TeamInstalledAppClient.UpdateTeamInstalledApp

ctx := context.TODO()
id := teaminstalledapp.NewGroupIdTeamInstalledAppID("groupId", "teamsAppInstallationId")

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


read, err := client.UpdateTeamInstalledApp(ctx, id, payload, teaminstalledapp.DefaultUpdateTeamInstalledAppOperationOptions())
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 CreateTeamInstalledAppOperationOptions

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

func DefaultCreateTeamInstalledAppOperationOptions

func DefaultCreateTeamInstalledAppOperationOptions() CreateTeamInstalledAppOperationOptions

func (CreateTeamInstalledAppOperationOptions) ToHeaders

func (CreateTeamInstalledAppOperationOptions) ToOData

func (CreateTeamInstalledAppOperationOptions) ToQuery

type CreateTeamInstalledAppOperationResponse

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

type CreateTeamInstalledAppUpgradeOperationOptions

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

func DefaultCreateTeamInstalledAppUpgradeOperationOptions

func DefaultCreateTeamInstalledAppUpgradeOperationOptions() CreateTeamInstalledAppUpgradeOperationOptions

func (CreateTeamInstalledAppUpgradeOperationOptions) ToHeaders

func (CreateTeamInstalledAppUpgradeOperationOptions) ToOData

func (CreateTeamInstalledAppUpgradeOperationOptions) ToQuery

type CreateTeamInstalledAppUpgradeOperationResponse

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

type CreateTeamInstalledAppUpgradeRequest

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

type DeleteTeamInstalledAppOperationOptions

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

func DefaultDeleteTeamInstalledAppOperationOptions

func DefaultDeleteTeamInstalledAppOperationOptions() DeleteTeamInstalledAppOperationOptions

func (DeleteTeamInstalledAppOperationOptions) ToHeaders

func (DeleteTeamInstalledAppOperationOptions) ToOData

func (DeleteTeamInstalledAppOperationOptions) ToQuery

type DeleteTeamInstalledAppOperationResponse

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

type GetTeamInstalledAppOperationOptions

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

func DefaultGetTeamInstalledAppOperationOptions

func DefaultGetTeamInstalledAppOperationOptions() GetTeamInstalledAppOperationOptions

func (GetTeamInstalledAppOperationOptions) ToHeaders

func (GetTeamInstalledAppOperationOptions) ToOData

func (GetTeamInstalledAppOperationOptions) ToQuery

type GetTeamInstalledAppOperationResponse

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

type GetTeamInstalledAppsCountOperationOptions

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

func DefaultGetTeamInstalledAppsCountOperationOptions

func DefaultGetTeamInstalledAppsCountOperationOptions() GetTeamInstalledAppsCountOperationOptions

func (GetTeamInstalledAppsCountOperationOptions) ToHeaders

func (GetTeamInstalledAppsCountOperationOptions) ToOData

func (GetTeamInstalledAppsCountOperationOptions) ToQuery

type GetTeamInstalledAppsCountOperationResponse

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

type ListTeamInstalledAppsCompleteResult

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

type ListTeamInstalledAppsCustomPager

type ListTeamInstalledAppsCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *ListTeamInstalledAppsCustomPager) NextPageLink() *odata.Link

type ListTeamInstalledAppsOperationOptions

type ListTeamInstalledAppsOperationOptions 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 DefaultListTeamInstalledAppsOperationOptions

func DefaultListTeamInstalledAppsOperationOptions() ListTeamInstalledAppsOperationOptions

func (ListTeamInstalledAppsOperationOptions) ToHeaders

func (ListTeamInstalledAppsOperationOptions) ToOData

func (ListTeamInstalledAppsOperationOptions) ToQuery

type ListTeamInstalledAppsOperationResponse

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

type TeamInstalledAppClient

type TeamInstalledAppClient struct {
	Client *msgraph.Client
}

func NewTeamInstalledAppClientWithBaseURI

func NewTeamInstalledAppClientWithBaseURI(sdkApi sdkEnv.Api) (*TeamInstalledAppClient, error)

func (TeamInstalledAppClient) CreateTeamInstalledApp

CreateTeamInstalledApp - Create new navigation property to installedApps for groups

func (TeamInstalledAppClient) CreateTeamInstalledAppUpgrade

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

func (TeamInstalledAppClient) DeleteTeamInstalledApp

DeleteTeamInstalledApp - Delete navigation property installedApps for groups

func (TeamInstalledAppClient) GetTeamInstalledApp

GetTeamInstalledApp - Get installedApps from groups. The apps installed in this team.

func (TeamInstalledAppClient) GetTeamInstalledAppsCount

GetTeamInstalledAppsCount - Get the number of the resource

func (TeamInstalledAppClient) ListTeamInstalledApps

ListTeamInstalledApps - Get installedApps from groups. The apps installed in this team.

func (TeamInstalledAppClient) ListTeamInstalledAppsComplete

ListTeamInstalledAppsComplete retrieves all the results into a single object

func (TeamInstalledAppClient) ListTeamInstalledAppsCompleteMatchingPredicate

ListTeamInstalledAppsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (TeamInstalledAppClient) UpdateTeamInstalledApp

UpdateTeamInstalledApp - Update the navigation property installedApps in groups

type TeamsAppInstallationOperationPredicate

type TeamsAppInstallationOperationPredicate struct {
}

func (TeamsAppInstallationOperationPredicate) Matches

type UpdateTeamInstalledAppOperationOptions

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

func DefaultUpdateTeamInstalledAppOperationOptions

func DefaultUpdateTeamInstalledAppOperationOptions() UpdateTeamInstalledAppOperationOptions

func (UpdateTeamInstalledAppOperationOptions) ToHeaders

func (UpdateTeamInstalledAppOperationOptions) ToOData

func (UpdateTeamInstalledAppOperationOptions) ToQuery

type UpdateTeamInstalledAppOperationResponse

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