README ¶
github.com/hashicorp/go-azure-sdk/microsoft-graph/me/beta/followedsite
Documentation
The followedsite
SDK allows for interaction with Microsoft Graph me
(API Version beta
).
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/me/beta/followedsite"
Client Initialization
client := followedsite.NewFollowedSiteClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer
Example Usage: FollowedSiteClient.AddFollowedSites
ctx := context.TODO()
payload := followedsite.AddFollowedSitesRequest{
// ...
}
// alternatively `client.AddFollowedSites(ctx, payload, followedsite.DefaultAddFollowedSitesOperationOptions())` can be used to do batched pagination
items, err := client.AddFollowedSitesComplete(ctx, payload, followedsite.DefaultAddFollowedSitesOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: FollowedSiteClient.GetFollowedSite
ctx := context.TODO()
id := followedsite.NewMeFollowedSiteID("siteId")
read, err := client.GetFollowedSite(ctx, id, followedsite.DefaultGetFollowedSiteOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: FollowedSiteClient.GetFollowedSitesCount
ctx := context.TODO()
read, err := client.GetFollowedSitesCount(ctx, followedsite.DefaultGetFollowedSitesCountOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: FollowedSiteClient.ListFollowedSites
ctx := context.TODO()
// alternatively `client.ListFollowedSites(ctx, followedsite.DefaultListFollowedSitesOperationOptions())` can be used to do batched pagination
items, err := client.ListFollowedSitesComplete(ctx, followedsite.DefaultListFollowedSitesOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: FollowedSiteClient.RemoveFollowedSites
ctx := context.TODO()
payload := followedsite.RemoveFollowedSitesRequest{
// ...
}
// alternatively `client.RemoveFollowedSites(ctx, payload, followedsite.DefaultRemoveFollowedSitesOperationOptions())` can be used to do batched pagination
items, err := client.RemoveFollowedSitesComplete(ctx, payload, followedsite.DefaultRemoveFollowedSitesOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Documentation ¶
Index ¶
- type AddFollowedSitesCompleteResult
- type AddFollowedSitesCustomPager
- type AddFollowedSitesOperationOptions
- type AddFollowedSitesOperationResponse
- type AddFollowedSitesRequest
- type FollowedSiteClient
- func (c FollowedSiteClient) AddFollowedSites(ctx context.Context, input AddFollowedSitesRequest, ...) (result AddFollowedSitesOperationResponse, err error)
- func (c FollowedSiteClient) AddFollowedSitesComplete(ctx context.Context, input AddFollowedSitesRequest, ...) (AddFollowedSitesCompleteResult, error)
- func (c FollowedSiteClient) AddFollowedSitesCompleteMatchingPredicate(ctx context.Context, input AddFollowedSitesRequest, ...) (result AddFollowedSitesCompleteResult, err error)
- func (c FollowedSiteClient) GetFollowedSite(ctx context.Context, id beta.MeFollowedSiteId, ...) (result GetFollowedSiteOperationResponse, err error)
- func (c FollowedSiteClient) GetFollowedSitesCount(ctx context.Context, options GetFollowedSitesCountOperationOptions) (result GetFollowedSitesCountOperationResponse, err error)
- func (c FollowedSiteClient) ListFollowedSites(ctx context.Context, options ListFollowedSitesOperationOptions) (result ListFollowedSitesOperationResponse, err error)
- func (c FollowedSiteClient) ListFollowedSitesComplete(ctx context.Context, options ListFollowedSitesOperationOptions) (ListFollowedSitesCompleteResult, error)
- func (c FollowedSiteClient) ListFollowedSitesCompleteMatchingPredicate(ctx context.Context, options ListFollowedSitesOperationOptions, ...) (result ListFollowedSitesCompleteResult, err error)
- func (c FollowedSiteClient) RemoveFollowedSites(ctx context.Context, input RemoveFollowedSitesRequest, ...) (result RemoveFollowedSitesOperationResponse, err error)
- func (c FollowedSiteClient) RemoveFollowedSitesComplete(ctx context.Context, input RemoveFollowedSitesRequest, ...) (RemoveFollowedSitesCompleteResult, error)
- func (c FollowedSiteClient) RemoveFollowedSitesCompleteMatchingPredicate(ctx context.Context, input RemoveFollowedSitesRequest, ...) (result RemoveFollowedSitesCompleteResult, err error)
- type GetFollowedSiteOperationOptions
- type GetFollowedSiteOperationResponse
- type GetFollowedSitesCountOperationOptions
- type GetFollowedSitesCountOperationResponse
- type ListFollowedSitesCompleteResult
- type ListFollowedSitesCustomPager
- type ListFollowedSitesOperationOptions
- type ListFollowedSitesOperationResponse
- type RemoveFollowedSitesCompleteResult
- type RemoveFollowedSitesCustomPager
- type RemoveFollowedSitesOperationOptions
- type RemoveFollowedSitesOperationResponse
- type RemoveFollowedSitesRequest
- type SiteOperationPredicate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddFollowedSitesCustomPager ¶
func (*AddFollowedSitesCustomPager) NextPageLink ¶
func (p *AddFollowedSitesCustomPager) NextPageLink() *odata.Link
type AddFollowedSitesOperationOptions ¶
type AddFollowedSitesOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc Skip *int64 Top *int64 }
func DefaultAddFollowedSitesOperationOptions ¶
func DefaultAddFollowedSitesOperationOptions() AddFollowedSitesOperationOptions
func (AddFollowedSitesOperationOptions) ToHeaders ¶
func (o AddFollowedSitesOperationOptions) ToHeaders() *client.Headers
func (AddFollowedSitesOperationOptions) ToOData ¶
func (o AddFollowedSitesOperationOptions) ToOData() *odata.Query
func (AddFollowedSitesOperationOptions) ToQuery ¶
func (o AddFollowedSitesOperationOptions) ToQuery() *client.QueryParams
type AddFollowedSitesRequest ¶
type FollowedSiteClient ¶
func NewFollowedSiteClientWithBaseURI ¶
func NewFollowedSiteClientWithBaseURI(sdkApi sdkEnv.Api) (*FollowedSiteClient, error)
func (FollowedSiteClient) AddFollowedSites ¶
func (c FollowedSiteClient) AddFollowedSites(ctx context.Context, input AddFollowedSitesRequest, options AddFollowedSitesOperationOptions) (result AddFollowedSitesOperationResponse, err error)
AddFollowedSites - Invoke action add. Follow a user's site or multiple sites.
func (FollowedSiteClient) AddFollowedSitesComplete ¶
func (c FollowedSiteClient) AddFollowedSitesComplete(ctx context.Context, input AddFollowedSitesRequest, options AddFollowedSitesOperationOptions) (AddFollowedSitesCompleteResult, error)
AddFollowedSitesComplete retrieves all the results into a single object
func (FollowedSiteClient) AddFollowedSitesCompleteMatchingPredicate ¶
func (c FollowedSiteClient) AddFollowedSitesCompleteMatchingPredicate(ctx context.Context, input AddFollowedSitesRequest, options AddFollowedSitesOperationOptions, predicate SiteOperationPredicate) (result AddFollowedSitesCompleteResult, err error)
AddFollowedSitesCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (FollowedSiteClient) GetFollowedSite ¶
func (c FollowedSiteClient) GetFollowedSite(ctx context.Context, id beta.MeFollowedSiteId, options GetFollowedSiteOperationOptions) (result GetFollowedSiteOperationResponse, err error)
GetFollowedSite - Get followedSites from me
func (FollowedSiteClient) GetFollowedSitesCount ¶
func (c FollowedSiteClient) GetFollowedSitesCount(ctx context.Context, options GetFollowedSitesCountOperationOptions) (result GetFollowedSitesCountOperationResponse, err error)
GetFollowedSitesCount - Get the number of the resource
func (FollowedSiteClient) ListFollowedSites ¶
func (c FollowedSiteClient) ListFollowedSites(ctx context.Context, options ListFollowedSitesOperationOptions) (result ListFollowedSitesOperationResponse, err error)
ListFollowedSites - List followed sites. List the sites that have been followed by the signed in user.
func (FollowedSiteClient) ListFollowedSitesComplete ¶
func (c FollowedSiteClient) ListFollowedSitesComplete(ctx context.Context, options ListFollowedSitesOperationOptions) (ListFollowedSitesCompleteResult, error)
ListFollowedSitesComplete retrieves all the results into a single object
func (FollowedSiteClient) ListFollowedSitesCompleteMatchingPredicate ¶
func (c FollowedSiteClient) ListFollowedSitesCompleteMatchingPredicate(ctx context.Context, options ListFollowedSitesOperationOptions, predicate SiteOperationPredicate) (result ListFollowedSitesCompleteResult, err error)
ListFollowedSitesCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (FollowedSiteClient) RemoveFollowedSites ¶
func (c FollowedSiteClient) RemoveFollowedSites(ctx context.Context, input RemoveFollowedSitesRequest, options RemoveFollowedSitesOperationOptions) (result RemoveFollowedSitesOperationResponse, err error)
RemoveFollowedSites - Invoke action remove. Unfollow a user's site or multiple sites.
func (FollowedSiteClient) RemoveFollowedSitesComplete ¶
func (c FollowedSiteClient) RemoveFollowedSitesComplete(ctx context.Context, input RemoveFollowedSitesRequest, options RemoveFollowedSitesOperationOptions) (RemoveFollowedSitesCompleteResult, error)
RemoveFollowedSitesComplete retrieves all the results into a single object
func (FollowedSiteClient) RemoveFollowedSitesCompleteMatchingPredicate ¶
func (c FollowedSiteClient) RemoveFollowedSitesCompleteMatchingPredicate(ctx context.Context, input RemoveFollowedSitesRequest, options RemoveFollowedSitesOperationOptions, predicate SiteOperationPredicate) (result RemoveFollowedSitesCompleteResult, err error)
RemoveFollowedSitesCompleteMatchingPredicate retrieves all the results and then applies the predicate
type GetFollowedSiteOperationOptions ¶
type GetFollowedSiteOperationOptions struct { Expand *odata.Expand Metadata *odata.Metadata RetryFunc client.RequestRetryFunc Select *[]string }
func DefaultGetFollowedSiteOperationOptions ¶
func DefaultGetFollowedSiteOperationOptions() GetFollowedSiteOperationOptions
func (GetFollowedSiteOperationOptions) ToHeaders ¶
func (o GetFollowedSiteOperationOptions) ToHeaders() *client.Headers
func (GetFollowedSiteOperationOptions) ToOData ¶
func (o GetFollowedSiteOperationOptions) ToOData() *odata.Query
func (GetFollowedSiteOperationOptions) ToQuery ¶
func (o GetFollowedSiteOperationOptions) ToQuery() *client.QueryParams
type GetFollowedSitesCountOperationOptions ¶
type GetFollowedSitesCountOperationOptions struct { Filter *string Metadata *odata.Metadata RetryFunc client.RequestRetryFunc Search *string }
func DefaultGetFollowedSitesCountOperationOptions ¶
func DefaultGetFollowedSitesCountOperationOptions() GetFollowedSitesCountOperationOptions
func (GetFollowedSitesCountOperationOptions) ToHeaders ¶
func (o GetFollowedSitesCountOperationOptions) ToHeaders() *client.Headers
func (GetFollowedSitesCountOperationOptions) ToOData ¶
func (o GetFollowedSitesCountOperationOptions) ToOData() *odata.Query
func (GetFollowedSitesCountOperationOptions) ToQuery ¶
func (o GetFollowedSitesCountOperationOptions) ToQuery() *client.QueryParams
type ListFollowedSitesCustomPager ¶
func (*ListFollowedSitesCustomPager) NextPageLink ¶
func (p *ListFollowedSitesCustomPager) NextPageLink() *odata.Link
type ListFollowedSitesOperationOptions ¶
type ListFollowedSitesOperationOptions 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 DefaultListFollowedSitesOperationOptions ¶
func DefaultListFollowedSitesOperationOptions() ListFollowedSitesOperationOptions
func (ListFollowedSitesOperationOptions) ToHeaders ¶
func (o ListFollowedSitesOperationOptions) ToHeaders() *client.Headers
func (ListFollowedSitesOperationOptions) ToOData ¶
func (o ListFollowedSitesOperationOptions) ToOData() *odata.Query
func (ListFollowedSitesOperationOptions) ToQuery ¶
func (o ListFollowedSitesOperationOptions) ToQuery() *client.QueryParams
type RemoveFollowedSitesCustomPager ¶
func (*RemoveFollowedSitesCustomPager) NextPageLink ¶
func (p *RemoveFollowedSitesCustomPager) NextPageLink() *odata.Link
type RemoveFollowedSitesOperationOptions ¶
type RemoveFollowedSitesOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc Skip *int64 Top *int64 }
func DefaultRemoveFollowedSitesOperationOptions ¶
func DefaultRemoveFollowedSitesOperationOptions() RemoveFollowedSitesOperationOptions
func (RemoveFollowedSitesOperationOptions) ToHeaders ¶
func (o RemoveFollowedSitesOperationOptions) ToHeaders() *client.Headers
func (RemoveFollowedSitesOperationOptions) ToOData ¶
func (o RemoveFollowedSitesOperationOptions) ToOData() *odata.Query
func (RemoveFollowedSitesOperationOptions) ToQuery ¶
func (o RemoveFollowedSitesOperationOptions) ToQuery() *client.QueryParams
type SiteOperationPredicate ¶
type SiteOperationPredicate struct { }