devicecompliancescript

package
v0.20241126.2320 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: 0

README

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

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

Client Initialization

client := devicecompliancescript.NewDeviceComplianceScriptClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: DeviceComplianceScriptClient.AssignDeviceComplianceScript

ctx := context.TODO()
id := devicecompliancescript.NewDeviceManagementDeviceComplianceScriptID("deviceComplianceScriptId")

payload := devicecompliancescript.AssignDeviceComplianceScriptRequest{
	// ...
}


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

Example Usage: DeviceComplianceScriptClient.CreateDeviceComplianceScript

ctx := context.TODO()

payload := devicecompliancescript.DeviceComplianceScript{
	// ...
}


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

Example Usage: DeviceComplianceScriptClient.DeleteDeviceComplianceScript

ctx := context.TODO()
id := devicecompliancescript.NewDeviceManagementDeviceComplianceScriptID("deviceComplianceScriptId")

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

Example Usage: DeviceComplianceScriptClient.GetDeviceComplianceScript

ctx := context.TODO()
id := devicecompliancescript.NewDeviceManagementDeviceComplianceScriptID("deviceComplianceScriptId")

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

Example Usage: DeviceComplianceScriptClient.GetDeviceComplianceScriptsCount

ctx := context.TODO()


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

Example Usage: DeviceComplianceScriptClient.ListDeviceComplianceScripts

ctx := context.TODO()


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

Example Usage: DeviceComplianceScriptClient.UpdateDeviceComplianceScript

ctx := context.TODO()
id := devicecompliancescript.NewDeviceManagementDeviceComplianceScriptID("deviceComplianceScriptId")

payload := devicecompliancescript.DeviceComplianceScript{
	// ...
}


read, err := client.UpdateDeviceComplianceScript(ctx, id, payload, devicecompliancescript.DefaultUpdateDeviceComplianceScriptOperationOptions())
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 AssignDeviceComplianceScriptOperationOptions

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

func DefaultAssignDeviceComplianceScriptOperationOptions

func DefaultAssignDeviceComplianceScriptOperationOptions() AssignDeviceComplianceScriptOperationOptions

func (AssignDeviceComplianceScriptOperationOptions) ToHeaders

func (AssignDeviceComplianceScriptOperationOptions) ToOData

func (AssignDeviceComplianceScriptOperationOptions) ToQuery

type AssignDeviceComplianceScriptOperationResponse

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

type AssignDeviceComplianceScriptRequest

type AssignDeviceComplianceScriptRequest struct {
	DeviceHealthScriptAssignments *[]beta.DeviceHealthScriptAssignment `json:"deviceHealthScriptAssignments,omitempty"`
}

type CreateDeviceComplianceScriptOperationOptions

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

func DefaultCreateDeviceComplianceScriptOperationOptions

func DefaultCreateDeviceComplianceScriptOperationOptions() CreateDeviceComplianceScriptOperationOptions

func (CreateDeviceComplianceScriptOperationOptions) ToHeaders

func (CreateDeviceComplianceScriptOperationOptions) ToOData

func (CreateDeviceComplianceScriptOperationOptions) ToQuery

type CreateDeviceComplianceScriptOperationResponse

type CreateDeviceComplianceScriptOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.DeviceComplianceScript
}

type DeleteDeviceComplianceScriptOperationOptions

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

func DefaultDeleteDeviceComplianceScriptOperationOptions

func DefaultDeleteDeviceComplianceScriptOperationOptions() DeleteDeviceComplianceScriptOperationOptions

func (DeleteDeviceComplianceScriptOperationOptions) ToHeaders

func (DeleteDeviceComplianceScriptOperationOptions) ToOData

func (DeleteDeviceComplianceScriptOperationOptions) ToQuery

type DeleteDeviceComplianceScriptOperationResponse

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

type DeviceComplianceScriptClient

type DeviceComplianceScriptClient struct {
	Client *msgraph.Client
}

func NewDeviceComplianceScriptClientWithBaseURI

func NewDeviceComplianceScriptClientWithBaseURI(sdkApi sdkEnv.Api) (*DeviceComplianceScriptClient, error)

func (DeviceComplianceScriptClient) AssignDeviceComplianceScript

AssignDeviceComplianceScript - Invoke action assign

func (DeviceComplianceScriptClient) CreateDeviceComplianceScript

CreateDeviceComplianceScript - Create new navigation property to deviceComplianceScripts for deviceManagement

func (DeviceComplianceScriptClient) DeleteDeviceComplianceScript

DeleteDeviceComplianceScript - Delete navigation property deviceComplianceScripts for deviceManagement

func (DeviceComplianceScriptClient) GetDeviceComplianceScript

GetDeviceComplianceScript - Get deviceComplianceScripts from deviceManagement. The list of device compliance scripts associated with the tenant.

func (DeviceComplianceScriptClient) GetDeviceComplianceScriptsCount

GetDeviceComplianceScriptsCount - Get the number of the resource

func (DeviceComplianceScriptClient) ListDeviceComplianceScripts

ListDeviceComplianceScripts - Get deviceComplianceScripts from deviceManagement. The list of device compliance scripts associated with the tenant.

func (DeviceComplianceScriptClient) ListDeviceComplianceScriptsComplete

ListDeviceComplianceScriptsComplete retrieves all the results into a single object

func (DeviceComplianceScriptClient) ListDeviceComplianceScriptsCompleteMatchingPredicate

ListDeviceComplianceScriptsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DeviceComplianceScriptClient) UpdateDeviceComplianceScript

UpdateDeviceComplianceScript - Update the navigation property deviceComplianceScripts in deviceManagement

type DeviceComplianceScriptOperationPredicate

type DeviceComplianceScriptOperationPredicate struct {
}

func (DeviceComplianceScriptOperationPredicate) Matches

type GetDeviceComplianceScriptOperationOptions

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

func DefaultGetDeviceComplianceScriptOperationOptions

func DefaultGetDeviceComplianceScriptOperationOptions() GetDeviceComplianceScriptOperationOptions

func (GetDeviceComplianceScriptOperationOptions) ToHeaders

func (GetDeviceComplianceScriptOperationOptions) ToOData

func (GetDeviceComplianceScriptOperationOptions) ToQuery

type GetDeviceComplianceScriptOperationResponse

type GetDeviceComplianceScriptOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.DeviceComplianceScript
}

type GetDeviceComplianceScriptsCountOperationOptions

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

func DefaultGetDeviceComplianceScriptsCountOperationOptions

func DefaultGetDeviceComplianceScriptsCountOperationOptions() GetDeviceComplianceScriptsCountOperationOptions

func (GetDeviceComplianceScriptsCountOperationOptions) ToHeaders

func (GetDeviceComplianceScriptsCountOperationOptions) ToOData

func (GetDeviceComplianceScriptsCountOperationOptions) ToQuery

type GetDeviceComplianceScriptsCountOperationResponse

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

type ListDeviceComplianceScriptsCompleteResult

type ListDeviceComplianceScriptsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.DeviceComplianceScript
}

type ListDeviceComplianceScriptsCustomPager

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

type ListDeviceComplianceScriptsOperationOptions

type ListDeviceComplianceScriptsOperationOptions 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 DefaultListDeviceComplianceScriptsOperationOptions

func DefaultListDeviceComplianceScriptsOperationOptions() ListDeviceComplianceScriptsOperationOptions

func (ListDeviceComplianceScriptsOperationOptions) ToHeaders

func (ListDeviceComplianceScriptsOperationOptions) ToOData

func (ListDeviceComplianceScriptsOperationOptions) ToQuery

type ListDeviceComplianceScriptsOperationResponse

type ListDeviceComplianceScriptsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.DeviceComplianceScript
}

type UpdateDeviceComplianceScriptOperationOptions

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

func DefaultUpdateDeviceComplianceScriptOperationOptions

func DefaultUpdateDeviceComplianceScriptOperationOptions() UpdateDeviceComplianceScriptOperationOptions

func (UpdateDeviceComplianceScriptOperationOptions) ToHeaders

func (UpdateDeviceComplianceScriptOperationOptions) ToOData

func (UpdateDeviceComplianceScriptOperationOptions) ToQuery

type UpdateDeviceComplianceScriptOperationResponse

type UpdateDeviceComplianceScriptOperationResponse 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