devicemanagementscript

package
v0.20241029.1112340 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := devicemanagementscript.NewDeviceManagementScriptClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: DeviceManagementScriptClient.AssignDeviceManagementScript

ctx := context.TODO()
id := devicemanagementscript.NewDeviceManagementDeviceManagementScriptID("deviceManagementScriptId")

payload := devicemanagementscript.AssignDeviceManagementScriptRequest{
	// ...
}


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

Example Usage: DeviceManagementScriptClient.CreateDeviceManagementScript

ctx := context.TODO()

payload := devicemanagementscript.DeviceManagementScript{
	// ...
}


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

Example Usage: DeviceManagementScriptClient.DeleteDeviceManagementScript

ctx := context.TODO()
id := devicemanagementscript.NewDeviceManagementDeviceManagementScriptID("deviceManagementScriptId")

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

Example Usage: DeviceManagementScriptClient.GetDeviceManagementScript

ctx := context.TODO()
id := devicemanagementscript.NewDeviceManagementDeviceManagementScriptID("deviceManagementScriptId")

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

Example Usage: DeviceManagementScriptClient.GetDeviceManagementScriptsCount

ctx := context.TODO()


read, err := client.GetDeviceManagementScriptsCount(ctx, devicemanagementscript.DefaultGetDeviceManagementScriptsCountOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}
ctx := context.TODO()

payload := devicemanagementscript.ListDeviceManagementScriptHasPayloadLinksRequest{
	// ...
}


// alternatively `client.ListDeviceManagementScriptHasPayloadLinks(ctx, payload, devicemanagementscript.DefaultListDeviceManagementScriptHasPayloadLinksOperationOptions())` can be used to do batched pagination
items, err := client.ListDeviceManagementScriptHasPayloadLinksComplete(ctx, payload, devicemanagementscript.DefaultListDeviceManagementScriptHasPayloadLinksOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: DeviceManagementScriptClient.ListDeviceManagementScripts

ctx := context.TODO()


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

Example Usage: DeviceManagementScriptClient.UpdateDeviceManagementScript

ctx := context.TODO()
id := devicemanagementscript.NewDeviceManagementDeviceManagementScriptID("deviceManagementScriptId")

payload := devicemanagementscript.DeviceManagementScript{
	// ...
}


read, err := client.UpdateDeviceManagementScript(ctx, id, payload, devicemanagementscript.DefaultUpdateDeviceManagementScriptOperationOptions())
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 AssignDeviceManagementScriptOperationOptions

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

func DefaultAssignDeviceManagementScriptOperationOptions

func DefaultAssignDeviceManagementScriptOperationOptions() AssignDeviceManagementScriptOperationOptions

func (AssignDeviceManagementScriptOperationOptions) ToHeaders

func (AssignDeviceManagementScriptOperationOptions) ToOData

func (AssignDeviceManagementScriptOperationOptions) ToQuery

type AssignDeviceManagementScriptOperationResponse

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

type AssignDeviceManagementScriptRequest

type AssignDeviceManagementScriptRequest struct {
	DeviceManagementScriptAssignments      *[]beta.DeviceManagementScriptAssignment      `json:"deviceManagementScriptAssignments,omitempty"`
	DeviceManagementScriptGroupAssignments *[]beta.DeviceManagementScriptGroupAssignment `json:"deviceManagementScriptGroupAssignments,omitempty"`
}

type CreateDeviceManagementScriptOperationOptions

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

func DefaultCreateDeviceManagementScriptOperationOptions

func DefaultCreateDeviceManagementScriptOperationOptions() CreateDeviceManagementScriptOperationOptions

func (CreateDeviceManagementScriptOperationOptions) ToHeaders

func (CreateDeviceManagementScriptOperationOptions) ToOData

func (CreateDeviceManagementScriptOperationOptions) ToQuery

type CreateDeviceManagementScriptOperationResponse

type CreateDeviceManagementScriptOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.DeviceManagementScript
}

type DeleteDeviceManagementScriptOperationOptions

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

func DefaultDeleteDeviceManagementScriptOperationOptions

func DefaultDeleteDeviceManagementScriptOperationOptions() DeleteDeviceManagementScriptOperationOptions

func (DeleteDeviceManagementScriptOperationOptions) ToHeaders

func (DeleteDeviceManagementScriptOperationOptions) ToOData

func (DeleteDeviceManagementScriptOperationOptions) ToQuery

type DeleteDeviceManagementScriptOperationResponse

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

type DeviceManagementScriptClient

type DeviceManagementScriptClient struct {
	Client *msgraph.Client
}

func NewDeviceManagementScriptClientWithBaseURI

func NewDeviceManagementScriptClientWithBaseURI(sdkApi sdkEnv.Api) (*DeviceManagementScriptClient, error)

func (DeviceManagementScriptClient) AssignDeviceManagementScript

AssignDeviceManagementScript - Invoke action assign

func (DeviceManagementScriptClient) CreateDeviceManagementScript

CreateDeviceManagementScript - Create new navigation property to deviceManagementScripts for deviceManagement

func (DeviceManagementScriptClient) DeleteDeviceManagementScript

DeleteDeviceManagementScript - Delete navigation property deviceManagementScripts for deviceManagement

func (DeviceManagementScriptClient) GetDeviceManagementScript

GetDeviceManagementScript - Get deviceManagementScripts from deviceManagement. The list of device management scripts associated with the tenant.

func (DeviceManagementScriptClient) GetDeviceManagementScriptsCount

GetDeviceManagementScriptsCount - Get the number of the resource

ListDeviceManagementScriptHasPayloadLinks - Invoke action hasPayloadLinks

func (DeviceManagementScriptClient) ListDeviceManagementScriptHasPayloadLinksComplete

ListDeviceManagementScriptHasPayloadLinksComplete retrieves all the results into a single object

func (DeviceManagementScriptClient) ListDeviceManagementScriptHasPayloadLinksCompleteMatchingPredicate

ListDeviceManagementScriptHasPayloadLinksCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DeviceManagementScriptClient) ListDeviceManagementScripts

ListDeviceManagementScripts - Get deviceManagementScripts from deviceManagement. The list of device management scripts associated with the tenant.

func (DeviceManagementScriptClient) ListDeviceManagementScriptsComplete

ListDeviceManagementScriptsComplete retrieves all the results into a single object

func (DeviceManagementScriptClient) ListDeviceManagementScriptsCompleteMatchingPredicate

ListDeviceManagementScriptsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DeviceManagementScriptClient) UpdateDeviceManagementScript

UpdateDeviceManagementScript - Update the navigation property deviceManagementScripts in deviceManagement

type DeviceManagementScriptOperationPredicate

type DeviceManagementScriptOperationPredicate struct {
}

func (DeviceManagementScriptOperationPredicate) Matches

type GetDeviceManagementScriptOperationOptions

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

func DefaultGetDeviceManagementScriptOperationOptions

func DefaultGetDeviceManagementScriptOperationOptions() GetDeviceManagementScriptOperationOptions

func (GetDeviceManagementScriptOperationOptions) ToHeaders

func (GetDeviceManagementScriptOperationOptions) ToOData

func (GetDeviceManagementScriptOperationOptions) ToQuery

type GetDeviceManagementScriptOperationResponse

type GetDeviceManagementScriptOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.DeviceManagementScript
}

type GetDeviceManagementScriptsCountOperationOptions

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

func DefaultGetDeviceManagementScriptsCountOperationOptions

func DefaultGetDeviceManagementScriptsCountOperationOptions() GetDeviceManagementScriptsCountOperationOptions

func (GetDeviceManagementScriptsCountOperationOptions) ToHeaders

func (GetDeviceManagementScriptsCountOperationOptions) ToOData

func (GetDeviceManagementScriptsCountOperationOptions) ToQuery

type GetDeviceManagementScriptsCountOperationResponse

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

type HasPayloadLinkResultItemOperationPredicate

type HasPayloadLinkResultItemOperationPredicate struct {
}

func (HasPayloadLinkResultItemOperationPredicate) Matches

type ListDeviceManagementScriptHasPayloadLinksCompleteResult

type ListDeviceManagementScriptHasPayloadLinksCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.HasPayloadLinkResultItem
}

type ListDeviceManagementScriptHasPayloadLinksCustomPager

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

type ListDeviceManagementScriptHasPayloadLinksOperationOptions

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

func (ListDeviceManagementScriptHasPayloadLinksOperationOptions) ToHeaders

func (ListDeviceManagementScriptHasPayloadLinksOperationOptions) ToOData

func (ListDeviceManagementScriptHasPayloadLinksOperationOptions) ToQuery

type ListDeviceManagementScriptHasPayloadLinksOperationResponse

type ListDeviceManagementScriptHasPayloadLinksOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.HasPayloadLinkResultItem
}

type ListDeviceManagementScriptHasPayloadLinksRequest

type ListDeviceManagementScriptHasPayloadLinksRequest struct {
	PayloadIds *[]string `json:"payloadIds,omitempty"`
}

type ListDeviceManagementScriptsCompleteResult

type ListDeviceManagementScriptsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.DeviceManagementScript
}

type ListDeviceManagementScriptsCustomPager

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

type ListDeviceManagementScriptsOperationOptions

type ListDeviceManagementScriptsOperationOptions 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 DefaultListDeviceManagementScriptsOperationOptions

func DefaultListDeviceManagementScriptsOperationOptions() ListDeviceManagementScriptsOperationOptions

func (ListDeviceManagementScriptsOperationOptions) ToHeaders

func (ListDeviceManagementScriptsOperationOptions) ToOData

func (ListDeviceManagementScriptsOperationOptions) ToQuery

type ListDeviceManagementScriptsOperationResponse

type ListDeviceManagementScriptsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.DeviceManagementScript
}

type UpdateDeviceManagementScriptOperationOptions

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

func DefaultUpdateDeviceManagementScriptOperationOptions

func DefaultUpdateDeviceManagementScriptOperationOptions() UpdateDeviceManagementScriptOperationOptions

func (UpdateDeviceManagementScriptOperationOptions) ToHeaders

func (UpdateDeviceManagementScriptOperationOptions) ToOData

func (UpdateDeviceManagementScriptOperationOptions) ToQuery

type UpdateDeviceManagementScriptOperationResponse

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