windowsfeatureupdateprofile

package
v0.20241126.1110949 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := windowsfeatureupdateprofile.NewWindowsFeatureUpdateProfileClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: WindowsFeatureUpdateProfileClient.AssignWindowsFeatureUpdateProfile

ctx := context.TODO()
id := windowsfeatureupdateprofile.NewDeviceManagementWindowsFeatureUpdateProfileID("windowsFeatureUpdateProfileId")

payload := windowsfeatureupdateprofile.AssignWindowsFeatureUpdateProfileRequest{
	// ...
}


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

Example Usage: WindowsFeatureUpdateProfileClient.CreateWindowsFeatureUpdateProfile

ctx := context.TODO()

payload := windowsfeatureupdateprofile.WindowsFeatureUpdateProfile{
	// ...
}


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

Example Usage: WindowsFeatureUpdateProfileClient.DeleteWindowsFeatureUpdateProfile

ctx := context.TODO()
id := windowsfeatureupdateprofile.NewDeviceManagementWindowsFeatureUpdateProfileID("windowsFeatureUpdateProfileId")

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

Example Usage: WindowsFeatureUpdateProfileClient.GetWindowsFeatureUpdateProfile

ctx := context.TODO()
id := windowsfeatureupdateprofile.NewDeviceManagementWindowsFeatureUpdateProfileID("windowsFeatureUpdateProfileId")

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

Example Usage: WindowsFeatureUpdateProfileClient.GetWindowsFeatureUpdateProfilesCount

ctx := context.TODO()


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

Example Usage: WindowsFeatureUpdateProfileClient.ListWindowsFeatureUpdateProfiles

ctx := context.TODO()


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

Example Usage: WindowsFeatureUpdateProfileClient.UpdateWindowsFeatureUpdateProfile

ctx := context.TODO()
id := windowsfeatureupdateprofile.NewDeviceManagementWindowsFeatureUpdateProfileID("windowsFeatureUpdateProfileId")

payload := windowsfeatureupdateprofile.WindowsFeatureUpdateProfile{
	// ...
}


read, err := client.UpdateWindowsFeatureUpdateProfile(ctx, id, payload, windowsfeatureupdateprofile.DefaultUpdateWindowsFeatureUpdateProfileOperationOptions())
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 AssignWindowsFeatureUpdateProfileOperationOptions

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

func DefaultAssignWindowsFeatureUpdateProfileOperationOptions

func DefaultAssignWindowsFeatureUpdateProfileOperationOptions() AssignWindowsFeatureUpdateProfileOperationOptions

func (AssignWindowsFeatureUpdateProfileOperationOptions) ToHeaders

func (AssignWindowsFeatureUpdateProfileOperationOptions) ToOData

func (AssignWindowsFeatureUpdateProfileOperationOptions) ToQuery

type AssignWindowsFeatureUpdateProfileOperationResponse

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

type AssignWindowsFeatureUpdateProfileRequest

type AssignWindowsFeatureUpdateProfileRequest struct {
	Assignments *[]beta.WindowsFeatureUpdateProfileAssignment `json:"assignments,omitempty"`
}

type CreateWindowsFeatureUpdateProfileOperationOptions

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

func DefaultCreateWindowsFeatureUpdateProfileOperationOptions

func DefaultCreateWindowsFeatureUpdateProfileOperationOptions() CreateWindowsFeatureUpdateProfileOperationOptions

func (CreateWindowsFeatureUpdateProfileOperationOptions) ToHeaders

func (CreateWindowsFeatureUpdateProfileOperationOptions) ToOData

func (CreateWindowsFeatureUpdateProfileOperationOptions) ToQuery

type CreateWindowsFeatureUpdateProfileOperationResponse

type CreateWindowsFeatureUpdateProfileOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.WindowsFeatureUpdateProfile
}

type DeleteWindowsFeatureUpdateProfileOperationOptions

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

func DefaultDeleteWindowsFeatureUpdateProfileOperationOptions

func DefaultDeleteWindowsFeatureUpdateProfileOperationOptions() DeleteWindowsFeatureUpdateProfileOperationOptions

func (DeleteWindowsFeatureUpdateProfileOperationOptions) ToHeaders

func (DeleteWindowsFeatureUpdateProfileOperationOptions) ToOData

func (DeleteWindowsFeatureUpdateProfileOperationOptions) ToQuery

type DeleteWindowsFeatureUpdateProfileOperationResponse

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

type GetWindowsFeatureUpdateProfileOperationOptions

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

func DefaultGetWindowsFeatureUpdateProfileOperationOptions

func DefaultGetWindowsFeatureUpdateProfileOperationOptions() GetWindowsFeatureUpdateProfileOperationOptions

func (GetWindowsFeatureUpdateProfileOperationOptions) ToHeaders

func (GetWindowsFeatureUpdateProfileOperationOptions) ToOData

func (GetWindowsFeatureUpdateProfileOperationOptions) ToQuery

type GetWindowsFeatureUpdateProfileOperationResponse

type GetWindowsFeatureUpdateProfileOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.WindowsFeatureUpdateProfile
}

type GetWindowsFeatureUpdateProfilesCountOperationOptions

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

func DefaultGetWindowsFeatureUpdateProfilesCountOperationOptions

func DefaultGetWindowsFeatureUpdateProfilesCountOperationOptions() GetWindowsFeatureUpdateProfilesCountOperationOptions

func (GetWindowsFeatureUpdateProfilesCountOperationOptions) ToHeaders

func (GetWindowsFeatureUpdateProfilesCountOperationOptions) ToOData

func (GetWindowsFeatureUpdateProfilesCountOperationOptions) ToQuery

type GetWindowsFeatureUpdateProfilesCountOperationResponse

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

type ListWindowsFeatureUpdateProfilesCompleteResult

type ListWindowsFeatureUpdateProfilesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.WindowsFeatureUpdateProfile
}

type ListWindowsFeatureUpdateProfilesCustomPager

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

type ListWindowsFeatureUpdateProfilesOperationOptions

type ListWindowsFeatureUpdateProfilesOperationOptions 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 DefaultListWindowsFeatureUpdateProfilesOperationOptions

func DefaultListWindowsFeatureUpdateProfilesOperationOptions() ListWindowsFeatureUpdateProfilesOperationOptions

func (ListWindowsFeatureUpdateProfilesOperationOptions) ToHeaders

func (ListWindowsFeatureUpdateProfilesOperationOptions) ToOData

func (ListWindowsFeatureUpdateProfilesOperationOptions) ToQuery

type ListWindowsFeatureUpdateProfilesOperationResponse

type ListWindowsFeatureUpdateProfilesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.WindowsFeatureUpdateProfile
}

type UpdateWindowsFeatureUpdateProfileOperationOptions

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

func DefaultUpdateWindowsFeatureUpdateProfileOperationOptions

func DefaultUpdateWindowsFeatureUpdateProfileOperationOptions() UpdateWindowsFeatureUpdateProfileOperationOptions

func (UpdateWindowsFeatureUpdateProfileOperationOptions) ToHeaders

func (UpdateWindowsFeatureUpdateProfileOperationOptions) ToOData

func (UpdateWindowsFeatureUpdateProfileOperationOptions) ToQuery

type UpdateWindowsFeatureUpdateProfileOperationResponse

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

type WindowsFeatureUpdateProfileClient

type WindowsFeatureUpdateProfileClient struct {
	Client *msgraph.Client
}

func NewWindowsFeatureUpdateProfileClientWithBaseURI

func NewWindowsFeatureUpdateProfileClientWithBaseURI(sdkApi sdkEnv.Api) (*WindowsFeatureUpdateProfileClient, error)

func (WindowsFeatureUpdateProfileClient) AssignWindowsFeatureUpdateProfile

AssignWindowsFeatureUpdateProfile - Invoke action assign

func (WindowsFeatureUpdateProfileClient) CreateWindowsFeatureUpdateProfile

CreateWindowsFeatureUpdateProfile - Create new navigation property to windowsFeatureUpdateProfiles for deviceManagement

func (WindowsFeatureUpdateProfileClient) DeleteWindowsFeatureUpdateProfile

DeleteWindowsFeatureUpdateProfile - Delete navigation property windowsFeatureUpdateProfiles for deviceManagement

func (WindowsFeatureUpdateProfileClient) GetWindowsFeatureUpdateProfile

GetWindowsFeatureUpdateProfile - Get windowsFeatureUpdateProfiles from deviceManagement. A collection of windows feature update profiles

func (WindowsFeatureUpdateProfileClient) GetWindowsFeatureUpdateProfilesCount

GetWindowsFeatureUpdateProfilesCount - Get the number of the resource

func (WindowsFeatureUpdateProfileClient) ListWindowsFeatureUpdateProfiles

ListWindowsFeatureUpdateProfiles - Get windowsFeatureUpdateProfiles from deviceManagement. A collection of windows feature update profiles

func (WindowsFeatureUpdateProfileClient) ListWindowsFeatureUpdateProfilesComplete

ListWindowsFeatureUpdateProfilesComplete retrieves all the results into a single object

func (WindowsFeatureUpdateProfileClient) ListWindowsFeatureUpdateProfilesCompleteMatchingPredicate

ListWindowsFeatureUpdateProfilesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (WindowsFeatureUpdateProfileClient) UpdateWindowsFeatureUpdateProfile

UpdateWindowsFeatureUpdateProfile - Update the navigation property windowsFeatureUpdateProfiles in deviceManagement

type WindowsFeatureUpdateProfileOperationPredicate

type WindowsFeatureUpdateProfileOperationPredicate struct {
}

func (WindowsFeatureUpdateProfileOperationPredicate) Matches

Jump to

Keyboard shortcuts

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