hardwareconfiguration

package
v0.20241111.1164443 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := hardwareconfiguration.NewHardwareConfigurationClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: HardwareConfigurationClient.AssignHardwareConfigurations

ctx := context.TODO()
id := hardwareconfiguration.NewDeviceManagementHardwareConfigurationID("hardwareConfigurationId")

payload := hardwareconfiguration.AssignHardwareConfigurationsRequest{
	// ...
}


// alternatively `client.AssignHardwareConfigurations(ctx, id, payload, hardwareconfiguration.DefaultAssignHardwareConfigurationsOperationOptions())` can be used to do batched pagination
items, err := client.AssignHardwareConfigurationsComplete(ctx, id, payload, hardwareconfiguration.DefaultAssignHardwareConfigurationsOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: HardwareConfigurationClient.CreateHardwareConfiguration

ctx := context.TODO()

payload := hardwareconfiguration.HardwareConfiguration{
	// ...
}


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

Example Usage: HardwareConfigurationClient.DeleteHardwareConfiguration

ctx := context.TODO()
id := hardwareconfiguration.NewDeviceManagementHardwareConfigurationID("hardwareConfigurationId")

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

Example Usage: HardwareConfigurationClient.GetHardwareConfiguration

ctx := context.TODO()
id := hardwareconfiguration.NewDeviceManagementHardwareConfigurationID("hardwareConfigurationId")

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

Example Usage: HardwareConfigurationClient.GetHardwareConfigurationsCount

ctx := context.TODO()


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

Example Usage: HardwareConfigurationClient.ListHardwareConfigurations

ctx := context.TODO()


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

Example Usage: HardwareConfigurationClient.UpdateHardwareConfiguration

ctx := context.TODO()
id := hardwareconfiguration.NewDeviceManagementHardwareConfigurationID("hardwareConfigurationId")

payload := hardwareconfiguration.HardwareConfiguration{
	// ...
}


read, err := client.UpdateHardwareConfiguration(ctx, id, payload, hardwareconfiguration.DefaultUpdateHardwareConfigurationOperationOptions())
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 AssignHardwareConfigurationsCompleteResult

type AssignHardwareConfigurationsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.HardwareConfigurationAssignment
}

type AssignHardwareConfigurationsCustomPager

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

type AssignHardwareConfigurationsOperationOptions

type AssignHardwareConfigurationsOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Skip      *int64
	Top       *int64
}

func DefaultAssignHardwareConfigurationsOperationOptions

func DefaultAssignHardwareConfigurationsOperationOptions() AssignHardwareConfigurationsOperationOptions

func (AssignHardwareConfigurationsOperationOptions) ToHeaders

func (AssignHardwareConfigurationsOperationOptions) ToOData

func (AssignHardwareConfigurationsOperationOptions) ToQuery

type AssignHardwareConfigurationsOperationResponse

type AssignHardwareConfigurationsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.HardwareConfigurationAssignment
}

type AssignHardwareConfigurationsRequest

type AssignHardwareConfigurationsRequest struct {
	HardwareConfigurationAssignments *[]beta.HardwareConfigurationAssignment `json:"hardwareConfigurationAssignments,omitempty"`
}

type CreateHardwareConfigurationOperationOptions

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

func DefaultCreateHardwareConfigurationOperationOptions

func DefaultCreateHardwareConfigurationOperationOptions() CreateHardwareConfigurationOperationOptions

func (CreateHardwareConfigurationOperationOptions) ToHeaders

func (CreateHardwareConfigurationOperationOptions) ToOData

func (CreateHardwareConfigurationOperationOptions) ToQuery

type CreateHardwareConfigurationOperationResponse

type CreateHardwareConfigurationOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.HardwareConfiguration
}

type DeleteHardwareConfigurationOperationOptions

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

func DefaultDeleteHardwareConfigurationOperationOptions

func DefaultDeleteHardwareConfigurationOperationOptions() DeleteHardwareConfigurationOperationOptions

func (DeleteHardwareConfigurationOperationOptions) ToHeaders

func (DeleteHardwareConfigurationOperationOptions) ToOData

func (DeleteHardwareConfigurationOperationOptions) ToQuery

type DeleteHardwareConfigurationOperationResponse

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

type GetHardwareConfigurationOperationOptions

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

func DefaultGetHardwareConfigurationOperationOptions

func DefaultGetHardwareConfigurationOperationOptions() GetHardwareConfigurationOperationOptions

func (GetHardwareConfigurationOperationOptions) ToHeaders

func (GetHardwareConfigurationOperationOptions) ToOData

func (GetHardwareConfigurationOperationOptions) ToQuery

type GetHardwareConfigurationOperationResponse

type GetHardwareConfigurationOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.HardwareConfiguration
}

type GetHardwareConfigurationsCountOperationOptions

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

func DefaultGetHardwareConfigurationsCountOperationOptions

func DefaultGetHardwareConfigurationsCountOperationOptions() GetHardwareConfigurationsCountOperationOptions

func (GetHardwareConfigurationsCountOperationOptions) ToHeaders

func (GetHardwareConfigurationsCountOperationOptions) ToOData

func (GetHardwareConfigurationsCountOperationOptions) ToQuery

type GetHardwareConfigurationsCountOperationResponse

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

type HardwareConfigurationAssignmentOperationPredicate

type HardwareConfigurationAssignmentOperationPredicate struct {
}

func (HardwareConfigurationAssignmentOperationPredicate) Matches

type HardwareConfigurationClient

type HardwareConfigurationClient struct {
	Client *msgraph.Client
}

func NewHardwareConfigurationClientWithBaseURI

func NewHardwareConfigurationClientWithBaseURI(sdkApi sdkEnv.Api) (*HardwareConfigurationClient, error)

func (HardwareConfigurationClient) AssignHardwareConfigurations

AssignHardwareConfigurations - Invoke action assign

func (HardwareConfigurationClient) AssignHardwareConfigurationsComplete

AssignHardwareConfigurationsComplete retrieves all the results into a single object

func (HardwareConfigurationClient) AssignHardwareConfigurationsCompleteMatchingPredicate

AssignHardwareConfigurationsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (HardwareConfigurationClient) CreateHardwareConfiguration

CreateHardwareConfiguration - Create new navigation property to hardwareConfigurations for deviceManagement

func (HardwareConfigurationClient) DeleteHardwareConfiguration

DeleteHardwareConfiguration - Delete navigation property hardwareConfigurations for deviceManagement

func (HardwareConfigurationClient) GetHardwareConfiguration

GetHardwareConfiguration - Get hardwareConfigurations from deviceManagement. BIOS configuration and other settings provides customers the ability to configure hardware/bios settings on the enrolled Windows 10/11 Entra ID joined devices by uploading a configuration file generated with their OEM tool (e.g. Dell Command tool). A BIOS configuration policy can be assigned to multiple devices, allowing admins to remotely control a device's hardware properties (e.g. enable Secure Boot) from the Intune Portal. Supported for Dell only at this time.

func (HardwareConfigurationClient) GetHardwareConfigurationsCount

GetHardwareConfigurationsCount - Get the number of the resource

func (HardwareConfigurationClient) ListHardwareConfigurations

ListHardwareConfigurations - Get hardwareConfigurations from deviceManagement. BIOS configuration and other settings provides customers the ability to configure hardware/bios settings on the enrolled Windows 10/11 Entra ID joined devices by uploading a configuration file generated with their OEM tool (e.g. Dell Command tool). A BIOS configuration policy can be assigned to multiple devices, allowing admins to remotely control a device's hardware properties (e.g. enable Secure Boot) from the Intune Portal. Supported for Dell only at this time.

func (HardwareConfigurationClient) ListHardwareConfigurationsComplete

ListHardwareConfigurationsComplete retrieves all the results into a single object

func (HardwareConfigurationClient) ListHardwareConfigurationsCompleteMatchingPredicate

ListHardwareConfigurationsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (HardwareConfigurationClient) UpdateHardwareConfiguration

UpdateHardwareConfiguration - Update the navigation property hardwareConfigurations in deviceManagement

type HardwareConfigurationOperationPredicate

type HardwareConfigurationOperationPredicate struct {
}

func (HardwareConfigurationOperationPredicate) Matches

type ListHardwareConfigurationsCompleteResult

type ListHardwareConfigurationsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.HardwareConfiguration
}

type ListHardwareConfigurationsCustomPager

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

type ListHardwareConfigurationsOperationOptions

type ListHardwareConfigurationsOperationOptions 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 DefaultListHardwareConfigurationsOperationOptions

func DefaultListHardwareConfigurationsOperationOptions() ListHardwareConfigurationsOperationOptions

func (ListHardwareConfigurationsOperationOptions) ToHeaders

func (ListHardwareConfigurationsOperationOptions) ToOData

func (ListHardwareConfigurationsOperationOptions) ToQuery

type ListHardwareConfigurationsOperationResponse

type ListHardwareConfigurationsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.HardwareConfiguration
}

type UpdateHardwareConfigurationOperationOptions

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

func DefaultUpdateHardwareConfigurationOperationOptions

func DefaultUpdateHardwareConfigurationOperationOptions() UpdateHardwareConfigurationOperationOptions

func (UpdateHardwareConfigurationOperationOptions) ToHeaders

func (UpdateHardwareConfigurationOperationOptions) ToOData

func (UpdateHardwareConfigurationOperationOptions) ToQuery

type UpdateHardwareConfigurationOperationResponse

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

Jump to

Keyboard shortcuts

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