devicecustomattributeshellscript

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/devicecustomattributeshellscript Documentation

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

Client Initialization

client := devicecustomattributeshellscript.NewDeviceCustomAttributeShellScriptClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: DeviceCustomAttributeShellScriptClient.AssignDeviceCustomAttributeShellScript

ctx := context.TODO()
id := devicecustomattributeshellscript.NewDeviceManagementDeviceCustomAttributeShellScriptID("deviceCustomAttributeShellScriptId")

payload := devicecustomattributeshellscript.AssignDeviceCustomAttributeShellScriptRequest{
	// ...
}


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

Example Usage: DeviceCustomAttributeShellScriptClient.CreateDeviceCustomAttributeShellScript

ctx := context.TODO()

payload := devicecustomattributeshellscript.DeviceCustomAttributeShellScript{
	// ...
}


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

Example Usage: DeviceCustomAttributeShellScriptClient.DeleteDeviceCustomAttributeShellScript

ctx := context.TODO()
id := devicecustomattributeshellscript.NewDeviceManagementDeviceCustomAttributeShellScriptID("deviceCustomAttributeShellScriptId")

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

Example Usage: DeviceCustomAttributeShellScriptClient.GetDeviceCustomAttributeShellScript

ctx := context.TODO()
id := devicecustomattributeshellscript.NewDeviceManagementDeviceCustomAttributeShellScriptID("deviceCustomAttributeShellScriptId")

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

Example Usage: DeviceCustomAttributeShellScriptClient.GetDeviceCustomAttributeShellScriptsCount

ctx := context.TODO()


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

Example Usage: DeviceCustomAttributeShellScriptClient.ListDeviceCustomAttributeShellScripts

ctx := context.TODO()


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

Example Usage: DeviceCustomAttributeShellScriptClient.UpdateDeviceCustomAttributeShellScript

ctx := context.TODO()
id := devicecustomattributeshellscript.NewDeviceManagementDeviceCustomAttributeShellScriptID("deviceCustomAttributeShellScriptId")

payload := devicecustomattributeshellscript.DeviceCustomAttributeShellScript{
	// ...
}


read, err := client.UpdateDeviceCustomAttributeShellScript(ctx, id, payload, devicecustomattributeshellscript.DefaultUpdateDeviceCustomAttributeShellScriptOperationOptions())
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 AssignDeviceCustomAttributeShellScriptOperationOptions

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

func DefaultAssignDeviceCustomAttributeShellScriptOperationOptions

func DefaultAssignDeviceCustomAttributeShellScriptOperationOptions() AssignDeviceCustomAttributeShellScriptOperationOptions

func (AssignDeviceCustomAttributeShellScriptOperationOptions) ToHeaders

func (AssignDeviceCustomAttributeShellScriptOperationOptions) ToOData

func (AssignDeviceCustomAttributeShellScriptOperationOptions) ToQuery

type AssignDeviceCustomAttributeShellScriptOperationResponse

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

type AssignDeviceCustomAttributeShellScriptRequest

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

type CreateDeviceCustomAttributeShellScriptOperationOptions

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

func DefaultCreateDeviceCustomAttributeShellScriptOperationOptions

func DefaultCreateDeviceCustomAttributeShellScriptOperationOptions() CreateDeviceCustomAttributeShellScriptOperationOptions

func (CreateDeviceCustomAttributeShellScriptOperationOptions) ToHeaders

func (CreateDeviceCustomAttributeShellScriptOperationOptions) ToOData

func (CreateDeviceCustomAttributeShellScriptOperationOptions) ToQuery

type CreateDeviceCustomAttributeShellScriptOperationResponse

type CreateDeviceCustomAttributeShellScriptOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.DeviceCustomAttributeShellScript
}

type DeleteDeviceCustomAttributeShellScriptOperationOptions

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

func DefaultDeleteDeviceCustomAttributeShellScriptOperationOptions

func DefaultDeleteDeviceCustomAttributeShellScriptOperationOptions() DeleteDeviceCustomAttributeShellScriptOperationOptions

func (DeleteDeviceCustomAttributeShellScriptOperationOptions) ToHeaders

func (DeleteDeviceCustomAttributeShellScriptOperationOptions) ToOData

func (DeleteDeviceCustomAttributeShellScriptOperationOptions) ToQuery

type DeleteDeviceCustomAttributeShellScriptOperationResponse

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

type DeviceCustomAttributeShellScriptClient

type DeviceCustomAttributeShellScriptClient struct {
	Client *msgraph.Client
}

func NewDeviceCustomAttributeShellScriptClientWithBaseURI

func NewDeviceCustomAttributeShellScriptClientWithBaseURI(sdkApi sdkEnv.Api) (*DeviceCustomAttributeShellScriptClient, error)

func (DeviceCustomAttributeShellScriptClient) AssignDeviceCustomAttributeShellScript

AssignDeviceCustomAttributeShellScript - Invoke action assign

func (DeviceCustomAttributeShellScriptClient) CreateDeviceCustomAttributeShellScript

CreateDeviceCustomAttributeShellScript - Create new navigation property to deviceCustomAttributeShellScripts for deviceManagement

func (DeviceCustomAttributeShellScriptClient) DeleteDeviceCustomAttributeShellScript

DeleteDeviceCustomAttributeShellScript - Delete navigation property deviceCustomAttributeShellScripts for deviceManagement

func (DeviceCustomAttributeShellScriptClient) GetDeviceCustomAttributeShellScript

GetDeviceCustomAttributeShellScript - Get deviceCustomAttributeShellScripts from deviceManagement. The list of device custom attribute shell scripts associated with the tenant.

func (DeviceCustomAttributeShellScriptClient) GetDeviceCustomAttributeShellScriptsCount

GetDeviceCustomAttributeShellScriptsCount - Get the number of the resource

func (DeviceCustomAttributeShellScriptClient) ListDeviceCustomAttributeShellScripts

ListDeviceCustomAttributeShellScripts - Get deviceCustomAttributeShellScripts from deviceManagement. The list of device custom attribute shell scripts associated with the tenant.

func (DeviceCustomAttributeShellScriptClient) ListDeviceCustomAttributeShellScriptsComplete

ListDeviceCustomAttributeShellScriptsComplete retrieves all the results into a single object

func (DeviceCustomAttributeShellScriptClient) ListDeviceCustomAttributeShellScriptsCompleteMatchingPredicate

ListDeviceCustomAttributeShellScriptsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DeviceCustomAttributeShellScriptClient) UpdateDeviceCustomAttributeShellScript

UpdateDeviceCustomAttributeShellScript - Update the navigation property deviceCustomAttributeShellScripts in deviceManagement

type DeviceCustomAttributeShellScriptOperationPredicate

type DeviceCustomAttributeShellScriptOperationPredicate struct {
}

func (DeviceCustomAttributeShellScriptOperationPredicate) Matches

type GetDeviceCustomAttributeShellScriptOperationOptions

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

func DefaultGetDeviceCustomAttributeShellScriptOperationOptions

func DefaultGetDeviceCustomAttributeShellScriptOperationOptions() GetDeviceCustomAttributeShellScriptOperationOptions

func (GetDeviceCustomAttributeShellScriptOperationOptions) ToHeaders

func (GetDeviceCustomAttributeShellScriptOperationOptions) ToOData

func (GetDeviceCustomAttributeShellScriptOperationOptions) ToQuery

type GetDeviceCustomAttributeShellScriptOperationResponse

type GetDeviceCustomAttributeShellScriptOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.DeviceCustomAttributeShellScript
}

type GetDeviceCustomAttributeShellScriptsCountOperationOptions

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

func (GetDeviceCustomAttributeShellScriptsCountOperationOptions) ToHeaders

func (GetDeviceCustomAttributeShellScriptsCountOperationOptions) ToOData

func (GetDeviceCustomAttributeShellScriptsCountOperationOptions) ToQuery

type GetDeviceCustomAttributeShellScriptsCountOperationResponse

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

type ListDeviceCustomAttributeShellScriptsCompleteResult

type ListDeviceCustomAttributeShellScriptsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.DeviceCustomAttributeShellScript
}

type ListDeviceCustomAttributeShellScriptsCustomPager

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

type ListDeviceCustomAttributeShellScriptsOperationOptions

type ListDeviceCustomAttributeShellScriptsOperationOptions 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 DefaultListDeviceCustomAttributeShellScriptsOperationOptions

func DefaultListDeviceCustomAttributeShellScriptsOperationOptions() ListDeviceCustomAttributeShellScriptsOperationOptions

func (ListDeviceCustomAttributeShellScriptsOperationOptions) ToHeaders

func (ListDeviceCustomAttributeShellScriptsOperationOptions) ToOData

func (ListDeviceCustomAttributeShellScriptsOperationOptions) ToQuery

type ListDeviceCustomAttributeShellScriptsOperationResponse

type ListDeviceCustomAttributeShellScriptsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.DeviceCustomAttributeShellScript
}

type UpdateDeviceCustomAttributeShellScriptOperationOptions

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

func DefaultUpdateDeviceCustomAttributeShellScriptOperationOptions

func DefaultUpdateDeviceCustomAttributeShellScriptOperationOptions() UpdateDeviceCustomAttributeShellScriptOperationOptions

func (UpdateDeviceCustomAttributeShellScriptOperationOptions) ToHeaders

func (UpdateDeviceCustomAttributeShellScriptOperationOptions) ToOData

func (UpdateDeviceCustomAttributeShellScriptOperationOptions) ToQuery

type UpdateDeviceCustomAttributeShellScriptOperationResponse

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