applicationtemplate

package
v0.20241118.1115603 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/applicationtemplates/stable/applicationtemplate Documentation

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

Client Initialization

client := applicationtemplate.NewApplicationTemplateClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: ApplicationTemplateClient.GetApplicationTemplate

ctx := context.TODO()
id := applicationtemplate.NewApplicationTemplateID("applicationTemplateId")

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

Example Usage: ApplicationTemplateClient.GetsCount

ctx := context.TODO()


read, err := client.GetsCount(ctx, applicationtemplate.DefaultGetsCountOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ApplicationTemplateClient.Instantiate

ctx := context.TODO()
id := applicationtemplate.NewApplicationTemplateID("applicationTemplateId")

payload := applicationtemplate.InstantiateRequest{
	// ...
}


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

Example Usage: ApplicationTemplateClient.ListApplicationTemplates

ctx := context.TODO()


// alternatively `client.ListApplicationTemplates(ctx, applicationtemplate.DefaultListApplicationTemplatesOperationOptions())` can be used to do batched pagination
items, err := client.ListApplicationTemplatesComplete(ctx, applicationtemplate.DefaultListApplicationTemplatesOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationTemplateClient

type ApplicationTemplateClient struct {
	Client *msgraph.Client
}

func NewApplicationTemplateClientWithBaseURI

func NewApplicationTemplateClientWithBaseURI(sdkApi sdkEnv.Api) (*ApplicationTemplateClient, error)

func (ApplicationTemplateClient) GetApplicationTemplate

GetApplicationTemplate - Get applicationTemplate. Retrieve the properties of an applicationTemplate object.

func (ApplicationTemplateClient) GetsCount

GetsCount - Get the number of the resource

func (ApplicationTemplateClient) Instantiate

Instantiate - Invoke action instantiate. Add an instance of an application from the Microsoft Entra application gallery into your directory. The application template with ID 8adf8e6e-67b2-4cf2-a259-e3dc5476c621 can be used to add a non-gallery app that you can configure different single-sign on (SSO) modes like SAML SSO and password-based SSO.

func (ApplicationTemplateClient) ListApplicationTemplates

ListApplicationTemplates - List applicationTemplates. Retrieve a list of applicationTemplate objects from the Microsoft Entra application gallery.

func (ApplicationTemplateClient) ListApplicationTemplatesComplete

ListApplicationTemplatesComplete retrieves all the results into a single object

func (ApplicationTemplateClient) ListApplicationTemplatesCompleteMatchingPredicate

func (c ApplicationTemplateClient) ListApplicationTemplatesCompleteMatchingPredicate(ctx context.Context, options ListApplicationTemplatesOperationOptions, predicate ApplicationTemplateOperationPredicate) (result ListApplicationTemplatesCompleteResult, err error)

ListApplicationTemplatesCompleteMatchingPredicate retrieves all the results and then applies the predicate

type ApplicationTemplateOperationPredicate

type ApplicationTemplateOperationPredicate struct {
}

func (ApplicationTemplateOperationPredicate) Matches

type GetApplicationTemplateOperationOptions

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

func DefaultGetApplicationTemplateOperationOptions

func DefaultGetApplicationTemplateOperationOptions() GetApplicationTemplateOperationOptions

func (GetApplicationTemplateOperationOptions) ToHeaders

func (GetApplicationTemplateOperationOptions) ToOData

func (GetApplicationTemplateOperationOptions) ToQuery

type GetApplicationTemplateOperationResponse

type GetApplicationTemplateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.ApplicationTemplate
}

type GetsCountOperationOptions

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

func DefaultGetsCountOperationOptions

func DefaultGetsCountOperationOptions() GetsCountOperationOptions

func (GetsCountOperationOptions) ToHeaders

func (o GetsCountOperationOptions) ToHeaders() *client.Headers

func (GetsCountOperationOptions) ToOData

func (o GetsCountOperationOptions) ToOData() *odata.Query

func (GetsCountOperationOptions) ToQuery

type GetsCountOperationResponse

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

type InstantiateOperationOptions

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

func DefaultInstantiateOperationOptions

func DefaultInstantiateOperationOptions() InstantiateOperationOptions

func (InstantiateOperationOptions) ToHeaders

func (InstantiateOperationOptions) ToOData

func (InstantiateOperationOptions) ToQuery

type InstantiateOperationResponse

type InstantiateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.ApplicationServicePrincipal
}

type InstantiateRequest

type InstantiateRequest struct {
	DisplayName nullable.Type[string] `json:"displayName,omitempty"`
}

type ListApplicationTemplatesCompleteResult

type ListApplicationTemplatesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []stable.ApplicationTemplate
}

type ListApplicationTemplatesCustomPager

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

type ListApplicationTemplatesOperationOptions

type ListApplicationTemplatesOperationOptions 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 DefaultListApplicationTemplatesOperationOptions

func DefaultListApplicationTemplatesOperationOptions() ListApplicationTemplatesOperationOptions

func (ListApplicationTemplatesOperationOptions) ToHeaders

func (ListApplicationTemplatesOperationOptions) ToOData

func (ListApplicationTemplatesOperationOptions) ToQuery

type ListApplicationTemplatesOperationResponse

type ListApplicationTemplatesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]stable.ApplicationTemplate
}

Jump to

Keyboard shortcuts

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