deviceshellscript

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

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

Client Initialization

client := deviceshellscript.NewDeviceShellScriptClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: DeviceShellScriptClient.AssignDeviceShellScript

ctx := context.TODO()
id := deviceshellscript.NewDeviceManagementDeviceShellScriptID("deviceShellScriptId")

payload := deviceshellscript.AssignDeviceShellScriptRequest{
	// ...
}


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

Example Usage: DeviceShellScriptClient.CreateDeviceShellScript

ctx := context.TODO()

payload := deviceshellscript.DeviceShellScript{
	// ...
}


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

Example Usage: DeviceShellScriptClient.DeleteDeviceShellScript

ctx := context.TODO()
id := deviceshellscript.NewDeviceManagementDeviceShellScriptID("deviceShellScriptId")

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

Example Usage: DeviceShellScriptClient.GetDeviceShellScript

ctx := context.TODO()
id := deviceshellscript.NewDeviceManagementDeviceShellScriptID("deviceShellScriptId")

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

Example Usage: DeviceShellScriptClient.GetDeviceShellScriptsCount

ctx := context.TODO()


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

Example Usage: DeviceShellScriptClient.ListDeviceShellScripts

ctx := context.TODO()


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

Example Usage: DeviceShellScriptClient.UpdateDeviceShellScript

ctx := context.TODO()
id := deviceshellscript.NewDeviceManagementDeviceShellScriptID("deviceShellScriptId")

payload := deviceshellscript.DeviceShellScript{
	// ...
}


read, err := client.UpdateDeviceShellScript(ctx, id, payload, deviceshellscript.DefaultUpdateDeviceShellScriptOperationOptions())
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 AssignDeviceShellScriptOperationOptions

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

func DefaultAssignDeviceShellScriptOperationOptions

func DefaultAssignDeviceShellScriptOperationOptions() AssignDeviceShellScriptOperationOptions

func (AssignDeviceShellScriptOperationOptions) ToHeaders

func (AssignDeviceShellScriptOperationOptions) ToOData

func (AssignDeviceShellScriptOperationOptions) ToQuery

type AssignDeviceShellScriptOperationResponse

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

type AssignDeviceShellScriptRequest

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

type CreateDeviceShellScriptOperationOptions

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

func DefaultCreateDeviceShellScriptOperationOptions

func DefaultCreateDeviceShellScriptOperationOptions() CreateDeviceShellScriptOperationOptions

func (CreateDeviceShellScriptOperationOptions) ToHeaders

func (CreateDeviceShellScriptOperationOptions) ToOData

func (CreateDeviceShellScriptOperationOptions) ToQuery

type CreateDeviceShellScriptOperationResponse

type CreateDeviceShellScriptOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.DeviceShellScript
}

type DeleteDeviceShellScriptOperationOptions

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

func DefaultDeleteDeviceShellScriptOperationOptions

func DefaultDeleteDeviceShellScriptOperationOptions() DeleteDeviceShellScriptOperationOptions

func (DeleteDeviceShellScriptOperationOptions) ToHeaders

func (DeleteDeviceShellScriptOperationOptions) ToOData

func (DeleteDeviceShellScriptOperationOptions) ToQuery

type DeleteDeviceShellScriptOperationResponse

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

type DeviceShellScriptClient

type DeviceShellScriptClient struct {
	Client *msgraph.Client
}

func NewDeviceShellScriptClientWithBaseURI

func NewDeviceShellScriptClientWithBaseURI(sdkApi sdkEnv.Api) (*DeviceShellScriptClient, error)

func (DeviceShellScriptClient) AssignDeviceShellScript

AssignDeviceShellScript - Invoke action assign

func (DeviceShellScriptClient) CreateDeviceShellScript

CreateDeviceShellScript - Create new navigation property to deviceShellScripts for deviceManagement

func (DeviceShellScriptClient) DeleteDeviceShellScript

DeleteDeviceShellScript - Delete navigation property deviceShellScripts for deviceManagement

func (DeviceShellScriptClient) GetDeviceShellScript

GetDeviceShellScript - Get deviceShellScripts from deviceManagement. The list of device shell scripts associated with the tenant.

func (DeviceShellScriptClient) GetDeviceShellScriptsCount

GetDeviceShellScriptsCount - Get the number of the resource

func (DeviceShellScriptClient) ListDeviceShellScripts

ListDeviceShellScripts - Get deviceShellScripts from deviceManagement. The list of device shell scripts associated with the tenant.

func (DeviceShellScriptClient) ListDeviceShellScriptsComplete

ListDeviceShellScriptsComplete retrieves all the results into a single object

func (DeviceShellScriptClient) ListDeviceShellScriptsCompleteMatchingPredicate

func (c DeviceShellScriptClient) ListDeviceShellScriptsCompleteMatchingPredicate(ctx context.Context, options ListDeviceShellScriptsOperationOptions, predicate DeviceShellScriptOperationPredicate) (result ListDeviceShellScriptsCompleteResult, err error)

ListDeviceShellScriptsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DeviceShellScriptClient) UpdateDeviceShellScript

UpdateDeviceShellScript - Update the navigation property deviceShellScripts in deviceManagement

type DeviceShellScriptOperationPredicate

type DeviceShellScriptOperationPredicate struct {
}

func (DeviceShellScriptOperationPredicate) Matches

type GetDeviceShellScriptOperationOptions

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

func DefaultGetDeviceShellScriptOperationOptions

func DefaultGetDeviceShellScriptOperationOptions() GetDeviceShellScriptOperationOptions

func (GetDeviceShellScriptOperationOptions) ToHeaders

func (GetDeviceShellScriptOperationOptions) ToOData

func (GetDeviceShellScriptOperationOptions) ToQuery

type GetDeviceShellScriptOperationResponse

type GetDeviceShellScriptOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.DeviceShellScript
}

type GetDeviceShellScriptsCountOperationOptions

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

func DefaultGetDeviceShellScriptsCountOperationOptions

func DefaultGetDeviceShellScriptsCountOperationOptions() GetDeviceShellScriptsCountOperationOptions

func (GetDeviceShellScriptsCountOperationOptions) ToHeaders

func (GetDeviceShellScriptsCountOperationOptions) ToOData

func (GetDeviceShellScriptsCountOperationOptions) ToQuery

type GetDeviceShellScriptsCountOperationResponse

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

type ListDeviceShellScriptsCompleteResult

type ListDeviceShellScriptsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.DeviceShellScript
}

type ListDeviceShellScriptsCustomPager

type ListDeviceShellScriptsCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *ListDeviceShellScriptsCustomPager) NextPageLink() *odata.Link

type ListDeviceShellScriptsOperationOptions

type ListDeviceShellScriptsOperationOptions 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 DefaultListDeviceShellScriptsOperationOptions

func DefaultListDeviceShellScriptsOperationOptions() ListDeviceShellScriptsOperationOptions

func (ListDeviceShellScriptsOperationOptions) ToHeaders

func (ListDeviceShellScriptsOperationOptions) ToOData

func (ListDeviceShellScriptsOperationOptions) ToQuery

type ListDeviceShellScriptsOperationResponse

type ListDeviceShellScriptsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.DeviceShellScript
}

type UpdateDeviceShellScriptOperationOptions

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

func DefaultUpdateDeviceShellScriptOperationOptions

func DefaultUpdateDeviceShellScriptOperationOptions() UpdateDeviceShellScriptOperationOptions

func (UpdateDeviceShellScriptOperationOptions) ToHeaders

func (UpdateDeviceShellScriptOperationOptions) ToOData

func (UpdateDeviceShellScriptOperationOptions) ToQuery

type UpdateDeviceShellScriptOperationResponse

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