grouppolicyuploadeddefinitionfile

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

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

Client Initialization

client := grouppolicyuploadeddefinitionfile.NewGroupPolicyUploadedDefinitionFileClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: GroupPolicyUploadedDefinitionFileClient.AddGroupPolicyUploadedDefinitionFileLanguageFiles

ctx := context.TODO()
id := grouppolicyuploadeddefinitionfile.NewDeviceManagementGroupPolicyUploadedDefinitionFileID("groupPolicyUploadedDefinitionFileId")

payload := grouppolicyuploadeddefinitionfile.AddGroupPolicyUploadedDefinitionFileLanguageFilesRequest{
	// ...
}


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

Example Usage: GroupPolicyUploadedDefinitionFileClient.CreateGroupPolicyUploadedDefinitionFile

ctx := context.TODO()

payload := grouppolicyuploadeddefinitionfile.GroupPolicyUploadedDefinitionFile{
	// ...
}


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

Example Usage: GroupPolicyUploadedDefinitionFileClient.CreateGroupPolicyUploadedDefinitionFileUploadNewVersion

ctx := context.TODO()
id := grouppolicyuploadeddefinitionfile.NewDeviceManagementGroupPolicyUploadedDefinitionFileID("groupPolicyUploadedDefinitionFileId")

payload := grouppolicyuploadeddefinitionfile.CreateGroupPolicyUploadedDefinitionFileUploadNewVersionRequest{
	// ...
}


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

Example Usage: GroupPolicyUploadedDefinitionFileClient.DeleteGroupPolicyUploadedDefinitionFile

ctx := context.TODO()
id := grouppolicyuploadeddefinitionfile.NewDeviceManagementGroupPolicyUploadedDefinitionFileID("groupPolicyUploadedDefinitionFileId")

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

Example Usage: GroupPolicyUploadedDefinitionFileClient.GetGroupPolicyUploadedDefinitionFile

ctx := context.TODO()
id := grouppolicyuploadeddefinitionfile.NewDeviceManagementGroupPolicyUploadedDefinitionFileID("groupPolicyUploadedDefinitionFileId")

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

Example Usage: GroupPolicyUploadedDefinitionFileClient.GetGroupPolicyUploadedDefinitionFilesCount

ctx := context.TODO()


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

Example Usage: GroupPolicyUploadedDefinitionFileClient.ListGroupPolicyUploadedDefinitionFiles

ctx := context.TODO()


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

Example Usage: GroupPolicyUploadedDefinitionFileClient.RemoveGroupPolicyUploadedDefinitionFile

ctx := context.TODO()
id := grouppolicyuploadeddefinitionfile.NewDeviceManagementGroupPolicyUploadedDefinitionFileID("groupPolicyUploadedDefinitionFileId")

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

Example Usage: GroupPolicyUploadedDefinitionFileClient.RemoveGroupPolicyUploadedDefinitionFileLanguageFiles

ctx := context.TODO()
id := grouppolicyuploadeddefinitionfile.NewDeviceManagementGroupPolicyUploadedDefinitionFileID("groupPolicyUploadedDefinitionFileId")

payload := grouppolicyuploadeddefinitionfile.RemoveGroupPolicyUploadedDefinitionFileLanguageFilesRequest{
	// ...
}


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

Example Usage: GroupPolicyUploadedDefinitionFileClient.UpdateGroupPolicyUploadedDefinitionFile

ctx := context.TODO()
id := grouppolicyuploadeddefinitionfile.NewDeviceManagementGroupPolicyUploadedDefinitionFileID("groupPolicyUploadedDefinitionFileId")

payload := grouppolicyuploadeddefinitionfile.GroupPolicyUploadedDefinitionFile{
	// ...
}


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

Example Usage: GroupPolicyUploadedDefinitionFileClient.UpdateGroupPolicyUploadedDefinitionFileLanguageFiles

ctx := context.TODO()
id := grouppolicyuploadeddefinitionfile.NewDeviceManagementGroupPolicyUploadedDefinitionFileID("groupPolicyUploadedDefinitionFileId")

payload := grouppolicyuploadeddefinitionfile.UpdateGroupPolicyUploadedDefinitionFileLanguageFilesRequest{
	// ...
}


read, err := client.UpdateGroupPolicyUploadedDefinitionFileLanguageFiles(ctx, id, payload, grouppolicyuploadeddefinitionfile.DefaultUpdateGroupPolicyUploadedDefinitionFileLanguageFilesOperationOptions())
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 AddGroupPolicyUploadedDefinitionFileLanguageFilesOperationOptions

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

func (AddGroupPolicyUploadedDefinitionFileLanguageFilesOperationOptions) ToHeaders

func (AddGroupPolicyUploadedDefinitionFileLanguageFilesOperationOptions) ToOData

func (AddGroupPolicyUploadedDefinitionFileLanguageFilesOperationOptions) ToQuery

type AddGroupPolicyUploadedDefinitionFileLanguageFilesOperationResponse

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

type AddGroupPolicyUploadedDefinitionFileLanguageFilesRequest

type AddGroupPolicyUploadedDefinitionFileLanguageFilesRequest struct {
	GroupPolicyUploadedLanguageFiles *[]beta.GroupPolicyUploadedLanguageFile `json:"groupPolicyUploadedLanguageFiles,omitempty"`
}

type CreateGroupPolicyUploadedDefinitionFileOperationOptions

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

func (CreateGroupPolicyUploadedDefinitionFileOperationOptions) ToHeaders

func (CreateGroupPolicyUploadedDefinitionFileOperationOptions) ToOData

func (CreateGroupPolicyUploadedDefinitionFileOperationOptions) ToQuery

type CreateGroupPolicyUploadedDefinitionFileOperationResponse

type CreateGroupPolicyUploadedDefinitionFileOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.GroupPolicyUploadedDefinitionFile
}

type CreateGroupPolicyUploadedDefinitionFileUploadNewVersionOperationOptions

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

func (CreateGroupPolicyUploadedDefinitionFileUploadNewVersionOperationOptions) ToHeaders

func (CreateGroupPolicyUploadedDefinitionFileUploadNewVersionOperationOptions) ToOData

func (CreateGroupPolicyUploadedDefinitionFileUploadNewVersionOperationOptions) ToQuery

type CreateGroupPolicyUploadedDefinitionFileUploadNewVersionOperationResponse

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

type CreateGroupPolicyUploadedDefinitionFileUploadNewVersionRequest

type CreateGroupPolicyUploadedDefinitionFileUploadNewVersionRequest struct {
	Content                          *string                                 `json:"content,omitempty"`
	GroupPolicyUploadedLanguageFiles *[]beta.GroupPolicyUploadedLanguageFile `json:"groupPolicyUploadedLanguageFiles,omitempty"`
}

type DeleteGroupPolicyUploadedDefinitionFileOperationOptions

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

func (DeleteGroupPolicyUploadedDefinitionFileOperationOptions) ToHeaders

func (DeleteGroupPolicyUploadedDefinitionFileOperationOptions) ToOData

func (DeleteGroupPolicyUploadedDefinitionFileOperationOptions) ToQuery

type DeleteGroupPolicyUploadedDefinitionFileOperationResponse

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

type GetGroupPolicyUploadedDefinitionFileOperationOptions

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

func DefaultGetGroupPolicyUploadedDefinitionFileOperationOptions

func DefaultGetGroupPolicyUploadedDefinitionFileOperationOptions() GetGroupPolicyUploadedDefinitionFileOperationOptions

func (GetGroupPolicyUploadedDefinitionFileOperationOptions) ToHeaders

func (GetGroupPolicyUploadedDefinitionFileOperationOptions) ToOData

func (GetGroupPolicyUploadedDefinitionFileOperationOptions) ToQuery

type GetGroupPolicyUploadedDefinitionFileOperationResponse

type GetGroupPolicyUploadedDefinitionFileOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.GroupPolicyUploadedDefinitionFile
}

type GetGroupPolicyUploadedDefinitionFilesCountOperationOptions

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

func (GetGroupPolicyUploadedDefinitionFilesCountOperationOptions) ToHeaders

func (GetGroupPolicyUploadedDefinitionFilesCountOperationOptions) ToOData

func (GetGroupPolicyUploadedDefinitionFilesCountOperationOptions) ToQuery

type GetGroupPolicyUploadedDefinitionFilesCountOperationResponse

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

type GroupPolicyUploadedDefinitionFileClient

type GroupPolicyUploadedDefinitionFileClient struct {
	Client *msgraph.Client
}

func NewGroupPolicyUploadedDefinitionFileClientWithBaseURI

func NewGroupPolicyUploadedDefinitionFileClientWithBaseURI(sdkApi sdkEnv.Api) (*GroupPolicyUploadedDefinitionFileClient, error)

func (GroupPolicyUploadedDefinitionFileClient) AddGroupPolicyUploadedDefinitionFileLanguageFiles

AddGroupPolicyUploadedDefinitionFileLanguageFiles - Invoke action addLanguageFiles

func (GroupPolicyUploadedDefinitionFileClient) CreateGroupPolicyUploadedDefinitionFile

CreateGroupPolicyUploadedDefinitionFile - Create new navigation property to groupPolicyUploadedDefinitionFiles for deviceManagement

func (GroupPolicyUploadedDefinitionFileClient) CreateGroupPolicyUploadedDefinitionFileUploadNewVersion

CreateGroupPolicyUploadedDefinitionFileUploadNewVersion - Invoke action uploadNewVersion

func (GroupPolicyUploadedDefinitionFileClient) DeleteGroupPolicyUploadedDefinitionFile

DeleteGroupPolicyUploadedDefinitionFile - Delete navigation property groupPolicyUploadedDefinitionFiles for deviceManagement

func (GroupPolicyUploadedDefinitionFileClient) GetGroupPolicyUploadedDefinitionFile

GetGroupPolicyUploadedDefinitionFile - Get groupPolicyUploadedDefinitionFiles from deviceManagement. The available group policy uploaded definition files for this account.

func (GroupPolicyUploadedDefinitionFileClient) GetGroupPolicyUploadedDefinitionFilesCount

GetGroupPolicyUploadedDefinitionFilesCount - Get the number of the resource

func (GroupPolicyUploadedDefinitionFileClient) ListGroupPolicyUploadedDefinitionFiles

ListGroupPolicyUploadedDefinitionFiles - Get groupPolicyUploadedDefinitionFiles from deviceManagement. The available group policy uploaded definition files for this account.

func (GroupPolicyUploadedDefinitionFileClient) ListGroupPolicyUploadedDefinitionFilesComplete

ListGroupPolicyUploadedDefinitionFilesComplete retrieves all the results into a single object

func (GroupPolicyUploadedDefinitionFileClient) ListGroupPolicyUploadedDefinitionFilesCompleteMatchingPredicate

ListGroupPolicyUploadedDefinitionFilesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (GroupPolicyUploadedDefinitionFileClient) RemoveGroupPolicyUploadedDefinitionFile

RemoveGroupPolicyUploadedDefinitionFile - Invoke action remove

func (GroupPolicyUploadedDefinitionFileClient) RemoveGroupPolicyUploadedDefinitionFileLanguageFiles

RemoveGroupPolicyUploadedDefinitionFileLanguageFiles - Invoke action removeLanguageFiles

func (GroupPolicyUploadedDefinitionFileClient) UpdateGroupPolicyUploadedDefinitionFile

UpdateGroupPolicyUploadedDefinitionFile - Update the navigation property groupPolicyUploadedDefinitionFiles in deviceManagement

func (GroupPolicyUploadedDefinitionFileClient) UpdateGroupPolicyUploadedDefinitionFileLanguageFiles

UpdateGroupPolicyUploadedDefinitionFileLanguageFiles - Invoke action updateLanguageFiles

type GroupPolicyUploadedDefinitionFileOperationPredicate

type GroupPolicyUploadedDefinitionFileOperationPredicate struct {
}

func (GroupPolicyUploadedDefinitionFileOperationPredicate) Matches

type ListGroupPolicyUploadedDefinitionFilesCompleteResult

type ListGroupPolicyUploadedDefinitionFilesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.GroupPolicyUploadedDefinitionFile
}

type ListGroupPolicyUploadedDefinitionFilesCustomPager

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

type ListGroupPolicyUploadedDefinitionFilesOperationOptions

type ListGroupPolicyUploadedDefinitionFilesOperationOptions 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 DefaultListGroupPolicyUploadedDefinitionFilesOperationOptions

func DefaultListGroupPolicyUploadedDefinitionFilesOperationOptions() ListGroupPolicyUploadedDefinitionFilesOperationOptions

func (ListGroupPolicyUploadedDefinitionFilesOperationOptions) ToHeaders

func (ListGroupPolicyUploadedDefinitionFilesOperationOptions) ToOData

func (ListGroupPolicyUploadedDefinitionFilesOperationOptions) ToQuery

type ListGroupPolicyUploadedDefinitionFilesOperationResponse

type ListGroupPolicyUploadedDefinitionFilesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.GroupPolicyUploadedDefinitionFile
}

type RemoveGroupPolicyUploadedDefinitionFileLanguageFilesOperationOptions

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

func (RemoveGroupPolicyUploadedDefinitionFileLanguageFilesOperationOptions) ToHeaders

func (RemoveGroupPolicyUploadedDefinitionFileLanguageFilesOperationOptions) ToOData

func (RemoveGroupPolicyUploadedDefinitionFileLanguageFilesOperationOptions) ToQuery

type RemoveGroupPolicyUploadedDefinitionFileLanguageFilesOperationResponse

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

type RemoveGroupPolicyUploadedDefinitionFileLanguageFilesRequest

type RemoveGroupPolicyUploadedDefinitionFileLanguageFilesRequest struct {
	GroupPolicyUploadedLanguageFiles *[]beta.GroupPolicyUploadedLanguageFile `json:"groupPolicyUploadedLanguageFiles,omitempty"`
}

type RemoveGroupPolicyUploadedDefinitionFileOperationOptions

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

func (RemoveGroupPolicyUploadedDefinitionFileOperationOptions) ToHeaders

func (RemoveGroupPolicyUploadedDefinitionFileOperationOptions) ToOData

func (RemoveGroupPolicyUploadedDefinitionFileOperationOptions) ToQuery

type RemoveGroupPolicyUploadedDefinitionFileOperationResponse

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

type UpdateGroupPolicyUploadedDefinitionFileLanguageFilesOperationOptions

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

func (UpdateGroupPolicyUploadedDefinitionFileLanguageFilesOperationOptions) ToHeaders

func (UpdateGroupPolicyUploadedDefinitionFileLanguageFilesOperationOptions) ToOData

func (UpdateGroupPolicyUploadedDefinitionFileLanguageFilesOperationOptions) ToQuery

type UpdateGroupPolicyUploadedDefinitionFileLanguageFilesOperationResponse

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

type UpdateGroupPolicyUploadedDefinitionFileLanguageFilesRequest

type UpdateGroupPolicyUploadedDefinitionFileLanguageFilesRequest struct {
	GroupPolicyUploadedLanguageFiles *[]beta.GroupPolicyUploadedLanguageFile `json:"groupPolicyUploadedLanguageFiles,omitempty"`
}

type UpdateGroupPolicyUploadedDefinitionFileOperationOptions

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

func (UpdateGroupPolicyUploadedDefinitionFileOperationOptions) ToHeaders

func (UpdateGroupPolicyUploadedDefinitionFileOperationOptions) ToOData

func (UpdateGroupPolicyUploadedDefinitionFileOperationOptions) ToQuery

type UpdateGroupPolicyUploadedDefinitionFileOperationResponse

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