windowsdriverupdateprofile

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/devicemanagement/beta/windowsdriverupdateprofile Documentation

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

Client Initialization

client := windowsdriverupdateprofile.NewWindowsDriverUpdateProfileClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: WindowsDriverUpdateProfileClient.AssignWindowsDriverUpdateProfile

ctx := context.TODO()
id := windowsdriverupdateprofile.NewDeviceManagementWindowsDriverUpdateProfileID("windowsDriverUpdateProfileId")

payload := windowsdriverupdateprofile.AssignWindowsDriverUpdateProfileRequest{
	// ...
}


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

Example Usage: WindowsDriverUpdateProfileClient.CreateWindowsDriverUpdateProfile

ctx := context.TODO()

payload := windowsdriverupdateprofile.WindowsDriverUpdateProfile{
	// ...
}


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

Example Usage: WindowsDriverUpdateProfileClient.CreateWindowsDriverUpdateProfileExecuteAction

ctx := context.TODO()
id := windowsdriverupdateprofile.NewDeviceManagementWindowsDriverUpdateProfileID("windowsDriverUpdateProfileId")

payload := windowsdriverupdateprofile.CreateWindowsDriverUpdateProfileExecuteActionRequest{
	// ...
}


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

Example Usage: WindowsDriverUpdateProfileClient.DeleteWindowsDriverUpdateProfile

ctx := context.TODO()
id := windowsdriverupdateprofile.NewDeviceManagementWindowsDriverUpdateProfileID("windowsDriverUpdateProfileId")

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

Example Usage: WindowsDriverUpdateProfileClient.GetWindowsDriverUpdateProfile

ctx := context.TODO()
id := windowsdriverupdateprofile.NewDeviceManagementWindowsDriverUpdateProfileID("windowsDriverUpdateProfileId")

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

Example Usage: WindowsDriverUpdateProfileClient.GetWindowsDriverUpdateProfilesCount

ctx := context.TODO()


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

Example Usage: WindowsDriverUpdateProfileClient.ListWindowsDriverUpdateProfiles

ctx := context.TODO()


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

Example Usage: WindowsDriverUpdateProfileClient.SyncWindowsDriverUpdateProfileInventory

ctx := context.TODO()
id := windowsdriverupdateprofile.NewDeviceManagementWindowsDriverUpdateProfileID("windowsDriverUpdateProfileId")

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

Example Usage: WindowsDriverUpdateProfileClient.UpdateWindowsDriverUpdateProfile

ctx := context.TODO()
id := windowsdriverupdateprofile.NewDeviceManagementWindowsDriverUpdateProfileID("windowsDriverUpdateProfileId")

payload := windowsdriverupdateprofile.WindowsDriverUpdateProfile{
	// ...
}


read, err := client.UpdateWindowsDriverUpdateProfile(ctx, id, payload, windowsdriverupdateprofile.DefaultUpdateWindowsDriverUpdateProfileOperationOptions())
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 AssignWindowsDriverUpdateProfileOperationOptions

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

func DefaultAssignWindowsDriverUpdateProfileOperationOptions

func DefaultAssignWindowsDriverUpdateProfileOperationOptions() AssignWindowsDriverUpdateProfileOperationOptions

func (AssignWindowsDriverUpdateProfileOperationOptions) ToHeaders

func (AssignWindowsDriverUpdateProfileOperationOptions) ToOData

func (AssignWindowsDriverUpdateProfileOperationOptions) ToQuery

type AssignWindowsDriverUpdateProfileOperationResponse

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

type AssignWindowsDriverUpdateProfileRequest

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

type CreateWindowsDriverUpdateProfileExecuteActionOperationOptions

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

func (CreateWindowsDriverUpdateProfileExecuteActionOperationOptions) ToHeaders

func (CreateWindowsDriverUpdateProfileExecuteActionOperationOptions) ToOData

func (CreateWindowsDriverUpdateProfileExecuteActionOperationOptions) ToQuery

type CreateWindowsDriverUpdateProfileExecuteActionOperationResponse

type CreateWindowsDriverUpdateProfileExecuteActionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.BulkDriverActionResult
}

type CreateWindowsDriverUpdateProfileExecuteActionRequest

type CreateWindowsDriverUpdateProfileExecuteActionRequest struct {
	// An enum type to represent approval actions of single or list of drivers.
	ActionName *beta.DriverApprovalAction `json:"actionName,omitempty"`

	DeploymentDate nullable.Type[string] `json:"deploymentDate,omitempty"`
	DriverIds      *[]string             `json:"driverIds,omitempty"`
}

type CreateWindowsDriverUpdateProfileOperationOptions

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

func DefaultCreateWindowsDriverUpdateProfileOperationOptions

func DefaultCreateWindowsDriverUpdateProfileOperationOptions() CreateWindowsDriverUpdateProfileOperationOptions

func (CreateWindowsDriverUpdateProfileOperationOptions) ToHeaders

func (CreateWindowsDriverUpdateProfileOperationOptions) ToOData

func (CreateWindowsDriverUpdateProfileOperationOptions) ToQuery

type CreateWindowsDriverUpdateProfileOperationResponse

type CreateWindowsDriverUpdateProfileOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.WindowsDriverUpdateProfile
}

type DeleteWindowsDriverUpdateProfileOperationOptions

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

func DefaultDeleteWindowsDriverUpdateProfileOperationOptions

func DefaultDeleteWindowsDriverUpdateProfileOperationOptions() DeleteWindowsDriverUpdateProfileOperationOptions

func (DeleteWindowsDriverUpdateProfileOperationOptions) ToHeaders

func (DeleteWindowsDriverUpdateProfileOperationOptions) ToOData

func (DeleteWindowsDriverUpdateProfileOperationOptions) ToQuery

type DeleteWindowsDriverUpdateProfileOperationResponse

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

type GetWindowsDriverUpdateProfileOperationOptions

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

func DefaultGetWindowsDriverUpdateProfileOperationOptions

func DefaultGetWindowsDriverUpdateProfileOperationOptions() GetWindowsDriverUpdateProfileOperationOptions

func (GetWindowsDriverUpdateProfileOperationOptions) ToHeaders

func (GetWindowsDriverUpdateProfileOperationOptions) ToOData

func (GetWindowsDriverUpdateProfileOperationOptions) ToQuery

type GetWindowsDriverUpdateProfileOperationResponse

type GetWindowsDriverUpdateProfileOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.WindowsDriverUpdateProfile
}

type GetWindowsDriverUpdateProfilesCountOperationOptions

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

func DefaultGetWindowsDriverUpdateProfilesCountOperationOptions

func DefaultGetWindowsDriverUpdateProfilesCountOperationOptions() GetWindowsDriverUpdateProfilesCountOperationOptions

func (GetWindowsDriverUpdateProfilesCountOperationOptions) ToHeaders

func (GetWindowsDriverUpdateProfilesCountOperationOptions) ToOData

func (GetWindowsDriverUpdateProfilesCountOperationOptions) ToQuery

type GetWindowsDriverUpdateProfilesCountOperationResponse

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

type ListWindowsDriverUpdateProfilesCompleteResult

type ListWindowsDriverUpdateProfilesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.WindowsDriverUpdateProfile
}

type ListWindowsDriverUpdateProfilesCustomPager

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

type ListWindowsDriverUpdateProfilesOperationOptions

type ListWindowsDriverUpdateProfilesOperationOptions 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 DefaultListWindowsDriverUpdateProfilesOperationOptions

func DefaultListWindowsDriverUpdateProfilesOperationOptions() ListWindowsDriverUpdateProfilesOperationOptions

func (ListWindowsDriverUpdateProfilesOperationOptions) ToHeaders

func (ListWindowsDriverUpdateProfilesOperationOptions) ToOData

func (ListWindowsDriverUpdateProfilesOperationOptions) ToQuery

type ListWindowsDriverUpdateProfilesOperationResponse

type ListWindowsDriverUpdateProfilesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.WindowsDriverUpdateProfile
}

type SyncWindowsDriverUpdateProfileInventoryOperationOptions

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

func (SyncWindowsDriverUpdateProfileInventoryOperationOptions) ToHeaders

func (SyncWindowsDriverUpdateProfileInventoryOperationOptions) ToOData

func (SyncWindowsDriverUpdateProfileInventoryOperationOptions) ToQuery

type SyncWindowsDriverUpdateProfileInventoryOperationResponse

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

type UpdateWindowsDriverUpdateProfileOperationOptions

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

func DefaultUpdateWindowsDriverUpdateProfileOperationOptions

func DefaultUpdateWindowsDriverUpdateProfileOperationOptions() UpdateWindowsDriverUpdateProfileOperationOptions

func (UpdateWindowsDriverUpdateProfileOperationOptions) ToHeaders

func (UpdateWindowsDriverUpdateProfileOperationOptions) ToOData

func (UpdateWindowsDriverUpdateProfileOperationOptions) ToQuery

type UpdateWindowsDriverUpdateProfileOperationResponse

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

type WindowsDriverUpdateProfileClient

type WindowsDriverUpdateProfileClient struct {
	Client *msgraph.Client
}

func NewWindowsDriverUpdateProfileClientWithBaseURI

func NewWindowsDriverUpdateProfileClientWithBaseURI(sdkApi sdkEnv.Api) (*WindowsDriverUpdateProfileClient, error)

func (WindowsDriverUpdateProfileClient) AssignWindowsDriverUpdateProfile

AssignWindowsDriverUpdateProfile - Invoke action assign

func (WindowsDriverUpdateProfileClient) CreateWindowsDriverUpdateProfile

CreateWindowsDriverUpdateProfile - Create new navigation property to windowsDriverUpdateProfiles for deviceManagement

func (WindowsDriverUpdateProfileClient) CreateWindowsDriverUpdateProfileExecuteAction

CreateWindowsDriverUpdateProfileExecuteAction - Invoke action executeAction

func (WindowsDriverUpdateProfileClient) DeleteWindowsDriverUpdateProfile

DeleteWindowsDriverUpdateProfile - Delete navigation property windowsDriverUpdateProfiles for deviceManagement

func (WindowsDriverUpdateProfileClient) GetWindowsDriverUpdateProfile

GetWindowsDriverUpdateProfile - Get windowsDriverUpdateProfiles from deviceManagement. A collection of windows driver update profiles

func (WindowsDriverUpdateProfileClient) GetWindowsDriverUpdateProfilesCount

GetWindowsDriverUpdateProfilesCount - Get the number of the resource

func (WindowsDriverUpdateProfileClient) ListWindowsDriverUpdateProfiles

ListWindowsDriverUpdateProfiles - Get windowsDriverUpdateProfiles from deviceManagement. A collection of windows driver update profiles

func (WindowsDriverUpdateProfileClient) ListWindowsDriverUpdateProfilesComplete

ListWindowsDriverUpdateProfilesComplete retrieves all the results into a single object

func (WindowsDriverUpdateProfileClient) ListWindowsDriverUpdateProfilesCompleteMatchingPredicate

ListWindowsDriverUpdateProfilesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (WindowsDriverUpdateProfileClient) SyncWindowsDriverUpdateProfileInventory

SyncWindowsDriverUpdateProfileInventory - Invoke action syncInventory. Sync the driver inventory of a WindowsDriverUpdateProfile.

func (WindowsDriverUpdateProfileClient) UpdateWindowsDriverUpdateProfile

UpdateWindowsDriverUpdateProfile - Update the navigation property windowsDriverUpdateProfiles in deviceManagement

type WindowsDriverUpdateProfileOperationPredicate

type WindowsDriverUpdateProfileOperationPredicate struct {
}

func (WindowsDriverUpdateProfileOperationPredicate) Matches

Jump to

Keyboard shortcuts

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