zebrafotadeployment

package
v0.20241212.1154051 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/devicemanagement/beta/zebrafotadeployment Documentation

The zebrafotadeployment SDK allows for interaction with Microsoft Graph devicemanagement (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/devicemanagement/beta/zebrafotadeployment"

Client Initialization

client := zebrafotadeployment.NewZebraFotaDeploymentClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: ZebraFotaDeploymentClient.CancelZebraFotaDeployment

ctx := context.TODO()
id := zebrafotadeployment.NewDeviceManagementZebraFotaDeploymentID("zebraFotaDeploymentId")

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

Example Usage: ZebraFotaDeploymentClient.CreateZebraFotaDeployment

ctx := context.TODO()

payload := zebrafotadeployment.ZebraFotaDeployment{
	// ...
}


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

Example Usage: ZebraFotaDeploymentClient.DeleteZebraFotaDeployment

ctx := context.TODO()
id := zebrafotadeployment.NewDeviceManagementZebraFotaDeploymentID("zebraFotaDeploymentId")

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

Example Usage: ZebraFotaDeploymentClient.GetZebraFotaDeployment

ctx := context.TODO()
id := zebrafotadeployment.NewDeviceManagementZebraFotaDeploymentID("zebraFotaDeploymentId")

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

Example Usage: ZebraFotaDeploymentClient.GetZebraFotaDeploymentsCount

ctx := context.TODO()


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

Example Usage: ZebraFotaDeploymentClient.ListZebraFotaDeployments

ctx := context.TODO()


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

Example Usage: ZebraFotaDeploymentClient.UpdateZebraFotaDeployment

ctx := context.TODO()
id := zebrafotadeployment.NewDeviceManagementZebraFotaDeploymentID("zebraFotaDeploymentId")

payload := zebrafotadeployment.ZebraFotaDeployment{
	// ...
}


read, err := client.UpdateZebraFotaDeployment(ctx, id, payload, zebrafotadeployment.DefaultUpdateZebraFotaDeploymentOperationOptions())
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 CancelZebraFotaDeploymentOperationOptions

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

func DefaultCancelZebraFotaDeploymentOperationOptions

func DefaultCancelZebraFotaDeploymentOperationOptions() CancelZebraFotaDeploymentOperationOptions

func (CancelZebraFotaDeploymentOperationOptions) ToHeaders

func (CancelZebraFotaDeploymentOperationOptions) ToOData

func (CancelZebraFotaDeploymentOperationOptions) ToQuery

type CancelZebraFotaDeploymentOperationResponse

type CancelZebraFotaDeploymentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *CancelZebraFotaDeploymentResult
}

type CancelZebraFotaDeploymentResult

type CancelZebraFotaDeploymentResult struct {
	Value *bool `json:"value,omitempty"`
}

type CreateZebraFotaDeploymentOperationOptions

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

func DefaultCreateZebraFotaDeploymentOperationOptions

func DefaultCreateZebraFotaDeploymentOperationOptions() CreateZebraFotaDeploymentOperationOptions

func (CreateZebraFotaDeploymentOperationOptions) ToHeaders

func (CreateZebraFotaDeploymentOperationOptions) ToOData

func (CreateZebraFotaDeploymentOperationOptions) ToQuery

type CreateZebraFotaDeploymentOperationResponse

type CreateZebraFotaDeploymentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.ZebraFotaDeployment
}

type DeleteZebraFotaDeploymentOperationOptions

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

func DefaultDeleteZebraFotaDeploymentOperationOptions

func DefaultDeleteZebraFotaDeploymentOperationOptions() DeleteZebraFotaDeploymentOperationOptions

func (DeleteZebraFotaDeploymentOperationOptions) ToHeaders

func (DeleteZebraFotaDeploymentOperationOptions) ToOData

func (DeleteZebraFotaDeploymentOperationOptions) ToQuery

type DeleteZebraFotaDeploymentOperationResponse

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

type GetZebraFotaDeploymentOperationOptions

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

func DefaultGetZebraFotaDeploymentOperationOptions

func DefaultGetZebraFotaDeploymentOperationOptions() GetZebraFotaDeploymentOperationOptions

func (GetZebraFotaDeploymentOperationOptions) ToHeaders

func (GetZebraFotaDeploymentOperationOptions) ToOData

func (GetZebraFotaDeploymentOperationOptions) ToQuery

type GetZebraFotaDeploymentOperationResponse

type GetZebraFotaDeploymentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.ZebraFotaDeployment
}

type GetZebraFotaDeploymentsCountOperationOptions

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

func DefaultGetZebraFotaDeploymentsCountOperationOptions

func DefaultGetZebraFotaDeploymentsCountOperationOptions() GetZebraFotaDeploymentsCountOperationOptions

func (GetZebraFotaDeploymentsCountOperationOptions) ToHeaders

func (GetZebraFotaDeploymentsCountOperationOptions) ToOData

func (GetZebraFotaDeploymentsCountOperationOptions) ToQuery

type GetZebraFotaDeploymentsCountOperationResponse

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

type ListZebraFotaDeploymentsCompleteResult

type ListZebraFotaDeploymentsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.ZebraFotaDeployment
}

type ListZebraFotaDeploymentsCustomPager

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

type ListZebraFotaDeploymentsOperationOptions

type ListZebraFotaDeploymentsOperationOptions 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 DefaultListZebraFotaDeploymentsOperationOptions

func DefaultListZebraFotaDeploymentsOperationOptions() ListZebraFotaDeploymentsOperationOptions

func (ListZebraFotaDeploymentsOperationOptions) ToHeaders

func (ListZebraFotaDeploymentsOperationOptions) ToOData

func (ListZebraFotaDeploymentsOperationOptions) ToQuery

type ListZebraFotaDeploymentsOperationResponse

type ListZebraFotaDeploymentsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.ZebraFotaDeployment
}

type UpdateZebraFotaDeploymentOperationOptions

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

func DefaultUpdateZebraFotaDeploymentOperationOptions

func DefaultUpdateZebraFotaDeploymentOperationOptions() UpdateZebraFotaDeploymentOperationOptions

func (UpdateZebraFotaDeploymentOperationOptions) ToHeaders

func (UpdateZebraFotaDeploymentOperationOptions) ToOData

func (UpdateZebraFotaDeploymentOperationOptions) ToQuery

type UpdateZebraFotaDeploymentOperationResponse

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

type ZebraFotaDeploymentClient

type ZebraFotaDeploymentClient struct {
	Client *msgraph.Client
}

func NewZebraFotaDeploymentClientWithBaseURI

func NewZebraFotaDeploymentClientWithBaseURI(sdkApi sdkEnv.Api) (*ZebraFotaDeploymentClient, error)

func (ZebraFotaDeploymentClient) CancelZebraFotaDeployment

CancelZebraFotaDeployment - Invoke action cancel

func (ZebraFotaDeploymentClient) CreateZebraFotaDeployment

CreateZebraFotaDeployment - Create new navigation property to zebraFotaDeployments for deviceManagement

func (ZebraFotaDeploymentClient) DeleteZebraFotaDeployment

DeleteZebraFotaDeployment - Delete navigation property zebraFotaDeployments for deviceManagement

func (ZebraFotaDeploymentClient) GetZebraFotaDeployment

GetZebraFotaDeployment - Get zebraFotaDeployments from deviceManagement. Collection of ZebraFotaDeployments associated with account.

func (ZebraFotaDeploymentClient) GetZebraFotaDeploymentsCount

GetZebraFotaDeploymentsCount - Get the number of the resource

func (ZebraFotaDeploymentClient) ListZebraFotaDeployments

ListZebraFotaDeployments - Get zebraFotaDeployments from deviceManagement. Collection of ZebraFotaDeployments associated with account.

func (ZebraFotaDeploymentClient) ListZebraFotaDeploymentsComplete

ListZebraFotaDeploymentsComplete retrieves all the results into a single object

func (ZebraFotaDeploymentClient) ListZebraFotaDeploymentsCompleteMatchingPredicate

func (c ZebraFotaDeploymentClient) ListZebraFotaDeploymentsCompleteMatchingPredicate(ctx context.Context, options ListZebraFotaDeploymentsOperationOptions, predicate ZebraFotaDeploymentOperationPredicate) (result ListZebraFotaDeploymentsCompleteResult, err error)

ListZebraFotaDeploymentsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ZebraFotaDeploymentClient) UpdateZebraFotaDeployment

UpdateZebraFotaDeployment - Update the navigation property zebraFotaDeployments in deviceManagement

type ZebraFotaDeploymentOperationPredicate

type ZebraFotaDeploymentOperationPredicate struct {
}

func (ZebraFotaDeploymentOperationPredicate) Matches

Jump to

Keyboard shortcuts

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